#shtml-fd-root,
#shtml-fd-root * {
  box-sizing: border-box;
}

#shtml-fd-root {
  --fd-cuivre: #d99066;
  --fd-bg: #0f1020;
  --fd-bg-2: #1b1d3a;
  --fd-surface: rgba(15, 16, 32, 0.88);
  --fd-surface-2: rgba(27, 29, 58, 0.82);
  --fd-surface-3: rgba(11, 13, 28, 0.92);
  --fd-text: #e9edff;
  --fd-text-soft: #a8b3d9;
  --fd-border: rgba(217, 144, 102, 0.22);
  --fd-border-strong: rgba(217, 144, 102, 0.42);
  --fd-input-border: rgba(217, 144, 102, 0.18);
  --fd-primary: #d99066;
  --fd-primary-hover: #e5a47e;
  --fd-success: #6ee7a7;
  --fd-warning: #f6c26b;
  --fd-danger: #f3a4a4;
  --fd-radius: 18px;
  --fd-radius-xl: 24px;
  --fd-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 8px 24px rgba(0, 0, 0, 0.7);
  --fd-shadow-soft:
    0 20px 50px rgba(0, 0, 0, 0.82),
    0 4px 16px rgba(0, 0, 0, 0.56);
  --fd-glow: 0 0 30px rgba(217, 144, 102, 0.28);
  color: var(--fd-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.shtml-fd-root {
  position: relative;
  width: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 100% 0%, rgba(217, 144, 102, 0.16) 0%, rgba(217, 144, 102, 0) 34%),
    linear-gradient(180deg, rgba(15, 16, 32, 0.96) 0%, rgba(12, 13, 28, 0.98) 100%);
  border: 1px solid rgba(217, 144, 102, 0.14);
  border-radius: 28px;
  box-shadow: var(--fd-shadow);
  overflow: hidden;
}

.shtml-fd-root::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(circle at 85% 10%, rgba(217, 144, 102, 0.08) 0%, rgba(217, 144, 102, 0) 32%);
}

.shtml-fd-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.shtml-fd-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.shtml-fd-main-title {
  margin: 0 0 8px;
  color: var(--fd-text);
  font-size: clamp(1.9rem, 1vw + 1.45rem, 2.35rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 2px 30px rgba(0, 0, 0, 0.8);
}

.shtml-fd-main-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--fd-text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.shtml-fd-topbar-right {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.shtml-fd-keybox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
}

.shtml-fd-key-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(217, 144, 102, 0.55);
  border-radius: 0.7rem;
  background: rgba(217, 144, 102, 0.12);
  color: var(--fd-text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(217, 144, 102, 0.18);
}

.shtml-fd-statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.shtml-fd-license-status,
.shtml-fd-save-status {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--fd-border);
  border-radius: 999px;
  background: rgba(217, 144, 102, 0.08);
  color: var(--fd-text-soft);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.shtml-fd-license-status.is-idle {
  color: var(--fd-text-soft);
}

.shtml-fd-license-status.is-valid {
  color: #d8ffe8;
  border-color: rgba(110, 231, 167, 0.34);
  background: rgba(110, 231, 167, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 24px rgba(110, 231, 167, 0.12);
}

.shtml-fd-license-status.is-invalid {
  color: #ffe0e0;
  border-color: rgba(243, 164, 164, 0.32);
  background: rgba(243, 164, 164, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 24px rgba(243, 164, 164, 0.1);
}

.shtml-fd-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.shtml-fd-panel,
.shtml-fd-preview-area {
  min-width: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 144, 102, 0.08) 0%, rgba(217, 144, 102, 0) 34%),
    rgba(15, 16, 32, 0.62);
  border: 1px solid var(--fd-border-strong);
  border-radius: 32px;
  box-shadow: var(--fd-shadow);
  backdrop-filter: blur(14px);
}

.shtml-fd-panel {
  position: sticky;
  top: 24px;
  padding: 18px;
}

.shtml-fd-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shtml-fd-section {
  position: relative;
  border: 1px solid var(--fd-border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(27, 29, 58, 0.78) 0%, rgba(12, 14, 31, 0.78) 100%);
  box-shadow: var(--fd-shadow-soft);
  overflow: visible;
}

.shtml-fd-section > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 50px 16px 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--fd-text);
  letter-spacing: -0.01em;
}

