:root {
  --green: #557d47;
  --green-dark: #315b32;
  --mint: #eef6e8;
  --cream: #fffaf0;
  --line: #eadfce;
  --text: #20271f;
  --muted: #7f8178;
  --orange: #ff8a1d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

@media (max-width: 430px) {
  html:not([data-display-size="standard"]) .screen[data-screen="fridge"],
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] {
    inset: 0 0 calc(82px + env(safe-area-inset-bottom, 0px));
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .topbar,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .topbar {
    min-height: 68px;
    grid-template-columns: 78px 1fr 78px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .topbar h1,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .topbar h1 {
    font-size: 24px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .content,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .content {
    height: calc(100% - 68px - env(safe-area-inset-top, 0px));
    padding: 20px 14px calc(32px + env(safe-area-inset-bottom, 0px));
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head {
    margin-bottom: 10px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head.strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head.strong {
    margin-top: 18px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head h2,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head h2 {
    font-size: 27px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head button,
  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head small,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head button,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head small {
    font-size: 20px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .add-mini,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .add-mini {
    min-height: 58px;
    padding: 0 22px;
    border-radius: 30px;
    font-size: 25px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .expiry-row,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .expiry-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .expiry-row::-webkit-scrollbar,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .expiry-row::-webkit-scrollbar {
    display: none;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food {
    flex: 0 0 min(48%, 194px);
    min-height: 126px;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 22px;
    scroll-snap-align: start;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food img,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food img {
    width: 76px;
    height: 76px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food strong {
    margin: 0;
    font-size: 25px;
    line-height: 1.18;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food span,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food span {
    font-size: 21px;
    line-height: 1.18;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .chips,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .chips {
    gap: 10px;
    padding-bottom: 12px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .chips button,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .chips button {
    min-width: 74px;
    height: 52px;
    padding: 0 22px;
    border-radius: 26px;
    font-size: 24px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-grid,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card {
    min-height: 138px;
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr) 64px;
    grid-template-rows: auto auto auto;
    gap: 6px 14px;
    align-items: center;
    padding: 14px;
    border-radius: 26px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card img,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card img {
    grid-row: 1 / span 3;
    width: 98px;
    height: 102px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card strong {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card span,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card span {
    font-size: 22px;
    line-height: 1.18;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card em,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card em {
    position: static;
    justify-self: start;
    min-width: 64px;
    height: 42px;
    padding: 0 14px;
    border-radius: 22px;
    font-size: 22px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .remove-food-dot,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .remove-food-dot {
    left: auto;
    right: 14px;
    top: 14px;
    min-width: 58px;
    height: 42px;
    font-size: 21px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .favorite-dot,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .favorite-dot {
    right: 14px;
    bottom: 14px;
    top: auto;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  html:not([data-display-size="standard"]) .tabbar,
  html:not([data-display-size="standard"]) .phone .tabbar {
    height: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  html:not([data-display-size="standard"]) .tab,
  html:not([data-display-size="standard"]) .phone .tab {
    min-height: 64px;
    font-size: 16px;
  }

  html:not([data-display-size="standard"]) .tab span,
  html:not([data-display-size="standard"]) .phone .tab span {
    width: 38px;
    height: 34px;
    font-size: 22px;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  html:not([data-display-size="standard"]) .screen[data-screen="fridge"],
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] {
    inset: 0 0 calc(76px + env(safe-area-inset-bottom, 0px));
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .topbar,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .topbar {
    min-height: 62px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .content,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .content {
    height: calc(100% - 62px - env(safe-area-inset-top, 0px));
    padding: 14px 12px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food {
    min-height: 104px;
    grid-template-columns: 64px 1fr;
    padding: 10px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food img,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food img {
    width: 64px;
    height: 64px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food strong {
    font-size: 23px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food span,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food span {
    font-size: 19px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head.strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head.strong {
    margin-top: 14px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .chips button,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .chips button {
    min-width: 66px;
    height: 46px;
    font-size: 22px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card {
    min-height: 118px;
    grid-template-columns: 84px minmax(0, 1fr) 58px;
    padding: 12px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card img,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card img {
    width: 84px;
    height: 88px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card strong {
    font-size: 25px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card span,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card span,
  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card em,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card em {
    font-size: 20px;
  }

  html:not([data-display-size="standard"]) .tabbar,
  html:not([data-display-size="standard"]) .phone .tabbar {
    height: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  html:not([data-display-size="standard"]) .tab,
  html:not([data-display-size="standard"]) .phone .tab {
    min-height: 58px;
    font-size: 15px;
  }
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 24% 9%, rgba(115, 143, 91, .14), transparent 25%),
    linear-gradient(135deg, #f8fbf2 0%, #fff8ef 42%, #f5faf0 100%);
  display: grid;
  place-items: center;
}

button {
  border: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus {
  outline: none;
}

button:focus-visible {
  outline: 2px solid rgba(85, 125, 71, .36);
  outline-offset: 2px;
}

.phone-shell {
  width: min(100vw, 430px);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.phone {
  position: relative;
  container-type: inline-size;
  width: min(100%, 390px);
  height: min(844px, calc(100vh - 36px));
  height: min(844px, calc(100svh - 36px));
  min-height: 720px;
  overflow: hidden;
  border: 1px solid #e1d6c8;
  border-radius: 32px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 24px 70px rgba(65, 83, 53, .18);
}

.screen {
  position: absolute;
  inset: 0 0 72px;
  display: none;
  overflow: hidden;
}

.screen.active {
  display: block;
}

.topbar {
  min-height: 54px;
  padding: env(safe-area-inset-top, 0) 18px 0;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  border-bottom: 1px solid rgba(234, 223, 206, .72);
}

.topbar h1 {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 760;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.top-actions:has(#toggleSearch:only-child) {
  justify-content: flex-end;
}

.icon-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.scan-btn {
  border-radius: 8px;
  background: #eef6e8;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

.add-entry {
  width: 44px;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.content {
  height: calc(100% - 54px - env(safe-area-inset-top, 0));
  overflow-y: auto;
  padding: 16px 18px 22px;
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 760;
}

.section-head button {
  color: var(--muted);
  font-size: 12px;
}

.section-head small {
  color: var(--muted);
  font-size: 12px;
}

.section-head.strong {
  margin-top: 20px;
}

.helper-line {
  margin: -2px 0 10px;
  color: #7a7f73;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-mini {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green);
  color: white !important;
  font-size: 12px !important;
  font-weight: 900;
}

.expiry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-food,
.food-card {
  position: relative;
  overflow: hidden;
  min-height: 95px;
  padding: 8px;
  border-radius: 10px;
  background: #fbf3e8;
}

.mini-food img {
  display: block;
  width: 100%;
  height: 52px;
  object-fit: contain;
}

.mini-food strong,
.food-card strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.mini-food span,
.food-card span {
  color: #ef4c3c;
  font-size: 10px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips button {
  flex: 0 0 auto;
  min-width: 40px;
  height: 28px;
  padding: 0 11px;
  border-radius: 14px;
  background: #f4f1e8;
  color: #65685f;
  font-size: 12px;
}

.chips .selected {
  background: var(--green);
  color: white;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.food-card {
  min-height: 108px;
  background: #f7f1e8;
}

.food-card,
.mini-food,
.recipe-card,
.meal-card,
.fav-card {
  cursor: pointer;
}

.food-card img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
}

.favorite-dot {
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: #c9b8a1;
  font-size: 13px;
}

.remove-food-dot {
  position: absolute;
  left: 5px;
  top: 5px;
  z-index: 1;
  min-width: 42px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #b94e43;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(91, 69, 44, .08);
}

.favorite-dot.active {
  color: #ef4c3c;
}

.food-card em {
  position: absolute;
  right: 7px;
  bottom: 7px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  color: #8a8d84;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 120px;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff0d0, #fff7e7);
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.hero-card p {
  margin: 0;
  color: #8b7758;
  font-size: 13px;
}

.hero-card img {
  width: 106px;
  height: 86px;
  object-fit: contain;
}

.recipe-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.recipe-toolbar {
  display: grid;
  grid-template-columns: 1fr 102px;
  gap: 10px;
  margin-top: 14px;
}

.search-panel {
  display: none;
  margin-bottom: 14px;
}

.search-panel.open {
  display: block;
}

.recipe-toolbar input,
.recipe-toolbar select,
.search-panel input {
  width: 100%;
  height: 38px;
  border: 1px solid #e8decf;
  border-radius: 19px;
  background: #fffaf2;
  color: var(--text);
  padding: 0 13px;
  font: inherit;
  font-size: 12px;
}

.recipe-toolbar select {
  appearance: none;
  text-align: center;
  color: var(--green-dark);
  font-weight: 700;
}

.recipe-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: 124px 1fr 28px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .55);
}

.recipe-card img {
  width: 124px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
}

.recipe-card h2,
.meal-card h2,
.fav-card h2 {
  margin: 0;
  font-size: 15px;
}

.recipe-card h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recipe-card h2 span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef6e8;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
}

.recipe-card p {
  margin: 12px 0 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.recipe-card p span {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f2eee5;
  color: #77796f;
  font-size: 11px;
}

.recipe-card small {
  color: #77796f;
  font-size: 12px;
}

.recipe-card button,
.fav-card button {
  color: #ef4c3c;
  font-size: 22px;
}

.recipe-card button:not(.active) {
  color: #8f9289;
}

.recipe-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.refresh-btn {
  display: block;
  width: 100%;
  height: 40px;
  border-radius: 20px;
  background: #fff0d0;
  color: var(--green-dark);
  font-weight: 700;
}

.refresh-btn.secondary {
  background: var(--green);
  color: white;
}

.calendar-card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .5);
}

.month-line {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.month-line strong {
  text-align: center;
  font-size: 17px;
}

.month-line button {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #f4f0e8;
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 900;
}

.add-pill {
  padding: 6px 10px;
  border-radius: 12px;
  background: #f4f0e8;
  color: #2d3b2b;
  font-size: 12px;
}

.week-days,
.dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: #6d7168;
  font-size: 12px;
}

.dates {
  margin-top: 14px;
  color: #141b13;
  font-size: 16px;
}

.dates span,
.dates button {
  position: relative;
  height: 40px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border-radius: 10px;
}

.dates button {
  width: 100%;
}

.dates .selected {
  background: var(--green);
  color: white;
}

.dates .today:not(.selected) {
  box-shadow: inset 0 0 0 1px var(--green);
  color: var(--green-dark);
}

.dates small,
.dates strong {
  display: block;
  line-height: 1;
}

.dates small {
  color: inherit;
  font-size: 10px;
  font-weight: 700;
}

.dates strong {
  font-size: 15px;
}

.dates i {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.dates i.planned {
  background: #f0b44d;
}

.dates i.history {
  background: #ef4c3c;
}

.dates .selected i {
  background: white;
}

.plan-summary {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #efe6d8;
}

.plan-summary strong {
  font-size: 14px;
}

.plan-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.meal-list {
  display: grid;
  gap: 12px;
}

.meal-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 34px 1fr 66px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #fbf5ea;
}

.meal-card p,
.fav-card p {
  margin: 8px 0 0;
  color: #77796f;
  font-size: 12px;
}

.meal-card small {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 11px;
}

.meal-card img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.meal-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 8px;
  color: var(--orange);
}

.meal-icon.green {
  border-color: #58a061;
  color: #58a061;
}

.shopping-card,
.history-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .58);
}

.shopping-card .section-head,
.history-card .section-head {
  margin-bottom: 12px;
}

.history-list {
  display: grid;
  gap: 9px;
}

.history-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 46px 1fr 18px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: #fbf5ea;
  text-align: left;
}

.history-row img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.history-row strong,
.history-row small {
  display: block;
}

.history-row strong {
  font-size: 13px;
}

.history-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.history-row em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.history-row.add-history-row {
  background: #eef6e8;
  color: var(--green-dark);
}

.history-row.add-history-row > span:first-child {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: white;
  font-size: 26px;
  font-weight: 900;
}

.shopping-tags,
.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shopping-tags button,
.shopping-tags small,
.sheet-tags span,
.sheet-tags button {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2eee5;
  color: #66705f;
  font-size: 12px;
}

.shopping-tags button {
  color: var(--green-dark);
  font-weight: 800;
}

.subtabs {
  height: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(234, 223, 206, .72);
}

.subtabs button {
  position: relative;
  font-weight: 700;
  color: #6e7169;
}

.subtabs .active {
  color: var(--green-dark);
}

.subtabs .active::after {
  content: "";
  position: absolute;
  left: 31%;
  right: 31%;
  bottom: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.favorite-content {
  height: calc(100% - 100px);
  padding-top: 18px;
}

.fav-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 130px 1fr 28px;
  gap: 14px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(234, 223, 206, .78);
}

.fav-card img {
  width: 130px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fbf5ea;
  color: var(--muted);
  font-size: 13px;
}

.empty-state.slim {
  min-height: 64px;
}

.profile-top {
  border-bottom: 0;
}

.profile-content {
  height: calc(100% - 54px);
  background: linear-gradient(180deg, #f0f5df 0%, #fffdf8 34%);
}

.profile-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .58);
}

.profile-main-info {
  min-width: 0;
  flex: 1;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  font-size: 34px;
  box-shadow: 0 8px 20px rgba(65, 83, 53, .12);
  overflow: hidden;
}

.avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-head h1 {
  margin: 0 0 7px;
  font-size: 18px;
}

.profile-name-btn {
  display: block;
  margin: 0 0 7px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.profile-head p {
  margin: 0;
  color: #676d64;
  font-size: 13px;
}

.profile-head strong,
.profile-score-card strong {
  color: #e6463d;
}

.profile-edit-pill {
  min-width: 58px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf5df;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.profile-score-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.profile-score-main,
.profile-score-mini button {
  border-radius: 18px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .58);
}

.profile-score-main {
  min-height: 126px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 6px;
  text-align: left;
}

.profile-score-main strong {
  font-size: 42px;
  line-height: .9;
}

.profile-score-main span,
.profile-score-mini span {
  color: var(--green-dark);
  font-weight: 900;
}

.profile-score-main small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-score-mini {
  display: grid;
  gap: 8px;
}

.profile-score-mini button {
  min-height: 36px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  text-align: left;
}

.profile-score-mini strong {
  font-size: 22px;
}

.profile-score-mini span {
  font-size: 12px;
}

.profile-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.profile-status button {
  min-height: 82px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: white;
  color: var(--green-dark);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .58);
}

.profile-status button.urgent {
  background: #fff1ed;
  color: #bd3d32;
}

.profile-status button.warn {
  background: #fff7df;
  color: #795216;
}

.profile-status strong,
.profile-status span {
  display: block;
}

.profile-status strong {
  font-size: 15px;
}

.profile-status span {
  color: #77796f;
  font-size: 12px;
  line-height: 1.35;
}

.profile-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 2px 10px;
}

.profile-section-title h2,
.card-title-row h2 {
  margin: 0;
  font-size: 15px;
}

.data-card,
.settings-list {
  border-radius: 12px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .58);
}

.data-card {
  padding: 18px;
  margin-bottom: 16px;
}

.data-card h2 {
  margin: 0 0 16px;
  font-size: 15px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title-row button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf5df;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.works-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.work-card {
  min-height: 104px;
  display: grid;
  gap: 6px;
  text-align: left;
}

.work-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  background: #fbf5ea;
}

.work-card span {
  color: #555d52;
  font-size: 11px;
  font-weight: 800;
}

.work-empty {
  grid-column: 1 / -1;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fbf5ea;
  color: var(--muted);
  font-size: 12px;
}

.avatar.mini {
  width: 42px;
  height: 42px;
  font-size: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stats button,
.data-mini button,
.data-mini div {
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  text-align: center;
}

.stats button {
  border-radius: 12px;
  background: #fbf5ea;
}

.stats strong {
  font-size: 22px;
}

.stats span {
  color: #7e8178;
  font-size: 12px;
}

.stats small {
  color: #9a9d94;
  font-size: 10px;
}

.profile-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: -4px 0 16px;
}

.profile-quick button {
  min-height: 76px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  border-radius: 12px;
  background: white;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .58);
  font-weight: 900;
}

.profile-quick span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #edf5df;
  color: var(--green);
  font-size: 15px;
}

.profile-quick strong {
  font-size: 12px;
}

.profile-quick small {
  color: var(--muted);
  font-size: 10px;
}

.data-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.data-mini div,
.data-mini button {
  min-height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-radius: 12px;
  background: #fbf5ea;
  text-align: center;
}

.data-mini strong {
  font-size: 22px;
}

.data-mini span {
  color: var(--muted);
  font-size: 12px;
}

.settings-list {
  overflow: hidden;
}

.settings-list button {
  width: 100%;
  min-height: 66px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 30px 1fr 24px;
  grid-template-rows: auto auto;
  gap: 12px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
  border-bottom: 1px solid #f0e8dc;
  font-weight: 700;
}

.settings-list button:last-child {
  border-bottom: 0;
}

.settings-list span {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf5df;
  font-size: 17px;
  font-weight: 900;
}

.settings-list strong,
.settings-list small {
  grid-column: 2;
  display: block;
}

.settings-list strong {
  grid-row: 1;
  align-self: end;
  font-size: 14px;
}

.settings-list small {
  grid-row: 2;
  align-self: start;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.settings-list em {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  color: #7d8178;
  font-style: normal;
  font-size: 22px;
}

.settings-list i {
  justify-self: end;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--green);
  position: relative;
}

.settings-list i::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.avatar-picker button {
  height: 48px;
  border-radius: 14px;
  background: #fbf5ea;
  font-size: 26px;
}

.avatar-picker button.active {
  background: #e4f1dc;
  box-shadow: inset 0 0 0 2px var(--green);
}

.profile-upload {
  min-height: 112px;
}

.blue { color: #2b76bd; }
.orange { color: var(--orange); }
.green { color: var(--green); }

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #e9dfd2;
  background: rgba(255, 253, 248, .96);
  padding: 6px 8px 8px;
}

.tab {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 14px;
  color: #8a8e85;
  font-size: 11px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.tab span {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 17px;
  opacity: .72;
  filter: grayscale(.25);
  transition: background .18s ease, opacity .18s ease, transform .18s ease, filter .18s ease;
}

.tab strong {
  font-weight: 700;
  transition: font-weight .18s ease;
}

.tab.active {
  background: linear-gradient(180deg, #eef6e8, #e4f1dc);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(85, 125, 71, .12);
}

.tab.active span {
  background: white;
  opacity: 1;
  filter: none;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 10px rgba(63, 82, 53, .12);
}

.tab.active strong {
  font-weight: 900;
}

.tab.active::before {
  content: "";
  position: absolute;
  top: 4px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

.tab[data-badge]:not([data-badge=""])::after {
  content: attr(data-badge);
  position: absolute;
  top: 8px;
  right: 18px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef4c3c;
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
}

.sheet.open {
  display: block;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 28, 20, .28);
}

.sheet-card {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  max-height: 78%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 16px 18px;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 -18px 50px rgba(40, 50, 34, .22);
}

.sheet-card.compact {
  max-height: 70%;
}

.sheet-close {
  position: absolute;
  right: 14px;
  top: 10px;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  font-size: 24px;
}

.sheet-hero {
  width: 100%;
  height: 168px;
  border-radius: 12px;
  object-fit: cover;
  background: #fbf3e8;
}

.sheet-hero.food-hero {
  object-fit: contain;
}

.sheet-card h2 {
  margin: 14px 0 5px;
  font-size: 22px;
}

.sheet-card h3 {
  margin: 18px 0 8px;
  font-size: 14px;
}

.sheet-card p,
.sheet-card li {
  color: #666a61;
  font-size: 13px;
  line-height: 1.65;
}

.sheet-card ol {
  margin: 0;
  padding-left: 20px;
}

.sheet-meta {
  margin: 0 0 10px;
}

.missing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
}

.missing-actions button {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff0d0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.serving-block {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #fbf5ea;
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .55);
}

.serving-block .section-head {
  margin-bottom: 10px;
}

.serving-block h3 {
  margin: 0;
}

.serving-control {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.serving-control button {
  height: 34px;
  border-radius: 12px;
  background: white;
  color: #66705f;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .7);
}

.serving-control button.active {
  background: var(--green);
  color: white;
  box-shadow: none;
}

.amount-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.amount-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}

.amount-row strong,
.amount-row small {
  display: block;
}

.amount-row strong {
  font-size: 13px;
}

.amount-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.recipe-amount-control {
  display: grid;
  grid-template-columns: 28px auto 28px;
  gap: 5px;
  align-items: center;
}

.recipe-amount-control button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f0e8;
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 900;
}

.amount-row em {
  min-width: 56px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef6e8;
  color: var(--green-dark);
  text-align: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.amount-row.low em {
  background: #fff0d0;
  color: #91601e;
}

.amount-row.missing em {
  background: #f5e5de;
  color: #a34a32;
}

.plan-secondary {
  width: 100%;
  height: 40px;
  margin-top: 12px;
  border-radius: 20px;
  background: #f4f0e8;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.food-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.food-form label,
.receipt-form label,
.use-form label {
  display: grid;
  gap: 7px;
  color: #4f574b;
  font-size: 13px;
  font-weight: 700;
}

.food-form input,
.food-form select,
.food-form textarea,
.receipt-form textarea,
.use-form input {
  width: 100%;
  border: 1px solid #e8decf;
  border-radius: 12px;
  background: #fffaf2;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.food-form input,
.food-form select,
.use-form input {
  height: 42px;
  padding: 0 12px;
}

.food-form textarea {
  min-height: 96px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

.food-current {
  min-height: 76px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #fbf5ea;
}

.food-current img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: contain;
  background: #fffaf2;
}

.food-current strong,
.food-current small {
  display: block;
}

.food-current strong {
  font-size: 15px;
}

.food-current small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.privacy-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.privacy-picker label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fbf5ea;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.duplicate-food-hint {
  display: none;
}

.duplicate-food-hint.show {
  display: block;
}

.duplicate-food-list {
  display: grid;
  gap: 9px;
}

.duplicate-food-list > strong {
  color: var(--green-dark);
  font-size: 13px;
}

.duplicate-food-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #f0d2b4;
  border-radius: 14px;
  background: #fff6e7;
  color: var(--green-dark);
}

.duplicate-food-card img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: contain;
  background: white;
}

.duplicate-food-card strong,
.duplicate-food-card small {
  display: block;
}

.duplicate-food-card small {
  margin-top: 4px;
  color: #7a7f73;
  line-height: 1.35;
}

.duplicate-food-card button {
  grid-column: 1 / -1;
  min-height: 40px;
  border-radius: 20px;
  background: var(--green);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.food-form > button.secondary-submit {
  background: #fff0d0;
  color: var(--green-dark);
}

.compact-upload {
  min-height: 86px;
}

.meal-photo-upload {
  min-height: 96px;
  border-style: solid;
  background: linear-gradient(135deg, #fff7df, #f4faef);
}

.meal-photo-upload span::before {
  content: "+ ";
  font-weight: 900;
}

.privacy-picker input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.ghost-action {
  height: 38px;
  border-radius: 19px;
  background: #fff0d0;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.image-restore-action {
  background: #eef6e8;
}

.image-restore-action:disabled {
  opacity: .48;
  color: var(--muted);
}

.scan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ocr-status {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 12px;
}

.missing-food-list {
  display: grid;
  gap: 10px;
}

.missing-food-upload {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #fbf5ea;
}

.missing-food-upload span {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

.missing-food-upload input {
  grid-column: 1;
}

.missing-food-upload img {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  background: white;
}

.use-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.amount-slider {
  padding: 12px;
  border-radius: 12px;
  background: #fbf5ea;
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .56);
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.slider-head strong {
  font-size: 13px;
}

.slider-head output {
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.slider-line {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 10px;
  align-items: center;
}

.slider-line button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .8);
}

.amount-slider input[type="range"] {
  width: 100%;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--green);
}

.amount-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #f2cf87);
}

.amount-slider input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--green-dark);
  box-shadow: 0 4px 12px rgba(50, 70, 45, .24);
  appearance: none;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-amounts button {
  height: 34px;
  border-radius: 12px;
  background: #fff0d0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.use-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.use-actions button {
  height: 42px;
  border-radius: 21px;
  background: #fff0d0;
  color: var(--green-dark);
  font-weight: 800;
}

.use-actions button:last-child {
  background: var(--green);
  color: white;
}

.receipt-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.receipt-form textarea {
  min-height: 96px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

.upload-box {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 12px;
  border: 1px dashed #d9cbb8;
  border-radius: 12px;
  background: #fffaf2;
  place-items: center;
  text-align: center;
}

.upload-box input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.upload-box span {
  color: var(--green-dark);
  font-weight: 800;
}

.upload-box img {
  display: none;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
}

.upload-box img.show {
  display: block;
}

.receipt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.receipt-actions button,
.receipt-submit {
  height: 42px;
  border-radius: 21px;
  background: #fff0d0;
  color: var(--green-dark);
  font-weight: 800;
}

.receipt-actions button:last-child,
.receipt-submit {
  background: var(--green);
  color: white;
}

.receipt-results {
  margin-top: 16px;
}

.receipt-results h3 {
  margin-bottom: 6px;
}

.receipt-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.receipt-list {
  display: grid;
  gap: 10px;
}

.receipt-item {
  min-height: 86px;
  display: grid;
  grid-template-columns: 24px 50px 1fr 28px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: #fbf5ea;
}

.receipt-item > input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.receipt-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
}

.receipt-edit {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 7px;
}

.receipt-edit select,
.receipt-edit input {
  min-width: 0;
  height: 34px;
  border: 1px solid #e8decf;
  border-radius: 9px;
  background: white;
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
}

.receipt-edit small {
  grid-column: 1 / -1;
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.receipt-item [data-remove-receipt-row] {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2e6dc;
  color: #9a5a43;
  font-size: 20px;
}

.receipt-submit {
  width: 100%;
  margin-top: 12px;
}

.food-form > button {
  height: 44px;
  margin-top: 4px;
  border-radius: 22px;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  margin: 14px 0;
  border-radius: 16px;
  background: #f1eadf;
}

.segmented button {
  height: 34px;
  border-radius: 12px;
  color: #687064;
  font-size: 13px;
  font-weight: 800;
}

.segmented button.active {
  background: white;
  color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(64, 78, 55, .1);
}

.sheet-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sheet-list.compact-list {
  gap: 6px;
}

.sheet-row {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 54px 1fr 22px;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: #fbf5ea;
  text-align: left;
}

.compact-list .sheet-row {
  grid-template-columns: 1fr 24px;
}

.sheet-row img {
  width: 54px;
  height: 54px;
  border-radius: 9px;
  object-fit: cover;
  background: #fffaf2;
}

.sheet-row strong,
.sheet-row small {
  display: block;
}

.sheet-row strong {
  font-size: 14px;
}

.sheet-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.sheet-row em {
  justify-self: end;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.sheet-actions {
  position: sticky;
  bottom: -18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px -16px -18px;
  padding: 12px 16px 16px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .72), #fffdf8 34%);
}

.sheet-actions button {
  height: 42px;
  border-radius: 21px;
  background: #fff0d0;
  color: var(--green-dark);
  font-weight: 800;
}

.sheet-actions button:last-child {
  background: var(--green);
  color: white;
}

.sheet-actions button.danger-action {
  grid-column: 1 / -1;
  background: #fff1ed;
  color: #bd3d32;
}

.freshness {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee3d3;
}

.freshness span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef7f55, #77a462);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 80;
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  pointer-events: none;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(32, 39, 31, .88);
  color: white;
  font-size: 12px;
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast button {
  min-height: 34px;
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  body {
    display: block;
    background: #fffdf8;
  }

  .phone-shell {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    display: block;
  }

  .phone {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  @supports (height: 100dvh) {
    .phone-shell,
    .phone {
      height: 100dvh;
      min-height: 100dvh;
    }
  }

  .screen {
    inset: 0 0 calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    min-height: 68px;
    grid-template-columns: 78px 1fr 78px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .scan-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .add-entry {
    width: 52px;
    height: 34px;
    border-radius: 12px;
    font-size: 14px;
  }

  .content {
    height: calc(100% - 68px - env(safe-area-inset-top, 0));
    padding: 20px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .section-head {
    margin-bottom: 12px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .section-head button,
  .section-head small {
    font-size: 14px;
  }

  .helper-line {
    margin-top: -4px;
    font-size: 14px;
  }

  .section-actions {
    gap: 10px;
  }

  .add-mini {
    height: 34px;
    padding: 0 13px;
    font-size: 14px !important;
  }

  .expiry-row,
  .food-grid {
    gap: 12px;
  }

  .mini-food {
    min-height: 122px;
    padding: 10px;
    border-radius: 14px;
  }

  .mini-food img {
    height: 68px;
  }

  .food-card {
    min-height: 138px;
    padding: 10px;
    border-radius: 14px;
  }

  .food-card img {
    height: 76px;
  }

  .mini-food strong,
  .food-card strong {
    margin-top: 6px;
    font-size: 16px;
  }

  .mini-food span,
  .food-card span {
    font-size: 12px;
    font-weight: 800;
  }

  .food-card em {
    right: 8px;
    bottom: 8px;
    min-width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .favorite-dot {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .remove-food-dot {
    min-width: 54px;
    height: 34px;
    padding: 0 12px;
    font-size: 14px;
  }

  .chips {
    gap: 10px;
    padding-bottom: 12px;
  }

  .chips button {
    min-width: 48px;
    height: 34px;
    padding: 0 14px;
    border-radius: 17px;
    font-size: 14px;
    font-weight: 800;
  }

  .recipe-toolbar input,
  .recipe-toolbar select,
  .search-panel input {
    height: 44px;
    border-radius: 22px;
    font-size: 14px;
  }

  .recipe-card,
  .fav-card {
    min-height: 132px;
    grid-template-columns: 132px 1fr 32px;
    gap: 14px;
  }

  .recipe-card img,
  .fav-card img {
    width: 132px;
    height: 104px;
  }

  .recipe-card h2,
  .meal-card h2,
  .fav-card h2 {
    font-size: 18px;
  }

  .recipe-card small,
  .recipe-card p span,
  .meal-card p,
  .fav-card p {
    font-size: 14px;
  }

  .meal-card {
    min-height: 108px;
    grid-template-columns: 40px 1fr 78px;
  }

  .meal-card img {
    width: 76px;
    height: 76px;
  }

  .history-row {
    min-height: 76px;
    grid-template-columns: 56px 1fr 22px;
  }

  .history-row img {
    width: 56px;
    height: 56px;
  }

  .history-row strong {
    font-size: 15px;
  }

  .history-row small {
    font-size: 12px;
  }

  .profile-content {
    height: calc(100% - 68px);
  }

  .profile-head {
    gap: 16px;
    padding: 20px 4px 22px;
  }

  .avatar {
    width: 70px;
    height: 70px;
    font-size: 40px;
  }

  .profile-head h1 {
    font-size: 21px;
  }

  .profile-name-btn {
    font-size: 16px;
  }

  .profile-head p {
    font-size: 15px;
  }

  .profile-edit-pill {
    min-width: 68px;
    min-height: 50px;
    font-size: 15px;
  }

  .profile-score-main {
    min-height: 144px;
  }

  .profile-score-main strong {
    font-size: 50px;
  }

  .profile-score-main small,
  .profile-score-mini span {
    font-size: 14px;
  }

  .profile-score-mini button {
    min-height: 42px;
    grid-template-columns: 50px 1fr;
  }

  .profile-score-mini strong {
    font-size: 26px;
  }

  .profile-quick button {
    min-height: 86px;
  }

  .profile-quick span {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .profile-quick strong,
  .duplicate-food-list > strong {
    font-size: 15px;
  }

  .data-card {
    padding: 20px;
    margin-bottom: 18px;
  }

  .data-card h2 {
    font-size: 18px;
  }

  .stats button {
    min-height: 76px;
  }

  .stats strong {
    font-size: 28px;
  }

  .stats span {
    font-size: 14px;
  }

  .stats small {
    font-size: 11px;
  }

  .settings-list button {
    min-height: 86px;
    grid-template-columns: 36px 1fr 28px;
    padding: 14px 16px;
  }

  .settings-list strong {
    font-size: 17px;
  }

  .settings-list small {
    font-size: 14px;
  }

  .sheet-card {
    left: 10px;
    right: 10px;
    max-height: 84%;
    padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .sheet-card h2 {
    font-size: 24px;
  }

  .sheet-card h3 {
    font-size: 18px;
  }

  .sheet-card p,
  .sheet-card li {
    font-size: 16px;
  }

  .sheet-row {
    min-height: 78px;
    grid-template-columns: 62px 1fr 26px;
  }

  .sheet-row img {
    width: 62px;
    height: 62px;
  }

  .sheet-row strong {
    font-size: 17px;
  }

  .sheet-row small {
    font-size: 14px;
  }

  .sheet-actions button {
    height: 48px;
    border-radius: 24px;
    font-size: 15px;
  }

  .tabbar {
    height: calc(84px + env(safe-area-inset-bottom, 0px));
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .tab {
    gap: 5px;
    border-radius: 17px;
    font-size: 13px;
  }

  .tab span {
    width: 36px;
    height: 32px;
    border-radius: 14px;
    font-size: 21px;
  }

  .tab.active::before {
    top: 5px;
    width: 22px;
    height: 4px;
  }

  .tab[data-badge]:not([data-badge=""])::after {
    top: 9px;
    right: 16px;
    min-width: 19px;
    height: 19px;
    font-size: 11px;
  }

  .toast {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    font-size: 14px;
  }
}

@media (hover: none) and (pointer: coarse) and (min-width: 481px) {
  .phone-shell,
  .phone {
    width: 100vw;
  }
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  body {
    font-size: 18px;
  }

  .screen {
    inset: 0 0 calc(94px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    min-height: 74px;
    grid-template-columns: 88px 1fr 88px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .icon-btn {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .scan-btn {
    width: 44px;
    height: 42px;
    border-radius: 14px;
    font-size: 17px;
  }

  .add-entry {
    width: 64px;
    height: 42px;
    border-radius: 15px;
    font-size: 16px;
  }

  .content {
    height: calc(100% - 74px - env(safe-area-inset-top, 0));
    padding: 22px 18px calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .section-head h2 {
    font-size: 21px;
  }

  .section-head button,
  .section-head small {
    font-size: 16px;
  }

  .helper-line {
    margin-top: -6px;
    font-size: 17px;
  }

  .add-mini {
    height: 40px;
    padding: 0 16px;
    font-size: 16px !important;
  }

  .expiry-row,
  .food-grid,
  .works-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .mini-food,
  .food-card {
    min-height: 184px;
    padding: 13px;
    border-radius: 18px;
  }

  .mini-food img,
  .food-card img {
    height: 108px;
  }

  .mini-food strong,
  .food-card strong {
    margin-top: 8px;
    font-size: 20px;
  }

  .mini-food span,
  .food-card span {
    font-size: 15px;
  }

  .food-card em {
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 15px;
  }

  .favorite-dot {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .remove-food-dot {
    min-width: 68px;
    height: 42px;
    padding: 0 15px;
    font-size: 17px;
  }

  .chips button {
    height: 42px;
    min-width: 60px;
    padding: 0 18px;
    border-radius: 21px;
    font-size: 17px;
  }

  .recipe-toolbar {
    grid-template-columns: 1fr;
  }

  .recipe-toolbar input,
  .recipe-toolbar select,
  .search-panel input,
  .food-form input,
  .food-form select,
  .use-form input {
    height: 52px;
    border-radius: 16px;
    font-size: 17px;
  }

  .food-form label,
  .receipt-form label,
  .use-form label {
    font-size: 16px;
  }

  .duplicate-food-card {
    grid-template-columns: 70px 1fr;
    min-height: 104px;
    font-size: 16px;
  }

  .duplicate-food-card img {
    width: 70px;
    height: 70px;
  }

  .duplicate-food-card small {
    font-size: 15px;
  }

  .duplicate-food-card button {
    min-height: 48px;
    border-radius: 24px;
    font-size: 16px;
  }

  .compact-upload {
    min-height: 104px;
  }

  .recipe-card,
  .fav-card {
    min-height: 170px;
    grid-template-columns: 144px 1fr 36px;
    gap: 16px;
    padding: 12px;
    border-radius: 16px;
  }

  .recipe-card img,
  .fav-card img {
    width: 144px;
    height: 124px;
    border-radius: 14px;
  }

  .recipe-card h2,
  .meal-card h2,
  .fav-card h2 {
    font-size: 21px;
  }

  .recipe-card h2 span {
    font-size: 13px;
  }

  .recipe-card small,
  .recipe-card p span,
  .meal-card p,
  .meal-card small,
  .fav-card p {
    font-size: 16px;
  }

  .meal-card {
    min-height: 134px;
    grid-template-columns: 48px 1fr 94px;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
  }

  .meal-card img {
    width: 90px;
    height: 90px;
    border-radius: 14px;
  }

  .calendar-card,
  .shopping-card,
  .history-card,
  .data-card,
  .settings-list {
    border-radius: 18px;
  }

  .month-line strong {
    font-size: 21px;
  }

  .month-line button {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .week-days {
    font-size: 15px;
  }

  .dates strong {
    font-size: 18px;
  }

  .dates small {
    font-size: 12px;
  }

  .dates span,
  .dates button {
    height: 48px;
  }

  .profile-head {
    gap: 18px;
  }

  .avatar {
    width: 78px;
    height: 78px;
    font-size: 46px;
  }

  .profile-head h1 {
    font-size: 24px;
  }

  .profile-name-btn,
  .profile-head p {
    font-size: 18px;
  }

  .profile-score-card {
    grid-template-columns: 1fr;
  }

  .profile-score-mini {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-score-mini button {
    min-height: 78px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-status {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stats button {
    min-height: 86px;
  }

  .stats strong {
    font-size: 34px;
  }

  .stats span {
    font-size: 18px;
  }

  .stats small {
    font-size: 14px;
  }

  .profile-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .profile-quick button {
    min-height: 96px;
    border-radius: 18px;
  }

  .profile-quick span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
  }

  .profile-quick strong {
    font-size: 17px;
  }

  .settings-list button {
    min-height: 98px;
    grid-template-columns: 44px 1fr 32px;
    padding: 16px;
  }

  .settings-list span {
    font-size: 28px;
  }

  .settings-list strong {
    font-size: 20px;
  }

  .settings-list small {
    font-size: 16px;
  }

  .sheet-card {
    left: 8px;
    right: 8px;
    max-height: 88%;
    border-radius: 22px;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .sheet-card h2 {
    font-size: 28px;
  }

  .sheet-card h3 {
    font-size: 21px;
  }

  .sheet-card p,
  .sheet-card li,
  .sheet-meta {
    font-size: 18px;
  }

  .sheet-row {
    min-height: 96px;
    grid-template-columns: 74px 1fr 30px;
    gap: 14px;
    border-radius: 16px;
  }

  .sheet-row img {
    width: 74px;
    height: 74px;
    border-radius: 14px;
  }

  .sheet-row strong {
    font-size: 20px;
  }

  .sheet-row small {
    font-size: 16px;
  }

  .food-current {
    min-height: 92px;
    grid-template-columns: 72px 1fr;
  }

  .food-current img {
    width: 72px;
    height: 72px;
  }

  .food-current strong {
    font-size: 19px;
  }

  .food-current small {
    font-size: 16px;
  }

  .food-form > button,
  .sheet-actions button,
  .plan-secondary,
  .refresh-btn {
    min-height: 54px;
    border-radius: 27px;
    font-size: 18px;
  }

  .tabbar {
    height: calc(94px + env(safe-area-inset-bottom, 0px));
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .tab {
    font-size: 15px;
    border-radius: 20px;
  }

  .tab span {
    width: 42px;
    height: 36px;
    font-size: 26px;
  }

  .tab[data-badge]:not([data-badge=""])::after {
    min-width: 22px;
    height: 22px;
    font-size: 13px;
  }

  .toast {
    bottom: calc(114px + env(safe-area-inset-bottom, 0px));
    padding: 12px 16px;
    font-size: 17px;
  }
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  body {
    font-size: 22px;
  }

  .screen {
    inset: 0 0 calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    min-height: 88px;
    grid-template-columns: 104px 1fr 104px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .topbar h1 {
    font-size: 28px;
  }

  .icon-btn {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 34px;
  }

  .scan-btn {
    width: 58px;
    height: 54px;
    font-size: 22px;
  }

  .content {
    height: calc(100% - 88px - env(safe-area-inset-top, 0));
    padding: 24px 18px calc(42px + env(safe-area-inset-bottom, 0px));
  }

  .section-head h2 {
    font-size: 28px;
  }

  .section-head button,
  .section-head small,
  .helper-line {
    font-size: 20px;
  }

  .add-mini {
    height: 52px;
    padding: 0 20px;
    border-radius: 26px;
    font-size: 20px !important;
  }

  .chips button {
    min-width: 76px;
    height: 54px;
    padding: 0 22px;
    border-radius: 27px;
    font-size: 21px;
  }

  .expiry-row,
  .food-grid,
  .works-wall {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mini-food,
  .food-card {
    min-height: 156px;
    display: grid;
    grid-template-columns: 132px 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px 18px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
  }

  .mini-food img,
  .food-card img {
    grid-row: 1 / span 3;
    width: 132px;
    height: 120px;
  }

  .mini-food strong,
  .food-card strong {
    margin-top: 0;
    font-size: 28px;
  }

  .mini-food span,
  .food-card span {
    font-size: 21px;
  }

  .food-card em {
    position: static;
    justify-self: start;
    min-width: 74px;
    height: 40px;
    padding: 0 14px;
    font-size: 20px;
  }

  .favorite-dot {
    width: 54px;
    height: 54px;
    right: 10px;
    top: 10px;
    font-size: 26px;
  }

  .remove-food-dot {
    min-width: 86px;
    height: 52px;
    left: 10px;
    top: 10px;
    padding: 0 18px;
    font-size: 21px;
  }

  .recipe-toolbar {
    gap: 12px;
  }

  .recipe-toolbar input,
  .recipe-toolbar select,
  .search-panel input,
  .food-form input,
  .food-form select,
  .use-form input {
    height: 64px;
    border-radius: 20px;
    font-size: 22px;
  }

  .food-form label,
  .receipt-form label,
  .use-form label {
    font-size: 21px;
  }

  .food-form textarea {
    min-height: 140px;
    font-size: 22px;
  }

  .recipe-card,
  .fav-card,
  .meal-card {
    min-height: 178px;
    grid-template-columns: 132px 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: 20px;
  }

  .recipe-card img,
  .fav-card img,
  .meal-card img {
    width: 132px;
    height: 132px;
    border-radius: 18px;
  }

  .recipe-card h2,
  .meal-card h2,
  .fav-card h2 {
    font-size: 27px;
  }

  .recipe-card small,
  .recipe-card p span,
  .meal-card p,
  .meal-card small,
  .fav-card p {
    font-size: 21px;
    line-height: 1.35;
  }

  .recipe-card > button,
  .fav-card > button {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .calendar-card,
  .shopping-card,
  .history-card,
  .data-card,
  .settings-list {
    border-radius: 22px;
  }

  .month-line strong,
  .data-card h2 {
    font-size: 27px;
  }

  .dates span,
  .dates button {
    height: 62px;
  }

  .dates strong {
    font-size: 23px;
  }

  .dates small,
  .week-days,
  .plan-summary span {
    font-size: 18px;
  }

  .history-row {
    min-height: 112px;
    grid-template-columns: 88px 1fr 30px;
    gap: 16px;
    border-radius: 18px;
  }

  .history-row img {
    width: 88px;
    height: 88px;
    border-radius: 16px;
  }

  .history-row strong {
    font-size: 23px;
  }

  .history-row small {
    font-size: 18px;
  }

  .profile-head {
    gap: 20px;
    padding: 26px 4px;
  }

  .avatar {
    width: 96px;
    height: 96px;
    font-size: 56px;
  }

  .profile-head h1 {
    font-size: 30px;
  }

  .profile-name-btn,
  .profile-head p {
    font-size: 23px;
  }

  .profile-edit-pill {
    min-width: 92px;
    min-height: 66px;
    font-size: 22px;
  }

  .profile-score-main {
    min-height: 170px;
    border-radius: 24px;
  }

  .profile-score-main strong {
    font-size: 62px;
  }

  .profile-score-main span {
    font-size: 24px;
  }

  .profile-score-main small {
    font-size: 19px;
  }

  .profile-score-mini button {
    min-height: 104px;
    border-radius: 22px;
  }

  .profile-score-mini strong {
    font-size: 40px;
  }

  .profile-score-mini span {
    font-size: 19px;
  }

  .stats,
  .profile-quick {
    grid-template-columns: 1fr;
  }

  .stats button,
  .profile-quick button {
    min-height: 110px;
    border-radius: 22px;
  }

  .stats strong {
    font-size: 42px;
  }

  .stats span,
  .profile-quick strong {
    font-size: 23px;
  }

  .stats small {
    font-size: 18px;
  }

  .profile-quick span {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 25px;
  }

  .settings-list button {
    min-height: 116px;
    grid-template-columns: 58px 1fr 36px;
    padding: 18px;
  }

  .settings-list span {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 28px;
  }

  .settings-list strong {
    font-size: 25px;
  }

  .settings-list small {
    font-size: 20px;
  }

  .sheet-card {
    left: 6px;
    right: 6px;
    max-height: 90%;
    padding: 26px 20px calc(28px + env(safe-area-inset-bottom, 0px));
    border-radius: 26px;
  }

  .sheet-close {
    width: 46px;
    height: 46px;
    font-size: 30px;
  }

  .sheet-card h2 {
    font-size: 34px;
  }

  .sheet-card h3 {
    font-size: 26px;
  }

  .sheet-card p,
  .sheet-card li,
  .sheet-meta {
    font-size: 23px;
    line-height: 1.45;
  }

  .sheet-row {
    min-height: 120px;
    grid-template-columns: 92px 1fr 36px;
    gap: 16px;
    border-radius: 20px;
  }

  .sheet-row img {
    width: 92px;
    height: 92px;
    border-radius: 18px;
  }

  .sheet-row strong {
    font-size: 25px;
  }

  .sheet-row small {
    font-size: 20px;
  }

  .food-current,
  .duplicate-food-card {
    grid-template-columns: 92px 1fr;
    min-height: 124px;
    gap: 16px;
    border-radius: 20px;
  }

  .food-current img,
  .duplicate-food-card img {
    width: 92px;
    height: 92px;
    border-radius: 18px;
  }

  .food-current strong,
  .duplicate-food-card strong {
    font-size: 25px;
  }

  .food-current small,
  .duplicate-food-card small,
  .duplicate-food-list > strong {
    font-size: 20px;
  }

  .duplicate-food-card button,
  .food-form > button,
  .sheet-actions button,
  .plan-secondary,
  .refresh-btn {
    min-height: 66px;
    border-radius: 33px;
    font-size: 22px;
  }

  .tabbar {
    height: calc(112px + env(safe-area-inset-bottom, 0px));
    padding: 12px 10px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .tab {
    gap: 7px;
    border-radius: 24px;
    font-size: 18px;
  }

  .tab span {
    width: 52px;
    height: 44px;
    border-radius: 18px;
    font-size: 32px;
  }

  .tab[data-badge]:not([data-badge=""])::after {
    min-width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .toast {
    bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    max-width: 92%;
    padding: 16px 20px;
    border-radius: 24px;
    font-size: 22px;
  }

  .toast button {
    min-height: 48px;
    font-size: 20px;
  }
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  button {
    min-height: 58px;
  }

  .icon-btn,
  .sheet-close,
  .favorite-dot {
    min-width: 64px;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    font-size: 36px;
  }

  .scan-btn {
    min-width: 72px;
    width: 72px;
    height: 64px;
    font-size: 26px;
  }

  .add-mini,
  .chips button,
  .shopping-tags button,
  .sheet-tags button,
  .subtabs button,
  .segmented button,
  .serving-control button,
  .quick-amounts button,
  .receipt-actions button,
  .month-line button,
  .dates button {
    min-height: 64px;
    padding: 0 24px;
    border-radius: 32px;
    font-size: 23px;
    font-weight: 900;
  }

  .remove-food-dot {
    min-width: 102px;
    width: auto;
    height: 64px;
    padding: 0 22px;
    border-radius: 32px;
    font-size: 24px;
  }

  .recipe-card > button,
  .fav-card > button {
    min-width: 68px;
    width: 68px;
    height: 68px;
    border-radius: 24px;
    font-size: 34px;
  }

  .food-form > button,
  .sheet-actions button,
  .plan-secondary,
  .refresh-btn,
  .duplicate-food-card button,
  .use-actions button,
  .missing-actions button {
    min-height: 76px;
    padding: 0 26px;
    border-radius: 38px;
    font-size: 25px;
    font-weight: 900;
  }

  .sheet-actions {
    gap: 14px;
    padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .tabbar {
    height: calc(126px + env(safe-area-inset-bottom, 0px));
    padding: 14px 10px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .screen {
    inset: 0 0 calc(126px + env(safe-area-inset-bottom, 0px));
  }

  .tab {
    min-height: 92px;
    border-radius: 28px;
    font-size: 20px;
  }

  .tab span {
    width: 62px;
    height: 52px;
    border-radius: 20px;
    font-size: 36px;
  }

  .tab[data-badge]:not([data-badge=""])::after {
    min-width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .profile-quick button,
  .stats button,
  .settings-list button,
  .data-mini button {
    min-height: 126px;
  }

  .profile-name-btn {
    min-height: 52px;
    padding: 0;
  }

  .avatar-picker button {
    min-height: 72px;
    font-size: 34px;
  }

  .toast {
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }

  .toast button {
    min-height: 60px;
    padding: 0 22px;
    font-size: 24px;
  }
}

.phone button {
  min-height: 58px;
}

.phone .screen {
  inset: 0 0 calc(126px + env(safe-area-inset-bottom, 0px));
}

.phone .topbar {
  min-height: 88px;
  grid-template-columns: 104px 1fr 104px;
}

.phone .topbar h1 {
  font-size: 28px;
}

.phone .content {
  height: calc(100% - 88px - env(safe-area-inset-top, 0));
}

.phone .icon-btn,
.phone .sheet-close,
.phone .favorite-dot {
  min-width: 64px;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  font-size: 36px;
}

.phone .scan-btn {
  min-width: 72px;
  width: 72px;
  height: 64px;
  font-size: 26px;
}

.phone .add-mini,
.phone .section-head button,
.phone .chips button,
.phone .shopping-tags button,
.phone .sheet-tags button,
.phone .subtabs button,
.phone .segmented button,
.phone .serving-control button,
.phone .quick-amounts button,
.phone .receipt-actions button,
.phone .month-line button,
.phone .dates button {
  min-height: 64px;
  padding: 0 24px;
  border-radius: 32px;
  font-size: 23px !important;
  font-weight: 900;
}

.phone .remove-food-dot {
  min-width: 102px;
  width: auto;
  height: 64px;
  padding: 0 22px;
  border-radius: 32px;
  font-size: 24px;
}

.phone .recipe-card > button,
.phone .fav-card > button {
  min-width: 68px;
  width: 68px;
  height: 68px;
  border-radius: 24px;
  font-size: 34px;
}

.phone .food-form > button,
.phone .sheet-actions button,
.phone .plan-secondary,
.phone .refresh-btn,
.phone .duplicate-food-card button,
.phone .use-actions button,
.phone .missing-actions button {
  min-height: 76px;
  padding: 0 26px;
  border-radius: 38px;
  font-size: 25px;
  font-weight: 900;
}

.phone .sheet-actions {
  gap: 14px;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px));
}

.phone .tabbar {
  height: calc(126px + env(safe-area-inset-bottom, 0px));
  padding: 14px 10px calc(16px + env(safe-area-inset-bottom, 0px));
}

.phone .tab {
  min-height: 92px;
  border-radius: 28px;
  font-size: 20px;
}

.phone .tab span {
  width: 62px;
  height: 52px;
  border-radius: 20px;
  font-size: 36px;
}

.phone .tab[data-badge]:not([data-badge=""])::after {
  min-width: 30px;
  height: 30px;
  font-size: 17px;
}

.phone .profile-quick button,
.phone .stats button,
.phone .settings-list button,
.phone .data-mini button {
  min-height: 126px;
}

.phone .profile-head {
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 24px;
}

.phone .profile-head .avatar {
  width: 86px;
  height: 86px;
  font-size: 50px;
}

.phone .profile-head h1 {
  padding-right: 94px;
  font-size: 26px;
}

.phone .profile-name-btn,
.phone .profile-head p {
  font-size: 21px;
}

.phone .profile-status {
  gap: 14px;
  margin-bottom: 22px;
}

.phone .profile-status button {
  min-height: 120px;
  padding: 20px;
  border-radius: 24px;
}

.phone .profile-status strong {
  font-size: 26px;
}

.phone .profile-status span {
  font-size: 21px;
}

.phone .profile-section-title {
  margin: 10px 4px 14px;
}

.phone .profile-section-title h2,
.phone .card-title-row h2 {
  font-size: 26px;
}

.phone .card-title-row button {
  min-height: 58px;
  padding: 0 22px;
  font-size: 22px !important;
}

.phone .profile-name-btn {
  min-height: 52px;
  padding: 0;
}

.phone .profile-quick button {
  gap: 8px;
}

.phone .profile-quick small {
  font-size: 18px;
}

.phone .avatar-picker button {
  min-height: 72px;
  font-size: 34px;
}

.phone input,
.phone textarea,
.phone select {
  min-height: 66px;
  font-size: 22px !important;
  line-height: 1.35;
  touch-action: manipulation;
}

.phone input:focus,
.phone textarea:focus,
.phone select:focus {
  font-size: 22px !important;
  outline: 3px solid rgba(85, 125, 71, .28);
  outline-offset: 2px;
}

.phone .receipt-edit input,
.phone .receipt-edit select {
  min-height: 58px;
  font-size: 21px !important;
}

.phone .amount-slider input[type="range"],
.phone .receipt-item > input[type="checkbox"],
.phone .privacy-picker input,
.phone .upload-box input {
  min-height: auto;
}

.phone .sheet-card {
  padding-top: 18px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.phone .sheet-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  margin-bottom: 8px;
  z-index: 5;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 20px rgba(65, 83, 53, .16);
}

.phone .sheet-card:focus-within .sheet-close {
  position: sticky;
  top: 0;
}

.phone .profile-edit-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: 88px;
  min-height: 60px;
  font-size: 22px;
}

.phone .profile-score-card {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.phone .profile-score-main {
  min-height: 140px;
  padding: 20px;
  border-radius: 26px;
}

.phone .profile-score-main strong {
  font-size: 58px;
}

.phone .profile-score-main span {
  font-size: 24px;
}

.phone .profile-score-main small {
  font-size: 19px;
}

.phone .profile-score-mini {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.phone .profile-score-mini button {
  min-height: 92px;
  grid-template-columns: 1fr;
  justify-items: center;
  border-radius: 24px;
  text-align: center;
}

.phone .profile-score-mini strong {
  font-size: 36px;
}

.phone .profile-score-mini span {
  font-size: 20px;
}

.phone .profile-status {
  grid-template-columns: 1fr;
}

.phone .settings-list span {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  font-size: 30px;
}

/* Real phone browsers have less usable height than the preview, so keep Profile dense without shrinking text. */
.phone .profile-content {
  padding: 12px 14px 18px;
}

.phone .profile-head {
  min-height: auto;
  display: grid;
  grid-template-columns: 66px 1fr 68px;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 22px;
}

.phone .profile-head .avatar {
  width: 66px;
  height: 66px;
  font-size: 38px;
}

.phone .profile-head h1 {
  padding-right: 0;
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1.15;
}

.phone .profile-name-btn {
  min-height: 30px;
  margin-bottom: 2px;
  font-size: 20px;
  line-height: 1.15;
}

.phone .profile-head p {
  font-size: 17px;
  line-height: 1.25;
}

.phone .profile-edit-pill {
  position: static;
  min-width: 66px;
  min-height: 50px;
  padding: 0 12px;
  border-radius: 20px;
  font-size: 20px;
}

.phone .profile-score-card {
  display: none;
}

.phone .profile-score-main {
  min-height: 62px;
  grid-template-columns: 62px 1fr;
  align-items: center;
  align-content: center;
  column-gap: 10px;
  padding: 8px 12px;
  border-radius: 18px;
}

.phone .profile-score-main strong {
  grid-row: 1 / span 2;
  font-size: 38px;
}

.phone .profile-score-main span {
  font-size: 20px;
  line-height: 1.1;
}

.phone .profile-score-main small {
  font-size: 16px;
  line-height: 1.15;
}

.phone .profile-score-mini {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.phone .profile-score-mini button {
  min-height: 58px;
  padding: 6px;
  border-radius: 16px;
}

.phone .profile-score-mini strong {
  font-size: 26px;
}

.phone .profile-score-mini span {
  font-size: 16px;
}

.phone .profile-section-title {
  margin: 8px 3px 8px;
}

.phone .profile-section-title h2,
.phone .card-title-row h2 {
  font-size: 24px;
}

.phone .profile-status {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.phone .profile-status button {
  min-height: 82px;
  padding: 10px;
  border-radius: 20px;
}

.phone .profile-status strong {
  font-size: 22px;
  line-height: 1.15;
}

.phone .profile-status span {
  font-size: 16px;
  line-height: 1.2;
}

.phone .profile-quick {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.phone .profile-quick button {
  min-height: 82px;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px 5px;
  border-radius: 20px;
  text-align: center;
}

.phone .profile-quick span {
  grid-row: auto;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  font-size: 23px;
}

.phone .profile-quick strong {
  align-self: auto;
  font-size: 18px;
  line-height: 1.15;
}

.phone .profile-quick small {
  display: none;
}

.phone .settings-list {
  margin-bottom: 12px;
}

.phone .settings-list button {
  min-height: 82px;
  grid-template-columns: 54px 1fr 28px;
  padding: 12px 14px;
}

.phone .settings-list span {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-size: 26px;
}

.phone .settings-list strong {
  font-size: 22px;
}

.phone .settings-list small {
  font-size: 17px;
}

.phone .stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.phone .stats button {
  min-height: 78px;
  padding: 8px;
}

.phone .stats strong {
  font-size: 32px;
}

.phone .stats span {
  font-size: 18px;
}

.phone .stats small {
  font-size: 14px;
}

.phone .data-card {
  padding: 14px;
  margin-bottom: 12px;
}

.phone .data-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.phone .works-wall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.phone .work-card {
  min-height: auto;
}

.phone .work-card span {
  font-size: 14px;
}

/* Final real-phone pass: optimize for mobile browsers with visible address/tool bars. */
@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  html,
  body {
    width: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  body {
    display: block;
    background: #fffdf8;
  }

  .phone-shell,
  .phone {
    width: 100vw;
    max-width: none;
    height: 100svh;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  @supports (height: 100dvh) {
    .phone-shell,
    .phone {
      height: 100dvh;
    }
  }

  .screen,
  .phone .screen {
    inset: 0 0 calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .topbar,
  .phone .topbar {
    min-height: 70px;
    grid-template-columns: 82px 1fr 82px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar h1,
  .phone .topbar h1 {
    font-size: 24px;
  }

  .content,
  .phone .content,
  .favorite-content {
    height: calc(100% - 70px - env(safe-area-inset-top, 0px));
    padding: 14px 14px calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .icon-btn,
  .phone .icon-btn,
  .phone .sheet-close,
  .phone .favorite-dot {
    min-width: 52px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 30px;
  }

  .scan-btn,
  .phone .scan-btn {
    min-width: 58px;
    width: 58px;
    height: 52px;
    font-size: 22px;
  }

  .tabbar,
  .phone .tabbar {
    height: calc(84px + env(safe-area-inset-bottom, 0px));
    padding: 7px 7px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .tab,
  .phone .tab {
    min-height: 66px;
    border-radius: 20px;
    gap: 2px;
    font-size: 17px;
  }

  .tab span,
  .phone .tab span {
    width: 42px;
    height: 34px;
    border-radius: 16px;
    font-size: 26px;
  }

  .tab.active::before {
    top: 5px;
  }

  .tab[data-badge]:not([data-badge=""])::after,
  .phone .tab[data-badge]:not([data-badge=""])::after {
    min-width: 20px;
    height: 20px;
    top: 8px;
    right: 18px;
    padding: 0 5px;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(239, 76, 60, .18);
  }

  .section-head {
    min-height: 42px;
    margin-bottom: 8px;
  }

  .section-head h2,
  .profile-section-title h2 {
    font-size: 23px;
  }

  .section-head button,
  .section-head small {
    font-size: 18px;
  }

  .add-mini,
  .phone .add-mini,
  .phone .section-head button,
  .phone .chips button,
  .phone .shopping-tags button,
  .phone .sheet-tags button,
  .phone .subtabs button,
  .phone .segmented button,
  .phone .serving-control button,
  .phone .quick-amounts button,
  .phone .receipt-actions button,
  .phone .month-line button,
  .phone .dates button {
    min-height: 52px;
    padding: 0 18px;
    border-radius: 26px;
    font-size: 20px !important;
  }

  .helper-line {
    display: none;
  }

  .expiry-row {
    display: flex;
    gap: 10px;
    margin: 0 -14px 12px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .expiry-row::-webkit-scrollbar {
    display: none;
  }

  .mini-food {
    flex: 0 0 158px;
    min-height: 108px;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
  }

  .mini-food img {
    grid-row: 1 / span 2;
    width: 56px;
    height: 72px;
  }

  .mini-food strong {
    margin: 0;
    font-size: 19px;
    line-height: 1.15;
  }

  .mini-food span {
    font-size: 15px;
    line-height: 1.2;
  }

  .chips {
    gap: 8px;
    margin: 0 -14px;
    padding: 0 14px 8px;
  }

  .chips button {
    min-width: auto;
    height: 46px;
  }

  .food-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .food-card {
    min-height: 112px;
    display: grid;
    grid-template-columns: 84px 1fr 68px;
    grid-template-rows: auto auto auto;
    gap: 2px 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 20px;
  }

  .food-card img {
    grid-row: 1 / span 3;
    width: 78px;
    height: 82px;
  }

  .food-card strong {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
  }

  .food-card span {
    font-size: 18px;
  }

  .food-card em {
    position: static;
    grid-column: 2;
    justify-self: start;
    min-width: 58px;
    height: 34px;
    padding: 0 12px;
    font-size: 17px;
  }

  .remove-food-dot,
  .phone .remove-food-dot {
    position: static;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 58px;
    height: 42px;
    padding: 0 12px;
    border-radius: 23px;
    font-size: 18px;
  }

  .food-card .favorite-dot,
  .phone .food-card .favorite-dot {
    position: static;
    grid-column: 3;
    grid-row: 2 / span 2;
    justify-self: end;
    min-width: 48px;
    width: 48px;
    height: 42px;
    font-size: 24px;
  }

  .hero-card {
    min-height: 82px;
    padding: 12px 14px;
    border-radius: 20px;
  }

  .hero-card h2 {
    margin-bottom: 4px;
    font-size: 22px;
  }

  .hero-card p {
    font-size: 17px;
    line-height: 1.25;
  }

  .hero-card img {
    width: 72px;
    height: 64px;
  }

  .recipe-toolbar {
    grid-template-columns: 1fr 124px;
    gap: 8px;
    margin-top: 10px;
  }

  .recipe-toolbar input,
  .recipe-toolbar select,
  .search-panel input {
    height: 50px;
    border-radius: 18px;
    font-size: 18px !important;
  }

  .recipe-list {
    gap: 10px;
    margin-top: 12px;
  }

  .recipe-card,
  .fav-card {
    min-height: 132px;
    grid-template-columns: 104px 1fr 52px;
    gap: 12px;
    padding: 10px;
    border-radius: 20px;
  }

  .recipe-card img,
  .fav-card img {
    width: 104px;
    height: 104px;
    border-radius: 16px;
  }

  .recipe-card h2,
  .fav-card h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .recipe-card h2 span {
    font-size: 15px;
  }

  .recipe-card p {
    margin: 8px 0 6px;
    gap: 5px;
  }

  .recipe-card p span {
    padding: 2px 7px;
    font-size: 16px;
  }

  .recipe-card small,
  .fav-card p {
    font-size: 17px;
    line-height: 1.25;
  }

  .recipe-card > button,
  .fav-card > button,
  .phone .recipe-card > button,
  .phone .fav-card > button {
    min-width: 52px;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .calendar-card {
    padding: 12px;
    border-radius: 20px;
  }

  .month-line {
    grid-template-columns: 52px 1fr 52px;
    margin-bottom: 8px;
  }

  .month-line strong {
    font-size: 22px;
  }

  .week-days {
    font-size: 16px;
  }

  .dates {
    margin-top: 8px;
  }

  .dates span,
  .dates button {
    height: 42px;
    border-radius: 14px;
  }

  .dates strong {
    font-size: 20px;
  }

  .dates small {
    font-size: 12px;
  }

  .dates i {
    bottom: 2px;
  }

  .plan-summary {
    margin-top: 8px;
    padding-top: 8px;
    gap: 3px;
  }

  .plan-summary strong {
    font-size: 20px;
  }

  .plan-summary span {
    font-size: 17px;
    line-height: 1.25;
  }

  .meal-list {
    gap: 10px;
  }

  .meal-card {
    min-height: 112px;
    grid-template-columns: 44px 1fr 82px;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
  }

  .meal-card img {
    width: 82px;
    height: 82px;
    border-radius: 16px;
  }

  .meal-card h2 {
    font-size: 22px;
  }

  .meal-card p,
  .meal-card small {
    font-size: 17px;
    line-height: 1.25;
  }

  .shopping-card,
  .history-card {
    margin-top: 12px;
    padding: 12px;
    border-radius: 20px;
  }

  .subtabs {
    height: 52px;
  }

  .favorite-content {
    height: calc(100% - 122px - env(safe-area-inset-top, 0px));
    padding-top: 12px;
  }

  .profile-content,
  .phone .profile-content {
    padding: 10px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .profile-head,
  .phone .profile-head {
    grid-template-columns: 60px 1fr 64px;
    gap: 9px;
    padding: 9px 10px;
    margin-bottom: 8px;
  }

  .phone .profile-head .avatar {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }

  .profile-head h1,
  .phone .profile-head h1 {
    font-size: 22px;
  }

  .profile-name-btn,
  .profile-head p,
  .phone .profile-name-btn,
  .phone .profile-head p {
    font-size: 17px;
  }

  .profile-edit-pill,
  .phone .profile-edit-pill {
    min-width: 60px;
    min-height: 46px;
    font-size: 18px;
  }

  .profile-section-title,
  .phone .profile-section-title {
    margin: 6px 3px 7px;
  }

  .profile-status,
  .phone .profile-status {
    gap: 7px;
    margin-bottom: 8px;
  }

  .profile-status button,
  .phone .profile-status button {
    min-height: 76px;
    padding: 9px;
  }

  .profile-status strong,
  .phone .profile-status strong {
    font-size: 20px;
  }

  .profile-status span,
  .phone .profile-status span {
    font-size: 15px;
  }

  .profile-quick,
  .phone .profile-quick {
    gap: 7px;
  }

  .profile-quick button,
  .phone .profile-quick button {
    min-height: 76px;
  }

  .profile-quick span,
  .phone .profile-quick span {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  .profile-quick strong,
  .phone .profile-quick strong {
    font-size: 17px;
  }

  .settings-list button,
  .phone .settings-list button {
    min-height: 74px;
    grid-template-columns: 48px 1fr 26px;
    padding: 10px 12px;
  }

  .settings-list span,
  .phone .settings-list span {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .settings-list strong,
  .phone .settings-list strong {
    font-size: 20px;
  }

  .settings-list small,
  .phone .settings-list small {
    font-size: 16px;
  }
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  .calendar-card {
    padding: 10px 12px;
  }

  .month-line {
    margin-bottom: 6px;
  }

  .week-days {
    display: none;
  }

  .dates {
    display: flex;
    gap: 8px;
    margin: 0 -12px;
    padding: 2px 12px 6px;
    overflow-x: auto;
    text-align: center;
    scrollbar-width: none;
  }

  .dates::-webkit-scrollbar {
    display: none;
  }

  .dates > span {
    display: none;
  }

  .dates button {
    flex: 0 0 62px;
    width: 62px;
    height: 58px;
    border-radius: 18px;
    background: #f7f2e8;
  }

  .dates .selected {
    background: var(--green);
  }

  .dates strong {
    font-size: 21px;
  }

  .dates small {
    min-height: 14px;
    font-size: 12px;
  }

  .plan-summary {
    margin-top: 6px;
    padding-top: 7px;
  }

  .screen[data-screen="plan"] .section-head.strong {
    min-height: 44px;
    margin-top: 10px;
  }

  .favorite-content {
    height: calc(100% - 122px - env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  body {
    font-size: 20px;
  }

  .topbar,
  .phone .topbar {
    min-height: 76px;
    grid-template-columns: 88px 1fr 88px;
  }

  .topbar h1,
  .phone .topbar h1 {
    font-size: 26px;
    font-weight: 900;
  }

  .screen,
  .phone .screen {
    inset: 0 0 calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .content,
  .phone .content {
    height: calc(100% - 76px - env(safe-area-inset-top, 0px));
    padding: 16px 14px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .tabbar,
  .phone .tabbar {
    height: calc(96px + env(safe-area-inset-bottom, 0px));
    padding: 8px 7px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .tab,
  .phone .tab {
    min-height: 76px;
    border-radius: 22px;
    font-size: 18px;
    font-weight: 900;
  }

  .tab span,
  .phone .tab span {
    width: 46px;
    height: 38px;
    font-size: 29px;
  }

  .tab[data-badge]:not([data-badge=""])::after,
  .phone .tab[data-badge]:not([data-badge=""])::after {
    min-width: 22px;
    height: 22px;
    right: 16px;
    font-size: 14px;
  }

  .section-head {
    min-height: 50px;
    margin-bottom: 10px;
  }

  .section-head h2,
  .profile-section-title h2 {
    font-size: 25px;
    font-weight: 900;
  }

  .section-head button,
  .section-head small {
    font-size: 20px;
  }

  .add-mini,
  .phone .add-mini {
    min-height: 58px;
    padding: 0 24px;
    border-radius: 29px;
    font-size: 23px !important;
  }

  .expiry-row {
    gap: 12px;
    margin-bottom: 14px;
  }

  .mini-food {
    flex-basis: 178px;
    min-height: 128px;
    grid-template-columns: 68px 1fr;
    gap: 5px 12px;
    padding: 12px;
    border-radius: 22px;
  }

  .mini-food img {
    width: 68px;
    height: 84px;
  }

  .mini-food strong {
    font-size: 22px;
  }

  .mini-food span {
    font-size: 17px;
    font-weight: 900;
  }

  .chips {
    padding-bottom: 12px;
  }

  .chips button,
  .phone .chips button {
    min-height: 54px;
    padding: 0 20px;
    border-radius: 27px;
    font-size: 22px !important;
    font-weight: 900;
  }

  .food-grid {
    gap: 12px;
  }

  .food-card {
    min-height: 142px;
    grid-template-columns: 108px 1fr 76px;
    gap: 4px 16px;
    padding: 14px;
    border-radius: 24px;
  }

  .food-card img {
    width: 104px;
    height: 110px;
  }

  .food-card strong {
    font-size: 28px;
    line-height: 1.12;
  }

  .food-card span {
    font-size: 21px;
    font-weight: 900;
  }

  .food-card em {
    min-width: 68px;
    height: 38px;
    font-size: 19px;
  }

  .remove-food-dot,
  .phone .remove-food-dot {
    min-width: 72px;
    height: 52px;
    border-radius: 26px;
    font-size: 21px;
  }

  .food-card .favorite-dot,
  .phone .food-card .favorite-dot {
    min-width: 58px;
    width: 58px;
    height: 52px;
    border-radius: 24px;
    font-size: 28px;
  }

  .recipe-toolbar input,
  .recipe-toolbar select,
  .search-panel input {
    height: 58px;
    font-size: 21px !important;
  }

  .recipe-card,
  .fav-card {
    min-height: 154px;
    grid-template-columns: 104px 1fr 54px;
    gap: 10px;
  }

  .recipe-card img,
  .fav-card img {
    width: 104px;
    height: 104px;
  }

  .recipe-card h2,
  .fav-card h2,
  .meal-card h2 {
    font-size: 24px;
  }

  .recipe-card p span,
  .recipe-card small,
  .fav-card p,
  .meal-card p,
  .meal-card small {
    font-size: 19px;
  }

  .meal-card {
    min-height: 132px;
    grid-template-columns: 50px 1fr 96px;
    padding: 12px;
  }

  .meal-card img {
    width: 96px;
    height: 96px;
  }

  .profile-head,
  .phone .profile-head {
    grid-template-columns: 70px 1fr 76px;
    padding: 12px;
  }

  .phone .profile-head .avatar {
    width: 70px;
    height: 70px;
  }

  .profile-head h1,
  .phone .profile-head h1 {
    font-size: 25px;
  }

  .profile-name-btn,
  .profile-head p,
  .phone .profile-name-btn,
  .phone .profile-head p {
    font-size: 20px;
  }

  .profile-status button,
  .phone .profile-status button {
    min-height: 94px;
  }

  .profile-status strong,
  .phone .profile-status strong {
    font-size: 23px;
  }

  .profile-status span,
  .phone .profile-status span {
    font-size: 18px;
  }

  .profile-quick button,
  .phone .profile-quick button {
    min-height: 92px;
  }

  .profile-quick strong,
  .phone .profile-quick strong {
    font-size: 19px;
  }

  .settings-list button,
  .phone .settings-list button {
    min-height: 88px;
  }

  .settings-list strong,
  .phone .settings-list strong {
    font-size: 23px;
  }

  .settings-list small,
  .phone .settings-list small {
    font-size: 18px;
  }
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  body {
    font-size: 22px;
  }

  .topbar,
  .phone .topbar {
    min-height: 82px;
    grid-template-columns: 94px 1fr 94px;
  }

  .topbar h1,
  .phone .topbar h1 {
    font-size: 30px;
  }

  .screen,
  .phone .screen {
    inset: 0 0 calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .content,
  .phone .content,
  .favorite-content {
    height: calc(100% - 82px - env(safe-area-inset-top, 0px));
    padding: 18px 14px calc(30px + env(safe-area-inset-bottom, 0px));
  }

  .icon-btn,
  .phone .icon-btn,
  .scan-btn,
  .phone .scan-btn {
    min-width: 64px;
    width: 64px;
    height: 60px;
    border-radius: 22px;
    font-size: 32px;
  }

  .tabbar,
  .phone .tabbar {
    height: calc(108px + env(safe-area-inset-bottom, 0px));
    padding: 9px 7px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .tab,
  .phone .tab {
    min-height: 88px;
    font-size: 20px;
  }

  .tab span,
  .phone .tab span {
    width: 50px;
    height: 42px;
    font-size: 32px;
  }

  .tab[data-badge]:not([data-badge=""])::after,
  .phone .tab[data-badge]:not([data-badge=""])::after {
    min-width: 24px;
    height: 24px;
    top: 7px;
    right: 12px;
    font-size: 15px;
  }

  .section-head {
    min-height: 58px;
    margin-bottom: 12px;
  }

  .section-head h2,
  .profile-section-title h2,
  .card-title-row h2 {
    font-size: 30px !important;
    line-height: 1.12;
  }

  .section-head button,
  .section-head small,
  .card-title-row button {
    font-size: 22px !important;
  }

  .add-mini,
  .phone .add-mini,
  .phone .section-head button {
    min-height: 64px;
    padding: 0 26px;
    border-radius: 32px;
    font-size: 25px !important;
  }

  .mini-food {
    flex-basis: 208px;
    min-height: 148px;
    grid-template-columns: 82px 1fr;
    padding: 14px;
    border-radius: 26px;
  }

  .mini-food img {
    width: 82px;
    height: 102px;
  }

  .mini-food strong {
    font-size: 27px;
    line-height: 1.08;
  }

  .mini-food span {
    font-size: 21px;
    line-height: 1.12;
  }

  .chips {
    gap: 10px;
    padding-bottom: 14px;
  }

  .chips button,
  .phone .chips button {
    min-height: 62px;
    padding: 0 24px;
    border-radius: 31px;
    font-size: 25px !important;
  }

  .food-grid {
    gap: 14px;
  }

  .food-card {
    min-height: 172px;
    grid-template-columns: 126px 1fr 86px;
    gap: 6px 16px;
    padding: 16px;
    border-radius: 28px;
  }

  .food-card img {
    width: 120px;
    height: 132px;
  }

  .food-card strong {
    font-size: 34px;
    line-height: 1.08;
  }

  .food-card span {
    font-size: 25px;
    line-height: 1.1;
  }

  .food-card em {
    min-width: 82px;
    height: 46px;
    font-size: 23px;
  }

  .remove-food-dot,
  .phone .remove-food-dot {
    min-width: 84px;
    height: 58px;
    border-radius: 29px;
    font-size: 24px;
  }

  .food-card .favorite-dot,
  .phone .food-card .favorite-dot {
    min-width: 66px;
    width: 66px;
    height: 58px;
    border-radius: 28px;
    font-size: 32px;
  }

  .hero-card {
    min-height: 116px;
    padding: 16px;
  }

  .hero-card h2 {
    font-size: 28px;
  }

  .hero-card p {
    font-size: 22px;
  }

  .hero-card img {
    width: 88px;
    height: 78px;
  }

  .recipe-toolbar {
    grid-template-columns: 1fr;
  }

  .recipe-toolbar input,
  .recipe-toolbar select,
  .search-panel input,
  .phone input,
  .phone textarea,
  .phone select {
    min-height: 68px;
    font-size: 25px !important;
  }

  .recipe-card,
  .fav-card {
    min-height: 188px;
    grid-template-columns: 126px 1fr 62px;
    gap: 14px;
    padding: 14px;
    border-radius: 28px;
  }

  .recipe-card img,
  .fav-card img {
    width: 126px;
    height: 126px;
    border-radius: 22px;
  }

  .recipe-card h2,
  .fav-card h2,
  .meal-card h2 {
    font-size: 30px;
    line-height: 1.1;
  }

  .recipe-card h2 span {
    font-size: 20px;
  }

  .recipe-card p span {
    font-size: 22px;
  }

  .recipe-card small,
  .fav-card p,
  .meal-card p,
  .meal-card small {
    font-size: 23px;
    line-height: 1.24;
  }

  .recipe-card > button,
  .fav-card > button,
  .phone .recipe-card > button,
  .phone .fav-card > button {
    min-width: 62px;
    width: 62px;
    height: 62px;
    font-size: 34px;
  }

  .calendar-card,
  .shopping-card,
  .history-card,
  .data-card,
  .settings-list {
    border-radius: 28px;
  }

  .month-line strong {
    font-size: 30px;
  }

  .dates button {
    flex-basis: 74px;
    width: 74px;
    height: 70px;
    border-radius: 24px;
  }

  .dates strong {
    font-size: 28px;
  }

  .dates small,
  .week-days,
  .plan-summary span {
    font-size: 18px;
  }

  .plan-summary strong {
    font-size: 28px;
  }

  .meal-card {
    min-height: 162px;
    grid-template-columns: 58px 1fr 112px;
    gap: 14px;
    padding: 16px;
    border-radius: 28px;
  }

  .meal-card img {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }

  .meal-icon {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .subtabs {
    height: 68px;
  }

  .subtabs button,
  .phone .subtabs button {
    font-size: 25px !important;
  }

  .favorite-content {
    height: calc(100% - 150px - env(safe-area-inset-top, 0px)) !important;
  }

  .profile-head,
  .phone .profile-head {
    grid-template-columns: 82px 1fr 84px;
    gap: 12px;
    padding: 16px;
    border-radius: 28px;
  }

  .phone .profile-head .avatar {
    width: 82px;
    height: 82px;
    font-size: 46px;
  }

  .profile-head h1,
  .phone .profile-head h1 {
    font-size: 31px;
  }

  .profile-name-btn,
  .profile-head p,
  .phone .profile-name-btn,
  .phone .profile-head p {
    font-size: 24px;
  }

  .profile-edit-pill,
  .phone .profile-edit-pill {
    min-width: 82px;
    min-height: 62px;
    font-size: 24px;
  }

  .profile-status {
    grid-template-columns: 1fr;
  }

  .profile-status button,
  .phone .profile-status button {
    min-height: 104px;
    padding: 16px;
    border-radius: 26px;
  }

  .profile-status strong,
  .phone .profile-status strong {
    font-size: 29px;
  }

  .profile-status span,
  .phone .profile-status span {
    font-size: 22px;
  }

  .profile-quick,
  .phone .profile-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .profile-quick button,
  .phone .profile-quick button {
    min-height: 112px;
    border-radius: 26px;
  }

  .profile-quick span,
  .phone .profile-quick span {
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  .profile-quick strong,
  .phone .profile-quick strong {
    font-size: 24px;
  }

  .settings-list button,
  .phone .settings-list button {
    min-height: 108px;
    grid-template-columns: 64px 1fr 34px;
    padding: 16px;
  }

  .settings-list span,
  .phone .settings-list span {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .settings-list strong,
  .phone .settings-list strong {
    font-size: 28px;
  }

  .settings-list small,
  .phone .settings-list small {
    font-size: 22px;
  }

  .sheet-card {
    left: 4px;
    right: 4px;
    max-height: 92%;
    padding: 22px 18px calc(28px + env(safe-area-inset-bottom, 0px));
    border-radius: 30px 30px 0 0;
  }

  .sheet-card h2 {
    font-size: 30px;
  }

  .sheet-card h3,
  .sheet-card p,
  .sheet-card li,
  .food-form label,
  .receipt-form label,
  .use-form label {
    font-size: 24px;
  }

  .food-form > button,
  .sheet-actions button,
  .plan-secondary,
  .refresh-btn,
  .duplicate-food-card button,
  .use-actions button,
  .missing-actions button {
    min-height: 82px;
    font-size: 28px;
  }
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  .content,
  .phone .content,
  .favorite-content {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .recipe-card,
  .fav-card {
    position: relative;
    min-height: 208px;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    padding-right: 74px;
  }

  .recipe-card img,
  .fav-card img {
    width: 108px;
    height: 108px;
  }

  .recipe-card h2 {
    display: block;
  }

  .recipe-card h2,
  .fav-card h2 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .recipe-card h2 span {
    display: table;
    margin-top: 6px;
  }

  .recipe-card > button,
  .fav-card > button,
  .phone .recipe-card > button,
  .phone .fav-card > button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .screen[data-screen="plan"] .section-head.strong {
    min-height: 126px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .screen[data-screen="plan"] .section-head.strong button {
    justify-self: stretch;
    min-height: 72px;
  }

  .favorite-content {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.display-size-box {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.display-size-box h3 {
  margin: 0;
}

.display-size-options {
  display: grid;
  gap: 10px;
}

.display-size-options button {
  min-height: 76px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fbf5ea;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .72);
}

.display-size-options button.active {
  background: #edf5df;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 2px rgba(85, 125, 71, .36);
}

.display-size-options strong,
.display-size-options small {
  display: block;
}

.display-size-options strong {
  font-size: 18px;
}

.display-size-options small {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  .phone .display-size-options button {
    min-height: 96px;
    border-radius: 24px;
  }

  .phone .display-size-options strong {
    font-size: 26px;
  }

  .phone .display-size-options small {
    font-size: 20px;
  }
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  html[data-display-size="standard"] body {
    font-size: 18px;
  }

  html[data-display-size="standard"] .topbar,
  html[data-display-size="standard"] .phone .topbar {
    min-height: 70px;
    grid-template-columns: 82px 1fr 82px;
  }

  html[data-display-size="standard"] .topbar h1,
  html[data-display-size="standard"] .phone .topbar h1 {
    font-size: 24px;
  }

  html[data-display-size="standard"] .screen,
  html[data-display-size="standard"] .phone .screen {
    inset: 0 0 calc(84px + env(safe-area-inset-bottom, 0px));
  }

  html[data-display-size="standard"] .content,
  html[data-display-size="standard"] .phone .content,
  html[data-display-size="standard"] .favorite-content {
    height: calc(100% - 70px - env(safe-area-inset-top, 0px));
    padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  }

  html[data-display-size="standard"] .tabbar,
  html[data-display-size="standard"] .phone .tabbar {
    height: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  html[data-display-size="standard"] .tab,
  html[data-display-size="standard"] .phone .tab {
    min-height: 66px;
    font-size: 17px;
  }

  html[data-display-size="standard"] .food-card {
    min-height: 112px;
    grid-template-columns: 84px 1fr 68px;
    padding: 10px 12px;
  }

  html[data-display-size="standard"] .food-card img {
    width: 78px;
    height: 82px;
  }

  html[data-display-size="standard"] .food-card strong {
    font-size: 23px;
  }

  html[data-display-size="standard"] .food-card span {
    font-size: 18px;
  }

  html[data-display-size="standard"] .recipe-card,
  html[data-display-size="standard"] .fav-card {
    min-height: 132px;
    grid-template-columns: 104px 1fr 52px;
    padding-right: 10px;
  }

  html[data-display-size="standard"] .recipe-card > button,
  html[data-display-size="standard"] .fav-card > button {
    position: static;
    transform: none;
  }

  html[data-display-size="standard"] .recipe-card h2,
  html[data-display-size="standard"] .fav-card h2,
  html[data-display-size="standard"] .meal-card h2 {
    font-size: 22px;
  }

  html[data-display-size="standard"] .profile-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-display-size="large"] body {
    font-size: 20px;
  }

  html[data-display-size="large"] .topbar,
  html[data-display-size="large"] .phone .topbar {
    min-height: 76px;
    grid-template-columns: 88px 1fr 88px;
  }

  html[data-display-size="large"] .topbar h1,
  html[data-display-size="large"] .phone .topbar h1 {
    font-size: 26px;
  }

  html[data-display-size="large"] .screen,
  html[data-display-size="large"] .phone .screen {
    inset: 0 0 calc(96px + env(safe-area-inset-bottom, 0px));
  }

  html[data-display-size="large"] .content,
  html[data-display-size="large"] .phone .content,
  html[data-display-size="large"] .favorite-content {
    height: calc(100% - 76px - env(safe-area-inset-top, 0px));
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  }

  html[data-display-size="large"] .tabbar,
  html[data-display-size="large"] .phone .tabbar {
    height: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  html[data-display-size="large"] .tab,
  html[data-display-size="large"] .phone .tab {
    min-height: 76px;
    font-size: 18px;
  }

  html[data-display-size="large"] .food-card {
    min-height: 142px;
    grid-template-columns: 108px 1fr 76px;
    padding: 14px;
  }

  html[data-display-size="large"] .food-card img {
    width: 104px;
    height: 110px;
  }

  html[data-display-size="large"] .food-card strong {
    font-size: 28px;
  }

  html[data-display-size="large"] .food-card span {
    font-size: 21px;
  }

  html[data-display-size="large"] .recipe-card,
  html[data-display-size="large"] .fav-card {
    min-height: 154px;
    grid-template-columns: 104px 1fr 54px;
    padding-right: 10px;
  }

  html[data-display-size="large"] .recipe-card > button,
  html[data-display-size="large"] .fav-card > button {
    position: static;
    transform: none;
  }

  html[data-display-size="large"] .recipe-card h2,
  html[data-display-size="large"] .fav-card h2,
  html[data-display-size="large"] .meal-card h2 {
    font-size: 24px;
  }

  html[data-display-size="large"] .profile-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tab[data-badge]:not([data-badge=""])::after {
  top: 7px;
  right: 16px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid rgba(255, 253, 248, .96);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(239, 76, 60, .18);
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  .tab[data-badge]:not([data-badge=""])::after,
  .phone .tab[data-badge]:not([data-badge=""])::after {
    top: 8px;
    right: 18px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-width: 2px;
    font-size: 12px;
  }

  html[data-display-size="senior"] .tab[data-badge]:not([data-badge=""])::after,
  html[data-display-size="senior"] .phone .tab[data-badge]:not([data-badge=""])::after {
    top: 9px;
    right: 18px;
    min-width: 22px;
    height: 22px;
    font-size: 13px;
  }
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  html:not([data-display-size="standard"]) .sheet-card,
  html:not([data-display-size="standard"]) .phone .sheet-card {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 94%;
    padding: 26px 20px calc(36px + env(safe-area-inset-bottom, 0px));
    border-radius: 32px 32px 0 0;
  }

  html:not([data-display-size="standard"]) .sheet-card.compact,
  html:not([data-display-size="standard"]) .phone .sheet-card.compact {
    max-height: 90%;
  }

  html:not([data-display-size="standard"]) .sheet-close,
  html:not([data-display-size="standard"]) .phone .sheet-close {
    position: sticky;
    top: 0;
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 72px;
    height: 72px;
    margin-top: -6px;
    margin-bottom: 4px;
    border-radius: 50%;
    font-size: 42px;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(50, 62, 42, .14);
  }

  html:not([data-display-size="standard"]) .sheet-hero,
  html:not([data-display-size="standard"]) .phone .sheet-hero {
    height: 232px;
    border-radius: 26px;
  }

  html:not([data-display-size="standard"]) .sheet-card h2,
  html:not([data-display-size="standard"]) .phone .sheet-card h2 {
    margin: 20px 0 10px;
    font-size: 36px;
    line-height: 1.18;
  }

  html:not([data-display-size="standard"]) .sheet-card h3,
  html:not([data-display-size="standard"]) .phone .sheet-card h3 {
    margin: 26px 0 14px;
    font-size: 29px;
    line-height: 1.22;
  }

  html:not([data-display-size="standard"]) .sheet-card p,
  html:not([data-display-size="standard"]) .sheet-card li,
  html:not([data-display-size="standard"]) .phone .sheet-card p,
  html:not([data-display-size="standard"]) .phone .sheet-card li {
    font-size: 25px;
    line-height: 1.55;
  }

  html:not([data-display-size="standard"]) .sheet-meta,
  html:not([data-display-size="standard"]) .phone .sheet-meta {
    margin-bottom: 18px;
    font-size: 24px;
    line-height: 1.45;
  }

  html:not([data-display-size="standard"]) .sheet-tags,
  html:not([data-display-size="standard"]) .phone .sheet-tags {
    gap: 12px;
  }

  html:not([data-display-size="standard"]) .sheet-tags span,
  html:not([data-display-size="standard"]) .sheet-tags button,
  html:not([data-display-size="standard"]) .missing-actions button,
  html:not([data-display-size="standard"]) .phone .sheet-tags span,
  html:not([data-display-size="standard"]) .phone .sheet-tags button,
  html:not([data-display-size="standard"]) .phone .missing-actions button {
    min-height: 58px;
    padding: 14px 18px;
    border-radius: 29px;
    font-size: 23px;
    line-height: 1.2;
  }

  html:not([data-display-size="standard"]) .serving-block,
  html:not([data-display-size="standard"]) .phone .serving-block {
    margin-top: 24px;
    padding: 18px;
    border-radius: 26px;
  }

  html:not([data-display-size="standard"]) .serving-control,
  html:not([data-display-size="standard"]) .phone .serving-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  html:not([data-display-size="standard"]) .serving-control button,
  html:not([data-display-size="standard"]) .phone .serving-control button {
    min-height: 72px;
    border-radius: 24px;
    font-size: 27px;
  }

  html:not([data-display-size="standard"]) .amount-list,
  html:not([data-display-size="standard"]) .phone .amount-list {
    gap: 14px;
    margin-top: 16px;
  }

  html:not([data-display-size="standard"]) .amount-row,
  html:not([data-display-size="standard"]) .phone .amount-row {
    min-height: 118px;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
  }

  html:not([data-display-size="standard"]) .amount-row strong,
  html:not([data-display-size="standard"]) .phone .amount-row strong {
    font-size: 28px;
  }

  html:not([data-display-size="standard"]) .amount-row small,
  html:not([data-display-size="standard"]) .phone .amount-row small {
    font-size: 22px;
    line-height: 1.35;
  }

  html:not([data-display-size="standard"]) .recipe-amount-control,
  html:not([data-display-size="standard"]) .phone .recipe-amount-control {
    grid-template-columns: 64px minmax(100px, 1fr) 64px;
    gap: 12px;
  }

  html:not([data-display-size="standard"]) .recipe-amount-control button,
  html:not([data-display-size="standard"]) .phone .recipe-amount-control button {
    width: 64px;
    height: 64px;
    font-size: 34px;
  }

  html:not([data-display-size="standard"]) .amount-row em,
  html:not([data-display-size="standard"]) .phone .amount-row em {
    min-height: 64px;
    display: grid;
    place-items: center;
    padding: 8px 14px;
    border-radius: 32px;
    font-size: 25px;
  }

  html:not([data-display-size="standard"]) .plan-secondary,
  html:not([data-display-size="standard"]) .food-form > button,
  html:not([data-display-size="standard"]) .receipt-actions button,
  html:not([data-display-size="standard"]) .receipt-submit,
  html:not([data-display-size="standard"]) .use-actions button,
  html:not([data-display-size="standard"]) .sheet-actions button,
  html:not([data-display-size="standard"]) .duplicate-food-card button,
  html:not([data-display-size="standard"]) .ghost-action,
  html:not([data-display-size="standard"]) .phone .plan-secondary,
  html:not([data-display-size="standard"]) .phone .food-form > button,
  html:not([data-display-size="standard"]) .phone .receipt-actions button,
  html:not([data-display-size="standard"]) .phone .receipt-submit,
  html:not([data-display-size="standard"]) .phone .use-actions button,
  html:not([data-display-size="standard"]) .phone .sheet-actions button,
  html:not([data-display-size="standard"]) .phone .duplicate-food-card button,
  html:not([data-display-size="standard"]) .phone .ghost-action {
    min-height: 84px;
    border-radius: 32px;
    font-size: 28px;
    line-height: 1.2;
  }

  html:not([data-display-size="standard"]) .sheet-actions,
  html:not([data-display-size="standard"]) .phone .sheet-actions {
    bottom: calc(-36px - env(safe-area-inset-bottom, 0px));
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px -20px calc(-36px - env(safe-area-inset-bottom, 0px));
    padding: 18px 20px calc(26px + env(safe-area-inset-bottom, 0px));
  }

  html:not([data-display-size="standard"]) .food-form,
  html:not([data-display-size="standard"]) .receipt-form,
  html:not([data-display-size="standard"]) .use-form,
  html:not([data-display-size="standard"]) .phone .food-form,
  html:not([data-display-size="standard"]) .phone .receipt-form,
  html:not([data-display-size="standard"]) .phone .use-form {
    gap: 20px;
    margin-top: 22px;
  }

  html:not([data-display-size="standard"]) .food-form label,
  html:not([data-display-size="standard"]) .receipt-form label,
  html:not([data-display-size="standard"]) .use-form label,
  html:not([data-display-size="standard"]) .phone .food-form label,
  html:not([data-display-size="standard"]) .phone .receipt-form label,
  html:not([data-display-size="standard"]) .phone .use-form label {
    gap: 12px;
    font-size: 26px;
    line-height: 1.25;
  }

  html:not([data-display-size="standard"]) .food-form input,
  html:not([data-display-size="standard"]) .food-form select,
  html:not([data-display-size="standard"]) .food-form textarea,
  html:not([data-display-size="standard"]) .receipt-form textarea,
  html:not([data-display-size="standard"]) .use-form input,
  html:not([data-display-size="standard"]) .receipt-edit select,
  html:not([data-display-size="standard"]) .receipt-edit input,
  html:not([data-display-size="standard"]) .phone .food-form input,
  html:not([data-display-size="standard"]) .phone .food-form select,
  html:not([data-display-size="standard"]) .phone .food-form textarea,
  html:not([data-display-size="standard"]) .phone .receipt-form textarea,
  html:not([data-display-size="standard"]) .phone .use-form input,
  html:not([data-display-size="standard"]) .phone .receipt-edit select,
  html:not([data-display-size="standard"]) .phone .receipt-edit input {
    min-height: 78px;
    padding: 0 18px;
    border-radius: 22px;
    font-size: 27px;
  }

  html:not([data-display-size="standard"]) .food-form textarea,
  html:not([data-display-size="standard"]) .receipt-form textarea,
  html:not([data-display-size="standard"]) .phone .food-form textarea,
  html:not([data-display-size="standard"]) .phone .receipt-form textarea {
    min-height: 180px;
    padding: 18px;
    line-height: 1.45;
  }

  html:not([data-display-size="standard"]) .form-grid,
  html:not([data-display-size="standard"]) .scan-actions,
  html:not([data-display-size="standard"]) .privacy-picker,
  html:not([data-display-size="standard"]) .receipt-actions,
  html:not([data-display-size="standard"]) .use-actions,
  html:not([data-display-size="standard"]) .quick-amounts,
  html:not([data-display-size="standard"]) .phone .form-grid,
  html:not([data-display-size="standard"]) .phone .scan-actions,
  html:not([data-display-size="standard"]) .phone .privacy-picker,
  html:not([data-display-size="standard"]) .phone .receipt-actions,
  html:not([data-display-size="standard"]) .phone .use-actions,
  html:not([data-display-size="standard"]) .phone .quick-amounts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  html:not([data-display-size="standard"]) .privacy-picker label,
  html:not([data-display-size="standard"]) .phone .privacy-picker label {
    min-height: 76px;
    border-radius: 24px;
    font-size: 26px;
  }

  html:not([data-display-size="standard"]) .privacy-picker input,
  html:not([data-display-size="standard"]) .phone .privacy-picker input {
    width: 28px;
    height: 28px;
  }

  html:not([data-display-size="standard"]) .upload-box,
  html:not([data-display-size="standard"]) .phone .upload-box {
    min-height: 164px;
    padding: 20px;
    border-radius: 26px;
  }

  html:not([data-display-size="standard"]) .upload-box span,
  html:not([data-display-size="standard"]) .phone .upload-box span {
    font-size: 26px;
    line-height: 1.3;
  }

  html:not([data-display-size="standard"]) .upload-box img,
  html:not([data-display-size="standard"]) .phone .upload-box img {
    max-height: 260px;
    border-radius: 20px;
  }

  html:not([data-display-size="standard"]) .meal-photo-upload,
  html:not([data-display-size="standard"]) .phone .meal-photo-upload {
    min-height: 118px;
  }

  html:not([data-display-size="standard"]) .food-current,
  html:not([data-display-size="standard"]) .duplicate-food-card,
  html:not([data-display-size="standard"]) .phone .food-current,
  html:not([data-display-size="standard"]) .phone .duplicate-food-card {
    min-height: 132px;
    grid-template-columns: 98px 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 24px;
  }

  html:not([data-display-size="standard"]) .food-current img,
  html:not([data-display-size="standard"]) .duplicate-food-card img,
  html:not([data-display-size="standard"]) .phone .food-current img,
  html:not([data-display-size="standard"]) .phone .duplicate-food-card img {
    width: 98px;
    height: 98px;
    border-radius: 20px;
  }

  html:not([data-display-size="standard"]) .food-current strong,
  html:not([data-display-size="standard"]) .duplicate-food-card strong,
  html:not([data-display-size="standard"]) .phone .food-current strong,
  html:not([data-display-size="standard"]) .phone .duplicate-food-card strong {
    font-size: 28px;
  }

  html:not([data-display-size="standard"]) .food-current small,
  html:not([data-display-size="standard"]) .duplicate-food-card small,
  html:not([data-display-size="standard"]) .duplicate-food-list > strong,
  html:not([data-display-size="standard"]) .phone .food-current small,
  html:not([data-display-size="standard"]) .phone .duplicate-food-card small,
  html:not([data-display-size="standard"]) .phone .duplicate-food-list > strong {
    font-size: 22px;
    line-height: 1.35;
  }

  html:not([data-display-size="standard"]) .sheet-list,
  html:not([data-display-size="standard"]) .phone .sheet-list {
    gap: 14px;
    margin-top: 20px;
  }

  html:not([data-display-size="standard"]) .sheet-row,
  html:not([data-display-size="standard"]) .compact-list .sheet-row,
  html:not([data-display-size="standard"]) .phone .sheet-row,
  html:not([data-display-size="standard"]) .phone .compact-list .sheet-row {
    min-height: 126px;
    grid-template-columns: 96px minmax(0, 1fr) 38px;
    gap: 16px;
    padding: 16px;
    border-radius: 24px;
  }

  html:not([data-display-size="standard"]) .compact-list .sheet-row,
  html:not([data-display-size="standard"]) .phone .compact-list .sheet-row {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  html:not([data-display-size="standard"]) .sheet-row img,
  html:not([data-display-size="standard"]) .phone .sheet-row img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }

  html:not([data-display-size="standard"]) .sheet-row strong,
  html:not([data-display-size="standard"]) .phone .sheet-row strong {
    font-size: 28px;
    line-height: 1.2;
  }

  html:not([data-display-size="standard"]) .sheet-row small,
  html:not([data-display-size="standard"]) .phone .sheet-row small {
    font-size: 22px;
    line-height: 1.35;
  }

  html:not([data-display-size="standard"]) .sheet-row em,
  html:not([data-display-size="standard"]) .phone .sheet-row em {
    font-size: 32px;
  }

  html:not([data-display-size="standard"]) .amount-slider,
  html:not([data-display-size="standard"]) .phone .amount-slider {
    padding: 18px;
    border-radius: 26px;
  }

  html:not([data-display-size="standard"]) .slider-head strong,
  html:not([data-display-size="standard"]) .phone .slider-head strong {
    font-size: 27px;
  }

  html:not([data-display-size="standard"]) .slider-head output,
  html:not([data-display-size="standard"]) .phone .slider-head output {
    min-width: 88px;
    padding: 10px 14px;
    font-size: 25px;
  }

  html:not([data-display-size="standard"]) .slider-line,
  html:not([data-display-size="standard"]) .phone .slider-line {
    grid-template-columns: 68px 1fr 68px;
    gap: 14px;
  }

  html:not([data-display-size="standard"]) .slider-line button,
  html:not([data-display-size="standard"]) .phone .slider-line button {
    width: 68px;
    height: 68px;
    font-size: 36px;
  }

  html:not([data-display-size="standard"]) .amount-slider input[type="range"],
  html:not([data-display-size="standard"]) .phone .amount-slider input[type="range"] {
    height: 48px;
  }

  html:not([data-display-size="standard"]) .amount-slider input[type="range"]::-webkit-slider-runnable-track,
  html:not([data-display-size="standard"]) .phone .amount-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 14px;
  }

  html:not([data-display-size="standard"]) .amount-slider input[type="range"]::-webkit-slider-thumb,
  html:not([data-display-size="standard"]) .phone .amount-slider input[type="range"]::-webkit-slider-thumb {
    width: 42px;
    height: 42px;
    margin-top: -14px;
  }

  html:not([data-display-size="standard"]) .slider-scale,
  html:not([data-display-size="standard"]) .phone .slider-scale {
    font-size: 21px;
  }

  html:not([data-display-size="standard"]) .quick-amounts button,
  html:not([data-display-size="standard"]) .phone .quick-amounts button {
    min-height: 70px;
    border-radius: 24px;
    font-size: 24px;
    white-space: normal;
  }

  html:not([data-display-size="standard"]) .receipt-results,
  html:not([data-display-size="standard"]) .phone .receipt-results {
    margin-top: 24px;
  }

  html:not([data-display-size="standard"]) .receipt-hint,
  html:not([data-display-size="standard"]) .phone .receipt-hint {
    font-size: 22px;
    line-height: 1.45;
  }

  html:not([data-display-size="standard"]) .receipt-list,
  html:not([data-display-size="standard"]) .phone .receipt-list {
    gap: 14px;
  }

  html:not([data-display-size="standard"]) .receipt-item,
  html:not([data-display-size="standard"]) .phone .receipt-item {
    min-height: 172px;
    grid-template-columns: 42px 92px minmax(0, 1fr) 58px;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
  }

  html:not([data-display-size="standard"]) .receipt-item > input[type="checkbox"],
  html:not([data-display-size="standard"]) .phone .receipt-item > input[type="checkbox"] {
    width: 34px;
    height: 34px;
  }

  html:not([data-display-size="standard"]) .receipt-item img,
  html:not([data-display-size="standard"]) .phone .receipt-item img {
    grid-column: 2;
    grid-row: 1;
    width: 92px;
    height: 92px;
    border-radius: 18px;
  }

  html:not([data-display-size="standard"]) .receipt-edit,
  html:not([data-display-size="standard"]) .phone .receipt-edit {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  html:not([data-display-size="standard"]) .receipt-edit small,
  html:not([data-display-size="standard"]) .phone .receipt-edit small {
    font-size: 21px;
    line-height: 1.3;
  }

  html:not([data-display-size="standard"]) .receipt-item [data-remove-receipt-row],
  html:not([data-display-size="standard"]) .phone .receipt-item [data-remove-receipt-row] {
    grid-column: 4;
    grid-row: 1;
    width: 58px;
    height: 58px;
    font-size: 38px;
  }
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  html:not([data-display-size="standard"]) .screen[data-screen="plan"] .content,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .content {
    padding-top: 18px;
  }

  html:not([data-display-size="standard"]) .calendar-card,
  html:not([data-display-size="standard"]) .phone .calendar-card {
    padding: 18px 16px 20px;
    border-radius: 30px;
    background: #fffdf8;
    box-shadow: inset 0 0 0 1px rgba(234, 223, 206, .72), 0 10px 26px rgba(72, 84, 58, .08);
  }

  html:not([data-display-size="standard"]) .month-line,
  html:not([data-display-size="standard"]) .phone .month-line {
    grid-template-columns: 64px 1fr 64px;
    gap: 12px;
    margin-bottom: 16px;
  }

  html:not([data-display-size="standard"]) .month-line button,
  html:not([data-display-size="standard"]) .phone .month-line button {
    width: 64px;
    height: 64px;
    border-radius: 24px;
    font-size: 34px;
  }

  html:not([data-display-size="standard"]) .month-line strong,
  html:not([data-display-size="standard"]) .phone .month-line strong {
    font-size: 31px;
    line-height: 1.1;
  }

  html:not([data-display-size="standard"]) .dates,
  html:not([data-display-size="standard"]) .phone .dates {
    gap: 8px;
    margin: 0;
    padding: 4px 0 12px;
    scroll-padding-inline: 0;
  }

  html:not([data-display-size="standard"]) .dates button,
  html:not([data-display-size="standard"]) .phone .dates button {
    flex: 0 0 58px;
    width: 58px;
    height: 72px;
    border-radius: 24px;
  }

  html:not([data-display-size="standard"]) .dates strong,
  html:not([data-display-size="standard"]) .phone .dates strong {
    font-size: 28px;
  }

  html:not([data-display-size="standard"]) .dates small,
  html:not([data-display-size="standard"]) .phone .dates small {
    min-height: 18px;
    font-size: 14px;
    white-space: nowrap;
  }

  html:not([data-display-size="standard"]) .dates i,
  html:not([data-display-size="standard"]) .phone .dates i {
    bottom: 7px;
    width: 7px;
    height: 7px;
  }

  html:not([data-display-size="standard"]) .plan-summary,
  html:not([data-display-size="standard"]) .phone .plan-summary {
    gap: 8px;
    margin-top: 12px;
    padding-top: 14px;
  }

  html:not([data-display-size="standard"]) .plan-summary strong,
  html:not([data-display-size="standard"]) .phone .plan-summary strong {
    font-size: 30px;
    line-height: 1.15;
  }

  html:not([data-display-size="standard"]) .plan-summary span,
  html:not([data-display-size="standard"]) .phone .plan-summary span {
    font-size: 22px;
    line-height: 1.38;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="plan"] .section-head.strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .section-head.strong {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0 16px;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="plan"] .section-head.strong h2,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .section-head.strong h2 {
    font-size: 31px;
    line-height: 1.15;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="plan"] .add-pill,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .add-pill {
    min-height: 82px;
    justify-self: stretch;
    border-radius: 30px;
    background: var(--green);
    color: white;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(85, 125, 71, .22);
  }

  html:not([data-display-size="standard"]) .meal-list,
  html:not([data-display-size="standard"]) .phone .meal-list {
    gap: 16px;
  }

  html:not([data-display-size="standard"]) .meal-card,
  html:not([data-display-size="standard"]) .phone .meal-card {
    min-height: 178px;
    grid-template-columns: 62px minmax(0, 1fr) 112px;
    gap: 14px;
    padding: 18px;
    border-radius: 30px;
    background: #fff7df;
  }

  html:not([data-display-size="standard"]) .meal-icon,
  html:not([data-display-size="standard"]) .phone .meal-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 30px;
  }

  html:not([data-display-size="standard"]) .meal-card img,
  html:not([data-display-size="standard"]) .phone .meal-card img {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }

  html:not([data-display-size="standard"]) .meal-card h2,
  html:not([data-display-size="standard"]) .phone .meal-card h2 {
    font-size: 31px;
  }

  html:not([data-display-size="standard"]) .meal-card p,
  html:not([data-display-size="standard"]) .meal-card small,
  html:not([data-display-size="standard"]) .phone .meal-card p,
  html:not([data-display-size="standard"]) .phone .meal-card small {
    font-size: 23px;
    line-height: 1.28;
  }

  html:not([data-display-size="standard"]) .history-row,
  html:not([data-display-size="standard"]) .phone .history-row {
    min-height: 104px;
    grid-template-columns: 74px minmax(0, 1fr) 30px;
    gap: 14px;
    padding: 14px;
    border-radius: 24px;
  }

  html:not([data-display-size="standard"]) .history-row img,
  html:not([data-display-size="standard"]) .phone .history-row img,
  html:not([data-display-size="standard"]) .history-row.add-history-row > span:first-child,
  html:not([data-display-size="standard"]) .phone .history-row.add-history-row > span:first-child {
    width: 74px;
    height: 74px;
    border-radius: 20px;
  }

  html:not([data-display-size="standard"]) .history-row strong,
  html:not([data-display-size="standard"]) .phone .history-row strong {
    font-size: 25px;
  }

  html:not([data-display-size="standard"]) .history-row small,
  html:not([data-display-size="standard"]) .phone .history-row small {
    font-size: 20px;
    line-height: 1.35;
  }
}

@media (max-width: 430px) {
  html:not([data-display-size="standard"]) .screen[data-screen="fridge"],
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] {
    inset: 0 0 calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .topbar,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .topbar {
    min-height: 68px !important;
    grid-template-columns: 76px 1fr 76px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .topbar h1,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .topbar h1 {
    font-size: 24px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .content,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .content {
    height: calc(100% - 68px - env(safe-area-inset-top, 0px)) !important;
    padding: 18px 14px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head {
    margin-bottom: 10px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head.strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head.strong {
    margin-top: 16px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head h2,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head h2 {
    font-size: clamp(24px, 6.4vw, 27px) !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head button,
  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head small,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head button,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head small {
    font-size: clamp(17px, 5vw, 20px) !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .add-mini,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .add-mini {
    min-height: 54px !important;
    padding: 0 20px !important;
    border-radius: 28px !important;
    font-size: clamp(22px, 6.1vw, 25px) !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .expiry-row,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .expiry-row {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    margin: 0 0 12px !important;
    padding: 0 0 4px !important;
    scroll-padding-left: 0 !important;
    scrollbar-width: none !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .expiry-row::-webkit-scrollbar,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .expiry-row::-webkit-scrollbar {
    display: none !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food {
    flex: 0 0 min(49%, 190px) !important;
    min-height: 112px !important;
    display: grid !important;
    grid-template-columns: 68px 1fr !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 10px !important;
    border-radius: 22px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food img,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food img {
    width: 68px !important;
    height: 68px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food strong {
    margin: 0 !important;
    font-size: clamp(22px, 6vw, 25px) !important;
    line-height: 1.16 !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food span,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food span {
    font-size: clamp(18px, 5.2vw, 21px) !important;
    line-height: 1.15 !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .chips,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .chips {
    gap: 10px !important;
    padding-bottom: 10px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .chips button,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .chips button {
    min-width: 68px !important;
    height: 48px !important;
    padding: 0 20px !important;
    border-radius: 24px !important;
    font-size: clamp(21px, 5.9vw, 23px) !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-grid,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card {
    min-height: 126px !important;
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) 58px !important;
    grid-template-rows: auto auto auto !important;
    gap: 4px 12px !important;
    align-items: center !important;
    padding: 12px !important;
    border-radius: 24px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card img,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card img {
    grid-row: 1 / span 3 !important;
    width: 88px !important;
    height: 92px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card strong {
    margin: 0 !important;
    font-size: clamp(24px, 6.6vw, 27px) !important;
    line-height: 1.12 !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card span,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card span {
    font-size: clamp(19px, 5.5vw, 22px) !important;
    line-height: 1.15 !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card em,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card em {
    position: static !important;
    justify-self: start !important;
    min-width: 58px !important;
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 20px !important;
    font-size: 20px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .remove-food-dot,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .remove-food-dot {
    left: auto !important;
    right: 12px !important;
    top: 12px !important;
    min-width: 64px !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 12px !important;
    font-size: 19px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .favorite-dot,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .favorite-dot {
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    min-width: 48px !important;
    min-height: 48px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 25px !important;
  }

  html:not([data-display-size="standard"]) .tabbar,
  html:not([data-display-size="standard"]) .phone .tabbar {
    height: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html:not([data-display-size="standard"]) .tab,
  html:not([data-display-size="standard"]) .phone .tab {
    min-height: 64px !important;
    font-size: 16px !important;
  }

  html:not([data-display-size="standard"]) .tab span,
  html:not([data-display-size="standard"]) .phone .tab span {
    width: 38px !important;
    height: 34px !important;
    font-size: 22px !important;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  html:not([data-display-size="standard"]) .screen[data-screen="fridge"],
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] {
    inset: 0 0 calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .topbar,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .topbar {
    min-height: 62px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .content,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .content {
    height: calc(100% - 62px - env(safe-area-inset-top, 0px)) !important;
    padding: 14px 12px calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food {
    min-height: 100px !important;
    grid-template-columns: 62px 1fr !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food img,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food img {
    width: 62px !important;
    height: 62px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head.strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head.strong {
    margin-top: 12px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .chips button,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .chips button {
    height: 44px !important;
    font-size: 21px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card {
    min-height: 112px !important;
    grid-template-columns: 78px minmax(0, 1fr) 64px !important;
    padding: 10px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card img,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card img {
    width: 78px !important;
    height: 82px !important;
  }

  html:not([data-display-size="standard"]) .tabbar,
  html:not([data-display-size="standard"]) .phone .tabbar {
    height: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .screen {
  inset: 0 0 calc(82px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .topbar {
  min-height: 68px !important;
  grid-template-columns: 76px 1fr 76px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .topbar h1 {
  font-size: 24px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .content,
html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .favorite-content {
  height: calc(100% - 68px - env(safe-area-inset-top, 0px)) !important;
  padding: 18px 14px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .icon-btn,
html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .sheet-close {
  min-width: 52px !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 18px !important;
  font-size: 30px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .scan-btn {
  min-width: 58px !important;
  width: 58px !important;
  height: 52px !important;
  font-size: 22px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .section-head {
  min-height: 42px !important;
  margin-bottom: 10px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .section-head.strong {
  margin-top: 16px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .section-head h2 {
  font-size: clamp(24px, 6.4vw, 27px) !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .section-head button,
html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .section-head small {
  font-size: clamp(17px, 5vw, 20px) !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .add-mini {
  min-height: 54px !important;
  padding: 0 20px !important;
  border-radius: 28px !important;
  font-size: clamp(22px, 6.1vw, 25px) !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .helper-line {
  display: none !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .expiry-row {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 12px !important;
  overflow-x: auto !important;
  margin: 0 0 12px !important;
  padding: 0 0 4px !important;
  scrollbar-width: none !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .expiry-row::-webkit-scrollbar {
  display: none !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .mini-food {
  flex: 0 0 min(49%, 190px) !important;
  min-height: 112px !important;
  display: grid !important;
  grid-template-columns: 68px 1fr !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px !important;
  border-radius: 22px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .mini-food img {
  width: 68px !important;
  height: 68px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .mini-food strong {
  margin: 0 !important;
  font-size: clamp(22px, 6vw, 25px) !important;
  line-height: 1.16 !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .mini-food span {
  font-size: clamp(18px, 5.2vw, 21px) !important;
  line-height: 1.15 !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .chips {
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .chips button {
  min-width: 68px !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 20px !important;
  border-radius: 24px !important;
  font-size: clamp(21px, 5.9vw, 23px) !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .food-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .food-card {
  min-height: 126px !important;
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) 64px !important;
  grid-template-rows: auto auto auto !important;
  gap: 4px 12px !important;
  align-items: center !important;
  padding: 12px !important;
  border-radius: 24px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .food-card img {
  grid-column: 1 !important;
  grid-row: 1 / span 3 !important;
  width: 88px !important;
  height: 92px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .food-card strong {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  font-size: clamp(24px, 6.6vw, 27px) !important;
  line-height: 1.12 !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .food-card span {
  grid-column: 2 !important;
  grid-row: 2 !important;
  font-size: clamp(19px, 5.5vw, 22px) !important;
  line-height: 1.15 !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .food-card em {
  grid-column: 2 !important;
  grid-row: 3 !important;
  position: static !important;
  justify-self: start !important;
  min-width: 58px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 20px !important;
  font-size: 20px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .remove-food-dot {
  position: absolute !important;
  left: auto !important;
  right: 12px !important;
  top: 12px !important;
  min-width: 64px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 20px !important;
  font-size: 19px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .food-card .favorite-dot {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  top: auto !important;
  min-width: 48px !important;
  width: 48px !important;
  min-height: 48px !important;
  height: 48px !important;
  border-radius: 20px !important;
  font-size: 25px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .tabbar {
  height: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 7px 7px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .tab {
  min-height: 64px !important;
  border-radius: 20px !important;
  font-size: 16px !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .tab span {
  width: 38px !important;
  height: 34px !important;
  border-radius: 16px !important;
  font-size: 22px !important;
}

.expiry-row,
.chips,
.dates,
.sheet-tags,
.shopping-tags,
.quick-amounts {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  .expiry-row,
  .chips,
  .dates,
  .sheet-tags,
  .shopping-tags,
  .phone .expiry-row,
  .phone .chips,
  .phone .dates,
  .phone .sheet-tags,
  .phone .shopping-tags {
    overflow-x: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(85, 125, 71, .55) rgba(234, 223, 206, .55) !important;
    padding-bottom: 8px !important;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  }

  .expiry-row::-webkit-scrollbar,
  .chips::-webkit-scrollbar,
  .dates::-webkit-scrollbar,
  .sheet-tags::-webkit-scrollbar,
  .shopping-tags::-webkit-scrollbar,
  .phone .expiry-row::-webkit-scrollbar,
  .phone .chips::-webkit-scrollbar,
  .phone .dates::-webkit-scrollbar,
  .phone .sheet-tags::-webkit-scrollbar,
  .phone .shopping-tags::-webkit-scrollbar {
    display: block !important;
    height: 7px !important;
  }

  .expiry-row::-webkit-scrollbar-track,
  .chips::-webkit-scrollbar-track,
  .dates::-webkit-scrollbar-track,
  .sheet-tags::-webkit-scrollbar-track,
  .shopping-tags::-webkit-scrollbar-track,
  .phone .expiry-row::-webkit-scrollbar-track,
  .phone .chips::-webkit-scrollbar-track,
  .phone .dates::-webkit-scrollbar-track,
  .phone .sheet-tags::-webkit-scrollbar-track,
  .phone .shopping-tags::-webkit-scrollbar-track {
    border-radius: 999px !important;
    background: rgba(234, 223, 206, .65) !important;
  }

  .expiry-row::-webkit-scrollbar-thumb,
  .chips::-webkit-scrollbar-thumb,
  .dates::-webkit-scrollbar-thumb,
  .sheet-tags::-webkit-scrollbar-thumb,
  .shopping-tags::-webkit-scrollbar-thumb,
  .phone .expiry-row::-webkit-scrollbar-thumb,
  .phone .chips::-webkit-scrollbar-thumb,
  .phone .dates::-webkit-scrollbar-thumb,
  .phone .sheet-tags::-webkit-scrollbar-thumb,
  .phone .shopping-tags::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(85, 125, 71, .58) !important;
  }

  .shopping-tags,
  .sheet-tags,
  .phone .shopping-tags,
  .phone .sheet-tags {
    flex-wrap: nowrap !important;
  }

  .shopping-tags button,
  .shopping-tags small,
  .sheet-tags span,
  .sheet-tags button,
  .phone .shopping-tags button,
  .phone .shopping-tags small,
  .phone .sheet-tags span,
  .phone .sheet-tags button {
    flex: 0 0 auto !important;
  }

  .quick-amounts.scrollable,
  .phone .quick-amounts.scrollable {
    display: flex !important;
    overflow-x: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(85, 125, 71, .55) rgba(234, 223, 206, .55) !important;
    padding-bottom: 8px !important;
  }
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .expiry-row,
html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .chips,
html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .dates,
html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .sheet-tags,
html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .shopping-tags {
  overflow-x: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(85, 125, 71, .55) rgba(234, 223, 206, .55) !important;
  padding-bottom: 8px !important;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%) !important;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%) !important;
}

html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .expiry-row::-webkit-scrollbar,
html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .chips::-webkit-scrollbar,
html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .dates::-webkit-scrollbar,
html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .sheet-tags::-webkit-scrollbar,
html[data-phone-frame="narrow"][data-viewport-mode="preview"]:not([data-display-size="standard"]) .phone .shopping-tags::-webkit-scrollbar {
  display: block !important;
  height: 7px !important;
}

html:not([data-display-size="standard"]) .expiry-row,
html:not([data-display-size="standard"]) .chips,
html:not([data-display-size="standard"]) .dates,
html:not([data-display-size="standard"]) .phone .expiry-row,
html:not([data-display-size="standard"]) .phone .chips,
html:not([data-display-size="standard"]) .phone .dates {
  overflow-x: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(85, 125, 71, .48) rgba(234, 223, 206, .55) !important;
  -webkit-overflow-scrolling: touch !important;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%) !important;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%) !important;
}

html:not([data-display-size="standard"]) .expiry-row,
html:not([data-display-size="standard"]) .phone .expiry-row,
html:not([data-display-size="standard"]) .dates,
html:not([data-display-size="standard"]) .phone .dates {
  padding-bottom: 8px !important;
}

html:not([data-display-size="standard"]) .expiry-row::-webkit-scrollbar,
html:not([data-display-size="standard"]) .chips::-webkit-scrollbar,
html:not([data-display-size="standard"]) .dates::-webkit-scrollbar,
html:not([data-display-size="standard"]) .phone .expiry-row::-webkit-scrollbar,
html:not([data-display-size="standard"]) .phone .chips::-webkit-scrollbar,
html:not([data-display-size="standard"]) .phone .dates::-webkit-scrollbar {
  display: block !important;
  height: 6px !important;
}

html:not([data-display-size="standard"]) .expiry-row::-webkit-scrollbar-track,
html:not([data-display-size="standard"]) .chips::-webkit-scrollbar-track,
html:not([data-display-size="standard"]) .dates::-webkit-scrollbar-track,
html:not([data-display-size="standard"]) .phone .expiry-row::-webkit-scrollbar-track,
html:not([data-display-size="standard"]) .phone .chips::-webkit-scrollbar-track,
html:not([data-display-size="standard"]) .phone .dates::-webkit-scrollbar-track {
  border-radius: 999px !important;
  background: rgba(234, 223, 206, .58) !important;
}

html:not([data-display-size="standard"]) .expiry-row::-webkit-scrollbar-thumb,
html:not([data-display-size="standard"]) .chips::-webkit-scrollbar-thumb,
html:not([data-display-size="standard"]) .dates::-webkit-scrollbar-thumb,
html:not([data-display-size="standard"]) .phone .expiry-row::-webkit-scrollbar-thumb,
html:not([data-display-size="standard"]) .phone .chips::-webkit-scrollbar-thumb,
html:not([data-display-size="standard"]) .phone .dates::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(85, 125, 71, .48) !important;
}

html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .expiry-row,
html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .expiry-row,
html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .chips,
html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .chips,
html:not([data-display-size="standard"]) .screen[data-screen="plan"] .dates,
html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .dates {
  overflow-x: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(85, 125, 71, .56) rgba(234, 223, 206, .62) !important;
  padding-bottom: 12px !important;
  background-image:
    linear-gradient(90deg, rgba(85, 125, 71, .58), rgba(85, 125, 71, .22)),
    linear-gradient(90deg, rgba(234, 223, 206, .72), rgba(234, 223, 206, .72));
  background-size: 44% 5px, 100% 5px !important;
  background-position: left bottom, left bottom !important;
  background-repeat: no-repeat !important;
}

html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .expiry-row::-webkit-scrollbar,
html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .expiry-row::-webkit-scrollbar,
html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .chips::-webkit-scrollbar,
html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .chips::-webkit-scrollbar,
html:not([data-display-size="standard"]) .screen[data-screen="plan"] .dates::-webkit-scrollbar,
html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .dates::-webkit-scrollbar {
  display: block !important;
  height: 6px !important;
}

html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .expiry-row::-webkit-scrollbar-track,
html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .expiry-row::-webkit-scrollbar-track,
html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .chips::-webkit-scrollbar-track,
html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .chips::-webkit-scrollbar-track,
html:not([data-display-size="standard"]) .screen[data-screen="plan"] .dates::-webkit-scrollbar-track,
html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .dates::-webkit-scrollbar-track {
  border-radius: 999px !important;
  background: rgba(234, 223, 206, .62) !important;
}

html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .expiry-row::-webkit-scrollbar-thumb,
html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .expiry-row::-webkit-scrollbar-thumb,
html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .chips::-webkit-scrollbar-thumb,
html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .chips::-webkit-scrollbar-thumb,
html:not([data-display-size="standard"]) .screen[data-screen="plan"] .dates::-webkit-scrollbar-thumb,
html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .dates::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(85, 125, 71, .56) !important;
}

@media (min-width: 431px) and (max-width: 480px) {
  html:not([data-display-size="standard"]) .screen[data-screen="fridge"],
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] {
    inset: 0 0 calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .topbar,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .topbar {
    min-height: 70px !important;
    grid-template-columns: 84px 1fr 84px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .topbar h1,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .topbar h1 {
    font-size: 26px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .content,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .content {
    height: calc(100% - 70px - env(safe-area-inset-top, 0px)) !important;
    padding: 18px 18px calc(26px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head {
    min-height: 46px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head h2,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head h2 {
    font-size: 28px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head button,
  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .section-head small,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head button,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .section-head small {
    font-size: 20px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .add-mini,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .add-mini {
    min-height: 58px !important;
    padding: 0 22px !important;
    font-size: 24px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food {
    flex-basis: 205px !important;
    min-height: 122px !important;
    grid-template-columns: 74px 1fr !important;
    padding: 12px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food img,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food img {
    width: 74px !important;
    height: 76px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food strong {
    font-size: 25px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .mini-food span,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .mini-food span {
    font-size: 20px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .chips button,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .chips button {
    min-height: 54px !important;
    font-size: 23px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card {
    min-height: 142px !important;
    grid-template-columns: 100px minmax(0, 1fr) 72px !important;
    gap: 5px 14px !important;
    padding: 14px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card img,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card img {
    width: 96px !important;
    height: 104px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card strong {
    font-size: 29px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card span,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card span {
    font-size: 22px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card em,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card em {
    min-width: 64px !important;
    height: 40px !important;
    font-size: 20px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .remove-food-dot,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .remove-food-dot {
    min-width: 68px !important;
    min-height: 42px !important;
    height: 42px !important;
    font-size: 20px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="fridge"] .food-card .favorite-dot,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="fridge"] .food-card .favorite-dot {
    min-width: 52px !important;
    width: 52px !important;
    min-height: 52px !important;
    height: 52px !important;
    font-size: 27px !important;
  }

  html:not([data-display-size="standard"]) .tabbar,
  html:not([data-display-size="standard"]) .phone .tabbar {
    height: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html:not([data-display-size="standard"]) .tab,
  html:not([data-display-size="standard"]) .phone .tab {
    min-height: 68px !important;
    font-size: 17px !important;
  }

  html:not([data-display-size="standard"]) .tab span,
  html:not([data-display-size="standard"]) .phone .tab span {
    width: 42px !important;
    height: 36px !important;
    font-size: 24px !important;
  }
}

@media (max-width: 480px), (hover: none) and (pointer: coarse) {
  html:not([data-display-size="standard"]) .screen[data-screen="recommend"] .content,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="recommend"] .content {
    padding-top: 16px !important;
  }

  html:not([data-display-size="standard"]) .hero-card,
  html:not([data-display-size="standard"]) .phone .hero-card {
    min-height: 104px !important;
    padding: 14px 16px !important;
    border-radius: 24px !important;
    gap: 10px !important;
  }

  html:not([data-display-size="standard"]) .hero-card h2,
  html:not([data-display-size="standard"]) .phone .hero-card h2 {
    margin-bottom: 6px !important;
    font-size: clamp(25px, 6.5vw, 28px) !important;
    line-height: 1.12 !important;
  }

  html:not([data-display-size="standard"]) .hero-card p,
  html:not([data-display-size="standard"]) .phone .hero-card p {
    font-size: clamp(19px, 5.2vw, 22px) !important;
    line-height: 1.28 !important;
  }

  html:not([data-display-size="standard"]) .hero-card img,
  html:not([data-display-size="standard"]) .phone .hero-card img {
    width: 82px !important;
    height: 82px !important;
    flex: 0 0 82px !important;
  }

  html:not([data-display-size="standard"]) .recipe-toolbar,
  html:not([data-display-size="standard"]) .phone .recipe-toolbar {
    grid-template-columns: minmax(0, 1fr) 132px !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  html:not([data-display-size="standard"]) .recipe-toolbar input,
  html:not([data-display-size="standard"]) .recipe-toolbar select,
  html:not([data-display-size="standard"]) .phone .recipe-toolbar input,
  html:not([data-display-size="standard"]) .phone .recipe-toolbar select {
    height: 58px !important;
    border-radius: 24px !important;
    font-size: clamp(20px, 5.4vw, 23px) !important;
  }

  html:not([data-display-size="standard"]) .recipe-list,
  html:not([data-display-size="standard"]) .phone .recipe-list {
    gap: 12px !important;
    margin-top: 12px !important;
  }

  html:not([data-display-size="standard"]) .recipe-card,
  html:not([data-display-size="standard"]) .phone .recipe-card {
    min-height: 174px !important;
    grid-template-columns: 104px minmax(0, 1fr) 54px !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 26px !important;
  }

  html:not([data-display-size="standard"]) .recipe-card img,
  html:not([data-display-size="standard"]) .phone .recipe-card img {
    width: 104px !important;
    height: 120px !important;
    border-radius: 22px !important;
  }

  html:not([data-display-size="standard"]) .recipe-card h2,
  html:not([data-display-size="standard"]) .phone .recipe-card h2 {
    display: block !important;
    font-size: clamp(25px, 6.8vw, 29px) !important;
    line-height: 1.12 !important;
  }

  html:not([data-display-size="standard"]) .recipe-card h2 span,
  html:not([data-display-size="standard"]) .phone .recipe-card h2 span {
    display: inline-block !important;
    margin-left: 8px !important;
    vertical-align: 3px !important;
    padding: 4px 8px !important;
    font-size: 18px !important;
  }

  html:not([data-display-size="standard"]) .recipe-card p,
  html:not([data-display-size="standard"]) .phone .recipe-card p {
    gap: 6px !important;
    margin: 8px 0 !important;
  }

  html:not([data-display-size="standard"]) .recipe-card p span,
  html:not([data-display-size="standard"]) .phone .recipe-card p span {
    padding: 4px 9px !important;
    font-size: 19px !important;
  }

  html:not([data-display-size="standard"]) .recipe-card small,
  html:not([data-display-size="standard"]) .phone .recipe-card small {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  html:not([data-display-size="standard"]) .recipe-card > button,
  html:not([data-display-size="standard"]) .phone .recipe-card > button {
    min-width: 54px !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 20px !important;
    font-size: 30px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="plan"] .content,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .content {
    padding-top: 14px !important;
  }

  html:not([data-display-size="standard"]) .calendar-card,
  html:not([data-display-size="standard"]) .phone .calendar-card {
    padding: 14px !important;
    border-radius: 24px !important;
  }

  html:not([data-display-size="standard"]) .month-line,
  html:not([data-display-size="standard"]) .phone .month-line {
    grid-template-columns: 52px 1fr 52px !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  html:not([data-display-size="standard"]) .month-line button,
  html:not([data-display-size="standard"]) .phone .month-line button {
    width: 52px !important;
    height: 52px !important;
    border-radius: 20px !important;
    font-size: 30px !important;
  }

  html:not([data-display-size="standard"]) .month-line strong,
  html:not([data-display-size="standard"]) .phone .month-line strong {
    font-size: clamp(27px, 7vw, 31px) !important;
  }

  html:not([data-display-size="standard"]) .week-days,
  html:not([data-display-size="standard"]) .phone .week-days {
    display: none !important;
  }

  html:not([data-display-size="standard"]) .dates,
  html:not([data-display-size="standard"]) .phone .dates {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 2px 0 8px !important;
    scrollbar-width: none !important;
  }

  html:not([data-display-size="standard"]) .dates::-webkit-scrollbar,
  html:not([data-display-size="standard"]) .phone .dates::-webkit-scrollbar {
    display: none !important;
  }

  html:not([data-display-size="standard"]) .dates > span,
  html:not([data-display-size="standard"]) .phone .dates > span {
    display: none !important;
  }

  html:not([data-display-size="standard"]) .dates button,
  html:not([data-display-size="standard"]) .phone .dates button {
    flex: 0 0 58px !important;
    width: 58px !important;
    height: 64px !important;
    border-radius: 22px !important;
  }

  html:not([data-display-size="standard"]) .dates strong,
  html:not([data-display-size="standard"]) .phone .dates strong {
    font-size: 27px !important;
  }

  html:not([data-display-size="standard"]) .dates small,
  html:not([data-display-size="standard"]) .phone .dates small {
    min-height: 16px !important;
    font-size: 13px !important;
  }

  html:not([data-display-size="standard"]) .plan-summary,
  html:not([data-display-size="standard"]) .phone .plan-summary {
    margin-top: 8px !important;
    padding-top: 10px !important;
    gap: 4px !important;
  }

  html:not([data-display-size="standard"]) .plan-summary strong,
  html:not([data-display-size="standard"]) .phone .plan-summary strong {
    font-size: 27px !important;
  }

  html:not([data-display-size="standard"]) .plan-summary span,
  html:not([data-display-size="standard"]) .phone .plan-summary span {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 20px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="plan"] .section-head.strong,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .section-head.strong {
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 16px 0 12px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="plan"] .section-head.strong h2,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .section-head.strong h2 {
    font-size: 28px !important;
  }

  html:not([data-display-size="standard"]) .screen[data-screen="plan"] .add-pill,
  html:not([data-display-size="standard"]) .phone .screen[data-screen="plan"] .add-pill {
    min-height: 58px !important;
    padding: 0 18px !important;
    border-radius: 24px !important;
    font-size: 22px !important;
  }

  html:not([data-display-size="standard"]) .meal-card,
  html:not([data-display-size="standard"]) .phone .meal-card {
    min-height: 138px !important;
    grid-template-columns: 52px minmax(0, 1fr) 92px !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 26px !important;
  }

  html:not([data-display-size="standard"]) .meal-icon,
  html:not([data-display-size="standard"]) .phone .meal-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    font-size: 26px !important;
  }

  html:not([data-display-size="standard"]) .meal-card img,
  html:not([data-display-size="standard"]) .phone .meal-card img {
    width: 92px !important;
    height: 92px !important;
    border-radius: 20px !important;
  }

  html:not([data-display-size="standard"]) .meal-card h2,
  html:not([data-display-size="standard"]) .phone .meal-card h2 {
    font-size: 27px !important;
  }

  html:not([data-display-size="standard"]) .meal-card p,
  html:not([data-display-size="standard"]) .meal-card small,
  html:not([data-display-size="standard"]) .phone .meal-card p,
  html:not([data-display-size="standard"]) .phone .meal-card small {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  html:not([data-display-size="standard"]) .meal-card p,
  html:not([data-display-size="standard"]) .phone .meal-card p {
    -webkit-line-clamp: 2 !important;
  }

  html:not([data-display-size="standard"]) .meal-card small,
  html:not([data-display-size="standard"]) .phone .meal-card small {
    -webkit-line-clamp: 1 !important;
  }

  html:not([data-display-size="standard"]) .profile-content,
  html:not([data-display-size="standard"]) .phone .profile-content {
    padding-top: 14px !important;
  }

  html:not([data-display-size="standard"]) .profile-head,
  html:not([data-display-size="standard"]) .phone .profile-head {
    min-height: 136px !important;
    padding: 14px !important;
    gap: 12px !important;
    border-radius: 24px !important;
    margin-bottom: 12px !important;
  }

  html:not([data-display-size="standard"]) .profile-head .avatar,
  html:not([data-display-size="standard"]) .phone .profile-head .avatar {
    width: 68px !important;
    height: 68px !important;
    font-size: 38px !important;
  }

  html:not([data-display-size="standard"]) .profile-head h1,
  html:not([data-display-size="standard"]) .phone .profile-head h1 {
    font-size: 28px !important;
    margin-bottom: 4px !important;
  }

  html:not([data-display-size="standard"]) .profile-name-btn,
  html:not([data-display-size="standard"]) .phone .profile-name-btn,
  html:not([data-display-size="standard"]) .profile-head p,
  html:not([data-display-size="standard"]) .phone .profile-head p {
    margin-bottom: 4px !important;
    font-size: 21px !important;
    line-height: 1.22 !important;
  }

  html:not([data-display-size="standard"]) .profile-edit-pill,
  html:not([data-display-size="standard"]) .phone .profile-edit-pill {
    min-width: 78px !important;
    min-height: 56px !important;
    font-size: 23px !important;
  }

  html:not([data-display-size="standard"]) .profile-section-title,
  html:not([data-display-size="standard"]) .phone .profile-section-title {
    margin: 12px 0 8px !important;
  }

  html:not([data-display-size="standard"]) .profile-status,
  html:not([data-display-size="standard"]) .phone .profile-status,
  html:not([data-display-size="standard"]) .profile-quick,
  html:not([data-display-size="standard"]) .phone .profile-quick {
    gap: 10px !important;
  }

  html:not([data-display-size="standard"]) .profile-status button,
  html:not([data-display-size="standard"]) .phone .profile-status button {
    min-height: 118px !important;
    padding: 14px !important;
    border-radius: 22px !important;
  }

  html:not([data-display-size="standard"]) .profile-status strong,
  html:not([data-display-size="standard"]) .phone .profile-status strong {
    font-size: 25px !important;
    line-height: 1.12 !important;
  }

  html:not([data-display-size="standard"]) .profile-status span,
  html:not([data-display-size="standard"]) .phone .profile-status span {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 20px !important;
    line-height: 1.22 !important;
  }

  html:not([data-display-size="standard"]) .profile-quick button,
  html:not([data-display-size="standard"]) .phone .profile-quick button {
    min-height: 116px !important;
    padding: 12px !important;
    border-radius: 22px !important;
  }

  html:not([data-display-size="standard"]) .profile-quick span,
  html:not([data-display-size="standard"]) .phone .profile-quick span {
    width: 50px !important;
    height: 50px !important;
    border-radius: 16px !important;
    font-size: 30px !important;
  }

  html:not([data-display-size="standard"]) .profile-quick strong,
  html:not([data-display-size="standard"]) .phone .profile-quick strong {
    font-size: 23px !important;
  }

  html:not([data-display-size="standard"]) .profile-quick small,
  html:not([data-display-size="standard"]) .phone .profile-quick small {
    font-size: 17px !important;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  html:not([data-display-size="standard"]) .hero-card,
  html:not([data-display-size="standard"]) .phone .hero-card {
    min-height: 92px !important;
  }

  html:not([data-display-size="standard"]) .hero-card img,
  html:not([data-display-size="standard"]) .phone .hero-card img {
    width: 70px !important;
    height: 70px !important;
    flex-basis: 70px !important;
  }

  html:not([data-display-size="standard"]) .recipe-toolbar input,
  html:not([data-display-size="standard"]) .recipe-toolbar select,
  html:not([data-display-size="standard"]) .phone .recipe-toolbar input,
  html:not([data-display-size="standard"]) .phone .recipe-toolbar select {
    height: 52px !important;
    font-size: 19px !important;
  }

  html:not([data-display-size="standard"]) .recipe-card,
  html:not([data-display-size="standard"]) .phone .recipe-card {
    min-height: 148px !important;
    grid-template-columns: 86px minmax(0, 1fr) 48px !important;
    padding: 12px !important;
  }

  html:not([data-display-size="standard"]) .recipe-card img,
  html:not([data-display-size="standard"]) .phone .recipe-card img {
    width: 86px !important;
    height: 96px !important;
  }

  html:not([data-display-size="standard"]) .calendar-card,
  html:not([data-display-size="standard"]) .phone .calendar-card {
    padding: 12px !important;
  }

  html:not([data-display-size="standard"]) .month-line button,
  html:not([data-display-size="standard"]) .phone .month-line button {
    width: 46px !important;
    height: 46px !important;
  }

  html:not([data-display-size="standard"]) .dates button,
  html:not([data-display-size="standard"]) .phone .dates button {
    flex-basis: 52px !important;
    width: 52px !important;
    height: 58px !important;
  }

  html:not([data-display-size="standard"]) .meal-card,
  html:not([data-display-size="standard"]) .phone .meal-card {
    min-height: 120px !important;
    grid-template-columns: 44px minmax(0, 1fr) 78px !important;
  }

  html:not([data-display-size="standard"]) .meal-card img,
  html:not([data-display-size="standard"]) .phone .meal-card img {
    width: 78px !important;
    height: 78px !important;
  }
}
