.content-block {
  padding: 13px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

[data-theme="light"] .content-block {
  background: rgba(34, 23, 55, 0.018);
}

.content-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.remove-content {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}

.remove-content:hover {
  color: var(--red);
  border-color: rgba(255, 127, 135, 0.35);
  background: rgba(255, 127, 135, 0.07);
}

.remove-content svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-add-actions {
  display: grid;
  gap: 8px;
}

.add-content {
  min-height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px dashed rgba(197, 179, 255, 0.42);
  border-radius: 9px;
  color: var(--violet-light);
  background: rgba(157, 123, 255, 0.05);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.add-content:hover {
  background: rgba(157, 123, 255, 0.11);
}

.add-content > span:first-child {
  font-size: 17px;
  font-weight: 400;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Keep native file inputs accessible without letting their inherited field
   dimensions overlap unrelated editor controls. */
.upload-button {
  position: relative;
}

.control-body .upload-button input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