.shtml-fd-section > summary::-webkit-details-marker {
  display: none;
}

.shtml-fd-section > summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 1px solid rgba(217, 144, 102, 0.52);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 144, 102, 0.12);
  color: var(--fd-text);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(217, 144, 102, 0.18);
}

.shtml-fd-section[open] > summary::after {
  content: "–";
}

.shtml-fd-section-body {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px 16px;
}

.shtml-fd-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.shtml-fd-field > span {
  font-size: 13px;
  line-height: 1.35;
  color: var(--fd-text);
  font-weight: 700;
}

.shtml-fd-autocomplete {
  position: relative;
  z-index: 60;
}

.shtml-fd-field-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fd-text-soft);
}

.shtml-fd-field-note.is-success {
  color: #bff7d7;
}

.shtml-fd-field-note.is-error {
  color: #ffd1d1;
}

.shtml-fd-field-note.is-pending {
  color: #f7ddb1;
}

.shtml-fd-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 6px;
  border: 1px solid var(--fd-border-strong);
  border-radius: 16px;
  background: rgba(12, 13, 29, 0.98);
  box-shadow: var(--fd-shadow-soft);
  backdrop-filter: blur(10px);
}

.shtml-fd-suggestions.is-hidden {
  display: none !important;
}

.shtml-fd-suggestion {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--fd-text);
  font: inherit;
  cursor: pointer;
}

.shtml-fd-suggestion:hover {
  background: rgba(217, 144, 102, 0.1);
}

.shtml-fd-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shtml-fd-input,
.shtml-fd-select,
.shtml-fd-textarea,
.shtml-fd-code-output {
  width: 100%;
  border: 1px solid var(--fd-input-border);
  border-radius: 16px;
  background: rgba(10, 10, 20, 0.7);
  color: var(--fd-text);
  font: inherit;
  padding: 12px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.shtml-fd-input::placeholder,
.shtml-fd-textarea::placeholder {
  color: rgba(168, 179, 217, 0.72);
}

.shtml-fd-input:focus,
.shtml-fd-select:focus,
.shtml-fd-textarea:focus,
.shtml-fd-code-output:focus {
  border-color: rgba(217, 144, 102, 0.5);
  box-shadow: 0 0 0 4px rgba(217, 144, 102, 0.12), 0 0 24px rgba(217, 144, 102, 0.12);
  background: rgba(10, 10, 20, 0.86);
}

.shtml-fd-input[readonly] {
  color: rgba(233, 237, 255, 0.82);
}

.shtml-fd-textarea,
.shtml-fd-code-output {
  resize: vertical;
  min-height: 90px;
}

.shtml-fd-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(217, 144, 102, 0.9) 50%),
    linear-gradient(135deg, rgba(217, 144, 102, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.shtml-fd-color {
  width: 100%;
  height: 48px;
  border: 1px solid var(--fd-input-border);
  border-radius: 16px;
  background: rgba(10, 10, 20, 0.78);
  padding: 6px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.shtml-fd-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--fd-input-border);
  border-radius: 16px;
  background: rgba(10, 10, 20, 0.7);
  color: var(--fd-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.shtml-fd-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--fd-primary);
  margin: 0;
}

.shtml-fd-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.shtml-fd-btn:hover {
  transform: translateY(-1px);
}

.shtml-fd-btn:active {
  transform: translateY(0);
}

.shtml-fd-btn:disabled,
.shtml-fd-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.shtml-fd-btn:disabled:hover,
.shtml-fd-btn[aria-disabled="true"]:hover {
  transform: none;
}

.shtml-fd-btn-primary {
  background: radial-gradient(circle at 0% 0%, rgba(217, 144, 102, 0.34) 0%, rgba(217, 144, 102, 0) 60%), var(--fd-primary);
  border-color: rgba(217, 144, 102, 0.62);
  color: #0f1020;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(217, 144, 102, 0.34);
}

.shtml-fd-btn-primary:hover {
  background: radial-gradient(circle at 0% 0%, rgba(217, 144, 102, 0.42) 0%, rgba(217, 144, 102, 0) 60%), var(--fd-primary-hover);
  filter: brightness(1.03);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(217, 144, 102, 0.44);
}

.shtml-fd-btn-primary.is-success-feedback {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 22, 27, 0.98) 0%, rgba(9, 14, 18, 0.98) 100%) !important;
  border-color: rgba(115, 228, 167, 0.62) !important;
  color: transparent !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  box-shadow: 0 12px 28px rgba(31, 104, 70, 0.34), 0 0 0 1px rgba(115, 228, 167, 0.16) inset, 0 0 18px rgba(115, 228, 167, 0.2) !important;
  transform: none;
  animation: shtml-fd-save-check-pop 0.52s ease;
}

