/* Cooking Mistake Memento 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-color: #fff; }\na { color: #2563eb; text-decoration: none; }\na:hover { text-decoration: underline; }\nheader { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); color: white; padding: 1.5rem 0; }\nheader .container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }\nheader h1 { font-size: 2rem; margin-bottom: 0.25rem; }\nheader .tagline { font-size: 1rem; opacity: 0.95; margin-bottom: 1rem; }\nnav a { color: white; font-weight: 500; margin: 0 0.5rem; }\nnav a:hover { opacity: 0.8; }\nmain { max-width: 800px; margin: 0 auto; padding: 1.5rem; }\nsection { margin-bottom: 2rem; }\nh2 { font-size: 1.5rem; margin-bottom: 1rem; color: #1f2937; }\nh3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; color: #374151; }\n.field-group { margin-bottom: 1rem; }\n.field-group label { display: block; font-weight: 500; margin-bottom: 0.25rem; }\n.field-group input, .field-group textarea, .field-group select { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 1rem; }\n.field-group input:focus, .field-group textarea:focus, .field-group select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 237, 0.1); }\n.textarea { resize: vertical; }\n.primary-btn { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); color: white; border: none; padding: 0.875rem 1.5rem; border-radius: 6px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: transform 0.1s; }\n.primary-btn:hover { transform: translateY(-1px); }\n.primary-btn:active { transform: translateY(0); }\n.empty-state { text-align: center; padding: 2rem; color: #6b7280; }\n.history-list { list-style: none; }\n.history-item { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }\n.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }\n.history-category { background: #fef3c7; color: #92400e; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.875rem; font-weight: 500; }\n.history-date { color: #6b7280; font-size: 0.875rem; }\n.history-description { margin-bottom: 0.5rem; }\n.history-lesson { background: #eff6ff; border-left: 4px solid #2563eb; padding: 0.75rem; margin-bottom: 0.5rem; font-size: 0.95rem; }\n.delete-btn { background: #fee2e2; color: #991b1b; border: none; padding: 0.25rem 0.75rem; border-radius: 4px; cursor: pointer; font-size: 0.875rem; }\n.delete-btn:hover { background: #fecaca; }\n#entry-template { display: none; }\n.patterns-section .placeholder-text { color: #9ca3af; font-style: italic; text-align: center; padding: 1rem; }\n.patterns-container { display: flex; flex-wrap: wrap; gap: 0.75rem; }\n.pattern-badge { background: #dbeafe; color: #1e40af; padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; }\n.about-section ol { padding-left: 1.5rem; margin-top: 0.5rem; }\n.about-section li { margin-bottom: 0.5rem; }\n.about-section ul { padding-left: 1.5rem; margin-top: 0.5rem; }\n.about-section li { margin-bottom: 0.25rem; }\n.tips-section ol { padding-left: 1.5rem; margin-top: 0.5rem; }\n.tips-section li { margin-bottom: 0.5rem; }\nfooter { background: #f3f4f6; color: #4b5563; padding: 1rem 0; font-size: 0.875rem; }\nfooter a { color: #2563eb; }\n.hidden { display: none; }\n@media (max-width: 600px) {\n  header h1 { font-size: 1.5rem; }\n  main { padding: 1rem; }\n  .history-header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }\n  .primary-btn { width: 100%; }\n}\n@media (max-width: 400px) {\n  header .container { padding: 0 0.5rem; }\n}


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