body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
  background: #f8fafc;
}
.page-wrap {
  max-width: 1500px;
}
.editor-col { min-width: 0; }
.top-controls {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #f8fafc;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}
.action-hint {
  font-size: 0.8rem;
}
.form-scroll {
  height: calc(100vh - 210px);
  min-height: 420px;
  overflow: auto;
  padding-right: 0.25rem;
}
#out {
  height: calc(100vh - 210px);
  min-height: 420px;
  overflow: auto;
  width: 100%;
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #1e293b;
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.86rem;
  line-height: 1.45;
  resize: vertical;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
article [_s_node] {
  scroll-margin-top: 1rem;
}
.templates {
  display: none;
}

.seed-validation-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  max-height: 240px;
  overflow: auto;
}
.seed-validation-head {
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.seed-validation-ok {
  color: #166534;
  font-weight: 600;
}
.seed-validation-list {
  margin: 0;
  padding-left: 1rem;
}
.seed-validation-error {
  color: #b91c1c;
}
.seed-validation-warning {
  color: #92400e;
}
.seed-invalid-field {
  outline: 2px solid #dc2626 !important;
  outline-offset: 1px;
}

.seed-sortable-item[draggable="true"] {
  cursor: grab;
}
.seed-sortable-item.seed-is-dragging {
  opacity: 0.45;
}
.seed-sortable-slot.seed-drop-target {
  outline: 2px dashed #0d6efd;
  outline-offset: 2px;
}
.seed-sortable-item.seed-drop-before {
  border-top: 2px solid #0d6efd;
}
.seed-sortable-item.seed-drop-after {
  border-bottom: 2px solid #0d6efd;
}

@media (max-width: 991.98px) {
  .top-controls {
    position: static;
    border-bottom: 0;
    padding-top: 0;
  }
  .form-scroll {
    height: auto;
    min-height: 300px;
  }
  #out {
    height: auto;
    min-height: 300px;
  }
}
