:root {
  --paper: #fffdf9;
  --cream: #faf6f2;
  --tomato: #de392a;
  --tomato-dark: #b9291f;
  --herb: #6ea24b;
  --herb-dark: #42672d;
  --sun: #fdc978;
  --sun-dark: #c78423;
  --ink: #2f1e1e;
  --soft-ink: #5a4744;
  --card: rgba(255, 255, 255, 0.92);
  --border: #e8ddd1;
  --shadow: 0 18px 44px rgba(47, 30, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(820px 400px at 10% 0%, rgba(255, 210, 170, 0.78) 0%, rgba(255, 210, 170, 0) 60%),
    radial-gradient(880px 380px at 100% 8%, rgba(253, 201, 120, 0.55) 0%, rgba(253, 201, 120, 0) 58%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 52%, #fff8ef 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 82%);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 2.4rem;
  position: relative;
  z-index: 1;
}

.hero-panel,
.planner-panel,
.library-card,
.support-card,
.day-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 1rem;
  padding: 1.4rem;
  overflow: hidden;
  position: relative;
}

.hero-panel::before,
.hero-panel::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  z-index: 0;
}

.hero-panel::before {
  top: -80px;
  right: 26%;
  background: rgba(222, 57, 42, 0.08);
}

.hero-panel::after {
  bottom: -110px;
  right: -50px;
  background: rgba(110, 162, 75, 0.11);
}

.hero-panel-simple {
  grid-template-columns: 1fr;
}

.hero-copy,
.hero-note {
  position: relative;
  z-index: 1;
}

.hero-copy {
  min-width: 0;
}

.brand-logo {
  width: min(320px, 60vw);
  display: block;
  margin: 0 0 0.4rem;
  filter: drop-shadow(0 10px 22px rgba(47, 30, 30, 0.18));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid #f0d3af;
  color: #8d3a11;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Bree Serif', Georgia, serif;
  letter-spacing: 0.2px;
}

h1 {
  margin-top: 0.6rem;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
}

.hero-copy p,
.panel-head p,
.plan-topbar p,
.day-meta,
.helper-text {
  margin: 0.45rem 0 0;
  color: var(--soft-ink);
  line-height: 1.55;
}

.hero-note {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(110, 162, 75, 0.12), rgba(110, 162, 75, 0.03)),
    rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(110, 162, 75, 0.18);
}

.hero-note ul {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.6;
  color: var(--soft-ink);
}

.agent-strip {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.agent-strip span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(222, 57, 42, 0.1), rgba(253, 201, 120, 0.18));
  border: 1px solid rgba(222, 57, 42, 0.12);
  font-weight: 800;
  font-size: 0.84rem;
}

.workspace-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.workspace-grid.single-column {
  grid-template-columns: 1fr;
}

.planner-panel {
  padding: 1.25rem;
}

.planner-shell {
  display: grid;
  gap: 1rem;
}

.device-summary-card,
.planner-section-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(240, 176, 115, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(255, 255, 255, 0.92));
}

.device-summary-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.device-kicker,
.banner-kicker {
  margin: 0;
  color: #8d3a11;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-household-meta {
  min-height: 1.2rem;
}

.panel-head {
  margin-bottom: 1rem;
}

.small-head {
  margin-bottom: 0.8rem;
}

.planner-form {
  display: grid;
  gap: 1rem;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.choice-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(240, 176, 115, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.95), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.88);
}

.choice-head {
  display: grid;
  gap: 0.2rem;
}

.choice-head h3 {
  font-size: 1.02rem;
}

.choice-head p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.92rem;
}

.toggle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.toggle-chip {
  position: relative;
  display: inline-flex;
}

.toggle-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.toggle-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 82px;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #efcfab;
  background: rgba(255, 255, 255, 0.96);
  color: #8d3a11;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
}

.toggle-chip:hover span {
  transform: translateY(-1px);
  border-color: #e19a53;
  box-shadow: 0 10px 18px rgba(176, 89, 29, 0.12);
}

