.event-admin-page {
  align-items: flex-start;
}

.event-admin-shell {
  width: min(1120px, 100%);
}

.event-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 12px;
}

.event-admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.event-admin-summary span {
  padding: 14px;
  border: 1px solid #e8d9dc;
  border-radius: 14px;
  background: #fff9fa;
  color: #5a101b;
  text-align: center;
}

.event-admin-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}

.event-admin-list {
  display: grid;
  gap: 14px;
}

.event-admin-card {
  padding: 18px;
  border: 1px solid #e2d7d9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(56, 12, 20, 0.06);
}

.event-admin-card.is-cancelled {
  border-left: 6px solid #d64040;
}

.event-admin-card.is-invalid {
  opacity: 0.72;
  border-left: 6px solid #777;
}

.event-admin-card-header,
.event-admin-card-actions,
.event-editor-actions,
.event-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-admin-card-title {
  margin: 0;
  color: #401018;
  font-size: 1.1rem;
}

.event-admin-card-meta,
.event-admin-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: #66575a;
  font-size: 0.92rem;
}

.event-admin-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4e9eb;
  color: #5a101b;
  font-size: 0.78rem;
  font-weight: 700;
}

.event-admin-card-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 16px;
}

.event-admin-danger-button {
  border: 1px solid #c72d2d;
  color: #a11f1f;
  background: #fff;
}

.event-editor-dialog {
  width: min(900px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #2d2224;
}

.event-editor-dialog::backdrop {
  background: rgba(28, 7, 11, 0.68);
}

.event-editor-form {
  padding: 22px;
}

.event-editor-header {
  align-items: flex-start;
  margin-bottom: 20px;
}

.event-editor-header h2 {
  margin: 4px 0 0;
  color: #4d1019;
}

.event-editor-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f2edef;
  color: #4d1019;
  font-size: 1.7rem;
  cursor: pointer;
}

.event-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.event-editor-wide {
  grid-column: 1 / -1;
}

.event-editor-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  font-weight: 700;
}

.event-editor-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.admin-field select,
.admin-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfc2c5;
  border-radius: 10px;
  background: #fff;
  color: #2d2224;
  font: inherit;
}

.admin-field select {
  min-height: 46px;
  padding: 0 12px;
}

.admin-field textarea {
  padding: 12px;
  resize: vertical;
}

@media (max-width: 720px) {
  .event-admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-editor-grid {
    grid-template-columns: 1fr;
  }

  .event-editor-wide {
    grid-column: auto;
  }

  .event-admin-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