.shtml-fd-btn-primary.is-success-feedback::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #73e4a7 !important;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 16px rgba(115, 228, 167, 0.34);
}

.shtml-fd-btn-primary.is-success-feedback:hover {
  background: linear-gradient(180deg, rgba(15, 22, 27, 0.98) 0%, rgba(9, 14, 18, 0.98) 100%) !important;
  transform: none;
}

@keyframes shtml-fd-save-check-pop {
  0% {
    transform: scale(0.9);
  }
  55% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.shtml-fd-btn-secondary {
  background: rgba(217, 144, 102, 0.1);
  border-color: rgba(217, 144, 102, 0.42);
  color: var(--fd-text);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.52);
}

.shtml-fd-btn-secondary:hover {
  background: rgba(217, 144, 102, 0.16);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(217, 144, 102, 0.16);
}

.shtml-fd-btn.is-disabled,
.shtml-fd-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.shtml-fd-btn.is-disabled:hover,
.shtml-fd-btn[aria-disabled="true"]:hover {
  transform: none;
}

.shtml-fd-keybox.is-attention {
  position: relative;
}

.shtml-fd-keybox.is-attention .shtml-fd-key-label {
  color: #fff3ec;
  border-color: rgba(217, 144, 102, 0.72);
  background: rgba(217, 144, 102, 0.18);
}

.shtml-fd-keybox.is-attention .shtml-fd-input {
  position: relative;
  z-index: 1;
  border-color: rgba(217, 144, 102, 0.7);
  box-shadow:
    0 0 0 4px rgba(217, 144, 102, 0.22),
    0 0 0 12px rgba(217, 144, 102, 0.14),
    0 0 0 24px rgba(217, 144, 102, 0.08),
    0 18px 42px rgba(217, 144, 102, 0.2);
  animation: shtml-fd-license-pulse 1s cubic-bezier(0.22, 1, 0.36, 1) 2;
}

.shtml-fd-btn.is-attention {
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 4px rgba(217, 144, 102, 0.22),
    0 0 0 12px rgba(217, 144, 102, 0.14),
    0 0 0 24px rgba(217, 144, 102, 0.08),
    0 18px 42px rgba(217, 144, 102, 0.22);
  animation: shtml-fd-license-pulse-btn 1s cubic-bezier(0.22, 1, 0.36, 1) 2;
}

