.dsopn-admin-wrap {
  max-width: 1100px;
}
.dsopn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.dsopn-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}
.dsopn-value {
  font-size: 24px;
  margin: 6px 0;
  font-weight: 700;
}
.dsopn-badge {
  display: inline-block;
  background: #9b1c1c;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.dsopn-lock {
  margin-top: 8px;
  border: 1px dashed #9b1c1c;
  padding: 10px;
  border-radius: 8px;
}
.dsopn-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111827;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 9999;
}
.dsopn-toast.show {
  opacity: 1;
}
.dsopn-settings {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0 22px;
}
.dsopn-setting-row {
  display: block;
  margin: 8px 0;
  font-size: 14px;
}
#dsopn-save-feedback {
  margin-left: 8px;
  font-weight: 600;
}
.dsopn-hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}
.dsopn-ad-label {
  display: block;
  margin: 12px 0;
  font-weight: 600;
}
.dsopn-ad-label textarea {
  margin-top: 6px;
  font-weight: 400;
}

/* Master publicite : interrupteur + coupure immediate */
.dsopn-master-ads {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin: 12px 0 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
}
.dsopn-master-ads-text {
  flex: 1 1 220px;
  min-width: 0;
}
.dsopn-master-ads-text .description {
  margin: 6px 0 0;
}
.dsopn-master-ads-actions {
  margin: 0 0 12px;
}
.dsopn-btn-emergency {
  border-color: #b91c1c !important;
  color: #991b1b !important;
  box-shadow: none;
}
.dsopn-btn-emergency:hover,
.dsopn-btn-emergency:focus {
  background: #fef2f2 !important;
  border-color: #991b1b !important;
  color: #7f1d1d !important;
}

.dsopn-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}
.dsopn-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.dsopn-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #94a3b8;
  border-radius: 30px;
  transition: background-color 0.2s ease;
}
.dsopn-switch-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.dsopn-switch input:focus-visible + .dsopn-switch-slider {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}
.dsopn-switch input:checked + .dsopn-switch-slider {
  background-color: #2271b1;
}
.dsopn-switch input:checked + .dsopn-switch-slider::before {
  transform: translateX(22px);
}
