/* Layout */
.cud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .cud-grid { grid-template-columns: 1fr; }
}

/* Cards */
.cud-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* Forms */
.cud-form {
  display: grid;
  gap: 10px;
}
.cud-form label {
  font-weight: 600;
}
.cud-form input[type="text"],
.cud-form input[type="email"],
.cud-form input[type="password"],
.cud-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}
.cud-form textarea { min-height: 100px; }

.cud-actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Buttons & links */
.cud-btn {
  display: inline-block;
  background: #1e40af;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.cud-btn:hover { background: #1b3a9b; }

.cud-btn-secondary {
  display: inline-block;
  background: #e2e8f0;
  color: #111827;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.cud-btn-secondary:hover { background: #cbd5e1; }

.cud-link {
  background: none;
  border: none;
  color: #1e40af;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.cud-link.danger { color: #b91c1c; }

/* Alerts */
.cud-alert {
  background: #ecfeff;
  border: 1px solid #06b6d4;
  color: #0e7490;
  padding: 10px 12px;
  border-radius: 8px;
}
.cud-error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 8px;
}
.cud-muted { color: #64748b; font-size: 14px; }

/* Upload list */
.cud-uploads {
  display: grid;
  gap: 12px;
}
.cud-upload {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}
.cud-upload-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cud-upload-actions {
  display: flex;
  gap: 10px;
}
.cud-inline { display: inline; }

/* Thumbs */
.cud-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cud-thumb {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
}
.cud-thumb-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 6px;
}

/* Current images section on edit */
.cud-current {
  margin-top: 8px;
}
