:root {
  --paper: #f8f7f2;
  --white: #fff;
  --ink: #223b30;
  --muted: #7b8278;
  --green: #284e3c;
  --pale: #e9eee6;
  --line: #e1e4da;
  --accent: #da774e;
  --serif: Georgia, "Songti SC", "STSong", serif;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
input,
select,
textarea {
  color: var(--ink);
}
.header {
  max-width: 1280px;
  height: 104px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 2px;
  white-space: nowrap;
}
.brand-mark {
  font-family: var(--serif);
  background: var(--green);
  color: var(--paper);
  font-size: 30px;
  width: 46px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px 18px 5px 5px;
  font-weight: 400;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 6px;
  font-weight: 500;
}
.header nav {
  display: flex;
  gap: 32px;
  height: 100%;
  align-items: center;
}
.header nav button {
  height: 100%;
  position: relative;
  color: var(--muted);
  font-size: 14px;
  padding: 0 4px;
}
.header nav button.active {
  color: var(--green);
  font-weight: 650;
}
.header nav button.active:after {
  content: "";
  position: absolute;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.profile {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.profile span {
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  font-size: 21px;
}
main {
  max-width: 1280px;
  padding: 0 48px 40px;
  margin: auto;
  min-height: 70vh;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  font-weight: 600;
  color: #748471;
  display: flex;
  align-items: center;
  gap: 12px;
}
.little-line {
  width: 22px;
  height: 1px;
  background: #748471;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 450px;
  align-items: center;
  gap: 20px;
  padding: 38px 0 40px;
}
.hero h1 {
  font: 500 58px/1.25 var(--serif);
  letter-spacing: 2px;
  margin: 23px 0;
}
.hero h1 span,
.page-intro h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
  margin: 0 0 24px;
}
.primary,
.outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 14px 22px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
  min-height: 44px;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover:not(:disabled) {
  background: #3b654e;
  transform: translateY(-1px);
}
.outline {
  border: 1px solid #cbd3c6;
  background: transparent;
}
.outline:hover:not(:disabled) {
  background: var(--pale);
}
.text-button {
  font-size: 12px;
  text-decoration: none;
  padding: 3px;
}
.text-button:hover {
  text-decoration: underline;
}
.hero-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 19px;
  flex-wrap: wrap;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9ba66b;
}
.food-art {
  height: 360px;
  position: relative;
  background: radial-gradient(
    ellipse at center,
    #e5e9dc 0,
    #eeeee5 45%,
    transparent 71%
  );
  isolation: isolate;
}
.plate {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  position: absolute;
  right: 26px;
  top: 50px;
  background: #f4f0e3;
  border: 12px solid #fffdf5;
  box-shadow:
    10px 20px 35px #344d3424,
    inset 0 0 0 3px #e4dfcd,
    inset 0 0 0 15px #f9f6eb;
  transform: rotate(-15deg);
}
.plate:after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid #e5dfcc;
  border-radius: 50%;
}
.rice {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: repeating-linear-gradient(40deg, #f9f2da 0 3px, #fff9e8 3px 5px);
  left: 22px;
  top: 34px;
  box-shadow: inset 0 -5px 12px #b9a57828;
  font-size: 45px;
  display: grid;
  place-items: center;
}
.greens {
  font-size: 87px;
  position: absolute;
  right: 15px;
  top: 30px;
  filter: drop-shadow(2px 5px 3px #41583820);
  transform: rotate(15deg);
}
.tomatoes {
  font-size: 73px;
  position: absolute;
  left: 40px;
  bottom: 5px;
}
.protein {
  font-size: 87px;
  position: absolute;
  right: 15px;
  bottom: 12px;
  transform: rotate(15deg);
}
.chopstick {
  height: 310px;
  width: 6px;
  background: linear-gradient(90deg, #b49a74, #d2b790);
  position: absolute;
  right: 6px;
  top: 53px;
  transform: rotate(16deg);
  border-radius: 3px;
}
.chopstick.two {
  right: -7px;
}
.art-note {
  position: absolute;
  top: 12px;
  left: 10px;
  z-index: 3;
  background: #faf9f0e6;
  padding: 16px 18px;
  border: 1px solid #e1e3d5;
  transform: rotate(-6deg);
  box-shadow: 1px 3px 12px #17381906;
}
.art-note span {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  color: #879179;
  margin-bottom: 9px;
}
.art-note b {
  font: 400 16px/1.7 var(--serif);
}
.art-leaf {
  position: absolute;
  left: 28px;
  bottom: 20px;
  font-size: 60px;
  color: #7c906746;
  transform: rotate(15deg);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font: 500 28px/1.4 var(--serif);
  margin: 10px 0 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #eeeee7;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 13px;
  width: 265px;
  height: 40px;
}
.search:focus-within {
  border-color: #8c9f88;
}
.search span {
  font-size: 25px;
  color: #82917b;
}
.search input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 12px;
  outline: 0;
}
.search input::placeholder {
  color: #979d92;
}
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pill {
  padding: 9px 16px;
  border-radius: 5px;
  color: #7c8777;
  font-size: 12px;
}
.pill.selected {
  background: #e5ecdf;
  color: #355338;
  font-weight: 600;
}
.pill:hover {
  background: #eceee5;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}
.recipe-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e8e9df;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #273a2710;
}
.recipe-art {
  width: 100%;
  height: 168px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.tone-0 {
  background: #e7ecd9;
}
.tone-1 {
  background: #efe5d6;
}
.tone-2 {
  background: #e3ece7;
}
.tone-3 {
  background: #f1e7dc;
}
.tone-4 {
  background: #e9e6d5;
}
.dish-emoji {
  font-size: 68px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(3px 6px 5px #31472e1b);
  transition: transform 0.3s;
}
.recipe-art:hover .dish-emoji {
  transform: scale(1.08) rotate(-5deg);
}
.art-ring {
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #fffff4c9;
  box-shadow:
    0 5px 12px #3b503b10,
    inset 0 0 0 7px #ffffff8c;
}
.season-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  background: #ffffffc9;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 9px;
  color: #567153;
  letter-spacing: 0.5px;
}
.favorite {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 21px;
  background: #ffffffc9;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  line-height: 1;
}
.favorite.liked {
  color: #c67655;
}
.recipe-body {
  padding: 17px 15px 14px;
}
.recipe-title {
  font-size: 15px;
  font-weight: 600;
  display: block;
  padding: 0;
  text-align: left;
  line-height: 1.5;
}
.recipe-body p {
  font-size: 10px;
  color: #879080;
  margin: 7px 0 15px;
}
.recipe-body p span {
  color: #99a091;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  padding-top: 11px;
  border-top: 1px solid #f0f0e8;
}
.card-bottom .small {
  font-size: 10px;
}
.pick {
  font-size: 11px;
  background: #f0f3ea;
  color: #526c48;
  padding: 6px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.pick.picked {
  background: var(--green);
  color: white;
}
.load-more {
  text-align: center;
  padding: 30px 0 10px;
}
.content-note {
  font-size: 10px;
  color: #919789;
  line-height: 1.8;
  margin: 22px 0;
}
.selection-bar {
  position: sticky;
  bottom: 20px;
  margin: 24px 0 0;
  box-shadow: 0 6px 28px #2e48261a;
  border: 1px solid #dfe4d7;
  background: #fffffbf2;
  backdrop-filter: blur(12px);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  gap: 14px;
  z-index: 5;
}
.selection-bar > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.selection-icon {
  font-size: 35px;
  color: #698361;
}
.selection-bar strong {
  font-size: 13px;
  font-weight: 600;
}
.selection-bar small {
  display: block;
  color: #939a8c;
  font-size: 10px;
  margin-top: 6px;
}
footer {
  max-width: 1280px;
  padding: 28px 48px;
  border-top: 1px solid var(--line);
  margin: auto;
  display: flex;
  justify-content: space-between;
  color: #8c9486;
  font-size: 10px;
  gap: 20px;
}
.page-intro {
  padding: 54px 0 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.page-intro h1 {
  font: 500 42px/1.4 var(--serif);
  margin: 15px 0 12px;
}
.page-intro p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
}
.plan-hint {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #e9eee3;
  border-radius: 7px;
  padding: 15px 18px;
  color: #6d7d61;
  font-size: 11px;
  margin-bottom: 24px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.day-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}
.day-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf0e7;
  padding-bottom: 14px;
  margin-bottom: 5px;
  gap: 12px;
}
.day-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.day-number {
  font: 36px var(--serif);
  color: #96a38b;
}
.day-heading strong {
  font-size: 13px;
  font-weight: 600;
}
.day-heading small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.planned-dish {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f2f3ed;
}
.planned-dish:last-child {
  border: 0;
  padding-bottom: 0;
}
.dish-thumb {
  height: 49px;
  width: 49px;
  border-radius: 9px;
  font-size: 29px;
  flex: none;
  display: grid;
  place-items: center;
}
.dish-info {
  flex: 1;
  min-width: 0;
}
.dish-info .recipe-title {
  font-size: 13px;
}
.dish-info small {
  display: block;
  font-size: 10px;
  color: #93a087;
  margin-top: 4px;
}
.dish-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}
.dish-controls .text-button {
  font-size: 10px;
  color: #6c8162;
  white-space: nowrap;
}
.icon-button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #b5bcae;
  font-size: 17px;
}
.icon-button.locked {
  background: #edf1e6;
  font-size: 13px;
}
.closing-card {
  margin-top: 30px;
  background: #e8ecdf;
  border-radius: 10px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.closing-card h2 {
  font: 25px var(--serif);
  margin: 0 0 10px;
}
.closing-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.notice {
  padding: 14px 16px;
  background: #f4eadb;
  border: 1px solid #e9dcc8;
  color: #8b714d;
  font-size: 12px;
  line-height: 1.8;
  border-radius: 6px;
  margin-bottom: 20px;
}
.notice.subtle {
  background: #f4f5ef;
  color: #7d8774;
  border-color: #e7eadf;
}
.shopping-layout {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: 60px;
}
.shopping-aside {
  padding: 25px 0;
  color: #788571;
}
.basket-art {
  font-size: 75px;
  margin-bottom: 20px;
}
.shopping-aside h2 {
  font: 500 28px/1.6 var(--serif);
  color: var(--ink);
}
.shopping-aside p {
  font-size: 13px;
  line-height: 2;
}
.shopping-aside .small {
  font-size: 11px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.progress-card {
  text-align: right;
}
.progress-card strong {
  font: 44px var(--serif);
}
.progress-card strong span {
  font-size: 23px;
  color: #a0ac97;
}
.progress-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.shopping-list {
  padding-bottom: 20px;
}
.field-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.field-inline select {
  background: white;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 5px;
}
.shopping-group {
  margin-bottom: 24px;
}
.shopping-group h3 {
  font-size: 14px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #d8dfd2;
}
.shopping-group h3 span {
  font: 12px var(--serif);
  color: #98a48e;
  margin-left: 10px;
}
.shopping-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e9eade;
}
.check-button {
  flex: none;
  width: 21px;
  height: 21px;
  border: 1px solid #c6d0ba;
  border-radius: 50%;
  font-size: 13px;
  display: grid;
  place-items: center;
  padding: 0;
}
.checked .check-button {
  background: #65815a;
  color: white;
  border-color: #65815a;
}
.checked .shopping-name strong {
  text-decoration: line-through;
  color: #9eaa95;
}
.shopping-name {
  flex: 1;
}
.shopping-name strong {
  font-size: 14px;
  font-weight: 500;
  display: block;
}
.shopping-name .text-button {
  font-size: 10px;
  padding: 0;
  margin-top: 6px;
}
.quantity {
  text-align: right;
  font-family: var(--serif);
  font-size: 19px;
}
.quantity span {
  font:
    11px -apple-system,
    sans-serif;
  color: var(--muted);
  margin-left: 4px;
}
.quantity small {
  display: block;
  color: #c37c4e;
  font-size: 10px;
  margin-top: 5px;
}
.empty {
  text-align: center;
  padding: 100px 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}
.empty-icon {
  font-size: 65px;
}
.empty h1,
.empty h2 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 10px 0;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.empty.compact {
  padding: 40px 0;
}
.loading-line {
  width: 170px;
  height: 3px;
  background: #d8e0d2;
  overflow: hidden;
}
.loading-line:after {
  content: "";
  display: block;
  background: var(--green);
  height: 100%;
  width: 40%;
  animation: loading 1s infinite alternate;
}
@keyframes loading {
  to {
    transform: translateX(150%);
  }
}
dialog {
  border: 1px solid #e4e7db;
  border-radius: 14px;
  padding: 36px;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 88vh;
  overflow: auto;
  color: var(--ink);
  background: #fdfdf8;
  box-shadow: 0 24px 80px #13261835;
}
dialog::backdrop {
  background: #17281a61;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font: 500 28px/1.5 var(--serif);
  margin: 13px 20px 16px 0;
}
dialog h3 {
  font-size: 15px;
  margin: 25px 0 15px;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
}
.dialog-close {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 30px;
  height: 30px;
  font-size: 24px;
  color: #86917d;
}
.detail-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0;
}
.detail-heading > span {
  font-size: 60px;
  background: #edf0e1;
  border-radius: 12px;
  padding: 12px;
}
.detail-heading h2 {
  margin: 0;
}
.detail-heading p {
  margin: 7px 0;
  color: var(--muted);
}
.ingredient-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.ingredient-list > div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.ingredient-list strong {
  font-weight: 400;
  color: var(--muted);
}
.steps {
  padding-left: 21px;
  font-size: 13px;
  line-height: 1.9;
}
.steps li {
  padding-left: 7px;
  margin-bottom: 12px;
}
.steps li::marker {
  color: #b17950;
}
.full {
  width: 100%;
  margin-top: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}
form label {
  font-size: 12px;
  color: #6c7a62;
}
form select,
form input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  padding: 12px;
  background: white;
  border: 1px solid #dce2d4;
  border-radius: 5px;
  margin-top: 8px;
  font-size: 13px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0;
}
legend {
  font-size: 12px;
  color: #6c7a62;
  padding: 0;
  margin-bottom: 10px;
}
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 15px 4px 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.8;
}
.check-label input {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
}
.check-grid {
  display: flex;
  flex-wrap: wrap;
}
.block-field {
  display: block;
  margin: 20px 0;
}
.block-field small {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: #929d89;
  margin-top: 7px;
}
.summary-box {
  background: #f0f2e9;
  padding: 12px 18px;
  border-radius: 7px;
  margin: 18px 0;
}
.summary-box p {
  line-height: 1.8;
  color: #7b886e;
}
.alternatives {
  display: flex;
  flex-direction: column;
}
.alternatives button {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.alternative-emoji {
  font-size: 33px;
  width: 50px;
  height: 50px;
  background: #edf0e3;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.alternatives button > span:nth-child(2) {
  flex: 1;
}
.alternatives strong {
  font-size: 14px;
  font-weight: 500;
}
.alternatives small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.source-list {
  font-size: 13px;
  line-height: 2.4;
  color: #77836f;
}
.copy-text {
  height: 300px;
  font-size: 13px;
  line-height: 2;
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translate(-50%, 12px);
  max-width: min(90vw, 520px);
  background: #233c30f5;
  color: white;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 13px;
  line-height: 1.8;
  box-shadow: 0 8px 30px #1c33152b;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 1000;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-nav {
  display: none;
}
.ai-layout {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 26px;
}
.ai-controls,
.ai-output {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
}
.ai-mode {
  display: flex;
  background: var(--pale);
  border-radius: 8px;
  padding: 4px;
}
.ai-mode button {
  flex: 1;
  padding: 11px 5px;
  font-size: 13px;
  border-radius: 7px;
}
.ai-mode button.selected {
  background: var(--white);
  color: var(--green);
  font-weight: 650;
  box-shadow: 0 2px 8px #243f3017;
}
.ai-picks {
  margin: 22px 0;
  font-size: 13px;
}
.ai-ingredient-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ai-ingredient {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f7f8f3;
  padding: 8px 12px;
  font-size: 12px;
}
.ai-ingredient.selected {
  color: var(--green);
  border-color: var(--green);
  background: #e5ede4;
}
.ai-output h2 {
  font: 26px var(--serif);
}
.ai-recipe-card,
.ai-day {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
.ai-recipe-card h3,
.ai-day h3 {
  margin: 0 0 9px;
  color: var(--green);
}
.ai-recipe-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 25px;
  font-size: 13px;
  line-height: 1.8;
}
.ai-recipe-body ul,
.ai-recipe-body ol {
  padding-left: 20px;
}
.ai-meal h4 {
  margin: 16px 0 9px;
}
.ai-meal details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.ai-meal summary {
  cursor: pointer;
  font-size: 13px;
}
.ai-meal summary small {
  color: var(--muted);
  margin-left: 8px;
}
@media (min-width: 1400px) {
  .hero {
    min-height: 490px;
  }
  .hero h1 {
    font-size: 64px;
  }
  .food-art {
    transform: scale(1.07);
  }
}
@media (max-width: 1000px) {
  .ai-layout {
    grid-template-columns: 1fr;
  }
  .header,
  main,
  footer {
    padding-left: 28px;
    padding-right: 28px;
  }
  .header nav {
    gap: 19px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .recipe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plate {
    width: 250px;
    height: 250px;
    right: 10px;
    top: 75px;
  }
  .rice {
    width: 96px;
    height: 96px;
  }
  .greens {
    font-size: 75px;
  }
  .tomatoes {
    font-size: 64px;
  }
  .protein {
    font-size: 70px;
  }
  .art-note {
    left: -3px;
    top: 24px;
  }
  .chopstick {
    right: -4px;
    height: 285px;
    top: 75px;
  }
  .chopstick.two {
    right: -17px;
  }
  .shopping-layout {
    grid-template-columns: 215px 1fr;
    gap: 35px;
  }
  .day-card {
    padding: 15px;
  }
  .dish-controls {
    flex-direction: column;
    gap: 0;
  }
  .hero-foot {
    font-size: 10px;
  }
}
@media (max-width: 680px) {
  .ai-recipe-body {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .header {
    height: 78px;
    padding: 0 20px;
  }
  .brand {
    font-size: 17px;
    gap: 9px;
    letter-spacing: 1px;
  }
  .brand-mark {
    width: 35px;
    height: 40px;
    font-size: 25px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .header nav {
    display: none;
  }
  .profile {
    font-size: 11px;
  }
  .profile span {
    width: 29px;
    height: 29px;
    font-size: 18px;
  }
  main {
    padding: 0 20px 105px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 32px 0;
    position: relative;
    overflow: hidden;
    gap: 0;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .hero h1 {
    font-size: 43px;
    line-height: 1.35;
    margin: 22px 0 16px;
    letter-spacing: 1px;
  }
  .hero p {
    font-size: 11px;
    line-height: 2;
    max-width: 250px;
    margin-bottom: 19px;
  }
  .hero .primary {
    padding: 12px 17px;
    font-size: 12px;
    gap: 18px;
  }
  .hero-foot {
    font-size: 9px;
    margin-top: 17px;
    max-width: 100%;
  }
  .food-art {
    position: absolute;
    width: 220px;
    right: -81px;
    top: 46px;
    height: 260px;
    opacity: 0.83;
    z-index: 0;
    transform: scale(0.9);
  }
  .plate {
    width: 205px;
    height: 205px;
    top: 0;
    right: 0;
    border-width: 9px;
  }
  .rice {
    width: 80px;
    height: 80px;
    left: 15px;
    top: 25px;
    font-size: 30px;
  }
  .greens {
    font-size: 59px;
    top: 18px;
    right: 8px;
  }
  .tomatoes {
    font-size: 49px;
    left: 24px;
    bottom: 5px;
  }
  .protein {
    font-size: 61px;
    right: 2px;
    bottom: 10px;
  }
  .art-note,
  .art-leaf,
  .chopstick {
    display: none;
  }
  .section-heading {
    display: block;
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-size: 25px;
    margin-top: 8px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
  }
  .search {
    width: 100%;
    margin-top: 18px;
    height: 42px;
  }
  .filter-row {
    gap: 12px;
    margin-bottom: 18px;
  }
  .pills {
    gap: 4px;
    justify-content: space-between;
    width: 100%;
  }
  .pill {
    padding: 8px;
    font-size: 10px;
  }
  .filter-row > .small {
    font-size: 10px;
  }
  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 12px;
  }
  .recipe-art {
    height: 133px;
  }
  .dish-emoji {
    font-size: 51px;
  }
  .art-ring {
    width: 92px;
    height: 92px;
  }
  .season-badge {
    left: 8px;
    top: 9px;
    font-size: 8px;
    padding: 4px 6px;
  }
  .favorite {
    width: 26px;
    height: 26px;
    right: 7px;
    top: 7px;
    font-size: 19px;
  }
  .recipe-body {
    padding: 12px 10px;
  }
  .recipe-title {
    font-size: 13px;
  }
  .recipe-body p {
    font-size: 9px;
    line-height: 1.6;
    margin: 5px 0 10px;
  }
  .card-bottom .small {
    font-size: 8px;
  }
  .pick {
    font-size: 10px;
    padding: 6px;
  }
  .selection-bar {
    bottom: 81px;
    padding: 12px;
    border-radius: 8px;
    margin-top: 18px;
  }
  .selection-icon {
    display: none;
  }
  .selection-bar strong {
    font-size: 11px;
  }
  .selection-bar small {
    font-size: 8px;
    max-width: 175px;
    line-height: 1.5;
  }
  .selection-bar .primary {
    padding: 11px 13px;
    gap: 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  .content-note {
    font-size: 9px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fdfdf7f5;
    backdrop-filter: blur(15px);
    border-top: 1px solid #e2e6d9;
    justify-content: space-around;
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
    z-index: 10;
  }
  .mobile-nav button {
    font-size: 21px;
    color: #9aa68f;
    min-width: 70px;
  }
  .mobile-nav button span {
    display: block;
    font-size: 10px;
    margin-top: 3px;
  }
  .mobile-nav button.active {
    color: var(--green);
    font-weight: 600;
  }
  footer {
    padding: 20px 20px 105px;
    font-size: 9px;
    display: block;
  }
  footer span {
    display: block;
    margin: 7px 0;
  }
  .page-intro {
    padding: 32px 0 23px;
    flex-wrap: wrap;
    gap: 20px;
  }
  .page-intro h1 {
    font-size: 33px;
  }
  .page-intro .eyebrow {
    font-size: 8px;
    letter-spacing: 1.7px;
  }
  .page-intro p {
    font-size: 11px;
  }
  .actions {
    width: 100%;
  }
  .actions button {
    flex: 1;
    padding: 12px 14px;
    font-size: 12px;
  }
  .plan-hint {
    font-size: 10px;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }
  .week-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .day-card {
    padding: 15px;
  }
  .dish-controls {
    flex-direction: row;
    gap: 8px;
  }
  .planned-dish {
    gap: 12px;
  }
  .dish-info .recipe-title {
    font-size: 13px;
  }
  .day-heading strong {
    font-size: 12px;
  }
  .closing-card {
    padding: 22px;
    display: block;
  }
  .closing-card h2 {
    font-size: 23px;
  }
  .closing-card p {
    font-size: 11px;
    line-height: 1.8;
  }
  .closing-card .primary {
    margin-top: 20px;
    width: 100%;
    font-size: 12px;
  }
  .shopping-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .shopping-aside {
    padding: 0 0 12px;
  }
  .basket-art,
  .shopping-aside h2,
  .shopping-aside > p,
  .shopping-aside .divider {
    display: none;
  }
  .shopping-aside .outline {
    font-size: 11px;
    padding: 10px 16px;
  }
  .progress-card strong {
    font-size: 32px;
  }
  .progress-card small {
    font-size: 10px;
  }
  .shopping-layout .filter-row {
    gap: 12px;
  }
  .shopping-layout .filter-row > .small {
    font-size: 9px;
  }
  .shopping-group {
    margin-bottom: 16px;
  }
  .quantity {
    font-size: 18px;
  }
  .shopping-name strong {
    font-size: 13px;
  }
  dialog {
    padding: 25px 22px;
    max-height: 88vh;
    border-radius: 12px;
  }
  dialog h2 {
    font-size: 25px;
  }
  .form-grid {
    gap: 12px;
  }
  .detail-heading > span {
    font-size: 42px;
    padding: 10px;
  }
  .detail-heading {
    gap: 12px;
  }
  .detail-heading h2 {
    font-size: 23px;
  }
  .ingredient-list {
    gap: 0 14px;
  }
  .ingredient-list > div {
    font-size: 11px;
  }
  .empty {
    padding: 80px 10px;
  }
  .empty h2 {
    font-size: 25px;
  }
  .empty p {
    font-size: 12px;
  }
  .empty h1 {
    font-size: 31px;
  }
  .source-list {
    padding-left: 17px;
    font-size: 11px;
  }
  .notice {
    font-size: 11px;
  }
  .steps {
    font-size: 12px;
  }
  .content-note {
    line-height: 1.9;
  }
  #toast {
    font-size: 12px;
    bottom: 105px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.selected-chip {
  border: 1px solid #d6decc;
  border-radius: 4px;
  font-size: 11px;
  margin: 3px;
  padding: 5px 8px;
  background: #fffdf7;
}

.planned-dish.has-conflict {
  background: #fff6ee;
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}
.dish-info .conflict-label {
  color: #a95e33;
  font-weight: 600;
}
.connection-notice {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.connection-notice button {
  flex-shrink: 0;
}
.family-summary {
  margin-top: 8px !important;
  font-size: 11px !important;
}
.meal-energy {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 0 5px;
  color: #648052;
  font-size: 10px;
}
.meal-energy strong {
  font-size: 12px;
  font-weight: 600;
}
.meal-energy span {
  color: #95a18b;
}
.energy-note {
  font-size: 9px;
  line-height: 1.7;
  color: #939e88;
  margin: 12px 0 0;
}
.detail-energy {
  color: #597c42;
  font-weight: 600;
}
.family-fields {
  padding: 16px;
  background: #f1f4e9;
  border-radius: 8px;
}
.family-fields legend {
  font-size: 14px;
  font-weight: 600;
}
.family-total {
  margin-left: 12px;
  color: #54763e;
}
.family-fields .form-grid {
  margin: 10px 0;
}
.family-fields h3 {
  font-size: 13px;
  margin-top: 18px;
}
.portion-guide {
  font-size: 11px;
  color: #7b896e;
  line-height: 1.8;
}
.portion-guide summary {
  cursor: pointer;
  color: #567348;
}
.portion-guide p {
  font-size: 11px;
}
.hero-photo {
  position: absolute;
  inset: 10px 0;
  width: 100%;
  height: calc(100% - 20px);
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 34px #304a2d29;
}
.food-art .art-note {
  left: -8px;
  top: 32px;
  background: #fffcf1f0;
}
.dish-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-missing {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  color: #7c8975;
  letter-spacing: 2px;
}
.detail-photo {
  height: 92px;
  width: 110px;
  object-fit: cover;
  border-radius: 11px;
}
.photo-credit {
  font-size: 11px;
  color: #849078;
  line-height: 1.7;
}
.dish-mini-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.mini-photo-missing {
  font-size: 8px;
  letter-spacing: 0;
  text-align: center;
  color: #82907c;
}
.guide-label {
  font-size: 10px;
  color: #678264;
}
.season-leaf {
  font-size: 55px;
  color: #73956a;
}
.vegetable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.vegetable-card {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 175px;
}
.vegetable-photo {
  width: 44%;
  background: #e8ece2;
  flex: none;
  display: grid;
  place-items: center;
}
.vegetable-fallback-emoji {
  font-size: 70px;
  line-height: 1;
  filter: drop-shadow(3px 6px 5px #31472e1b);
}
.vegetable-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vegetable-copy {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
}
.vegetable-copy h2 {
  font: 23px var(--serif);
  margin: 0;
}
.vegetable-copy p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.vegetable-copy .text-button {
  margin-top: 8px;
  color: #3c6843;
}
@media (max-width: 1000px) {
  .vegetable-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .vegetable-grid {
    grid-template-columns: 1fr;
  }
  .vegetable-card {
    min-height: 145px;
  }
  .vegetable-photo {
    width: 40%;
  }
  .food-art {
    opacity: 0.35;
  }
  .food-art .art-note {
    display: none;
  }
  .header nav {
    gap: 12px;
  }
  .mobile-nav button {
    min-width: 58px;
  }
}

.alternative-photo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}

.photo-reference-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  background: #faf9efee;
  color: #52684b;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.photo-credit-mini {
  font-size: 9px;
  color: #849976;
}
