.zcn-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.zcn-actions button {
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 0 11px;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.zcn-actions button:hover { background: #f8fafc; }
.zcn-actions .zcn-delete { border-color: #fecaca; color: #dc2626; }
.zcn-actions .zcn-delete:hover { background: #fef2f2; }
.zcn-actions button:disabled { cursor: wait; opacity: .6; }

.zcn-modal-open { overflow: hidden !important; }

.zcn-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  background: rgba(2, 6, 23, .68);
  padding: 32px 16px;
  backdrop-filter: blur(6px);
}

.zcn-modal {
  width: min(980px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(2, 6, 23, .35);
}

.zcn-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #eef2f7;
  padding: 24px 26px 20px;
}

.zcn-modal-head span,
.zcn-grid label > span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.zcn-modal-head h2 {
  margin: 2px 0 0;
  color: #020617;
  font-size: 23px;
  font-weight: 950;
}

.zcn-modal-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
}

.zcn-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
}

.zcn-feedback {
  margin: 18px 26px 0;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fef2f2;
  padding: 11px 13px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
}

.zcn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  padding: 22px 26px 0;
}

.zcn-span-2 { grid-column: span 2; }
.zcn-span-3 { grid-column: span 3; }
.zcn-span-4 { grid-column: span 4; }

.zcn-grid input,
.zcn-grid select,
.zcn-grid textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  padding: 11px 13px;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  outline: none;
}

.zcn-grid input,
.zcn-grid select { height: 46px; }
.zcn-grid textarea { min-height: 108px; resize: vertical; }
.zcn-grid input:focus,
.zcn-grid select:focus,
.zcn-grid textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px #eef2ff;
}
.zcn-grid select:disabled { background: #f1f5f9; color: #94a3b8; }

.zcn-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 26px 0;
}

.zcn-switches label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
  padding: 15px;
  cursor: pointer;
}

.zcn-switches input { width: 17px; height: 17px; margin-top: 2px; accent-color: #4f46e5; }
.zcn-switches strong { display: block; color: #0f172a; font-size: 13px; }
.zcn-switches small { display: block; margin-top: 3px; color: #64748b; font-size: 11px; font-weight: 650; }
.zcn-maintenance[hidden] { display: none; }

.zcn-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  border-top: 1px solid #eef2f7;
  padding: 18px 26px 22px;
}

.zcn-modal-actions button {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.zcn-secondary { border: 1px solid #cbd5e1; background: #fff; color: #475569; }
.zcn-primary { border: 0; background: #111827; color: #fff; }
.zcn-primary:disabled { cursor: wait; opacity: .65; }

@media (max-width: 760px) {
  .zcn-overlay { padding: 12px; }
  .zcn-modal { border-radius: 20px; }
  .zcn-grid,
  .zcn-switches { grid-template-columns: 1fr; }
  .zcn-span-2,
  .zcn-span-3,
  .zcn-span-4 { grid-column: span 1; }
  .zcn-actions { width: 100%; margin: 5px 0 0; }
}
