/* Ex skill wizard layout */
.ex-wizard {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.ex-step-panel {
  min-height: 520px;
}
.ex-step-panel[hidden] {
  display: none !important;
}
.ex-step-panel .ex-pane-head {
  padding-bottom: 0;
  border-bottom: 0;
}
.ex-step-panel .ex-section {
  max-width: 1240px;
}
.ex-step-panel .ex-file-grid,
.ex-step-panel .ex-progress-card {
  max-width: 1240px;
}
.ex-review-layout {
  display: grid;
  gap: 16px;
}
.ex-review-status {
  min-width: 0;
}
.ex-step-panel[data-ex-step-panel="review"] .ex-progress-card {
  width: 100%;
  max-width: none;
  margin: 16px auto 0;
}
.ex-stage-actions,
.ex-main-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  justify-content: flex-end;
  align-items: center;
  margin: 22px -24px 0;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}
.ex-stage-actions .btn,
.ex-main-actions .btn {
  min-width: 150px;
}
.ex-step-panel[data-ex-step-panel="generate"] {
  display: grid;
  align-content: start;
}
.ex-advanced {
  max-width: 1240px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}
.ex-advanced summary {
  cursor: pointer;
  color: #334155;
  font-weight: 800;
}
.ex-advanced .field {
  margin-top: 14px;
}
.ex-sort-hint {
  max-width: 1240px;
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
}
.ex-generate-preview {
  max-width: 1240px;
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ex-generate-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 2px;
}
.ex-generate-summary div {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.ex-generate-summary span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
}
.ex-generate-summary strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ex-draft-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ex-generated-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .035);
}
.ex-generated-editor-head strong {
  display: block;
  margin-bottom: 3px;
  color: #1f2937;
  font-size: 18px;
}
.ex-generated-editor-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.ex-generated-editor-head > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}
.ex-generated-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ex-generated-field {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .025);
}
.ex-generated-field.wide {
  grid-column: 1 / -1;
}
.ex-generated-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ex-generated-field-head span {
  color: #334155;
  font-size: 14px;
  font-weight: 900;
}
.ex-generated-field-head .btn {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: #64748b;
  background: #f8fafc;
}
.ex-generated-field-head .btn.saved {
  border-color: #bbf7d0;
  color: #15803d;
  background: #f0fdf4;
}
.ex-generated-input {
  width: 100%;
  resize: vertical;
  border-radius: 8px;
  border-color: #dbe3ef;
  background: #fbfdff;
  line-height: 1.55;
}
.ex-generated-input:focus {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(147,197,253,.22);
}
