.ingredients-details {
  margin: 0 0 18px;
  border: 1px solid #e1e5d9;
  border-radius: 12px;
  background: #fffdf8;
  padding: 15px 17px;
}
.ingredients-details summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.ingredients-details summary span {
  font-weight: 400;
  color: #8a937c;
  font-size: 13px;
  margin-left: 8px;
}
.ingredient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin-top: 12px;
}
.ingredient-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #efeee4;
  padding: 9px 0;
  font-size: 14px;
}
.ingredient-grid strong {
  font-weight: 500;
  color: #7b896c;
  white-space: nowrap;
}
.ingredients-details > p {
  margin-top: 12px;
  font-size: 14px;
}
.grocery-quantity small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
  color: #8b937f;
}
.grocery-quantity {
  line-height: 1.5;
  text-align: right;
}
:root {
  --cream: #f8f6ef;
  --paper: #fffdf8;
  --ink: #253b30;
  --muted: #788076;
  --forest: #244333;
  --sage: #e8eddf;
  --line: #e5e6dc;
  --orange: #bd603e;
  --orange-light: #f8e7da;
  --yellow: #f0d294;
  --white: #fff;
  --shadow: 0 15px 45px #233e3010;
  --radius: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.52;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #bd603e80;
  outline-offset: 4px;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
svg {
  display: block;
  flex: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
.serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(33px, 3.3vw, 49px);
  line-height: 1.13;
  letter-spacing: -1.7px;
}
h2 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 23px;
  line-height: 1.2;
}
p {
  line-height: 1.65;
}
.small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  background: var(--forest);
  color: #fff;
  padding: 15px;
  z-index: 20;
  border-radius: 10px;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 22px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #f8f8f1;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 33px;
  font-family: Georgia, serif;
  letter-spacing: -1.5px;
}
.brand-mark {
  width: 35px;
  height: 39px;
  background: var(--forest);
  color: #f1d89c;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 35px;
  font-style: italic;
  line-height: 1;
  border-radius: 12px 12px 17px 12px;
  padding-right: 4px;
}
.brand-word {
  padding-top: 1px;
}
.sidebar-subtitle {
  margin: 13px 0 35px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 13px 14px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  color: #697168;
  width: 100%;
  transition:
    background 0.16s,
    color 0.16s;
}
.nav-item:hover {
  background: #ecede3;
}
.nav-item.active {
  color: var(--forest);
  background: #e7ecdf;
  font-weight: 700;
}
.nav-item .nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: auto;
}
.sidebar-note {
  border: 1px solid #dfe4d7;
  border-radius: 14px;
  padding: 16px;
  margin-top: auto;
  background: #eef1e6;
}
.sidebar-note svg {
  color: #8d9a79;
  margin-bottom: 12px;
}
.sidebar-note h3 {
  font-size: 18px;
  margin-bottom: 7px;
}
.sidebar-note p {
  font-size: 14px;
  color: #71806c;
  line-height: 1.6;
}
.text-button {
  padding: 0;
  background: none;
  border: 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--forest);
}
.sidebar-bottom {
  margin-top: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.household-avatar {
  display: grid;
  place-items: center;
  border: 1px solid #dce1d4;
  background: #ede8d9;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
}
.sidebar-bottom .small {
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px 20px;
  border-bottom: 1px solid var(--line);
  min-height: 81px;
  background: #f8f6ef;
}
.breadcrumbs {
  font-size: 13px;
  color: #8a8d80;
  display: flex;
  align-items: center;
  gap: 9px;
}
.breadcrumbs strong {
  color: var(--ink);
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.simulation-pill {
  font-size: 12px;
  color: #68785f;
  background: #eef0e6;
  padding: 7px 10px;
  border: 1px solid #e1e5d9;
  border-radius: 30px;
  white-space: nowrap;
}
.status-light {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  background: #829864;
  margin-right: 5px;
  vertical-align: 2px;
}
.assistant-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  font-size: 14px;
}
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 27px;
  max-width: 1570px;
  margin: auto;
  padding: 32px 34px 40px;
}
.main-content {
  min-width: 0;
}
.welcome-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}
.welcome-row .eyebrow {
  margin-bottom: 9px;
}
.welcome-row p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 9px;
}
.today-stamp {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 5px;
}
.hero-card {
  background: #ecefdf;
  border: 1px solid #e0e5d3;
  border-radius: var(--radius);
  padding: 29px 28px;
  display: flex;
  min-height: 246px;
  position: relative;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 63%;
  max-width: 390px;
}
.hero-card .eyebrow {
  color: #7a8965;
  letter-spacing: 1.5px;
  margin-bottom: 13px;
}
.hero-card h2 {
  font-size: 35px;
  max-width: 320px;
  line-height: 1.13;
}
.hero-card p {
  font-size: 15px;
  line-height: 1.8;
  margin: 13px 0 18px;
  color: #718064;
  max-width: 285px;
}
.hero-card .button {
  font-size: 14px;
  padding: 11px 15px;
}
.hero-art {
  position: absolute;
  right: -3px;
  top: 19px;
  width: 240px;
  height: 240px;
  transform: rotate(-8deg);
}
.hero-art svg {
  width: 100%;
  height: 100%;
}
.floating-label {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: #fffdf6e8;
  backdrop-filter: blur(8px);
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 12px;
  box-shadow: 0 4px 10px #44602a10;
  transform: rotate(0);
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  padding: 20px 0 22px;
  gap: 12px;
  margin-bottom: 26px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #f1eee3;
  display: grid;
  place-items: center;
  color: #8c9977;
  flex: none;
}
.feature-item strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}
.section-heading h2 {
  font-size: 24px;
}
.section-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.section-heading .small {
  font-size: 13px;
}
.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 22px;
}
.dish-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: var(--paper);
  text-align: left;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
  position: relative;
}
.dish-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #b2bea4;
}
.dish-card.selected {
  border: 1.5px solid var(--forest);
  box-shadow: 0 0 0 2px #2443330a;
}
.dish-art {
  height: 123px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ece8db;
}
.dish-art.pasta {
  background: #f3e5d7;
}
.dish-art.wraps {
  background: #e8ecdf;
}
.dish-art svg {
  width: 125px;
  height: 125px;
}
.dish-choose {
  position: absolute;
  right: 9px;
  top: 9px;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  border: 1px solid #fff9;
  background: #fffb;
  display: grid;
  place-items: center;
  color: #597254;
}
.dish-card.selected .dish-choose {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.dish-info {
  padding: 14px 13px;
}
.dish-info h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.dish-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.dish-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 9px 0;
}
.dish-tag {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 12px;
  background: #efefe5;
  color: #68725f;
  margin: 3px 3px 0 0;
}
.plan-builder {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 20px;
  margin-bottom: 24px;
}
.builder-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.builder-top h3 {
  font-size: 21px;
}
.builder-top p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.serving-stepper {
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 3px;
  flex: none;
}
.serving-stepper button {
  border: 0;
  background: #f4f4ec;
  border-radius: 5px;
  width: 26px;
  height: 26px;
  font-size: 16px;
}
.serving-stepper span {
  min-width: 22px;
  text-align: center;
  font-size: 15px;
}
.portion-builder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.portion-field {
  padding: 11px;
  border: 1px solid #e7e7dc;
  border-radius: 11px;
  background: #faf9f3;
}
.portion-field label {
  font-size: 12px;
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}
.portion-name {
  background: none !important;
  border: 0 !important;
  border-bottom: 1px dashed #d9ddcd !important;
  border-radius: 0 !important;
  width: 100%;
  padding: 3px 0 7px !important;
  font-size: 15px !important;
  margin-bottom: 9px;
  font-weight: 600;
}
.portion-field select {
  width: 100%;
  font-size: 14px;
  padding: 7px 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}
