.announcement-admin-layout {
  display: grid;
  gap: 24px;
}

.announcement-admin-notice {
  margin: 0;
}

.announcement-editor-card,
.announcement-list-card {
  min-width: 0;
}

.announcement-editor-heading,
.announcement-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.announcement-editor-heading h2,
.announcement-list-heading h2 {
  margin: 0 0 5px;
  color: var(--black);
}

.announcement-editor-heading p,
.announcement-list-heading p {
  margin: 0;
  color: var(--muted);
}

.announcement-editor-form {
  display: grid;
  gap: 20px;
}

.announcement-editor-form label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 900;
}

.announcement-editor-form input,
.announcement-editor-form select,
.announcement-editor-form textarea {
  width: 100%;
}

.announcement-editor-form textarea {
  resize: vertical;
  min-height: 100px;
}

.announcement-editor-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.announcement-active-checkbox {
  align-items: flex-start;
}

.announcement-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.announcement-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.announcement-status-live {
  background: #e8f8ef;
  color: #087443;
}

.announcement-status-scheduled {
  background: #fff7df;
  color: #8a5400;
}

.announcement-status-expired {
  background: #f2f3f5;
  color: #5d6470;
}

.announcement-status-inactive {
  background: #f2f3f5;
  color: #5d6470;
}

.announcement-admin-table td:nth-child(2) {
  min-width: 280px;
}

.announcement-admin-table td:nth-child(4) {
  min-width: 210px;
}

.announcement-table-link {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.announcement-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.announcement-row-actions form {
  margin: 0;
}

.announcement-action-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.announcement-delete-button {
  color: #b42318;
}

@media (max-width: 760px) {
  .announcement-editor-grid {
    grid-template-columns: 1fr;
  }

  .announcement-editor-actions .btn,
  .announcement-list-heading .btn {
    width: 100%;
  }
}