@keyframes shtml-fd-license-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(217, 144, 102, 0.24),
      0 0 0 0 rgba(217, 144, 102, 0.18),
      0 0 0 0 rgba(217, 144, 102, 0.1),
      0 12px 28px rgba(217, 144, 102, 0.14);
  }

  35% {
    transform: scale(1.02);
    box-shadow:
      0 0 0 6px rgba(217, 144, 102, 0.24),
      0 0 0 18px rgba(217, 144, 102, 0.18),
      0 0 0 34px rgba(217, 144, 102, 0.12),
      0 22px 50px rgba(217, 144, 102, 0.24);
  }

  70%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 4px rgba(217, 144, 102, 0.22),
      0 0 0 12px rgba(217, 144, 102, 0.14),
      0 0 0 24px rgba(217, 144, 102, 0.08),
      0 18px 42px rgba(217, 144, 102, 0.2);
  }
}

@keyframes shtml-fd-license-pulse-btn {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(217, 144, 102, 0.24),
      0 0 0 0 rgba(217, 144, 102, 0.18),
      0 0 0 0 rgba(217, 144, 102, 0.1),
      0 12px 28px rgba(217, 144, 102, 0.16);
  }

  35% {
    transform: scale(1.06);
    box-shadow:
      0 0 0 6px rgba(217, 144, 102, 0.24),
      0 0 0 18px rgba(217, 144, 102, 0.18),
      0 0 0 34px rgba(217, 144, 102, 0.12),
      0 22px 50px rgba(217, 144, 102, 0.24);
  }

  70%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 4px rgba(217, 144, 102, 0.22),
      0 0 0 12px rgba(217, 144, 102, 0.14),
      0 0 0 24px rgba(217, 144, 102, 0.08),
      0 18px 42px rgba(217, 144, 102, 0.22);
  }
}

.shtml-fd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.shtml-fd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 16, 0.72);
  backdrop-filter: blur(10px);
}

.shtml-fd-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid var(--fd-border-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(217, 144, 102, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(21, 23, 45, 0.98) 0%, rgba(11, 12, 27, 0.98) 100%);
  box-shadow: var(--fd-shadow);
}

.shtml-fd-modal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(217, 144, 102, 0.55);
  border-radius: 999px;
  background: rgba(217, 144, 102, 0.12);
  color: var(--fd-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(217, 144, 102, 0.16);
}

.shtml-fd-modal-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fd-text);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.75);
}

.shtml-fd-modal-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fd-text-soft);
}

.shtml-fd-modal-text strong {
  color: var(--fd-text);
}

.shtml-fd-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.shtml-fd-modal-close {
  appearance: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(217, 144, 102, 0.34);
  border-radius: 999px;
  background: rgba(217, 144, 102, 0.12);
  color: var(--fd-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.shtml-fd-modal-close:hover {
  background: rgba(217, 144, 102, 0.18);
  box-shadow: 0 0 20px rgba(217, 144, 102, 0.16);
  transform: scale(1.04);
}

.shtml-fd-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 4px;
}

.shtml-fd-advanced-design {
  padding: 14px;
  border: 1px dashed rgba(217, 144, 102, 0.38);
  border-radius: 18px;
  background: rgba(10, 10, 20, 0.5);
}

.shtml-fd-premium-lock {
  padding: 16px;
  border: 1px dashed rgba(217, 144, 102, 0.38);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(217, 144, 102, 0.12) 0%, rgba(217, 144, 102, 0.05) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.shtml-fd-lock-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--fd-text);
}

.shtml-fd-lock-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fd-text-soft);
}

.shtml-fd-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shtml-fd-code-output {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fd-cuivre);
  background: rgba(10, 10, 20, 0.82);
}

.shtml-fd-preview-area {
  padding: 18px;
  min-height: 760px;
}

.shtml-fd-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.shtml-fd-preview-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fd-text);
}

.shtml-fd-preview-subtitle {
  margin: 0;
  color: var(--fd-text-soft);
  font-size: 14px;
}

