
   ══════════════════════════════════════════════════════════════ */

.wf-create {
  animation: wfCreateIn 300ms ease-out;
  display: flex;
  flex-direction: column;
  
  max-width: 800px;
  margin: 0 auto;
}
.wf-create > .wf-create-nav {
  margin-top: auto; 
}

.wf-create-header {
  margin-bottom: 8px;
}
.wf-create-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.wf-create-header .wf-page-desc {
  margin: 2px 0 0;
}

.wf-autosave {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-success, #71dd37);
  margin-left: auto;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.wf-autosave.visible {
  opacity: 0.8;
}
.wf-autosave.fade-out {
  opacity: 0;
  transition: opacity 800ms ease 1.5s;
}

.wf-steps { margin-bottom: 20px; }
.wf-steps-track { display: none; }

.wf-step-content {
  display: none;
  background: var(--wf-card);
  border: 1px solid var(--wf-border);
  border-radius: 12px;
  padding: 24px;
}
.wf-step-content.active {
  display: block;
  animation: wf-slide-in 200ms ease-out;
}

.wf-form-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  padding: 0;
  margin: 0 0 20px;
}
.wf-form-section legend {
  font-size: 16px;
  font-weight: 700;
  color: var(--wf-text);
  margin-bottom: 6px;
  padding: 0;
  float: none;
  width: auto;
}
.wf-section-desc {
  font-size: 13px;
  color: var(--wf-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.wf-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--wf-text);
  margin: 0 0 6px;
}
.wf-create .wf-label {
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 4px;
}
.wf-form-section legend + .wf-label,
.wf-form-section > .wf-label:first-of-type {
  margin-top: 0;
}

.wf-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--wf-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--wf-text);
  background: var(--wf-bg);
  box-sizing: border-box;
  transition: border-color 150ms ease;
}

.wf-input::placeholder {
  color: var(--wf-text-secondary);
  opacity: 0.55;
}

.wf-textarea-sm { resize: vertical; min-height: 80px; }
.wf-textarea-md { resize: vertical; min-height: 160px; }
.wf-textarea-lg { resize: vertical; min-height: 220px; }

.wf-category-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wf-radio-card {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid var(--wf-border);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--wf-text-secondary);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  min-height: 36px;
  user-select: none;
  box-shadow: none;
}
.wf-radio-card:hover {
  border-color: rgba(100, 116, 139, 0.4);
  background: var(--wf-neutral-bg);
  color: var(--wf-text);
  transform: none;
  box-shadow: none;
}

.wf-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.wf-radio-card:has(input:checked),
.wf-radio-card.selected {
  border-color: var(--color-text-primary, #384551);
  background: rgba(56,69,81,0.06);
  color: var(--color-text-primary, #384551);
  font-weight: 600;
  box-shadow: none;
}

.wf-radio-card:focus-within:has(:focus-visible) {
  outline: 2px solid rgba(100, 116, 139, 0.5);
  outline-offset: 2px;
}
.wf-radio-card:focus-within:not(:has(:focus-visible)) {
  outline: none;
}

.wf-custom-chip { position: relative; padding-right: 30px; }
.wf-chip-remove {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--wf-text-secondary);
  min-width: 28px;
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 50%;
  opacity: 0.6;
  transition: opacity 150ms, color 150ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (pointer: coarse) {
  .wf-chip-remove {
    min-width: 44px;
    min-height: 44px;
  }
}
.wf-chip-remove:hover { opacity: 1; color: var(--color-text-primary, #384551); }
.wf-custom-chip:has(input:checked) .wf-chip-remove { color: var(--color-text-primary, #384551); opacity: 0.7; }
.wf-custom-chip:has(input:checked) .wf-chip-remove:hover { opacity: 1; }

.wf-custom-category-row {
  display: none;
  margin-top: 8px;
  align-items: center;
  gap: 8px;
}
.wf-custom-category-row.visible { display: flex; }
.wf-custom-category-row input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid var(--wf-border);
  border-radius: 20px;
  font-size: 13px;
  font-family: inherit;
  color: var(--wf-text);
  background: #fff;
}
.wf-custom-category-row input::placeholder { color: var(--wf-text-secondary); opacity: 0.6; }
.wf-custom-category-row input:focus { border-color: var(--wf-border); outline: none; }
.wf-custom-cat-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--color-text-primary, #384551);
  border-radius: 50%;
  background: rgba(56, 69, 81, 0.06);
  color: var(--color-text-primary, #384551);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 150ms ease, transform 150ms ease;
}
.wf-custom-cat-confirm:hover {
  background: rgba(56, 69, 81, 0.14);
  transform: scale(1.05);
}
[data-theme="dark"] .wf-custom-category-row input {
  background: transparent;
  border-color: var(--wf-border);
  color: var(--wf-text);
}

.wf-radio-card span {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.wf-emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wf-emoji-picker button,
.wf-emoji-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--wf-text-secondary);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  padding: 0;
  line-height: 1;
}
.wf-emoji-picker button:hover,
.wf-emoji-btn:hover {
  background: var(--wf-neutral-bg-hover);
  color: var(--wf-text);
  transform: none;
  box-shadow: none;
  border: none;
}
.wf-emoji-picker button.selected,
.wf-emoji-btn.selected,
.wf-emoji-btn.active {
  background: rgba(56,69,81,0.08);
  color: var(--color-text-primary, #384551);
  border: none;
  box-shadow: none;
}
.wf-emoji-btn:focus-visible {
  outline: 2px solid rgba(100, 116, 139, 0.5);
  outline-offset: 2px;
}

.wf-suggested-fields {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: rgba(128,128,128,0.04);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  margin-bottom: 12px;
}
.wf-suggested-fields-label {
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--wf-text-secondary);
  margin-bottom: 4px;
}
.wf-suggest-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1.5px solid var(--wf-border);
  border-radius: 50rem;
  background: var(--wf-card);
  color: var(--wf-text);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
  white-space: nowrap;
}
.wf-suggest-chip:hover {
  border-color: rgba(56,69,81,0.3);
  background: rgba(128,128,128,0.06);
  transform: translateY(-1px);
}
.wf-suggest-chip.used {
  opacity: 0.4;
  pointer-events: none;
  text-decoration: line-through;
}
.wf-suggest-chip svg { flex-shrink: 0; }

.wf-field-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
