body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}

.fx10pdt-submit-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.fx10pdt-submit-header h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.fx10pdt-submit-tip {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.6;
}

.fx10pdt-submit-tip.muted {
  color: #64748b;
  font-size: 13px;
}

.fx10pdt-submit-ref {
  color: #475569;
  font-size: 14px;
}

.fx10pdt-mode-tabs {
  display: inline-flex;
  gap: 0;
  margin-top: 14px;
  padding: 3px;
  background: #e2e8f0;
  border-radius: 8px;
}

.fx10pdt-mode-tab {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.fx10pdt-mode-tab.is-active {
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.fx10pdt-mode-panel.hidden {
  display: none;
}

.fx10pdt-submit-tip.hidden {
  display: none;
}

.fx10pdt-simple-text {
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1.65;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  resize: vertical;
  min-height: 220px;
  font-family: inherit;
}

.fx10pdt-simple-text:focus {
  outline: none;
  border-color: #d32f2f;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.12);
}

.fx10pdt-submit-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
}

.fx10pdt-submit-section h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.fx10pdt-submit-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .fx10pdt-submit-grid2 {
    grid-template-columns: 1fr;
  }
}

.fx10pdt-submit-grid2 label,
.fx10pdt-entry label {
  display: block;
  font-size: 13px;
  color: #475569;
}

.fx10pdt-submit-grid2 input,
.fx10pdt-entry input,
.fx10pdt-entry textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}

.fx10pdt-submit-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.fx10pdt-submit-row-head h2 {
  margin: 0;
}

.fx10pdt-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}

.fx10pdt-btn.primary {
  background: #d32f2f;
  border-color: #c62828;
  color: #fff;
  margin-top: 12px;
}

.fx10pdt-entry {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}

.fx10pdt-entry-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
}

.fx10pdt-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fx10pdt-entry-grid .full {
  grid-column: 1 / -1;
}

.fx10pdt-preview-wrap {
  overflow-x: auto;
}

.fx10pdt-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fx10pdt-preview-table th,
.fx10pdt-preview-table td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  text-align: left;
}

.fx10pdt-preview-table th {
  background: #fff5f5;
}

.fx10pdt-submit-msg {
  margin-top: 12px;
  font-size: 14px;
}

.fx10pdt-submit-msg.ok {
  color: #15803d;
}

.fx10pdt-submit-msg.err {
  color: #b91c1c;
}

.fx10pdt-error {
  color: #b91c1c;
}

.fx10pdt-submit-footer {
  margin-top: 28px;
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.fx10pdt-submit-footer a {
  color: #64748b;
  text-decoration: none;
}

.fx10pdt-submit-footer a:hover {
  color: #d32f2f;
  text-decoration: underline;
}

.fx10pdt-submit-footer-name {
  color: #64748b;
  font-weight: 600;
}
