.oef-tools-home,
.oef-tools-home * {
  box-sizing: border-box;
}

.oef-tools-home {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.oef-standalone-wrap {
  width: calc(100% - 48px);
  max-width: 1160px;
  margin: 32px auto 28px;
}

.oef-standalone-hero {
  margin-bottom: 18px;
  padding: 26px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
  color: #ffffff;
}

.oef-standalone-hero h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 26px;
}

body.oef-ui-pilot-tools #oefStandaloneOneclick .oef-standalone-hero h1 {
  margin: 0 0 8px !important;
  color: var(--pilot-text-strong, #101828) !important;
  font-size: 26px !important;
  line-height: 1.25 !important;
}

.oef-standalone-hero p {
  margin: 0;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.8;
}

.oef-main-card,
.oef-guide-card {
  width: 100%;
  margin-bottom: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.oef-main-card {
  padding: 24px;
  border-radius: 16px;
}

.oef-main-card h2,
.oef-guide-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 22px;
}

body.oef-ui-pilot-tools #oefStandaloneOneclick .oef-main-card > h2,
body.oef-ui-pilot-tools #oefStandaloneOneclick .oef-guide-card > h2 {
  font-size: 20px !important;
}

.oef-main-card p {
  margin: 0 0 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

.oef-title-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

body.oef-ui-pilot-tools #oefStandaloneOneclick .oef-title-actions > h2 {
  margin: 0 !important;
  font-size: 20px !important;
}

.oef-title-tutorial-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--pilot-primary, #2563eb);
  border-radius: 8px;
  background: #ffffff;
  color: var(--pilot-primary, #2563eb) !important;
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.oef-title-tutorial-btn:hover {
  border-color: var(--pilot-primary, #2563eb);
  background: var(--pilot-primary, #2563eb);
  color: #ffffff !important;
}

.oef-title-tutorial-btn:focus-visible {
  outline: 2px solid var(--pilot-primary, #2563eb);
  outline-offset: 2px;
}

.oef-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 900;
}

.oef-badge-advanced {
  background: #e0f2fe;
  color: #075985;
}

body.oef-ui-pilot-tools #oefStandaloneOneclick .oef-main-card .oef-badge.oef-badge-advanced {
  border-color: #b2ccff !important;
  background: var(--pilot-primary-soft, #eff6ff) !important;
  color: var(--pilot-primary, #2563eb) !important;
}

.oef-workbench-copy {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.app-workbench-strip {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.app-workbench-strip a {
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
}

#oefOneclickForm {
  scroll-margin-top: 84px;
}

.oef-oneclick-panel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.oef-oneclick-form {
  width: 100%;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #ffffff;
}

.oef-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.oef-field {
  min-width: 0;
  margin-bottom: 12px;
}

.oef-field.full {
  grid-column: 1 / -1;
}

.oef-field label {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.oef-field input,
.oef-field select,
.oef-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
}

.oef-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.oef-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
}

.oef-small-btn,
.oef-oneclick-btn,
.oef-download-btn {
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.oef-small-btn {
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  background: #111827;
}

.oef-oneclick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 18px;
  background: #2563eb;
  line-height: 1;
}

.oef-oneclick-btn:disabled,
.oef-download-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.oef-results {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin-top: 8px;
}

.oef-result-item {
  min-width: 0;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.oef-result-item:hover,
.oef-result-item:focus-visible {
  border-color: #2563eb;
  outline: none;
}

.oef-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.oef-fitment-help {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  line-height: 1.75;
}

.oef-fitment-help summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
  user-select: none;
  cursor: pointer;
}

.oef-fitment-help summary::-webkit-details-marker {
  display: none;
}

.oef-fitment-help summary::after {
  content: "▾";
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.oef-fitment-help[open] summary::after {
  content: "▴";
}

.oef-fitment-help summary:hover {
  background: #dbeafe;
}

.oef-fitment-help summary:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.oef-fitment-help-content {
  padding: 14px 16px 16px;
  border-top: 1px solid #dbeafe;
}

.oef-fitment-help h3 {
  margin: 14px 0 6px;
  color: #0f172a;
  font-size: 14px;
}

.oef-fitment-help p {
  margin: 0 0 8px;
  color: #475569;
  font-size: 13px;
  line-height: 1.75;
}

.oef-fitment-example {
  display: block;
  max-width: 100%;
  margin: 8px 0 10px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: #e5e7eb;
  color: #0f172a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
}

.oef-generate-actions {
  margin-top: 6px;
}

.oef-result-box {
  display: none;
  min-width: 0;
  margin-top: 14px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
}

.oef-result-box.ok {
  display: block;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}

.oef-result-box.err {
  display: block;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.oef-result-heading {
  margin: 0 0 10px;
  color: #166534;
  font-size: 15px;
  font-weight: 900;
}

.oef-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.oef-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid transparent;
  line-height: 1.3;
  text-decoration: none;
}

.oef-download-btn.primary {
  background: #2563eb;
}

.oef-download-btn.primary:hover {
  background: #1d4ed8;
}

.oef-download-btn.secondary {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.oef-download-btn.secondary:hover {
  border-color: #60a5fa;
  background: #dbeafe;
}

.oef-download-btn.tertiary {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #475569;
}

.oef-download-btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.oef-result-summary,
.oef-result-message {
  margin: 0;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #ffffff;
  color: #166534;
}

.oef-result-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oef-result-summary-list strong {
  color: #14532d;
}

.oef-result-message {
  color: #64748b;
}

.oef-result-message.error {
  border-color: #fecaca;
  color: #991b1b;
}

.oef-result-summary .oef-result-message {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.oef-advanced-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.oef-guide-card {
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.oef-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.oef-guide-step {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.oef-guide-step strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}

.oef-guide-card ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 14px;
  line-height: 1.9;
}

.info-card,
.faq-card {
  width: 100%;
  min-width: 0;
  margin-bottom: 18px;
}

.info-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.info-card ul {
  margin: 0;
  padding-left: 20px;
  color: #374151;
  font-size: 14px;
  line-height: 1.8;
}

.faq-details {
  cursor: pointer;
}

.faq-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  list-style: none;
  user-select: none;
  cursor: pointer;
}

.faq-details summary::-webkit-details-marker {
  display: none;
}

.faq-details summary::after {
  content: "点击展开";
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 400;
}

.faq-details[open] summary::after {
  content: "点击收起";
  background: #fee2e2;
  color: #991b1b;
}

.faq-content {
  margin-top: 18px;
  cursor: default;
}

.faq-card h3 {
  margin: 18px 0 8px;
  color: #111827;
  font-size: 16px;
}

.faq-card p {
  margin: 0 0 10px;
  color: #374151;
  line-height: 1.7;
}

.faq-card pre {
  max-width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .oef-standalone-wrap {
    width: calc(100% - 32px);
    margin: 24px auto 20px;
  }

  .oef-form-grid,
  .oef-guide-steps,
  .oef-search-row {
    grid-template-columns: 1fr;
  }

  .oef-field.full {
    grid-column: auto;
  }

  .oef-small-btn {
    width: 100%;
  }

  .oef-result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .oef-download-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .oef-standalone-wrap {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .oef-standalone-hero,
  .oef-main-card,
  .oef-guide-card,
  .info-card,
  .faq-card {
    padding: 18px;
  }

  .oef-oneclick-panel,
  .oef-oneclick-form {
    padding: 12px;
  }

  body.oef-ui-pilot-tools #oefStandaloneOneclick .oef-standalone-hero h1 {
    font-size: 22px !important;
  }

  .faq-details summary {
    align-items: flex-start;
    font-size: 18px;
  }
}
