
.wf-section--collapsed > *:not(.wf-section-header) {
  display: none;
}
.wf-section--collapsed .wf-section-header {
  cursor: pointer;
  position: relative;
  padding-right: 24px;
}
.wf-section--collapsed .wf-section-header::after {
  content: '\25B6';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--wf-text-secondary);
}

.wf-tpl-overview {
  margin-bottom: 20px;
}
.wf-tpl-overview__header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wf-tpl-overview__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wf-tpl-overview__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--wf-text);
}

.wf-prompt-expander {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wf-text-secondary, #64748b);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 150ms ease;
}
.wf-prompt-expander:hover {
  color: var(--wf-text, #1e293b);
}
.wf-prompt-expander__tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--wf-text-secondary, #94a3b8);
  background: var(--wf-bg, #f1f5f9);
  padding: 2px 8px;
  border-radius: 4px;
}

.wf-story {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.wf-story__step {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--wf-card, #fff);
  border: 1px solid var(--wf-border, #e5e7eb);
}
.wf-story__step--ai {
  background: var(--wf-bg, #f8f9fa);
  border-color: transparent;
}
.wf-story__step--output {
  background: var(--wf-card, #fff);
}
.wf-story__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wf-story__icon--input {
  background: #f0fdf4;
  color: #16a34a;
}
.wf-story__icon--ai {
  background: #f1f5f9;
  color: #475569;
}
.wf-story__icon--output {
  
}
.wf-story__content {
  flex: 1;
  min-width: 0;
}
.wf-story__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--wf-text);
  margin-bottom: 6px;
}
.wf-story__desc {
  font-size: 12px;
  color: var(--wf-text-secondary);
  line-height: 1.4;
}
.wf-story__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.wf-story-chip {
  font-size: 11px;
  font-weight: 500;
  color: var(--wf-text-secondary);
  background: var(--wf-bg, #f1f5f9);
  padding: 3px 8px;
  border-radius: 4px;
}
.wf-story__step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-text-primary, #384551);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wf-story__arrow {
  display: flex;
  justify-content: center;
  padding: 6px 0;
  color: #cbd5e1;
}
.wf-story__sections {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.wf-story__section-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--wf-text);
  padding: 3px 0;
}
.wf-story__section-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.wf-flow-badge {
  display: inline-block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 69, 81, 0.08);
  color: var(--color-text-primary, #384551);
}

.wf-story__journal {
  border: 1px solid var(--wf-border, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
  background: var(--wf-card, #fff);
}
.wf-story__journal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--wf-border, #e5e7eb);
}
.wf-story__journal-header .wf-story__title {
  margin-bottom: 0;
}
.wf-journal-preview {
  padding: 4px 14px 10px;
}
.wf-journal-field {
  padding: 8px 0 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  margin-left: 2px;
}
.wf-journal-field:last-child {
  border-bottom: none;
}
.wf-journal-field__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--wf-text);
  margin-bottom: 2px;
}
.wf-journal-field__text {
  font-size: 11px;
  line-height: 1.5;
  color: var(--wf-text-secondary, #64748b);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wf-story__example {
  font-size: 12px;
  line-height: 1.5;
  color: var(--wf-text-secondary);
  font-style: italic;
  background: var(--wf-bg, #f8f9fa);
  border-radius: 6px;
  padding: 10px 12px;
  border-left: 2px solid #cbd5e1;
}

.wf-story__editor {
  border: 1.5px solid var(--wf-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  background: var(--wf-card, #fff);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}
.wf-story__editor-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--wf-border, #e5e7eb);
  background: var(--wf-neutral-bg, #f8f9fa);
}
.wf-story__editor-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--wf-text);
}
.wf-story__editor-body {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--wf-text-secondary);
  min-height: 48px;
  font-style: italic;
}
.wf-story__editor-cursor {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--wf-text, #1e293b);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: wfCursorBlink 1s step-end infinite;
}
@keyframes wfCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.wf-story__meta {
  padding: 8px 14px;
  font-size: 11px;
  color: var(--wf-text-secondary, #94a3b8);
  border-top: 1px solid var(--wf-border, #e5e7eb);
  background: var(--wf-neutral-bg, #f8f9fa);
}
[data-theme="dark"] .wf-story__editor {
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.06);
}

.wf-story__footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--wf-border, #e5e7eb);
  font-size: 13px;
  font-weight: 500;
  color: var(--wf-text-secondary);
  text-align: center;
}

.wf-skip-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 10px;
  font-size: 13px;
  color: #15803d;
  line-height: 1.4;
}
.wf-skip-callout svg {
  flex-shrink: 0;
  color: #16a34a;
}

.wf-preview-multiselect {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wf-preview-ms-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--wf-text-secondary, #666);
  cursor: default;
}
.wf-preview-ms-opt input[type="checkbox"] {
  accent-color: var(--color-text-primary, #384551);
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.wf-page input[type="number"] {
  -moz-appearance: textfield;
}
.wf-page input[type="number"]::-webkit-outer-spin-button,
.wf-page input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wf-scale-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wf-scale-wrap input[type="range"] {
  flex: 1;
  accent-color: var(--color-text-primary, #384551);
}
.wf-scale-output {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary, #384551);
  min-width: 24px;
  text-align: center;
}

.wf-field-condition {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  padding-bottom: 8px;
  font-size: 13px;
  color: var(--wf-text);
}
.wf-field-condition select,
.wf-field-condition input {
  padding: 4px 8px;
  border: 1px solid var(--wf-border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--wf-card);
  color: var(--wf-text);
}
.wf-field-condition select { min-width: 100px; }
.wf-field-condition .wf-condition-value { min-width: 80px; max-width: 120px; }
.wf-condition-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wf-text-secondary);
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 150ms ease, background 150ms ease;
}
.wf-condition-remove:hover {
  color: var(--color-error, #ff3e1d);
  background: rgba(255, 62, 29, 0.08);
}
.wf-condition-add {
  font-size: 12px;
  color: var(--wf-text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 12px;
  font-family: inherit;
  font-weight: 500;
  opacity: 0;
  transition: opacity 150ms ease;
}
.wf-field-card:hover .wf-condition-add { opacity: 0.6; }
.wf-condition-add:hover { opacity: 1; }
.wf-preview-condition {
  font-size: 11px;
  color: var(--color-text-secondary, #646e78);
  font-style: italic;
  margin-left: 6px;
}

.wf-options-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  padding-bottom: 8px;
}
.wf-options-editor label {
  font-size: 13px;
  font-weight: 500;
  color: var(--wf-text-secondary);
}
.wf-options-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--wf-border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: var(--wf-text);
  background: var(--wf-bg);
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
  box-sizing: border-box;
  transition: border-color 150ms ease;
}
.wf-options-textarea::placeholder {
  color: var(--wf-text-secondary);
  opacity: 0.6;
}

.wf-variable-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: thin;
  flex-wrap: nowrap;
  align-items: center;
}

.wf-variable-bar:empty::after {
  content: "Ingen felter endnu — gå til trin 2 for at tilføje";
  font-size: 12px;
  color: var(--wf-text-secondary);
  opacity: 0.6;
}

.wf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid var(--wf-border);
  border-radius: 50rem;
  background: var(--wf-neutral-bg);
  color: var(--wf-text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  white-space: nowrap;
  min-height: 34px;
  line-height: 1;
  flex-shrink: 0;
}
.wf-chip:hover {
  background: var(--wf-neutral-bg-hover);
  border-color: var(--wf-text-secondary);
  transform: translateY(-1px);
}
.wf-chip:focus-visible {
  outline: 2px solid rgba(100, 116, 139, 0.5);
  outline-offset: 2px;
}
.wf-chip:active {
  transform: translateY(0) scale(0.97);
}

.wf-chip::before {
  content: "{{ ";
  opacity: 0.5;
  font-weight: 400;
}
.wf-chip::after {
  content: " }}";
  opacity: 0.5;
  font-weight: 400;
}

.wf-ai-assist {
  background: rgba(128,128,128,0.04);
  border: 1.5px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.wf-ai-assist-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}
.wf-ai-assist-icon {
  flex-shrink: 0;
  color: var(--color-text-primary, #384551);
  margin-top: 2px;
}
.wf-ai-assist-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--wf-text);
  margin-bottom: 4px;
}
.wf-ai-assist-text p {
  font-size: 13px;
  color: var(--wf-text-secondary);
  line-height: 1.5;
  margin: 0;
}
.wf-ai-assist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 44px;
  background: var(--color-text-primary, #384551);
  color: #fff;
  border: none;
  border-radius: 50rem;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease, transform 100ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.wf-ai-assist-btn:hover {
  background: #2b3544;
  transform: translateY(-1px);
}
.wf-ai-assist-btn:active { transform: translateY(0); }
.wf-ai-assist-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.wf-ai-assist-btn .wf-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wf-spin 0.6s linear infinite;
}
@keyframes wf-spin {
  to { transform: rotate(360deg); }
}
.wf-ai-assist-status {
  width: 100%;
  font-size: 13px;
  line-height: 1.5;
}
.wf-ai-assist-status:empty { display: none; }
.wf-ai-assist-loading {
  color: var(--color-text-primary, #384551);
  font-style: italic;
}
.wf-ai-assist-error {
  color: var(--wf-error, #dc2626);
  padding: 8px 12px;
  background: rgba(220, 38, 38, 0.06);
  border-radius: 8px;
}
.wf-ai-assist-success {
  color: var(--wf-text-secondary);
}
.wf-ai-assist-success .wf-link-btn {
  background: none;
  border: none;
  color: var(--color-text-primary, #384551);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.wf-ai-assist-success .wf-link-btn:hover {
  color: #1e293b;
}
.wf-ai-assist-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.wf-ai-assist.wf-ai-collapsed {
  padding: 12px 24px;
  background: rgba(128, 128, 128, 0.04);
  border-color: var(--wf-border);
}
.wf-ai-collapsed .wf-ai-assist-content,
.wf-ai-collapsed .wf-ai-assist-btn { display: none; }

.wf-guided-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wf-guided-section.hidden-free {
  display: none;
}

.wf-ai-assist.hidden-free {
  display: none;
}
.wf-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wf-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  min-height: 44px;
  border: 1.5px solid var(--wf-border);
  border-radius: 50rem;
  background: var(--wf-card);
  color: var(--wf-text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 100ms ease;
  white-space: nowrap;
  user-select: none;
}
.wf-pill input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.wf-pill:hover {
  border-color: var(--wf-text-secondary);
  background: var(--wf-neutral-bg);
  transform: translateY(-1px);
}
.wf-pill:has(input:checked) {
  background: var(--color-text-primary, #384551);
  color: #fff;
  border-color: var(--color-text-primary, #384551);
}
.wf-pill:has(input:focus-visible) {
  outline: 2px solid rgba(100, 116, 139, 0.5);
  outline-offset: 2px;
}

.wf-fine-tuning {
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  background: var(--wf-card);
  overflow: hidden;
  transition: border-color 150ms ease;
}
.wf-fine-tuning[open] {
  border-color: rgba(56, 69, 81, 0.2);
}
.wf-fine-tuning summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.wf-fine-tuning summary::-webkit-details-marker { display: none; }
.wf-fine-tuning summary::marker { display: none; content: ""; }
.wf-fine-tuning summary::before {
  content: "▸";
  font-size: 12px;
  color: var(--wf-text-secondary);
  transition: transform 150ms ease;
  flex-shrink: 0;
}
.wf-fine-tuning[open] summary::before {
  transform: rotate(90deg);
}
.wf-fine-tuning-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--wf-text);
}
.wf-fine-tuning-summary {
  font-size: 13px;
  color: var(--wf-text-secondary);
  margin-left: auto;
}
.wf-fine-tuning[open] .wf-fine-tuning-summary { display: none; }
.wf-fine-tuning summary:hover {
  background: var(--wf-neutral-bg);
}
.wf-fine-tuning summary:focus-visible {
  outline: 2px solid rgba(100, 116, 139, 0.5);
  outline-offset: -2px;
}
.wf-fine-tuning-body {
  padding: 4px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wf-free-mode {
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  background: var(--wf-neutral-bg);
  overflow: hidden;
  margin-top: 8px;
}
.wf-free-mode summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  min-height: 44px;
  font-size: 13px;
  color: var(--wf-text-secondary);
  cursor: pointer;
  list-style: none;
}
.wf-free-mode summary::-webkit-details-marker { display: none; }
.wf-free-mode summary::marker { display: none; content: ""; }
.wf-free-mode summary::before {
  content: "▸";
  font-size: 11px;
  transition: transform 150ms ease;
  flex-shrink: 0;
}
.wf-free-mode[open] summary::before {
  transform: rotate(90deg);
}
.wf-free-mode summary:hover { background: var(--wf-card); }
.wf-free-mode-body {
  padding: 4px 18px 18px;
}
.wf-free-mode-banner {
  padding: 10px 14px;
  background: rgba(128, 128, 128, 0.06);
  border: 1px solid rgba(128, 128, 128, 0.12);
  border-radius: 8px;
  font-size: 13px;
  color: var(--wf-text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.wf-free-mode-banner.active {
  display: flex;
}
.wf-btn-sm {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  min-height: auto;
}
.wf-free-mode-banner .wf-btn-sm {
  font-size: 12px;
  padding: 4px 10px;
  min-height: 28px;
  margin-left: auto;
}

[data-theme="dark"] .wf-ai-assist {
  background: rgba(128, 128, 128, 0.06);
  border-color: rgba(128, 128, 128, 0.15);
}
[data-theme="dark"] .wf-ai-assist.wf-ai-collapsed {
  background: var(--wf-card);
}
[data-theme="dark"] .wf-pill {
  background: var(--wf-bg);
}
[data-theme="dark"] .wf-pill:hover {
  background: var(--wf-card);
}
[data-theme="dark"] .wf-fine-tuning {
  background: var(--wf-bg);
}
[data-theme="dark"] .wf-free-mode {
  background: var(--wf-bg);
}
[data-theme="dark"] .wf-free-mode-banner {
  background: rgba(128, 128, 128, 0.08);
}
[data-theme="dark"] .wf-story__icon--input {
  background: rgba(22, 163, 106, 0.15);
  color: #4ade80;
}
[data-theme="dark"] .wf-story__icon--ai {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}
[data-theme="dark"] .wf-story__section-num {
  background: rgba(255, 255, 255, 0.08);
  color: #8a92a6;
}
[data-theme="dark"] .wf-skip-callout {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
[data-theme="dark"] .wf-skip-callout svg {
  color: #4ade80;
}

.wf-section-list { display: flex; flex-direction: column; gap: 6px; }

.wf-section-builder-card {
  background: var(--wf-card);
  border: 1px solid var(--wf-border);
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.wf-section-builder-card:hover {
  border-color: color-mix(in srgb, var(--wf-accent) 30%, var(--wf-border));
}
.wf-section-builder-card.wf-section-disabled { opacity: 0.5; }
.wf-section-builder-card.wf-dragging { opacity: 0.4; outline: 2px dashed var(--wf-accent); outline-offset: -2px; }
.wf-section-builder-card.wf-drag-over-top { box-shadow: 0 -2px 0 0 var(--wf-accent); }
.wf-section-builder-card.wf-drag-over-bottom { box-shadow: 0 2px 0 0 var(--wf-accent); }

.wf-section-builder-header {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; min-height: 44px;
}

.wf-section-name-input {
  flex: 1; min-width: 0; padding: 5px 8px;
  border: 1px solid transparent; border-radius: 6px;
  font-size: 14px; font-weight: 600;
  background: transparent; color: var(--wf-text);
  text-overflow: ellipsis;
  transition: border-color 150ms ease, background 150ms ease;
}
.wf-section-name-input:hover { border-color: var(--wf-border); background: var(--wf-bg); }
.wf-section-name-input:focus { border-color: transparent; background: var(--wf-bg); outline: none !important; box-shadow: none; }

.wf-section-builder-card .wf-field-drag { opacity: 0; transition: opacity 150ms; }
.wf-section-builder-card:hover .wf-field-drag { opacity: 0.4; }

.wf-section-toggle { position: relative; cursor: pointer; flex-shrink: 0; }
.wf-section-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.wf-toggle-track {
  position: relative; display: block;
  width: 40px; height: 22px;
  background: var(--color-border, #e2e8f0); border-radius: 11px;
  transition: background 200ms ease;
}
.wf-section-toggle input:checked + .wf-toggle-track { background: #34d399; }
.wf-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: white; border-radius: 50%;
  transition: transform 200ms ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.wf-section-toggle input:checked + .wf-toggle-track .wf-toggle-thumb { transform: translateX(18px); }

.wf-section-expand {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  border: none; background: transparent; cursor: pointer;
  color: var(--wf-text-secondary); opacity: 0;
  transition: opacity 150ms, background 150ms;
}
.wf-section-builder-card:hover .wf-section-expand,
.wf-section-builder-card.expanded .wf-section-expand { opacity: 1; }
.wf-section-expand:hover { background: var(--wf-neutral-bg-hover); color: var(--wf-text); }
.wf-section-builder-card.expanded .wf-section-expand .wf-chevron-icon { transform: rotate(180deg); }

.wf-section-builder-card .wf-section-remove { opacity: 0; transition: opacity 150ms; }
.wf-section-builder-card:hover .wf-section-remove { opacity: 1; }

.wf-section-builder-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 200ms ease; overflow: hidden;
}
.wf-section-builder-card.expanded .wf-section-builder-body { grid-template-rows: 1fr; }
.wf-section-builder-body-inner { overflow: hidden; padding: 0 12px; }
.wf-section-builder-card.expanded .wf-section-builder-body-inner {
  padding: 8px 12px 12px; border-top: 1px solid var(--wf-border);
}

[data-theme="dark"] .wf-section-builder-card { box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
[data-theme="dark"] .wf-toggle-track { background: rgba(255,255,255,0.15); }

.wf-template-mode #wf-section-structure .wf-add-section-btn { display: inline-flex; }

.fullpage-mode .wf-step-content[data-step="2"] {
  display: block;
}