.shtml-fd-preview-canvas {
  min-height: 650px;
  padding: 20px;
  border: 1px dashed rgba(217, 144, 102, 0.38);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(217, 144, 102, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(18, 19, 39, 0.86) 0%, rgba(9, 10, 23, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.shtml-fd-preview-mount {
  width: 100%;
  min-height: 560px;
}

.shtml-fd-preview-placeholder {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--fd-border);
  border-radius: 20px;
  background: rgba(10, 10, 20, 0.72);
}

.shtml-fd-preview-placeholder strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  color: var(--fd-text);
}

.shtml-fd-preview-placeholder span {
  color: var(--fd-text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .shtml-fd-layout {
    grid-template-columns: 1fr;
  }

  .shtml-fd-panel {
    position: static;
  }

  .shtml-fd-preview-area {
    min-height: 0;
  }
}

@media (max-width: 780px) {
  .shtml-fd-root {
    padding: 16px;
    border-radius: 24px;
  }

  .shtml-fd-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .shtml-fd-topbar-right {
    align-items: stretch;
  }

  .shtml-fd-keybox {
    min-width: 0;
    width: 100%;
  }

  .shtml-fd-main-title {
    font-size: 24px;
  }

  .shtml-fd-modal {
    padding: 16px;
  }

  .shtml-fd-modal-dialog {
    padding: 20px;
    border-radius: 22px;
  }

  .shtml-fd-modal-title {
    font-size: 24px;
  }

  .shtml-fd-modal-actions {
    flex-direction: column;
  }

  .shtml-fd-modal-actions .shtml-fd-btn {
    width: 100%;
  }

  .shtml-fd-field-grid {
    grid-template-columns: 1fr;
  }

  .shtml-fd-actions {
    flex-direction: column;
  }

  .shtml-fd-actions .shtml-fd-btn {
    width: 100%;
  }

  .shtml-fd-preview-canvas {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shtml-fd-btn,
  .shtml-fd-input,
  .shtml-fd-select,
  .shtml-fd-textarea,
  .shtml-fd-code-output,
  .shtml-fd-modal-close {
    transition: none;
  }

  .shtml-fd-btn.is-attention,
  .shtml-fd-keybox.is-attention .shtml-fd-input,
  .shtml-fd-btn-primary.is-success-feedback {
    animation: none;
  }
}


.shtml-fd-multi-config-box {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(217, 144, 102, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(217, 144, 102, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(24, 26, 49, 0.9) 0%, rgba(11, 13, 28, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.38);
}

.shtml-fd-actions--cfg {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.shtml-fd-actions--cfg .shtml-fd-btn,
.shtml-fd-actions--code .shtml-fd-btn {
  min-height: 46px;
}

.shtml-fd-actions--cfg .shtml-fd-btn-secondary,
.shtml-fd-actions--code .shtml-fd-btn-secondary {
  background: linear-gradient(180deg, rgba(217, 144, 102, 0.16) 0%, rgba(217, 144, 102, 0.08) 100%);
  border-color: rgba(217, 144, 102, 0.42);
  color: var(--fd-text);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.48), 0 0 20px rgba(217, 144, 102, 0.1);
}

.shtml-fd-actions--cfg .shtml-fd-btn-secondary:hover,
.shtml-fd-actions--code .shtml-fd-btn-secondary:hover {
  background: linear-gradient(180deg, rgba(217, 144, 102, 0.24) 0%, rgba(217, 144, 102, 0.12) 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.56), 0 0 24px rgba(217, 144, 102, 0.16);
}

.shtml-fd-actions--code {
  justify-content: flex-start;
  gap: 10px;
  padding-top: 2px;
}

.shtml-fd-btn-danger {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.32) 0%, rgba(68, 10, 10, 0.92) 100%);
  border: 1px solid rgba(248, 113, 113, 0.34);
  color: #fff1f2;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.52), 0 0 24px rgba(248, 113, 113, 0.12);
}

.shtml-fd-btn-danger:hover {
  background: linear-gradient(180deg, rgba(153, 27, 27, 0.4) 0%, rgba(82, 11, 11, 0.96) 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.58), 0 0 26px rgba(248, 113, 113, 0.18);
}


/* Onglet Copier le code — charte ScriptHTML renforcée */
.shtml-fd-section--copy {
  border-color: rgba(217, 144, 102, 0.34);
  background:
    radial-gradient(circle at top right, rgba(217, 144, 102, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(26, 28, 52, 0.96) 0%, rgba(10, 12, 26, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 22px 42px rgba(0, 0, 0, 0.42);
}

.shtml-fd-section--copy > summary {
  background:
    linear-gradient(180deg, rgba(217, 144, 102, 0.07) 0%, rgba(217, 144, 102, 0.02) 100%);
  border-radius: 22px 22px 0 0;
}

.shtml-fd-section-body--copy {
  padding-top: 4px;
  background:
    radial-gradient(circle at top right, rgba(217, 144, 102, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(20, 22, 42, 0.74) 0%, rgba(9, 11, 24, 0.18) 100%);
  border-radius: 0 0 22px 22px;
}

#shtml-fd-code-wrap {
  padding: 14px;
  border: 1px solid rgba(217, 144, 102, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(217, 144, 102, 0.10), transparent 38%),
    linear-gradient(180deg, rgba(18, 20, 39, 0.95) 0%, rgba(10, 12, 25, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 18px 36px rgba(0, 0, 0, 0.34);
}

#shtml-fd-cfg-box {
  background:
    radial-gradient(circle at top right, rgba(217, 144, 102, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(24, 26, 49, 0.94) 0%, rgba(11, 13, 28, 0.96) 100%) !important;
  border-color: rgba(217, 144, 102, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 18px 34px rgba(0, 0, 0, 0.38) !important;
}

.shtml-fd-section--copy .shtml-fd-field > span,
.shtml-fd-section--copy .shtml-fd-field-note,
.shtml-fd-section--copy .shtml-fd-lock-title,
.shtml-fd-section--copy .shtml-fd-lock-text {
  color: var(--fd-text);
}

.shtml-fd-section--copy .shtml-fd-field-note,
.shtml-fd-section--copy .shtml-fd-lock-text {
  color: var(--fd-text-soft);
}

.shtml-fd-section--copy .shtml-fd-input,
.shtml-fd-section--copy .shtml-fd-select {
  background: rgba(8, 10, 20, 0.82);
  border-color: rgba(217, 144, 102, 0.22);
  color: var(--fd-text);
}

.shtml-fd-section--copy .shtml-fd-btn {
  appearance: none;
  color: var(--fd-text);
}

#shtml-fd-copy-code,
#shtml-fd-cfg-duplicate,
#shtml-fd-cfg-save-draft,
#shtml-fd-cfg-delete {
  background: linear-gradient(180deg, rgba(217, 144, 102, 0.16) 0%, rgba(217, 144, 102, 0.08) 100%) !important;
  border: 1px solid rgba(217, 144, 102, 0.42) !important;
  color: var(--fd-text) !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.48), 0 0 20px rgba(217, 144, 102, 0.10) !important;
}

#shtml-fd-copy-code:hover,
#shtml-fd-cfg-duplicate:hover,
#shtml-fd-cfg-save-draft:hover,
#shtml-fd-cfg-delete:hover {
  background: linear-gradient(180deg, rgba(217, 144, 102, 0.24) 0%, rgba(217, 144, 102, 0.12) 100%) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.56), 0 0 24px rgba(217, 144, 102, 0.16) !important;
}

#shtml-fd-save {
  background: radial-gradient(circle at 0% 0%, rgba(217, 144, 102, 0.34) 0%, rgba(217, 144, 102, 0) 60%), var(--fd-primary) !important;
  border: 1px solid rgba(217, 144, 102, 0.62) !important;
  color: #0f1020 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(217, 144, 102, 0.34) !important;
}

#shtml-fd-save:hover {
  background: radial-gradient(circle at 0% 0%, rgba(217, 144, 102, 0.42) 0%, rgba(217, 144, 102, 0) 60%), var(--fd-primary-hover) !important;
}


.shtml-fd-section--copy .shtml-fd-field-grid {
  grid-template-columns: 1fr;
}
