* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #222; background: #fafafa; }
header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 2rem 1rem; text-align: center; }
header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.tagline { font-size: 1.1rem; opacity: 0.9; }
nav { margin-top: 1rem; }
nav a { color: white; text-decoration: none; margin: 0 1rem; font-size: 0.95rem; }
nav a:hover { text-decoration: underline; }
main { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
section { margin-bottom: 3rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; color: #333; }
h3 { font-size: 1.25rem; margin: 1rem 0 0.75rem; color: #444; }

.wizard-container { background: white; border-radius: 8px; padding: 2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.step-indicator { display: flex; justify-content: center; margin-bottom: 2rem; gap: 0.5rem; }
.step { padding: 0.5rem 1rem; background: #e5e7eb; border-radius: 20px; font-size: 0.9rem; color: #666; }
.step.active { background: #667eea; color: white; }
.step.completed { background: #10b981; color: white; }

.wizard-step { display: none; }
.wizard-step.active { display: block; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1rem 0; }
.option-card { display: block; border: 2px solid #e5e7eb; border-radius: 8px; padding: 1rem; cursor: pointer; transition: all 0.2s; }
.option-card:hover { border-color: #667eea; background: #f8fafc; }
.option-card input { display: none; }
.option-card input:checked + .card-content { font-weight: 600; color: #667eea; }
.card-content strong { display: block; margin-bottom: 0.25rem; }
.card-content small { color: #666; font-size: 0.85rem; }

.form-row { margin: 1rem 0; display: flex; align-items: center; gap: 0.5rem; }
.form-row label { font-weight: 500; }
.form-row select, .form-row input[type="text"] { padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 1rem; min-width: 200px; }

.output-box { background: #1e1e1e; color: #d4d4d4; padding: 1.5rem; border-radius: 6px; overflow-x: auto; font-family: 'Monaco', 'Menlo', monospace; font-size: 0.9rem; line-height: 1.5; min-height: 200px; white-space: pre-wrap; }

.action-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.action-buttons button { padding: 0.5rem 1rem; border: none; border-radius: 4px; cursor: pointer; font-size: 0.95rem; transition: background 0.2s; }
#copy-btn { background: #667eea; color: white; }
#download-btn { background: #10b981; color: white; }
#share-btn { background: #f59e0b; color: white; }
#reset-btn { background: #6b7280; color: white; }
.action-buttons button:hover { opacity: 0.9; }

.wizard-navigation { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.wizard-navigation button { padding: 0.5rem 1.5rem; border: 1px solid #d1d5db; background: white; border-radius: 4px; cursor: pointer; }
.wizard-navigation button:disabled { opacity: 0.5; cursor: not-allowed; }

.saved-configs { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.config-history { margin-top: 1rem; }
.config-item { padding: 0.75rem; border: 1px solid #e5e7eb; border-radius: 4px; margin-bottom: 0.5rem; cursor: pointer; }
.config-item:hover { background: #f8fafc; }
.config-item strong { display: block; }
.config-item small { color: #666; font-size: 0.85rem; }

.empty-state { color: #666; font-style: italic; text-align: center; padding: 1rem; }

.support-content { background: white; border-radius: 8px; padding: 2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.example-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.example-table th, .example-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #e5e7eb; }
.example-table th { background: #f8fafc; font-weight: 600; }
.example-table tr:hover { background: #fafafa; }

.support-content h3 { margin-top: 1.5rem; }
.support-content ul { margin: 0.5rem 0 0.5rem 1.5rem; }
.support-content li { margin-bottom: 0.5rem; }

footer { text-align: center; padding: 2rem 1rem; color: #666; font-size: 0.9rem; }
footer a { color: #667eea; }

@media (max-width: 600px) { header h1 { font-size: 1.5rem; } .tagline { font-size: 1rem; } .wizard-container, .saved-configs, .support-content { padding: 1rem; } .option-grid { grid-template-columns: 1fr; } .action-buttons { flex-direction: column; } .action-buttons button { width: 100%; } }


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
