body {
            font-family: 'Noto Sans JP', 'Inter', sans-serif;
            background-color: #f8fafc;
        }
        .glass-panel {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(226, 232, 240, 0.8);margin: 0;
        }
        .pulse-slow {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        .ingredient-chip span {
            display: block;
            text-align: center;
            padding: 0.65rem 0.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            background: #f8fafc;
            color: #475569;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
        }
        .ingredient-chip input:checked + span {
            border-color: #fb923c;
            background: #fff7ed;
            color: #c2410c;
        }

/* Local fallback for core Tailwind utilities when the CDN is unavailable. */
* { box-sizing: border-box; }
.hidden { display: none !important; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-5xl { max-width: 64rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.border { border-width: 1px; border-style: solid; }
.border-slate-200 { border-color: #e2e8f0; }
.border-orange-200 { border-color: #fed7aa; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-amber-200 { border-color: #fde68a; }
.bg-white { background: #fff; }
.bg-slate-50 { background: #f8fafc; }
.bg-orange-50 { background: #fff7ed; }
.bg-emerald-50 { background: #ecfdf5; }
.bg-amber-50 { background: #fffbeb; }
.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-orange-600 { color: #ea580c; }
.text-emerald-600 { color: #059669; }
.text-emerald-800 { color: #065f46; }
.text-amber-600 { color: #d97706; }
.text-amber-900 { color: #78350f; }
.text-red-600 { color: #dc2626; }
.text-red-800 { color: #991b1b; }
.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-30 { z-index: 30; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transition-all { transition: all .2s ease; }
#view-home.home-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:p-8 { padding: 2rem; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
}
#view-home .subfeature-cards-grid {
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 320px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: .25rem;
}
#view-home .subfeature-cards-grid > * {
  min-width: 0;
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  #view-home .subfeature-cards-grid { grid-auto-columns: min(44vw, 320px); }
}
@media (min-width: 768px) {
  #view-home .subfeature-cards-grid { grid-auto-columns: calc((100% - 2.5rem) / 3); }
}
@media (max-width: 639px) {
  #view-home.home-dashboard { gap: 1rem; }
  #view-home .home-feature-icon,
  #view-home .home-subfeature-icon { display: none; }
}