.toggle-input:checked + span {
  background: linear-gradient(135deg, var(--tomato), var(--tomato-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(185, 41, 31, 0.22);
}

.toggle-input:focus-visible + span {
  outline: none;
  box-shadow: 0 0 0 3px rgba(222, 57, 42, 0.18);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.long-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-span {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
  color: var(--soft-ink);
  font-size: 0.95rem;
}

input,
select,
textarea,
button,
.action-link {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9cbb9;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.08s ease;
}

input,
select,
button,
.action-link {
  min-height: 48px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--tomato);
  box-shadow: 0 0 0 3px rgba(222, 57, 42, 0.16);
}

button,
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 16px;
  padding: 0.82rem 1rem;
  background: linear-gradient(135deg, var(--tomato), var(--tomato-dark));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.2s ease, opacity 0.2s ease;
}

button:hover,
.action-link:hover {
  filter: brightness(1.04);
}

button:active,
.action-link:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ghost-btn,
.ghost-link {
  background: #fff7ed;
  color: #8d3a11;
  border: 1px solid #efcfab;
}

.planning-fieldset {
  display: grid;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.planning-fieldset[disabled] {
  opacity: 0.46;
}

.planning-empty {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px dashed #efcfab;
  background: rgba(255, 248, 239, 0.8);
  color: #8d3a11;
  font-weight: 800;
}

.form-actions,
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.status {
  min-height: 1.2rem;
  color: var(--soft-ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.status.is-error {
  color: var(--tomato-dark);
}

.thinking-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(240, 176, 115, 0.34);
  background:
    radial-gradient(220px 100px at 15% 18%, rgba(253, 201, 120, 0.28), transparent 68%),
    linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.92));
  overflow: hidden;
  position: relative;
}

.thinking-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.42) 40%, transparent 65%);
  transform: translateX(-120%);
  animation: thinking-sheen 3.2s linear infinite;
  pointer-events: none;
}

.thinking-panel.hidden {
  display: none;
}

.thinking-visual {
  position: relative;
  height: 110px;
}

.thinking-plate {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 112px;
  height: 34px;
  border-radius: 999px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.85) 48%, rgba(240, 176, 115, 0.75) 100%);
  border: 1px solid rgba(240, 176, 115, 0.55);
  box-shadow: 0 16px 30px rgba(47, 30, 30, 0.1);
}

.thinking-orb,
.thinking-steam {
  position: absolute;
  border-radius: 999px;
}

.thinking-orb {
  bottom: 42px;
  width: 18px;
  height: 18px;
  background: rgba(222, 57, 42, 0.18);
  animation: orbit-bob 2.6s ease-in-out infinite;
}

.thinking-orb.orb-a {
  left: 34px;
  width: 18px;
  height: 18px;
}

.thinking-orb.orb-b {
  left: 76px;
  width: 28px;
  height: 28px;
  background: rgba(110, 162, 75, 0.18);
  animation-delay: -0.8s;
}

.thinking-orb.orb-c {
  right: 34px;
  width: 22px;
  height: 22px;
  background: rgba(253, 201, 120, 0.3);
  animation-delay: -1.5s;
}

.thinking-steam {
  left: 50%;
  bottom: 48px;
  width: 20px;
  height: 54px;
  border: 2px solid rgba(141, 58, 17, 0.16);
  border-color: rgba(141, 58, 17, 0.14) transparent transparent transparent;
  transform-origin: center bottom;
  animation: steam-rise 2.4s ease-in-out infinite;
}

.thinking-steam.steam-a {
  margin-left: -28px;
}

.thinking-steam.steam-b {
  margin-left: -2px;
  animation-delay: -0.75s;
}

.thinking-steam.steam-c {
  margin-left: 24px;
  animation-delay: -1.3s;
}

.thinking-copy {
  display: grid;
  gap: 0.3rem;
}

.thinking-kicker {
  margin: 0;
  color: #8d3a11;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thinking-copy h3 {
  font-size: 1.25rem;
}

.thinking-copy p:last-child {
  margin: 0;
  color: var(--soft-ink);
}

.side-panel {
  display: grid;
  gap: 1rem;
}

.device-memory {
  border-radius: 22px;
  border: 1px solid rgba(230, 215, 201, 0.92);
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.device-memory summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--ink);
}

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

.device-memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0 1rem 1rem;
}

.library-card {
  padding: 1rem;
}

.compact-card {
  padding: 0.95rem;
  box-shadow: none;
}

.library-list {
  display: grid;
  gap: 0.65rem;
}

.empty-state {
  color: var(--soft-ink);
  font-size: 0.95rem;
}

.library-item {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,246,242,0.92));
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.library-item:hover {
  transform: translateY(-2px);
  border-color: #f0b073;
  box-shadow: 0 10px 20px rgba(176, 89, 29, 0.12);
}