.builder-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
}
.builder-footer p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 270px;
}
.button {
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  transition:
    background 0.16s,
    transform 0.16s;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button-primary {
  background: var(--forest);
  color: #fff;
}
.button-primary:hover:not(:disabled) {
  background: #345642;
}
.button-orange {
  background: var(--orange);
  color: #fff;
}
.button-quiet {
  background: #efefe5;
  border-color: #e2e5d9;
  color: #5f6c56;
}
.button-outline {
  border-color: #d9dfcf;
  background: var(--paper);
  color: var(--forest);
}
.button-small {
  padding: 8px 11px;
  font-size: 13px;
}
.button-full {
  width: 100%;
}
.aside {
  min-width: 0;
}
.assistant-card {
  border: 1px solid #e0e4d7;
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px #32442e03;
}
.assistant-head {
  background: var(--forest);
  padding: 19px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.assistant-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.assistant-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b0c49c, #5b805e 60%, #294d36);
  position: relative;
  box-shadow: 0 0 0 4px #ffffff09;
}
.assistant-orb:after {
  content: '';
  width: 16px;
  height: 8px;
  border: 1px solid #edf2d5;
  border-top: 0;
  border-radius: 0 0 20px 20px;
  position: absolute;
  top: 16px;
  left: 9px;
  transform: rotate(-12deg);
}
.assistant-head strong {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  display: block;
  line-height: 1;
}
.assistant-head p {
  font-size: 13px;
  color: #c6d3bc;
  margin-top: 5px;
}
.provider-badge {
  font-size: 12px;
  letter-spacing: 0.3px;
  background: #ffffff13;
  border: 1px solid #ffffff20;
  border-radius: 30px;
  padding: 5px 7px;
}
.chat-transcript {
  min-height: 229px;
  max-height: 435px;
  overflow: auto;
  padding: 17px;
  scroll-behavior: smooth;
}
.chat-entry {
  margin: 0 0 16px;
}
.chat-entry:last-child {
  margin-bottom: 0;
}
.chat-entry-label {
  font-size: 12px;
  color: #9a9d8c;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-entry-body {
  font-size: 15px;
  line-height: 1.8;
  color: #6b7564;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-entry.user .chat-entry-body {
  background: #f0f1e8;
  border-radius: 9px 9px 2px 9px;
  padding: 10px;
  color: var(--ink);
}
.chat-entry.user .chat-entry-label {
  justify-content: end;
}
.chat-entry.assistant:first-child .chat-entry-body {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}
.chat-chips {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 7px;
  padding: 0 17px 16px;
}
.chat-chip {
  font-size: 13px;
  background: #f7f7ef;
  border: 1px solid #e3e7d9;
  color: #7b866c;
  border-radius: 6px;
  padding: 8px 9px;
  text-align: left;
}
.chat-chip:hover {
  background: #eef0e4;
}
.chat-form {
  display: flex;
  gap: 6px;
  margin: 0 14px 13px;
  padding: 6px 6px 6px 11px;
  border: 1px solid #dce2d2;
  border-radius: 9px;
  background: #fafaf4;
}
.chat-form input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  min-width: 0;
  width: 100%;
  padding: 5px 0;
}
.chat-form input::placeholder {
  color: #9da48f;
}
.send-button {
  border: 0;
  width: 29px;
  height: 29px;
  border-radius: 6px;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.assistant-foot {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  font-size: 12px;
  color: #9aa18c;
}
.voice-toggle {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  border: 0;
  background: none;
  color: #7e8e71;
}
.voice-toggle.on {
  color: var(--forest);
}
.help-card {
  border: 1px solid var(--line);
  padding: 19px 17px;
  border-radius: 15px;
  margin-top: 17px;
  background: #f5f1e5;
}
.help-card .eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.help-card h3 {
  font-size: 21px;
  line-height: 1.25;
  max-width: 190px;
}
.help-card p {
  font-size: 14px;
  color: #8b8d76;
  margin: 8px 0 12px;
}
.help-card .text-button {
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.activity-card {
  margin-top: 23px;
  padding: 0 2px;
}
.activity-card .eyebrow {
  font-size: 12px;
}
.activity-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.activity-list li {
  display: flex;
  gap: 9px;
  align-items: start;
  padding: 0 0 13px;
  margin-bottom: 1px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: #7a8270;
}
.activity-list li:before {
  content: '';
  margin-top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b1bc9d;
  flex: none;
}
.activity-list time {
  display: block;
  font-size: 12px;
  color: #a3a795;
  margin-top: 2px;
}
.page-footer {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  line-height: 1.6;
  color: #969b89;
}
.page-footer .footer-leaf {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.session-banner {
  padding: 21px 23px;
  background: #edf0e2;
  border: 1px solid #dce4ce;
  border-radius: 17px;
  margin-bottom: 20px;
}
.session-banner .eyebrow {
  font-size: 12px;
  margin-bottom: 9px;
}
.session-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.session-heading h2 {
  font-size: 31px;
}
.session-heading p {
  font-size: 14px;
  color: #7b876b;
  margin-top: 7px;
}
.status-badge {
  padding: 6px 9px;
  font-size: 12px;
  border: 1px solid #d9e1cd;
  border-radius: 30px;
  background: #f8faf0;
  color: #6b7e56;
  white-space: nowrap;
}
.progress-track {
  height: 5px;
  background: #dde5cf;
  border-radius: 5px;
  margin-top: 19px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--forest);
  border-radius: 5px;
  transition: width 0.4s;
}
.session-progress {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 13px;
  color: #7a866a;
}
.timeline {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 21px 22px;
  margin-bottom: 18px;
}
.timeline-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.timeline-heading h3 {
  font-size: 22px;
}
.timeline-heading .small {
  font-size: 13px;
}
.step-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 11px;
  position: relative;
  padding: 0 0 22px;
}
.step-row:last-child {
  padding-bottom: 0;
}
.step-row:not(:last-child):after {
  content: '';
  position: absolute;
  top: 29px;
  bottom: 4px;
  left: 12px;
  width: 1px;
  background: #e5e9dc;
}
.step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #dce3d0;
  border-radius: 50%;
  font-size: 13px;
  color: #a0a88f;
  background: #f8f9f1;
  z-index: 1;
}
.step-row.completed .step-number {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.step-row.current .step-number {
  background: var(--orange-light);
  border-color: #e4c3a7;
  color: var(--orange);
}
.step-row h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 5px;
}
.step-row p {
  font-size: 14px;
  line-height: 1.7;
  color: #8a917f;
}
.step-row.completed h4 {
  color: #89927b;
}
.step-row .step-time {
  font-size: 13px;
  color: #9a9f8e;
  margin-top: 6px;
  white-space: nowrap;
}
.step-phase {
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f3f2e8;
  color: #8f9278;
  display: inline-block;
  margin-top: 7px;
}
.step-row.current .step-phase {
  background: var(--orange-light);
  color: var(--orange);
}
.portion-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.portion-lane {
  border: 1px solid #e1e5d9;
  border-radius: 12px;
  background: var(--paper);
  padding: 15px;
}
.portion-lane:nth-child(3n + 2) {
  background: #fbf5ee;
  border-color: #eaded0;
}
.portion-lane:nth-child(3n) {
  background: #eff3e8;
  border-color: #e0e6d5;
}
.portion-lane svg {
  color: #7f8d70;
  margin-bottom: 10px;
}
.portion-lane h4 {
  font-size: 15px;
  margin-bottom: 5px;
}
.portion-lane p {
  font-size: 14px;
  color: #8b937e;
  line-height: 1.5;
}
.next-step-card {
  border: 1px solid #dfd4bd;
  background: #f4eddf;
  border-radius: 14px;
  padding: 18px 19px;
  margin-bottom: 18px;
}
.next-step-card .eyebrow {
  color: #a58d62;
  font-size: 12px;
  margin-bottom: 8px;
}
.next-step-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.next-step-card p {
  font-size: 16px;
  color: #8e8068;
  line-height: 1.7;
  margin-bottom: 15px;
}
.next-step-card .button {
  white-space: normal;
}
.alter-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 19px;
  margin-bottom: 20px;
}
.alter-card h3 {
  font-size: 21px;
}
.alter-card > p {
  font-size: 14px;
  color: var(--muted);
  margin: 7px 0 14px;
}
.inline-form {
  display: flex;
  align-items: end;
  gap: 9px;
  flex-wrap: wrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 100px;
}
.field label {
  font-size: 13px;
  color: #7d8770;
}
.field input,
.field select {
  border: 1px solid #dfe3d7;
  border-radius: 8px;
  background: #fafaf3;
  padding: 10px 11px;
  color: var(--ink);
  font-size: 15px;
  width: 100%;
  min-width: 0;
}
.field select {
  padding-right: 22px;
}
.notice {
  font-size: 14px;
  line-height: 1.7;
  padding: 12px 14px;
  border-radius: 9px;
  background: #eff2e6;
  color: #7c886c;
  margin: 14px 0;
}
.notice.warm {
  background: #f6eadb;
  color: #997a57;
}
.pantry-summary {
  display: flex;
  gap: 20px;
  margin: 17px 0 25px;
  padding: 17px 19px;
  background: #edefe3;
  border-radius: 13px;
  border: 1px solid #e2e6d6;
}
.pantry-summary strong {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  display: block;
  line-height: 1.1;
}
.pantry-summary span {
  font-size: 13px;
  color: #8b947d;
  display: block;
  margin-top: 5px;
}
.pantry-group {
  margin-bottom: 25px;
}
.pantry-group h3 {
  font-size: 22px;
  margin-bottom: 13px;
}
.pantry-table {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  overflow: hidden;
}
.pantry-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 90px 40px 47px;
  gap: 10px;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid #efeee5;
}
.pantry-row:last-child {
  border-bottom: 0;
}
.ingredient-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eff1e3;
  color: #8f9c74;
  display: grid;
  place-items: center;
}
.pantry-row:nth-child(3n + 2) .ingredient-icon {
  background: #f6e7d8;
  color: #bc9370;
}
.pantry-name {
  font-size: 15px;
  font-weight: 500;
}
.pantry-row input {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #faf9f3;
  color: var(--ink);
  font-size: 15px;
}
.pantry-row .pantry-unit {
  font-size: 13px;
  color: var(--muted);
}
.pantry-save {
  padding: 7px 5px;
  border-radius: 6px;
  border: 1px solid #dfe5d6;
  background: #f0f3e8;
  color: #617650;
  font-size: 13px;
}
.history-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}
.stat-card strong {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  display: block;
}
.stat-card span {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.history-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  padding: 16px 17px;
  margin: 10px 0;
  display: flex;
  gap: 13px;
  align-items: center;
}
.history-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #edf0e1;
  display: grid;
  place-items: center;
  color: #8b9b72;
  flex: none;
}
.history-item h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.history-item p {
  font-size: 14px;
  color: var(--muted);
}
.history-item .history-date {
  font-size: 12px;
  color: #949c87;
  margin-left: auto;
  text-align: right;
  line-height: 1.6;
}
.forecast-form {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 15px;
  padding: 22px;
  margin: 23px 0;
}
.forecast-form h3 {
  font-size: 23px;
  margin-bottom: 8px;
}
.forecast-form > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 17px;
}
.checkbox-label {
  display: flex;
  gap: 9px;
  align-items: start;
  font-size: 14px;
  line-height: 1.6;
  color: #7e896f;
  margin: 16px 0;
}
.checkbox-label input {
  accent-color: var(--forest);
  width: 15px;
  height: 15px;
  flex: none;
  margin: 1px 0 0;
}
.forecast-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 25px 0 14px;
}
.forecast-head h3 {
  font-size: 23px;
}
.forecast-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.grocery-list {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
}
.grocery-list-head {
  padding: 17px 16px;
  background: #edf0e4;
  border-bottom: 1px solid #e0e5d6;
}
.grocery-list.fresh .grocery-list-head {
  background: #f5eadc;
  border-bottom-color: #ebdfce;
}
.grocery-list-head .eyebrow {
  font-size: 12px;
  margin-bottom: 7px;
}
.grocery-list-head h3 {
  font-size: 21px;
}
.grocery-list-head p {
  font-size: 13px;
  color: #8b947b;
  margin-top: 6px;
}
.grocery-row {
  padding: 12px 15px;
  border-bottom: 1px solid #eeeee4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.grocery-row:last-child {
  border-bottom: 0;
}
.grocery-row h4 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}
.grocery-row .grocery-reason {
  font-size: 13px;
  line-height: 1.6;
  color: #9a9e8b;
  margin-top: 4px;
}
.grocery-quantity {
  font-size: 14px;
  white-space: nowrap;
  padding-top: 2px;
  font-weight: 600;
  color: #7b8868;
}
.forecast-notes {
  padding-left: 17px;
  color: #8a937d;
  font-size: 14px;
  line-height: 1.8;
  margin: 12px 0 18px;
}
.empty-state {
  padding: 35px 24px;
  border: 1px dashed #d9dfce;
  border-radius: 16px;
  text-align: center;
  background: #f5f5eb;
  margin: 20px 0;
}
.empty-state svg {
  margin: 0 auto 14px;
  color: #9ba98a;
}
.empty-state h3 {
  font-size: 24px;
  margin-bottom: 9px;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
  max-width: 360px;
  margin: 0 auto 15px;
}
.completed-card {
  padding: 28px;
  border: 1px solid #dce5ce;
  border-radius: 18px;
  background: #edf3e2;
  margin-bottom: 22px;
}
.completed-card svg {
  color: #768f5b;
  margin-bottom: 15px;
}
.completed-card h2 {
  font-size: 32px;
  margin-bottom: 11px;
}
.completed-card p {
  font-size: 15px;
  color: #7f8d6d;
  margin-bottom: 17px;
  max-width: 450px;
}
.toast-region {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, calc(100% - 32px));
  z-index: 30;
  pointer-events: none;
}
.toast {
  padding: 13px 17px;
  border: 1px solid #ffffff25;
  border-radius: 11px;
  background: var(--forest);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 25px #1a2f2b25;
  margin-top: 8px;
  animation: toast-in 0.2s ease;
  line-height: 1.5;
}
.toast.error {
  background: #8e4d38;
}
.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}
.boot-screen .brand-mark {
  margin-bottom: 25px;
  width: 48px;
  height: 52px;
  font-size: 45px;
}
.boot-screen h1 {
  font-size: 35px;
  margin-bottom: 12px;
}
.boot-screen p {
  font-size: 15px;
  color: var(--muted);
  max-width: 450px;
  margin-bottom: 22px;
}
.loading-line {
  width: 130px;
  height: 3px;
  background: linear-gradient(90deg, #dfe5d2 15%, #7f9670 50%, #dfe5d2 85%);
  background-size: 200%;
  border-radius: 3px;
  animation: loading 1.5s infinite linear;
}
.reset-dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  padding: 30px;
  width: min(450px, calc(100% - 36px));
  box-shadow: 0 20px 80px #0002;
}
.reset-dialog::backdrop {
  background: #1a2f2570;
  backdrop-filter: blur(4px);
}
.reset-dialog h2 {
  margin: 12px 0;
  font-size: 30px;
}
.reset-dialog p {
  font-size: 14px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: end;
  margin-top: 25px;
}
.mobile-assistant-close {
  display: none;
}
.spinning {
  animation: spin 1.2s linear infinite;
}
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes loading {
  to {
    background-position: -200% 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1550px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 35px;
    padding: 36px 45px;
  }
  .hero-card {
    min-height: 265px;
  }
  .hero-art {
    right: 25px;
    width: 265px;
    height: 265px;
  }
  .dish-art {
    height: 150px;
  }
  .dish-art svg {
    width: 150px;
    height: 150px;
  }
  .chat-transcript {
    min-height: 280px;
  }
  .hero-copy {
    width: 65%;
  }
}
@media (max-width: 1220px) {
  .app-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding: 27px 15px 20px;
  }
  .brand {
    font-size: 30px;
  }
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 19px;
    padding: 28px 24px;
  }
  .topbar {
    padding: 22px 25px;
  }
  .hero-card {
    padding: 25px 22px;
  }
  .hero-card h2 {
    font-size: 31px;
  }
  .hero-art {
    right: -25px;
    width: 218px;
    height: 218px;
  }
  .hero-copy {
    width: 68%;
  }
  .dish-info {
    padding: 12px 10px;
  }
  .dish-info h3 {
    font-size: 17px;
  }
  .feature-item {
    gap: 7px;
  }
  .feature-icon {
    width: 27px;
    height: 27px;
  }
  .feature-item strong {
    font-size: 13px;
  }
  .feature-item p {
    font-size: 12px;
  }
  .portion-builder {
    gap: 7px;
  }
  .portion-field {
    padding: 9px;
  }
  .today-stamp {
    display: none;
  }
  .builder-footer {
    align-items: end;
  }
  .builder-footer p {
    max-width: 180px;
  }
  .builder-footer .button {
    font-size: 14px;
    padding: 11px 12px;
  }
  .chat-transcript {
    padding: 15px;
  }
  .assistant-head {
    padding: 17px 15px;
  }
  .assistant-head strong {
    font-size: 20px;
  }
  .forecast-lists {
    gap: 10px;
  }
}
@media (max-width: 1060px) {
  .app-shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 850px;
    padding: 28px 28px;
  }
  .aside {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 17px;
    align-items: start;
  }
  .assistant-card {
    grid-row: span 2;
  }
  .help-card {
    margin: 0;
  }
  .activity-card {
    margin-top: 0;
  }
  .chat-transcript {
    max-height: 290px;
    min-height: 190px;
  }
  .hero-art {
    right: 17px;
    width: 250px;
    height: 250px;
    top: 4px;
  }
  .hero-copy {
    width: 62%;
  }
  .hero-card {
    min-height: 247px;
  }
  .hero-card h2 {
    font-size: 35px;
  }
  .dish-art {
    height: 143px;
  }
  .dish-art svg {
    height: 143px;
    width: 143px;
  }
  .hero-card p {
    max-width: 270px;
  }
  .topbar-right {
    gap: 10px;
  }
  .topbar {
    padding: 20px 28px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    padding: 13px 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
    background: #f8f8f1fa;
    backdrop-filter: blur(12px);
  }
  .brand {
    font-size: 28px;
    gap: 8px;
  }
  .brand-mark {
    width: 29px;
    height: 32px;
    font-size: 29px;
    border-radius: 9px 9px 13px 9px;
  }
  .sidebar-subtitle {
    position: absolute;
    right: 18px;
    top: 25px;
    margin: 0;
    font-size: 12px;
    letter-spacing: 1px;
  }
  .nav {
    flex-direction: row;
    gap: 3px;
    margin-top: 12px;
    overflow: auto;
    scrollbar-width: none;
    justify-content: space-between;
  }
  .nav-item {
    width: auto;
    flex: 1;
    justify-content: center;
    padding: 12px 8px;
    font-size: 13px;
    gap: 7px;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
  }
  .nav-item svg {
    width: 14px;
    height: 14px;
  }
  .nav-item.active {
    box-shadow: inset 0 -2px var(--forest);
    background: #e7ecdf80;
  }
  .nav-dot {
    display: none;
  }
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    padding: 13px 20px;
    min-height: 53px;
  }
  .breadcrumbs {
    font-size: 12px;
  }
  .topbar-right {
    gap: 8px;
  }
  .simulation-pill {
    font-size: 12px;
    padding: 6px 8px;
  }
  .assistant-toggle {
    font-size: 13px;
    gap: 4px;
  }
  .page-layout {
    padding: 24px 20px 28px;
    gap: 24px;
    max-width: 720px;
  }
  .welcome-row {
    margin-bottom: 19px;
  }
  .welcome-row .eyebrow {
    font-size: 12px;
  }
  .welcome-row p {
    font-size: 14px;
  }
  h1 {
    font-size: 37px;
  }
  .hero-card {
    padding: 24px 22px;
    min-height: 240px;
  }
  .hero-card h2 {
    font-size: 31px;
  }
  .hero-art {
    width: 220px;
    height: 220px;
    right: -12px;
    top: 15px;
  }
  .hero-copy {
    width: 65%;
  }
  .hero-card p {
    max-width: 230px;
    font-size: 14px;
  }
  .floating-label {
    font-size: 12px;
    right: 12px;
    bottom: 15px;
    padding: 8px 9px;
  }
  .feature-strip {
    gap: 8px;
    padding: 18px 0;
    margin-bottom: 23px;
  }
  .dish-grid {
    gap: 10px;
  }
  .dish-art {
    height: 128px;
  }
  .dish-art svg {
    width: 128px;
    height: 128px;
  }
  .dish-info h3 {
    font-size: 17px;
  }
  .dish-desc {
    font-size: 14px;
  }
  .dish-tag {
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .portion-builder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .aside {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .page-footer {
    font-size: 12px;
  }
  .forecast-lists {
    grid-template-columns: 1fr 1fr;
  }
  .grocery-list-head {
    padding: 16px 12px;
  }
  .grocery-list-head h3 {
    font-size: 20px;
  }
  .grocery-row {
    padding: 11px 12px;
  }
  .session-banner {
    padding: 20px;
  }
  .timeline {
    padding: 20px;
  }
  .portion-lane {
    padding: 13px;
  }
  .portion-lane h4 {
    font-size: 14px;
  }
  .portion-lane p {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .page-layout {
    padding: 22px 16px 28px;
  }
  .sidebar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar {
    padding-left: 17px;
    padding-right: 17px;
  }
  .breadcrumbs {
    gap: 5px;
  }
  .simulation-pill {
    font-size: 12px;
  }
  .assistant-toggle {
    font-size: 0;
  }
  .assistant-toggle svg {
    width: 18px;
    height: 18px;
  }
  .nav-item {
    gap: 5px;
    font-size: 12px;
    padding: 12px 6px;
  }
  .nav-item svg {
    width: 13px;
    height: 13px;
  }
  .welcome-row h1 {
    font-size: 35px;
  }
  .hero-card {
    padding: 22px 19px;
    min-height: 245px;
  }
  .hero-copy {
    width: 68%;
  }
  .hero-card h2 {
    font-size: 29px;
  }
  .hero-card p {
    max-width: 191px;
    font-size: 14px;
    line-height: 1.7;
  }
  .hero-art {
    right: -54px;
    top: 33px;
    width: 215px;
    height: 215px;
    opacity: 0.93;
  }
  .hero-card .eyebrow {
    font-size: 12px;
    letter-spacing: 1.1px;
  }
  .hero-card .button {
    font-size: 14px;
    padding: 10px 11px;
  }
  .floating-label {
    right: 10px;
    bottom: 16px;
    font-size: 12px;
    max-width: 140px;
  }
  .feature-icon {
    width: 25px;
    height: 25px;
    border-radius: 8px;
  }
  .feature-icon svg {
    width: 13px;
    height: 13px;
  }
  .feature-item {
    align-items: start;
    gap: 5px;
  }
  .feature-item strong {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 3px;
  }
  .feature-item p {
    font-size: 12px;
    line-height: 1.5;
  }
  .dish-grid {
    gap: 7px;
  }
  .dish-art {
    height: 99px;
  }
  .dish-art svg {
    width: 104px;
    height: 104px;
  }
  .dish-info {
    padding: 11px 8px;
  }
  .dish-info h3 {
    font-size: 16px;
    line-height: 1.15;
    min-height: 36px;
    margin-bottom: 5px;
  }
  .dish-desc {
    display: none;
  }
  .dish-meta {
    font-size: 12px;
  }
  .dish-tag {
    font-size: 12px;
    padding: 3px 5px;
    margin-top: 7px;
  }
  .dish-choose {
    width: 17px;
    height: 17px;
    top: 6px;
    right: 6px;
  }
  .dish-choose svg {
    width: 11px;
    height: 11px;
  }
  .plan-builder {
    padding: 16px;
  }
  .builder-top h3 {
    font-size: 20px;
  }
  .builder-top p {
    font-size: 14px;
    max-width: 170px;
  }
  .portion-builder {
    grid-template-columns: 1fr;
  }
  .portion-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    align-items: center;
    padding: 10px;
  }
  .portion-field label {
    display: none;
  }
  .portion-name {
    margin-bottom: 0;
    font-size: 15px !important;
    padding: 6px 0 !important;
  }
  .portion-field select {
    font-size: 14px;
  }
  .builder-footer {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
  }
  .builder-footer p {
    max-width: none;
    font-size: 14px;
  }
  .builder-footer .button {
    width: 100%;
    font-size: 15px;
  }
  .section-heading {
    gap: 8px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .section-heading p {
    font-size: 14px;
  }
  .section-heading > .small {
    font-size: 12px;
  }
  .aside {
    display: block;
  }
  .assistant-card {
    margin-bottom: 17px;
  }
  .chat-transcript {
    min-height: 130px;
    max-height: 320px;
  }
  .chat-chips {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .chat-chip {
    font-size: 13px;
  }
  .help-card {
    margin-bottom: 22px;
  }
  .help-card h3 {
    max-width: none;
  }
  .activity-card {
    margin-top: 22px;
  }
  .help-card p {
    max-width: 300px;
  }
  .page-footer {
    gap: 9px;
  }
  .footer-leaf {
    display: none !important;
  }
  .portion-lanes {
    gap: 7px;
  }
  .portion-lane {
    padding: 11px 8px;
  }
  .portion-lane svg {
    width: 17px;
    height: 17px;
    margin-bottom: 8px;
  }
  .portion-lane p {
    font-size: 13px;
  }
  .portion-lane h4 {
    font-size: 13px;
  }
  .session-heading h2 {
    font-size: 28px;
  }
  .session-heading p {
    font-size: 14px;
  }
  .session-banner {
    padding: 18px;
  }
  .status-badge {
    font-size: 12px;
    padding: 5px 7px;
  }
  .timeline {
    padding: 18px 15px;
  }
  .step-row {
    gap: 9px;
    grid-template-columns: 25px minmax(0, 1fr) auto;
  }
  .step-row h4 {
    font-size: 15px;
  }
  .step-row p {
    font-size: 14px;
  }
  .step-row .step-time {
    font-size: 12px;
  }
  .alter-card {
    padding: 17px;
  }
  .inline-form .button {
    flex: 1;
  }
  .forecast-lists {
    grid-template-columns: 1fr;
  }
  .forecast-form {
    padding: 18px;
  }
  .forecast-form h3 {
    font-size: 22px;
  }
  .forecast-head h3 {
    font-size: 21px;
  }
  .pantry-row {
    padding: 11px 10px;
    gap: 8px;
    grid-template-columns: 27px minmax(0, 1fr) 64px 29px 37px;
  }
  .ingredient-icon {
    width: 25px;
    height: 25px;
  }
  .pantry-name {
    font-size: 14px;
  }
  .pantry-unit {
    font-size: 12px !important;
  }
  .pantry-row input {
    padding: 7px 5px;
    font-size: 14px;
  }
  .pantry-save {
    font-size: 12px;
    padding: 6px 2px;
  }
  .history-stats {
    gap: 8px;
  }
  .stat-card {
    padding: 14px 11px;
  }
  .stat-card strong {
    font-size: 25px;
  }
  .stat-card span {
    font-size: 12px;
  }
  .history-item {
    padding: 14px 12px;
    gap: 10px;
  }
  .history-icon {
    width: 34px;
    height: 34px;
  }
  .history-item h3 {
    font-size: 17px;
  }
  .history-item p {
    font-size: 14px;
  }
  .history-item .history-date {
    font-size: 12px;
  }
  .completed-card {
    padding: 23px;
  }
  .completed-card h2 {
    font-size: 29px;
  }
  .dialog-actions {
    flex-direction: column-reverse;
  }
  .reset-dialog {
    padding: 25px;
  }
  .reset-dialog h2 {
    font-size: 27px;
  }
  .reset-dialog .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Shopping list */
.shortage-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
}
.shortage-notice p {
  margin: 0;
  flex: 1 1 260px;
}
.shopping-list-card {
  margin: 20px 0 22px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.shopping-list-card h3 {
  margin: 0 0 4px;
}
.shopping-list-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.shopping-items {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.shopping-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.list-item-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.list-item-text strong {
  font-weight: 600;
}
.list-qty {
  font-weight: 600;
  white-space: nowrap;
}
.list-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1.5px solid var(--forest);
  border-radius: 7px;
  background: var(--white);
  color: var(--white);
}
.list-check[aria-pressed='true'] {
  background: var(--forest);
}
.list-remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.list-remove:hover {
  background: var(--sage);
}
.shopping-items li.bought .list-item-text strong,
.shopping-items li.bought .list-qty {
  color: var(--muted);
  text-decoration: line-through;
}

/* Shown while Bedrock is unavailable and the offline parser answers. */
.provider-badge.offline {
  background: var(--orange-light);
  color: var(--orange);
  border-color: transparent;
}

/* The voice and AI switches sit side by side in the assistant header. */
.assistant-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.provider-badge.gemini {
  background: #e7eefb;
  color: #2f5aa8;
  border-color: transparent;
}

/* Saved family tastes in the assistant column. */
.tastes-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.tastes-card h3 {
  margin: 6px 0 4px;
}
.taste-people {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.taste-people li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.taste-people strong {
  min-width: 48px;
}
.taste-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.taste-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
}
.taste-chip.favourite {
  border-color: var(--forest);
  background: var(--sage);
}
.taste-name,
.taste-remove {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.taste-name {
  padding: 4px 4px 4px 10px;
}
.taste-chip:not(:has(.taste-remove)) .taste-name {
  padding-right: 10px;
}
.taste-remove {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 2px;
  border-radius: 50%;
  color: var(--muted);
}
.taste-remove:hover {
  background: var(--sage);
}
.taste-add {
  padding: 3px 8px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
}
