/* CodeTrail Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }\nbody { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #f8fafc; }\na { color: #2563eb; text-decoration: none; }\na:hover { text-decoration: underline; }\n\n.container { max-width: 900px; margin: 0 auto; padding: 1rem; }\n\n.site-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 2rem 0; margin-bottom: 2rem; }\n.site-header .tagline { opacity: 0.9; font-size: 1.1rem; margin-top: 0.5rem; }\n\n.dashboard { margin-bottom: 2rem; }\n.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }\n.stat-card { background: white; border-radius: 12px; padding: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); display: flex; align-items: center; gap: 0.75rem; }\n.stat-icon { font-size: 1.75rem; }\n.stat-value { font-size: 1.5rem; font-weight: 700; color: #1e293b; }\n.stat-label { font-size: 0.85rem; color: #64748b; }\n\n.streak .stat-icon { color: #ea580c; }\n.total .stat-icon { color: #0d9488; }\n.solved .stat-icon { color: #16a34a; }\n.time .stat-icon { color: #7c3aed; }\n\n.input-section h2, .history-section h2, .analytics-section h2, .help-section h2 { margin: 1.5rem 0 1rem; color: #1e293b; }\n\n.challenge-form { background: white; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); margin-bottom: 2rem; }\n.form-row { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }\n.form-row label { font-weight: 500; color: #475569; }\n.form-row input, .form-row select, .form-row textarea { padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 1rem; }\n.form-row textarea { resize: vertical; }\n.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid #3b82f6; border-color: #3b82f6; }\n\n.btn-primary, .btn-secondary { padding: 0.75rem 1.5rem; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; }\n.btn-primary { background: #3b82f6; color: white; }\n.btn-primary:hover { background: #2563eb; }\n.btn-secondary { background: #f1f5f9; color: #475569; }\n.btn-secondary:hover { background: #e2e8f0; }\n\n.form-actions { display: flex; gap: 0.75rem; }\n\n.filter-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }\n.filter-bar label { font-weight: 500; }\n\n.challenge-list { background: white; border-radius: 12px; padding: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); margin-bottom: 2rem; }\n.challenge-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid #f1f5f9; }\n.challenge-item:last-child { border-bottom: none; }\n.challenge-item .platform { font-weight: 500; }\n.challenge-item .difficulty { font-size: 0.85rem; color: #64748b; }\n.challenge-item .status { font-size: 0.9rem; }\n\n.empty-state { text-align: center; padding: 2rem; color: #64748b; font-style: italic; }\n\n.help-section { background: #f1f5f9; border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; }\n.help-section h3 { margin: 1rem 0 0.5rem; color: #334155; }\n.help-section ul { margin-left: 1.5rem; }\n.help-section li { margin-bottom: 0.5rem; }\n\n.reference-table { width: 100%; border-collapse: collapse; }\n.reference-table th, .reference-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }\n.reference-table th { background: #f8fafc; font-weight: 600; }\n\n.site-footer { background: #1e293b; color: #cbd5e1; padding: 1.5rem 0; margin-top: 2rem; font-size: 0.9rem; }\n\n@media (max-width: 600px) { \n  .stats-grid { grid-template-columns: 1fr 1fr; }\n  .form-actions { flex-direction: column; }\n  .filter-bar { flex-direction: column; align-items: flex-start; }\n}\n\n@media (max-width: 400px) { \n  .stats-grid { grid-template-columns: 1fr; }\n}\n\n/* Analytics section */\n.analytics-section .stat-card { margin-bottom: 0.5rem; }


/* 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;
}
