.celestials-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.celestial-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background: white;
  border: 2px solid rgba(0, 123, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: default;
}

.celestial-item:hover {
  border-color: rgba(0, 123, 255, 0.4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.celestial-item.dragging {
  opacity: 0.5;
  transform: scale(1.02);
}

.celestial-item-placeholder {
  background: rgba(0, 123, 255, 0.1);
  border: 2px dashed rgba(0, 123, 255, 0.4);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.celestial-item__drag-handle {
  color: #999;
  cursor: grab;
  padding: 0.5rem;
  margin: -0.5rem 0;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.celestial-item__drag-handle:hover {
  color: #007bff;
}

.celestial-item__drag-handle:active {
  cursor: grabbing;
}

.celestial-item__cards {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.celestial-item__card-image {
  width: 60px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.celestial-item__info {
  flex: 1;
  min-width: 0;
}

.celestial-item__name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.celestial-item__zodiac {
  font-size: 1rem;
  font-family: 'Cinzel', 'Georgia', serif;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  color: #444;
  cursor: default;
}

.celestial-item__calendar-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.celestial-item__name-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.celestial-item__calendar-toggle svg {
  width: 18px;
  height: 18px;
  stroke: #555;
  fill: none;
  stroke-width: 1.5;
}

.celestial-item__calendar-toggle.is-active {
  border-color: #1f54b5;
  background: rgba(31, 84, 181, 0.15);
}

.celestial-item__calendar-toggle.is-active svg {
  stroke: #1f54b5;
}

.celestial-item__calendar-toggle.is-pending {
  opacity: 0.6;
  cursor: wait;
}

.celestial-item__link {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.celestial-item__link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.celestial-item__color-badge {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.celestial-item__zodiac-image {
  width: 26px;
  height: 26px;
  border-radius: 8%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
}

.celestial-cusp__trigger {
  border: 1px solid rgba(255, 165, 0, 0.6);
  background: rgba(255, 165, 0, 0.15);
  color: #b05b00;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.celestial-cusp-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.celestial-cusp-modal:not(.is-open) {
  display: none;
}

.celestial-cusp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.celestial-cusp-modal__panel {
  position: relative;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: calc(100% - 2rem);
  z-index: 1;
}

.celestial-cusp-modal__panel h3 {
  margin-top: 0;
}

.celestial-cusp-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.celestial-item__details {
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.celestial-item__meta {
  font-weight: 600;
  color: #2c3e50;
}

.celestial-item__meta--countdown {
  color: #1f54b5;
}

.celestial-item__separator {
  color: #ccc;
}

.celestial-item__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.celestial-invite__button {
  padding: 0.5rem 1rem;
}

.celestial-invite__modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}

.celestial-invite__modal:not(.is-open) {
  display: none;
}

.celestial-invite__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.celestial-invite__panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  max-width: 520px;
  width: min(520px, calc(100% - 2rem));
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.celestial-invite__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.celestial-invite__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #6c757d;
  margin: 0 0 0.25rem;
}

.celestial-invite__title {
  margin: 0;
}

.celestial-invite__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: #6c757d;
}

.celestial-invite__subtitle {
  margin: 0.75rem 0 1.25rem;
  color: #495057;
}

.celestial-invite__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.celestial-invite__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.celestial-invite__label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #2c3e50;
}

.celestial-invite__input,
.celestial-invite__textarea,
.celestial-invite__select {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.celestial-invite__textarea {
  resize: vertical;
  min-height: 90px;
}

.celestial-invite__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .celestial-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .celestial-item__drag-handle {
    align-self: center;
  }

  .celestial-item__cards {
    align-self: center;
  }

  .celestial-item__actions {
    width: 100%;
    justify-content: stretch;
  }

  .celestial-item__actions .btn {
    flex: 1;
  }

  .celestial-invite__panel {
    padding: 1.25rem;
  }
}
