html, body {
      height: 100%;
      overflow: hidden;
      overscroll-behavior: none;
    }
    body { font-family: system-ui, -apple-system, sans-serif; background: #f9fafb; margin: 0; padding: 0; color: #111; }
    .app-shell {
      max-width: 640px;
      margin: 0 auto;
      height: 100%;
      height: 100dvh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .page-body {
      flex: 1 1 auto;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      padding: 8px 16px 20px;
    }
    .card { background: white; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 24px; overflow: hidden; position: relative; }
    .card.meal-tile { background: transparent; box-shadow: none; overflow: visible; border-radius: 0; }
    /* Checked: green ring following card's 16px radius (no square corners) */
    .card.meal-tile.checked {
      border-radius: 16px;
      box-shadow: 0 0 0 4px #10b981;
    }
    .btn { background: #E07F62; color: white; font-weight: bold; padding: 18px; border: none; border-radius: 9999px; font-size: 1.2rem; width: 100%; cursor: pointer; box-shadow: 0 2px 8px rgba(224, 127, 98, 0.35); }
    .btn:disabled { opacity: 0.7; cursor: wait; }
    .header {
      /* lighter peach — pairs with darker zip/store bar below */
      background: #FFF8F3;
      padding: 10px 12px 12px 8px;
      position: sticky;
      top: 0;
      z-index: 200;
      box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    }
    @supports (padding: env(safe-area-inset-top)) {
      .header { padding-top: max(10px, env(safe-area-inset-top)); }
    }
    /* Compact inline recipe card — 3 flush sections, shared edges, outer rounds */
    .meal-tile {
      display: flex;
      flex-direction: column;
      gap: 0;
      background: transparent;
      box-shadow: none;
      overflow: visible;
      border-radius: 0;
    }
    .meal-header {
      background: #F5EDE6;
      padding: 8px 12px 6px 12px;
      border: 1px solid #3f3f46;
      border-bottom: none;
      border-radius: 16px 16px 0 0;
      box-sizing: border-box;
      position: relative;
    }
    .meal-title {
      font-size: 1.15rem;
      font-weight: 700;
      line-height: 1.2;
      margin: 0;
      padding: 0;
      text-align: center;
    }
    .meal-line2, .meal-line3 {
      text-align: center;
      font-size: 0.82rem;
      color: #4b5563;
      line-height: 1.2;
      margin-top: 1px;
    }
    .meal-line2 {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: nowrap;
      white-space: nowrap;
      overflow: visible;
      gap: 0;
    }
    .meal-line3 .onsale,
    .meal-line3 .saved { color: #047857; font-weight: 600; }
    .meal-tile.is-focus .meal-head, .meal-tile.is-focus .meal-body { user-select: text; -webkit-user-select: text; }
    .meal-body {
      background: #FFF8F3;
      padding: 8px 14px 12px 14px;
      font-size: 0.9rem;
      line-height: 1.45;
      color: #222;
      border: 1px solid #3f3f46;
      border-radius: 0 0 16px 16px;
      box-sizing: border-box;
    }
    .meal-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #9ca3af;
      margin: 8px 0 4px 0;
    }
    .meal-label:first-child { margin-top: 2px; }
    .meal-ing-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 16px;
      align-items: start;
    }
    .meal-ing-col {
      margin: 0;
      padding-left: 18px;
      color: #374151;
    }
    .meal-ing-col li {
      margin-bottom: 3px;
    }
    .pack-note {
      font-size: 0.75rem;
      color: #9ca3af;
      font-weight: 400;
      line-height: 1.2;
      margin-top: 1px;
    }
    .meal-steps { margin: 0; padding-left: 20px; color: #111; }
    .meal-steps li { margin-bottom: 6px; }
    h3 { font-size: 1.05rem; line-height: 1.25; margin: 0 0 8px 0; }
    .input-small { width: 56px !important; font-size: 1.4rem !important; text-align: center; border: 2px solid #f3f4f6; border-radius: 8px; padding: 8px 4px; }
    .plan-counts {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 16px;
      flex-wrap: nowrap;
    }
    .plan-counts > div {
      text-align: center;
      flex: 0 0 auto;
      min-width: 0;
    }
    .plan-counts label {
      font-size: 0.75rem !important;
      margin-bottom: 4px !important;
      white-space: nowrap;
    }
    .stepper {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: #f9fafb;
      border-radius: 12px;
      padding: 4px 4px;
    }
    @media (max-width: 380px) {
      .plan-counts { gap: 10px; }
      .stepper-btn { width: 32px; height: 32px; font-size: 1.2rem; }
      .stepper .input-small { width: 40px !important; font-size: 1.2rem !important; }
    }
    .stepper-btn {
      width: 36px;
      height: 36px;
      border: none;
      border-radius: 10px;
      background: #fff;
      color: #9CA3AF; /* soft gray — quieter than count */
      font-size: 1.35rem;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    }
    .stepper-btn:active { background: #e5e7eb; }
    .stepper .input-small {
      background: transparent;
      border-color: transparent;
      -moz-appearance: textfield;
      appearance: textfield;
    }
    .stepper .input-small::-webkit-outer-spin-button,
    .stepper .input-small::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    .store-wrapper { position: relative; display: inline-block; }
    .location-pin { width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .location-pin svg { width: 22px; height: 22px; fill: #E07F62; } /* terracotta — match hand */
    .section-title { font-size: 1.3rem; margin: 0 0 14px 0; font-weight: 600; }
    .debug-box { background: #fff7ed; border: 1px solid #fdba74; border-radius: 12px; padding: 16px; margin-top: 20px; font-size: 0.9rem; }
    .loc-msg { font-size: 0.8rem; color: #b45309; text-align: left; margin: 4px 0 0 0; min-height: 1.2em; }

    .brand-header {
      display: flex;
      align-items: flex-end; /* FMC bottom aligns with tagline / wrist bottom */
      justify-content: space-between;
      gap: 8px;
    }
    .brand-left {
      display: flex;
      align-items: stretch; /* text column matches logo height */
      gap: 2px; /* logo closer to title */
      min-width: 0;
      flex: 1 1 auto;
      padding-right: 4px;
      margin-left: -2px; /* hand more left-justified */
    }
    .brand-left img.brand-logo {
      height: 76px;
      width: auto;
      max-width: 76px;
      object-fit: contain;
      flex-shrink: 0;
      display: block;
      align-self: flex-start;
    }
    .brand-text {
      min-width: 0;
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      /* Match logo box; pads lock type to hand (not transparent PNG edges) */
      height: 76px;
      box-sizing: border-box;
      /* top of "P" ≈ top of thumb; bottom of tagline ≈ bottom of wrist */
      padding-top: 14px;
      padding-bottom: 6px;
    }
    .brand-text h1 {
      margin: 0;
      font-family: 'Outfit', system-ui, -apple-system, sans-serif;
      font-size: 2.05rem;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #1f2937;
      line-height: 1.0;
    }
    .brand-text .tagline-primary {
      margin: 0;
      font-size: 0.8rem;
      color: #6b7280;
      line-height: 1.15;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }
    @media (max-width: 380px) {
      .brand-left img.brand-logo { height: 68px; max-width: 68px; }
      .brand-text {
        height: 68px;
        padding-top: 12px;
        padding-bottom: 5px;
      }
      .brand-text h1 { font-size: 1.8rem; }
      .brand-text .tagline-primary { font-size: 0.72rem; }
      .fmc-btn { margin-bottom: 5px; }
    }
    .fmc-btn {
      flex-shrink: 0;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      background: #4CAF50; /* enabled = material green (locked 2026-08-23) */
      color: #fff;
      border: none;
      border-radius: 14px;
      padding: 8px 8px;
      min-width: 0;
      width: 64px;
      font-size: 0.65rem;
      font-weight: 700;
      line-height: 1.1;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(76, 175, 80, 0.35);
      text-align: center;
      /* Match .brand-text padding-bottom so button bottom ≈ tagline text bottom */
      margin-bottom: 6px;
    }
    .fmc-btn:disabled {
      background: #d1d5db;
      color: #f9fafb;
      cursor: not-allowed;
      box-shadow: none;
      opacity: 1;
    }
    .fmc-btn[hidden] {
      display: none !important;
    }
    .fmc-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
    .fmc-btn.is-list { box-shadow: 0 2px 6px rgba(59, 127, 196, 0.28); }
    .fmc-btn.is-list:not(:disabled) { background: #3B7FC4; }
    .shop-list-title { color: #3B7FC4; }
    .shop-copy-btn { background: #3B7FC4; }
    #listSummary { background: #E8F2FB; }
    .zip-store-bar {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
      position: relative;
      padding: 6px 16px;
      background: #EEEAE4;
      border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    /* Open store list must paint above the sticky tab rail */
    .zip-store-bar.is-store-open {
      z-index: 195;
    }
    .plan-card { background: #FFF8F3; }
    .plan-counts { margin-bottom: 0 !important; }
    .zip-store-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      width: 100%;
      max-width: 420px;
      margin: 0 auto;
      gap: 8px;
    }
    .zip-store-row .zip-col,
    .zip-store-row .store-col {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
    }
    .zip-store-row .zip-group {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .zip-store-row .store-wrapper {
      position: relative;
      display: inline-block;
      max-width: 100%;
    }
    .zip-store-row #selectedStore {
      cursor: pointer;
      color: #E07F62;
      font-weight: 600;
      font-size: 0.95rem;
      padding: 6px 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }
    /* No zip yet — grayed */
    .zip-store-row #selectedStore.is-placeholder {
      color: #9ca3af;
      font-weight: 500;
      cursor: default;
    }
    /* Zip entered, no store chosen yet — terracotta "Select Store" */
    .zip-store-row #selectedStore.is-ready-placeholder {
      color: #E07F62;
      font-weight: 600;
      cursor: pointer;
    }
    .loc-msg {
      text-align: center !important;
      min-height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    .loc-msg:empty { display: none; }
    #prefetchStatus:empty { display: none; }

    .tab-rail {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 0;
      padding: 0;
      background: #FFF8F3;
      border-bottom: 1px solid rgba(176, 140, 122, 0.28);
      position: sticky;
      top: var(--header-h, 98px);
      z-index: 190;
    }
    .tab-box {
      min-height: 58px;
      border: none;
      border-right: 1px solid rgba(176, 140, 122, 0.28);
      border-radius: 0;
      background: #FFF8F3;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 4px;
      padding: 6px 6px 7px;
      box-sizing: border-box;
      position: relative;
      min-width: 0;
      overflow: hidden;
    }
    .tab-box:last-child { border-right: none; }
    .tab-box.is-active {
      background: #FFF8F3;
      box-shadow: none;
    }
    .tab-box.is-active::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 3px;
      background: #E07F62; /* hand terracotta */
      border-radius: 0;
    }
    .tab-box.is-blank {
      background: #FFF8F3;
      pointer-events: none;
    }
    .tab-box.is-waiting {
      justify-content: center;
    }
    .tab-box.is-waiting .tab-label {
      text-align: center;
    }
    .tab-label {
      font-size: 0.86rem;
      font-weight: 500;
      color: #E07F62;
      letter-spacing: 0;
      white-space: normal;
      line-height: 1.12;
      text-align: center;
      min-width: 0;
    }
    .tab-soon {
      display: block;
      margin-top: 2px;
      font-size: 0.58rem;
      font-weight: 500;
      color: #C4A494;
      line-height: 1.05;
      letter-spacing: 0;
      white-space: nowrap;
    }
    #tabPrepared .tab-label {
      display: block;
      width: 100%;
      text-align: center;
    }
    .prepared-soon {
      margin: 18px 16px;
      padding: 22px 18px;
      background: #fff;
      border-radius: 16px;
      text-align: center;
      color: #444;
    }
    .prepared-soon h2 {
      margin: 0 0 8px;
      font-size: 1.05rem;
      font-weight: 700;
      color: #E07F62;
    }
    .prepared-soon p { margin: 0; font-size: 0.92rem; line-height: 1.4; }
    .tab-stack {
      display: none;
      align-items: center;
      gap: 3px;
      background: none;
      border: none;
      padding: 0;
      margin-left: auto;
      cursor: pointer;
      color: #E07F62;
      flex: 0 0 auto;
    }
    .tab-stack.is-on { display: inline-flex; }
    .tab-stack svg { width: 24px; height: 19px; display: block; }
    .tab-stack-n {
      font-size: 0.88rem;
      font-weight: 800;
      color: #E07F62;
      line-height: 1;
    }
    .serves-select {
      display: inline-block;
      font: inherit;
      font-size: 0.82rem;
      font-weight: 500;
      color: #4b5563;
      border: 1px solid #d6d3d1;
      border-radius: 5px;
      background-color: #fff;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 5px center;
      background-size: 8px 5px;
      -webkit-appearance: none;
      appearance: none;
      padding: 0 14px 0 4px;
      margin: 0 0 0 3px;
      height: 22px;
      line-height: 22px;
      vertical-align: middle;
      width: 42px;
      min-width: 42px;
      box-sizing: border-box;
      text-align: center;
      text-align-last: center;
      flex: 0 0 auto;
    }
    .serves-select::-ms-expand { display: none; }
    @media (max-width: 430px) {
      .meal-line2 { font-size: 0.78rem; }
      .serves-select { font-size: 0.78rem; width: 42px; min-width: 42px; height: 22px; line-height: 22px; }
    }
    .brand-logo-btn {
      position: relative;
      border: none;
      background: transparent;
      padding: 0;
      cursor: pointer;
      line-height: 0;
    }
    .hand-menu-label {
      position: absolute;
      left: 50%;
      top: 100%;
      transform: translateX(-50%);
      margin-top: 1px;
      font-size: 0.62rem;
      line-height: 1;
      font-weight: 700;
      color: #E07F62;
      white-space: nowrap;
      pointer-events: none;
    }
    .main-menu {
      position: absolute;
      left: 8px;
      top: 88px;
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.12);
      min-width: 172px;
      width: max-content;
      z-index: 250;
      padding: 8px 6px 6px;
    }
    .main-menu.tutor-menu-front { z-index: 430; }
    .main-menu[hidden] { display: none; }
    .main-menu-title {
      font-size: 0.95rem;
      font-weight: 800;
      color: #E07F62;
      padding: 6px 12px 8px;
      letter-spacing: 0.01em;
    }
    .main-menu button {
      display: block;
      width: 100%;
      text-align: left;
      border: none;
      background: transparent;
      padding: 10px 12px;
      border-radius: 8px;
      font-size: 0.92rem;
      cursor: pointer;
      color: #1f2937;
    }
    .main-menu button:hover { background: #FFF8F3; }
    .hover-rail {
      display: none;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 6;
      min-width: 52px;
      padding: 8px 10px;
      border-radius: 10px;
      font-size: 0.75rem;
      font-weight: 800;
      letter-spacing: 0.02em;
      color: #fff;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0,0,0,0.16);
      user-select: none;
    }
    .hover-keep { right: 8px; background: #10b981; }
    .hover-pass { left: 8px; background: #ef4444; }
    @media (hover: hover) and (pointer: fine) {
      .meal-tile.is-focus .meal-header { padding-left: 68px; padding-right: 68px; }
      .meal-tile.is-focus:hover .hover-rail { display: flex; align-items: center; justify-content: center; }
    }
    .meal-tile.is-focus {
      touch-action: pan-y;
      transition: transform 0.16s ease;
    }
    .shop-overlay {
      position: fixed;
      inset: 0;
      background: rgba(28, 25, 23, 0.45);
      z-index: 320;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 64px 12px 28px;
      overflow: auto;
      box-sizing: border-box;
    }
    .shop-overlay[hidden] { display: none; }
    .tutor-overlay {
      position: fixed;
      inset: 0;
      z-index: 420;
      pointer-events: auto;
    }
    body.tutor-lock .app-shell { pointer-events: none; }
    body.tutor-lock #tutorOverlay { pointer-events: auto; }
    .tutor-overlay[hidden] { display: none; }
    .tutor-hole {
      position: absolute;
      border-radius: 10px;
      box-shadow: 0 0 0 9999px rgba(28, 25, 23, 0.52);
      outline: 2px solid #E07F62;
      pointer-events: none;
      transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
    }
    .tutor-card {
      position: absolute;
      width: min(320px, calc(100vw - 28px));
      background: #fff;
      color: #1c1917;
      border-radius: 12px;
      padding: 14px 14px 12px;
      box-shadow: 0 10px 28px rgba(0,0,0,0.2);
      pointer-events: auto;
      z-index: 421;
    }
    .tutor-card h3 {
      margin: 0 0 6px;
      font-size: 0.95rem;
      color: #E07F62;
      font-weight: 800;
    }
    .tutor-card p {
      margin: 0 0 12px;
      font-size: 0.88rem;
      line-height: 1.35;
      color: #44403c;
    }
    .tutor-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .tutor-nav button {
      border: none;
      background: none;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      padding: 6px 4px;
    }
    .tutor-skip { color: #9ca3af; }
    .tutor-back { color: #78716c; }
    .tutor-next {
      color: #fff;
      background: #E07F62 !important;
      border-radius: 9999px;
      padding: 6px 14px !important;
    }
    .tutor-stepn {
      font-size: 0.72rem;
      color: #a8a29e;
      font-weight: 600;
    }
    .shop-modal {
      width: 100%;
      max-width: 560px;
      background: #fff;
      border-radius: 16px;
      padding: 20px;
      box-shadow: 0 12px 36px rgba(0,0,0,0.18);
    }
    .shop-modal-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      gap: 10px;
    }
    .shop-modal-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 0 0 auto;
    }
    .shop-copy-btn {
      background: #3B7FC4;
      color: white;
      border: none;
      padding: 9px 14px;
      border-radius: 9999px;
      font-size: 0.88rem;
      cursor: pointer;
    }
    .shop-close {
      width: 34px;
      height: 34px;
      border: none;
      background: transparent;
      font-size: 1.55rem;
      line-height: 1;
      cursor: pointer;
      color: #6b7280;
      border-radius: 8px;
    }
    .shop-close:hover { background: #f3f4f6; color: #111; }
    .pile-list {
      margin: 0 0 14px 0;
      background: transparent;
      border: none;
      padding: 0;
    }
    .pile-card { margin-bottom: 10px; }
    .pile-card:last-child { margin-bottom: 0; }
    .pile-card .meal-header { position: relative; padding-left: 44px; padding-right: 44px; }
    .pile-card.is-collapsed .meal-header {
      border-radius: 16px;
      border-bottom: 1px solid #3f3f46;
    }
    .pile-header-actions {
      position: absolute;
      top: 6px;
      right: 6px;
      display: flex;
      align-items: center;
      gap: 0;
    }
    .pile-expand {
      border: none;
      background: transparent;
      color: #E07F62;
      width: 26px;
      height: 26px;
      cursor: pointer;
      padding: 0;
      font-size: 0.72rem;
      line-height: 1;
    }
    .pile-expand[aria-expanded="true"] { color: #c45d42; }
    .pile-remove {
      border: none;
      background: transparent;
      color: #6b7280;
      width: 26px;
      height: 26px;
      cursor: pointer;
      font-size: 1.05rem;
      line-height: 1;
    }
    .pile-remove:hover { color: #111; }
    .plan-card { display: none !important; }
    .focus-wrap { width: 100%; }
    .swipe-hint {
      display: none;
      align-items: center;
      width: 100%;
      margin-top: 7px;
      color: rgba(224, 127, 98, 0.55);
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      line-height: 1;
      pointer-events: none;
      user-select: none;
    }
    @media (hover: none) and (pointer: coarse) {
      .focus-wrap .swipe-hint { display: flex; }
    }
    .swipe-hint-word { flex: 0 0 auto; padding: 0 5px; }
    .swipe-hint-seg {
      height: 0;
      border-top: 1.5px solid currentColor;
      position: relative;
      min-width: 10px;
    }
    .swipe-hint-seg.is-end { flex: 0.55 1 0; }
    .swipe-hint-seg.is-mid { flex: 1 1 0; }
    .swipe-hint-dot {
      flex: 0 0 auto;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: currentColor;
      margin: 0 1px;
    }
    .swipe-hint-seg.is-left::before {
      content: '';
      position: absolute;
      left: 0;
      top: -4px;
      width: 7px;
      height: 7px;
      border-left: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg);
    }
    .fb-label {
      display: block;
      font-size: 0.82rem;
      font-weight: 600;
      color: #44403c;
      margin: 10px 0 5px;
    }
    .fb-select, .fb-text {
      width: 100%;
      box-sizing: border-box;
      border: 1px solid #d6d3d1;
      border-radius: 8px;
      padding: 8px 10px;
      font: inherit;
      font-size: 0.92rem;
      color: #1c1917;
      background: #fff;
    }
    .fb-text { resize: vertical; min-height: 96px; }
    .fb-paste-wrap {
      position: relative;
      border: 1px dashed #d6d3d1;
      border-radius: 8px;
      background: #fafaf9;
      min-height: 72px;
      overflow: hidden;
    }
    .fb-paste-wrap.is-filled {
      border-style: solid;
      background: #fff;
    }
    .fb-paste-wrap.is-filled .fb-paste,
    .fb-paste-wrap.is-filled .fb-paste-hint { display: none; }
    .fb-paste {
      min-height: 72px;
      padding: 12px;
      font-size: 16px;
      line-height: 1.2;
      color: transparent;
      caret-color: transparent;
      outline: none;
    }
    .fb-paste:focus { outline: 2px solid rgba(224,127,98,0.45); }
    .fb-paste-hint {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.25em;
      padding: 12px;
      font-size: 0.85rem;
      color: #6b7280;
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
      text-align: center;
    }
    .fb-file {
      color: #E07F62;
      cursor: pointer;
      text-decoration: underline;
      pointer-events: auto;
      user-select: none;
      -webkit-user-select: none;
    }
    .fb-preview { display: none; padding: 8px; }
    .fb-paste-wrap.is-filled .fb-preview { display: block; }
    .fb-preview img { max-width: 100%; max-height: 180px; border-radius: 8px; display: block; margin: 0 auto; }
    .fb-clear {
      margin-top: 6px;
      border: none;
      background: none;
      color: #6b7280;
      font-size: 0.82rem;
      cursor: pointer;
    }
    .fb-status { min-height: 1.2em; font-size: 0.82rem; color: #6b7280; margin: 8px 0; }
    .fb-send {
      width: 100%;
      border: none;
      border-radius: 9999px;
      background: #E07F62;
      color: #fff;
      font-weight: 600;
      padding: 11px;
      cursor: pointer;
    }
    .fb-send:disabled { opacity: 0.55; cursor: default; }
    .pantry-lead {
      margin: 0 0 12px;
      font-size: 0.92rem;
      line-height: 1.4;
      color: #44403c;
    }
    .pantry-list {
      margin: 0;
      padding: 0 0 8px 1.15rem;
      color: #1c1917;
      font-size: 0.95rem;
      line-height: 1.45;
    }
    .pantry-list li { margin: 0 0 4px; }
    .swipe-hint-seg.is-right::after {
      content: '';
      position: absolute;
      right: 0;
      top: -4px;
      width: 7px;
      height: 7px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(-45deg);
    }

/* Prepared Meals Part 1 — same card shell as weeknight. Photo replaces steps. */
.prepared-body {
  margin: 12px 16px 24px;
}
/* Equal space above the photo and below the stepper. Min-height keeps the
   card in the same size band as a weeknight card, whose body is the steps. */
.meal-body.is-prepared {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  padding: 18px 14px;
}
.prep-photo-wrap {
  width: 64%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}
/* A pair: two photos, name under each, one stepper under both. */
.prep-photo-row {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
  flex: 1 1 auto;
}
.prep-photo-col {
  width: 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.prep-photo-col .prep-photo,
.prep-photo-col .prep-photo-empty {
  width: 100%;
}
.prep-piece-name {
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: center;
  color: #444;
}
.prep-photo {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
}
.prep-photo-empty {
  width: 100%;
  height: 160px;
  background: #eeeae4;
  border-radius: 10px;
}
.prep-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.prep-qty-n {
  min-width: 1.6em;
  text-align: center;
  font-weight: 650;
  font-size: 1rem;
}
.prep-empty {
  margin: 18px 0;
  padding: 22px 18px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  color: #666;
}

/* Tap a prepared photo to see the package. Tap again to close. */
.prep-photo[data-prep-zoom] { cursor: zoom-in; }
.prep-zoom {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28, 25, 23, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
}
.prep-zoom img {
  max-width: min(92vw, 520px);
  max-height: 70vh;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  cursor: zoom-out;
}
.prep-zoom-name {
  max-width: min(92vw, 520px);
  color: #fff;
  text-align: center;
  font-size: 1rem;
  line-height: 1.35;
}