.library-item.is-current {
  border-color: rgba(222, 57, 42, 0.34);
  box-shadow: 0 12px 22px rgba(185, 41, 31, 0.12);
}

.library-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.library-item p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.86rem;
  line-height: 1.45;
}

.plan-view {
  margin-top: 1rem;
  scroll-margin-top: 1rem;
}

.active-household-banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(240, 176, 115, 0.34);
  background:
    radial-gradient(220px 110px at 100% 0%, rgba(253, 201, 120, 0.14), transparent 70%),
    rgba(255, 248, 239, 0.92);
}

.active-household-banner h4,
.active-household-banner p {
  margin: 0;
}

.hidden {
  display: none !important;
}

.plan-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.mobile-jump {
  display: none;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 1rem;
}

.days-wrap,
.support-wrap {
  display: grid;
  gap: 0.9rem;
}

.days-grid {
  display: grid;
  gap: 0.85rem;
}

.plan-meta {
  font-weight: 800;
}

.image-status {
  display: none;
  margin: 0 0 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(240, 176, 115, 0.34);
  background: rgba(255, 248, 239, 0.92);
  color: #8d3a11;
  font-size: 0.95rem;
  font-weight: 800;
}

.image-status.is-visible {
  display: block;
}

.image-status.is-ready {
  border-color: rgba(110, 162, 75, 0.28);
  background: rgba(243, 250, 237, 0.96);
  color: var(--herb-dark);
}

.day-card {
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.day-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, #f0b073, #de8a35);
}

.day-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.day-head p,
.day-card p,
.support-card p {
  margin: 0;
}

.day-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid #efcfab;
  color: #8d3a11;
  font-size: 0.82rem;
  font-weight: 800;
}

.meal-list {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.9rem;
}

.meal-entry {
  display: grid;
  gap: 0.95rem;
  padding: 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(230, 215, 201, 0.92);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,246,242,0.9));
}

.meal-visual {
  margin: 0;
  height: clamp(240px, 32vw, 650px);
  max-height: 650px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(253, 201, 120, 0.24), rgba(222, 57, 42, 0.1));
  border: 1px solid rgba(240, 176, 115, 0.34);
  position: relative;
  align-self: start;
}

.meal-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.meal-placeholder {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 1rem;
}

.placeholder-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.placeholder-orb.orb-one {
  top: 18px;
  left: 18px;
  width: 90px;
  height: 90px;
  background: rgba(253, 201, 120, 0.28);
  animation: pulse-float 3.4s ease-in-out infinite;
}

.placeholder-orb.orb-two {
  right: 22px;
  bottom: 36px;
  width: 116px;
  height: 116px;
  background: rgba(222, 57, 42, 0.14);
  animation: pulse-float 4s ease-in-out infinite reverse;
}

.placeholder-plate {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 138px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(240, 176, 115, 0.4);
  box-shadow: 0 18px 28px rgba(47, 30, 30, 0.12);
}

.placeholder-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  text-align: center;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.8);
}

.placeholder-copy strong {
  font-family: 'Bree Serif', Georgia, serif;
  font-size: 1.1rem;
}

.placeholder-copy span {
  color: var(--soft-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.meal-placeholder.is-failed {
  background: linear-gradient(135deg, rgba(255, 244, 237, 0.98), rgba(255, 250, 244, 0.94));
}

.meal-copy {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.meal-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.meal-title-wrap {
  min-width: 0;
}

.meal-title-wrap h4 {
  font-size: 1.24rem;
  line-height: 1.2;
}

.meal-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.meal-type-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid #efcfab;
  color: #8d3a11;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.meal-servings {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 72px;
  padding: 0.55rem 0.7rem;
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid #efcfab;
}

.meal-servings span {
  color: var(--soft-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meal-servings strong {
  font-size: 1.3rem;
  color: var(--tomato-dark);
  line-height: 1;
}

.meal-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.meal-columns section {
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(230, 215, 201, 0.9);
}

.meal-columns h5 {
  margin: 0 0 0.45rem;
  font-family: 'Bree Serif', Georgia, serif;
  font-size: 0.98rem;
}

.meal-columns ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--soft-ink);
  line-height: 1.5;
}

.day-mode {
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day-mode.is-grounded {
  background: rgba(110, 162, 75, 0.12);
  color: var(--herb-dark);
}

.day-mode.is-fallback {
  background: rgba(253, 201, 120, 0.18);
  color: var(--sun-dark);
}

.day-meta {
  margin-top: 0.5rem;
}

.day-columns {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.day-columns h4,
.support-card h4,
.support-card h3 {
  margin-bottom: 0.45rem;
}

.tag-list,
.source-wrap {
  margin-top: 0.75rem;
}

.prep-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.prep-chip {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #efcfab;
  color: #8d3a11;
  font-size: 0.8rem;
  font-weight: 800;
}

.source-link {
  color: var(--tomato-dark);
  font-weight: 800;
}

.support-card {
  padding: 1rem;
}

.support-list {
  display: grid;
  gap: 0.75rem;
}

.group-block {
  padding-top: 0.2rem;
}

.group-block + .group-block {
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
}

.group-block h4 {
  font-size: 1rem;
}

.group-block ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.5;
  color: var(--soft-ink);
}

@keyframes thinking-sheen {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(130%); }
}

@keyframes orbit-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.06); }
}

