
.communications-launcher {
  width: calc(100% - 20px);
  margin: 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  color: #18233f;
  background: linear-gradient(135deg,#eee8ff,#e8f7ff,#eafaf3);
  box-shadow: 0 8px 22px rgba(34,52,112,.08);
}

.communications-launcher span {
  display: block;
  font-weight: 800;
}

.communications-launcher small {
  display: block;
  margin-top: 2px;
  opacity: .72;
}

.communications-launcher-floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3500;
  width: 190px;
}

.communications-admin-shell {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.communications-admin-shell.hidden {
  display: none;
}

.communications-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.62);
  backdrop-filter: blur(7px);
}

.communications-admin-panel {
  position: relative;
  width: min(1180px, 98vw);
  max-height: 95vh;
  overflow: auto;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg,#fbfcff,#f5f7fc);
  box-shadow: 0 30px 90px rgba(15,23,42,.28);
}

.communications-admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.communications-admin-header h2 {
  margin: 0 0 7px;
  font-size: 30px;
}

.communications-admin-header p {
  margin: 0;
  color: #667085;
}

.communications-eyebrow {
  margin-bottom: 7px !important;
  color: #4b63d8 !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
}

.communications-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 20px;
}

.communications-editor-card,
.communications-list-card {
  padding: 20px;
  border-radius: 25px;
  background: #fff;
  border: 1px solid #e5e9f2;
}

.communications-editor-card {
  background: linear-gradient(145deg,#fff,#fbf8ff);
}

.communications-editor-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
  color: #17233c;
  font-weight: 700;
}

.communications-editor-card input,
.communications-editor-card select,
.communications-editor-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid #ccd7e8;
  border-radius: 13px;
  background: #fff;
  color: #101828;
  font: inherit;
}

.communications-editor-card textarea {
  resize: vertical;
}

.communications-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.communications-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 14px;
}

.communications-check {
  flex-direction: row !important;
  align-items: center;
  margin: 0 !important;
  padding: 10px 13px;
  border-radius: 14px;
  background: #eef7ff;
}

.communications-check:nth-child(2) {
  background: #eaf9f0;
}

.communications-check input {
  width: auto;
}

.communications-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.communications-section-title > span {
  font-size: 18px;
  font-weight: 850;
  color: #17233c;
}

.communications-section-title small {
  color: #667085;
}

.communications-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.communications-admin-list {
  display: grid;
  gap: 12px;
}

.communications-admin-item {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #e4e8f0;
  background: linear-gradient(145deg,#fff,#f8fbff);
}

.communications-admin-item:nth-child(6n+2) {
  background: linear-gradient(145deg,#fff,#fbf7ff);
}

.communications-admin-item:nth-child(6n+3) {
  background: linear-gradient(145deg,#fff,#fff8ee);
}

.communications-admin-item:nth-child(6n+4) {
  background: linear-gradient(145deg,#fff,#f0fbf5);
}

.communications-admin-item.pinned {
  border-color: #eac86a;
  box-shadow: inset 4px 0 0 #eac86a;
}

.communications-item-top,
.communications-item-meta,
.communications-item-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.communications-item-top {
  justify-content: space-between;
}

.communications-category,
.communications-pin,
.communications-state {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #ebe7ff;
}

.communications-pin {
  background: #fff0bf;
}

.communications-state {
  background: #e9f8ef;
}

.communications-admin-item h3 {
  margin: 11px 0 6px;
}

.communications-admin-item p {
  margin: 0 0 11px;
  color: #546176;
  white-space: pre-wrap;
}

.communications-item-meta {
  color: #7a8495;
  font-size: 12px;
}

.communications-item-actions {
  margin-top: 12px;
}

.communications-empty {
  padding: 24px;
  text-align: center;
  color: #7a8495;
  background: #f7f9fc;
  border-radius: 18px;
}

body.communications-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .communications-admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .communications-two-column {
    grid-template-columns: 1fr;
  }

  .communications-admin-panel {
    padding: 20px;
  }
}
