/* ── Badges ── */

/* Nominee badge (returning / new) */
.nominee-badge {
  font-size: var(--text-4xs);
  font-weight: var(--weight-medium);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  vertical-align: middle;
}
.nominee-badge.is-returning {
  background: rgba(79, 109, 122, 0.12);
  color: var(--color-accent);
}
.nominee-badge.is-new {
  background: rgba(138, 154, 108, 0.15);
  color: var(--color-sage-dark);
}

/* Nominee badge count (votes + comments) */
.nominee-badge-count {
  font-size: var(--text-4xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-tertiary);
  background: var(--color-surface);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Role badge */
.role-badge {
  font-size: var(--text-4xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.role-badge.host {
  background: rgba(79, 109, 122, 0.12);
  color: var(--color-accent);
}
.role-badge.alumni {
  background: var(--color-surface);
  color: var(--color-text-tertiary);
}
.role-badge.steward {
  background: rgba(138, 154, 108, 0.15);
  color: var(--color-sage-dark);
}
.role-badge.hosting {
  background: #e8f0e3;
  color: #5a7a4a;
}

/* Dossier badges */
.dossier-badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.dossier-badge {
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
}
.dossier-badge.returning {
  background: rgba(79, 109, 122, 0.12);
  color: var(--color-accent);
}
.dossier-badge.new {
  background: rgba(138, 154, 108, 0.15);
  color: var(--color-sage-dark);
}
.dossier-badge.selected {
  background: rgba(138, 154, 108, 0.2);
  color: #5a6d45;
}
.dossier-badge.ruled-out {
  background: rgba(204, 68, 68, 0.1);
  color: var(--color-danger-dark);
}

/* Page header badge */
.page-header-badge {
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.3px;
  color: var(--color-text-tertiary);
  background: var(--color-surface);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-left: 10px;
  vertical-align: middle;
}

/* Cohort complete badge */
.cohort-complete-badge {
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  color: var(--color-sage-dark);
  background: rgba(138, 154, 108, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Early preview badge */
.early-preview-badge {
  display: inline-block;
  font-size: var(--text-3xs);
  font-weight: var(--weight-semibold);
  color: var(--color-success-dark);
  background: #f0f7ec;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: var(--space-2);
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Avatar wrap + selected badge */
.nominee-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.avatar-selected-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: var(--radius-circle);
  border: 2px solid var(--color-white);
}

/* Chip bar container — full-bleed shaded bottom half of card */
.chip-bar-container {
  --chip-bar-bg: #f3f5f6;
  background: var(--chip-bar-bg);
  border-radius: 0;
  padding: 10px 16px 12px;
  margin: 8px -16px -12px;
}
.chip-bar-label {
  font-size: var(--text-4xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.chip-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Chip bar stepper (circle icon buttons) */
.chip-bar-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.chip-bar-stepper-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  color: var(--color-accent);
  background: transparent;
  border: 1.5px solid rgba(79, 109, 122, 0.3);
  border-radius: var(--radius-circle);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  padding: 0;
}
.chip-bar-stepper-btn svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.chip-bar-stepper-btn:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: rgba(79, 109, 122, 0.06);
}
.chip-bar-stepper-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.chip-bar-stepper-count {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-secondary);
  min-width: 14px;
  text-align: center;
  line-height: 20px;
}

/* Chip dots (overlapping, poker-chip texture) */
.chip-bar-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.chip-dot {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-circle);
  flex-shrink: 0;
  position: relative;
  margin-left: -4px;
}
.chip-dot:first-child {
  margin-left: 0;
}
/* Masking ring matches container bg to create negative space between overlapping chips */
.chip-dot--mine {
  background: var(--color-accent);
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1.5px var(--color-accent), 0 0 0 3.5px var(--chip-bar-bg, #fbfbfa);
}
.chip-dot--other {
  background: var(--color-white);
  border: 1.5px dashed rgba(79, 109, 122, 0.25);
  box-shadow: 0 0 0 1.5px rgba(79, 109, 122, 0.2), 0 0 0 3.5px var(--chip-bar-bg, #fbfbfa);
}

/* Chip bar total */
.chip-bar-total {
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-tertiary);
  white-space: nowrap;
}
.chip-badge-dossier {
  margin-top: -8px;
  position: relative;
  z-index: 1;
}

/* Chip stepper (+/− quantity control) */
.chip-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(79, 109, 122, 0.25);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(79, 109, 122, 0.05);
}
.chip-stepper-btn {
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  font-family: inherit;
  color: var(--color-accent);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.12s;
  line-height: 1;
}
.chip-stepper-btn:hover {
  background: rgba(79, 109, 122, 0.15);
}
.chip-stepper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-stepper-label {
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-tertiary);
}
.chip-stepper-count {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  min-width: 20px;
  text-align: center;
  line-height: 24px;
}

/* Chip place button */
.chip-place-btn {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  font-family: inherit;
  color: var(--color-white);
  background: var(--color-accent);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}
.chip-place-btn:hover {
  background: var(--color-accent-hover);
}
.chip-place-btn.btn--sm {
  padding: 5px 16px;
  font-size: var(--text-xs);
}

/* Chip breakdown */
.chip-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-breakdown-pip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.chip-breakdown-count {
  font-size: var(--text-3xs);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
}
.chip-breakdown-bottom {
  background: rgba(79, 109, 122, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-top: 10px;
  align-items: center;
}
.chip-breakdown-label {
  font-size: var(--text-3xs);
  color: var(--color-text-tertiary);
  font-weight: var(--weight-medium);
  margin-right: 2px;
}
.section-title-count {
  font-weight: var(--weight-normal);
  color: var(--color-text-tertiary);
  font-size: var(--text-4xs);
  letter-spacing: 0.5px;
  margin-left: var(--space-1);
}

/* Chip budget */
.chip-budget-badge {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  white-space: nowrap;
}
.chip-budget {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.chip-budget-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}
.chip-budget-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  background: var(--color-surface-hover);
  transition: background var(--transition-normal);
}
.chip-budget-dot.is-placed {
  background: var(--color-accent);
}
.chip-budget-text {
  font-size: var(--text-2xs);
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

/* Phase chips */
.phase-chips {
  display: flex;
  gap: var(--space-1);
}
.phase-chip {
  padding: 6px var(--space-4);
  font-size: var(--text-2xs);
  font-family: inherit;
  border: none;
  background: var(--color-surface);
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.phase-chip:hover { background: var(--color-surface-hover); }
.phase-chip.active { background: var(--color-accent); color: var(--color-white); }
.phase-chip input[type="radio"] { display: none; }