@keyframes steam-rise {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-16px) scale(1.08);
  }
}

@keyframes pulse-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

@media (max-width: 960px) {
  .hero-panel,
  .workspace-grid,
  .overview-grid,
  .plan-topbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .plan-topbar {
    gap: 0.8rem;
  }

  .selection-grid,
  .thinking-panel,
  .device-summary-card,
  .device-memory-grid,
  .active-household-banner {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
    margin: 0.75rem auto 1.4rem;
  }

  .hero-panel,
  .planner-panel,
  .library-card,
  .support-card,
  .day-card,
  .planner-section-card,
  .device-summary-card {
    border-radius: 20px;
  }

  .hero-panel,
  .planner-panel,
  .library-card,
  .support-card,
  .day-card,
  .planner-section-card,
  .device-summary-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-panel {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .form-grid,
  .long-grid,
  .day-columns,
  .meal-columns,
  .selection-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: min(280px, 72vw);
  }

  .agent-strip,
  .prep-chip-wrap,
  .mobile-jump,
  .toggle-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .agent-strip::-webkit-scrollbar,
  .prep-chip-wrap::-webkit-scrollbar,
  .mobile-jump::-webkit-scrollbar,
  .toggle-grid::-webkit-scrollbar {
    display: none;
  }

  .agent-strip span,
  .prep-chip,
  .jump-link,
  .toggle-chip {
    flex: 0 0 auto;
  }

  .form-actions,
  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions > *,
  .topbar-actions > * {
    width: 100%;
  }

  .mobile-jump {
    gap: 0.55rem;
    margin: 0 0 0.9rem;
    padding-bottom: 0.1rem;
  }

  .jump-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #efcfab;
    color: #8d3a11;
    font-weight: 800;
    text-decoration: none;
  }

  .day-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .meal-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .day-mode {
    justify-self: start;
  }

  .day-count {
    justify-self: start;
  }

  .device-memory summary,
  .active-household-banner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .library-item {
    padding: 0.95rem;
  }

  .group-block ul {
    padding-left: 1rem;
  }

  .thinking-panel {
    padding: 0.95rem;
  }

  .thinking-visual {
    height: 96px;
  }

  .meal-entry {
    padding: 0.8rem;
  }

  .meal-visual {
    height: clamp(220px, 52vw, 380px);
  }
}

@media (max-width: 480px) {
  body::before {
    background-size: 26px 26px;
  }

  .page-shell {
    width: calc(100% - 0.75rem);
    margin: 0.5rem auto 1rem;
  }

  .hero-panel,
  .planner-panel,
  .library-card,
  .support-card,
  .day-card,
  .planner-section-card,
  .device-summary-card {
    border-radius: 18px;
  }

  .eyebrow {
    font-size: 0.72rem;
    padding: 0.32rem 0.65rem;
  }

  .hero-copy p,
  .panel-head p,
  .plan-topbar p {
    font-size: 0.95rem;
  }

  .brand-logo {
    width: min(240px, 76vw);
  }

  .choice-card,
  .day-card,
  .support-card,
  .planner-panel,
  .library-card,
  .planner-section-card,
  .device-summary-card {
    padding: 0.9rem;
  }

  .toggle-chip span {
    min-width: 74px;
    min-height: 42px;
    padding: 0.7rem 0.85rem;
  }

  .thinking-copy h3 {
    font-size: 1.08rem;
  }

  .meal-title-wrap h4 {
    font-size: 1.08rem;
  }

  .meal-visual {
    height: clamp(200px, 56vw, 320px);
  }
}
