@font-face {
  font-family: "ZCOOL KuaiLe";
  src: url("assets/fonts/zcool-kuaile-headings.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f8f0df;
  --white: #fffaf2;
  --ink: #765044;
  --muted: #937a6b;
  --orange: #96332f;
  --orange-dark: #7d2825;
  --peach: #f1d9d2;
  --line: #e3d4be;
  --green: #6c7b51;
  --green-pale: #e9eddd;
  --blue: #91bbd5;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; color: var(--ink); font-family: var(--font); background: #eee3cd; font-size: 14px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange); }
button { border: 0; cursor: pointer; color: inherit; background: none; }
button:disabled { cursor: default; opacity: .5; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
button svg { pointer-events: none; }
.app-shell { background: var(--paper); width: min(100%, 460px); min-height: 100dvh; margin: 0 auto; position: relative; padding-bottom: 90px; box-shadow: 0 0 80px #3141330a; }
.app-header { height: 86px; padding: 24px 25px 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; letter-spacing: -.7px; }
.brand-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 11px; background: var(--orange); color: white; transform: rotate(-7deg); }
.brand-icon svg { width: 25px; height: 25px; transform: rotate(7deg); }
.brand-dot { color: var(--orange); padding-left: 1px; font-size: 23px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #e9e8de; border-radius: 50%; background: #fffefa99; }
.icon-button svg { width: 18px; height: 18px; }
#main { padding: 10px 24px 28px; }
#main:focus { outline: none; }
.greeting-meta { display: flex; align-items: center; gap: 7px; color: #8d8e7e; font-size: 11px; font-weight: 500; letter-spacing: 1.1px; }
.greeting-meta svg { color: #b5a367; width: 15px; height: 15px; }
.intro { position: relative; padding-top: 17px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 32px; line-height: 1.5; letter-spacing: -1.5px; font-weight: 850; }
.accent { color: var(--orange); position: relative; white-space: nowrap; }
.accent:after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; border-top: 2px solid #ed70496b; border-radius: 50%; transform: rotate(-3deg); }
.intro-note { color: #8a9085; font-size: 12px; margin-top: 12px; letter-spacing: .4px; line-height: 1.7; }
.intro-flower { position: absolute; right: 10px; top: 27px; color: #d2d9a5; font-size: 62px; line-height: 1; transform: rotate(12deg); }
.preference-strip { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px; background: #f0f1e7; border: 1px solid #e6e9d9; border-radius: 15px; margin: 23px 0 21px; text-align: left; }
.strip-icon { color: #758466; display: grid; place-items: center; }
.strip-copy { flex: 1; min-width: 0; }
.strip-copy strong { font-size: 11px; font-weight: 600; display: block; margin-bottom: 3px; color: #677860; }
.strip-copy span { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-edit { font-size: 11px; color: #7d8872; display: flex; align-items: center; gap: 3px; }
.strip-edit svg { width: 13px; height: 13px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.section-title h2 { font-size: 15px; font-weight: 750; letter-spacing: .1px; }
.section-eyebrow { font-size: 9px; letter-spacing: 1.6px; color: #959d8d; margin-left: 6px; font-weight: 500; }
.round-label { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #9a9f91; white-space: nowrap; }
.round-label svg { width: 13px; height: 13px; color: #b2b993; }
.meal-card { background: var(--white); border: 1px solid #ebe9df; border-radius: 23px; overflow: hidden; box-shadow: 0 7px 22px #3b3c2405; }
.meal-photo { position: relative; height: 242px; background: #e6ead6; overflow: hidden; }
.meal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.meal-photo:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #22342216 0%, transparent 55%, #22342226); pointer-events: none; }
.meal-photo .photo-badge { position: absolute; z-index: 1; top: 15px; left: 15px; display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 7px; background: #fffef5ed; font-size: 10px; font-weight: 600; }
.photo-badge svg { width: 13px; height: 13px; color: var(--orange); }
.photo-label { position: absolute; bottom: 12px; left: 14px; color: #fff; font-size: 9px; letter-spacing: .7px; z-index: 1; text-shadow: 0 1px 4px #0009; }
.meal-stamp { position: absolute; right: 15px; bottom: 15px; z-index: 1; width: 58px; height: 58px; border: 1px solid #ffffffae; outline: 3px solid #ffffff24; outline-offset: 3px; background: #fff4dfe8; border-radius: 50%; display: grid; place-content: center; color: #788465; font-family: Georgia, var(--font); font-size: 13px; line-height: 1.5; text-align: center; transform: rotate(12deg); }
.meal-body { padding: 18px; }
.shop-line { font-size: 10px; color: #969a8e; display: flex; gap: 5px; align-items: center; }
.shop-line svg { width: 12px; height: 12px; }
.meal-heading { display: flex; align-items: start; justify-content: space-between; gap: 7px; margin-top: 7px; }
.meal-heading h3 { font-size: 22px; letter-spacing: -.8px; line-height: 1.4; font-weight: 800; }
.detail-link { width: 32px; height: 32px; display: grid; place-content: center; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; }
.detail-link svg { width: 16px; height: 16px; }
.meal-description { font-size: 11px; line-height: 1.8; margin-top: 7px; color: #8a8d81; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { padding: 4px 7px; border-radius: 5px; font-size: 10px; color: #758365; background: #eff3e8; line-height: 1.5; }
.tag.warm { background: #fcf0e6; color: #b68c63; }
.meal-action { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 17px; margin-top: 17px; border-top: 1px dashed #e9e7db; }
.meal-action .primary-button { width: 100%; }
.primary-button { display: inline-flex; gap: 15px; justify-content: center; align-items: center; min-height: 47px; padding: 12px 22px; background: var(--orange); color: white; border-radius: 12px; font-weight: 650; font-size: 13px; box-shadow: 0 4px 9px #ed704915; transition: background .15s, transform .15s; }
.primary-button:hover { background: var(--orange-dark); }
.primary-button:active { transform: scale(.98); }
.primary-button svg { width: 17px; height: 17px; }
.why-box { padding: 15px 14px 14px; margin: 12px 0 24px; border-radius: 13px; background: #f4f2e9; }
.why-title { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #768065; margin-bottom: 10px; }
.why-title svg { width: 14px; height: 14px; }
.why-items { display: flex; flex-direction: column; gap: 7px; }
.why-item { display: flex; align-items: center; gap: 7px; color: #8d9282; font-size: 10px; line-height: 1.5; }
.why-item svg { width: 12px; height: 12px; color: #a5ad8a; }
.text-button { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; color: #8b927b; min-height: 32px; padding: 4px 0 4px 8px; white-space: nowrap; }
.text-button svg { width: 14px; height: 14px; }
.alternative-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.alternative { padding: 0; background: var(--white); border: 1px solid #ece9df; border-radius: 15px; overflow: hidden; text-align: left; min-width: 0; }
.alternative-photo { height: 112px; background: #e7eadc; position: relative; overflow: hidden; }
.alternative img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.alternative:hover img { transform: scale(1.04); }
.mini-photo-label { position: absolute; bottom: 5px; left: 7px; color: white; font-size: 8px; text-shadow: 0 1px 3px black; }
.alternative-copy { padding: 11px 11px 12px; }
.alternative h3 { font-size: 12px; line-height: 1.6; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alternative-meta { color: #a0a391; font-size: 9px; margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.alternative-meta svg { width: 14px; height: 14px; color: #a88a6a; }
.yesterday-nudge { display: flex; align-items: center; gap: 8px; padding: 13px 0; margin-top: 15px; border-top: 1px solid var(--line); color: #9b9d8d; }
.yesterday-nudge > svg { width: 15px; height: 15px; }
.yesterday-nudge p { font-size: 10px; line-height: 1.8; flex: 1; }
.yesterday-nudge button { min-height: 40px; color: #9a7657; font-size: 10px; white-space: nowrap; }
.footnote { text-align: center; color: #a9aa9b; font-size: 9px; line-height: 1.9; padding: 10px 0 0; }
.footnote .tiny-flower { color: #b9bc9e; font-size: 16px; display: block; margin-bottom: 5px; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 460px); z-index: 20; display: flex; justify-content: space-around; background: #fffdf9f2; backdrop-filter: blur(18px); border-top: 1px solid #eeece2; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.nav-item { display: flex; flex: 1; align-items: center; gap: 5px; flex-direction: column; min-height: 44px; justify-content: center; color: #a3a794; font-size: 10px; position: relative; }
.nav-item svg { width: 21px; height: 21px; margin-bottom: 1px; stroke-width: 1.6; }
.nav-item.active { color: var(--orange); font-weight: 700; }
.nav-item.active:after { content: ""; position: absolute; top: -11px; height: 3px; width: 24px; border-radius: 0 0 4px 4px; background: var(--orange); }
.desktop-note { position: fixed; top: 23%; left: max(28px, calc(50% - 590px)); width: 280px; }
.desktop-mark { font-size: 11px; letter-spacing: 3px; color: #8c977f; margin-bottom: 30px; font-weight: 700; }
.desktop-title { font-size: 29px; font-weight: 750; line-height: 1.8; letter-spacing: -1px; }
.desktop-title span { color: var(--orange); }
.desktop-note p { font-size: 12px; color: #929786; line-height: 2.2; margin-top: 18px; }
.desktop-doodle { font-size: 110px; color: #c9cfac; margin: 25px 0 35px 50px; width: 110px; transform: rotate(15deg); }
.desktop-edition { font-size: 8px; letter-spacing: 2px; color: #a8ad98; }
.desktop-side { position: fixed; left: calc(50% + 320px); top: 29%; display: flex; flex-direction: column; align-items: center; color: #9ca38e; font-size: 11px; letter-spacing: 4px; }
.desktop-side > span { writing-mode: vertical-rl; }
.side-line { width: 1px; height: 54px; background: #c7cdb9; margin: 22px 0; }
.desktop-small { font-size: 10px; letter-spacing: 1px; margin-top: 36px; line-height: 2; text-align: center; }
.page-heading { padding-top: 9px; margin-bottom: 26px; }
.page-eyebrow { color: #9b9f8c; font-size: 10px; letter-spacing: 2px; margin-bottom: 9px; }
.page-heading h1 { font-size: 28px; }
.page-heading p { color: #8e9485; font-size: 12px; margin-top: 9px; line-height: 1.9; }
.form-section { padding: 19px 17px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); margin-bottom: 14px; }
.form-section h2 { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.form-section h2 svg { width: 17px; height: 17px; color: var(--orange); }
.form-description { font-size: 10px; color: #9a9e8f; margin-top: 7px; line-height: 1.8; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.chip { border: 1px solid #e7e9dd; background: #fffefb; border-radius: 9px; min-height: 40px; padding: 9px 12px; font-size: 12px; color: #858e7c; display: inline-flex; align-items: center; gap: 6px; }
.chip.selected { color: #bb5d3a; border-color: #ecb49b; background: #fff1e7; font-weight: 600; }
.chip.selected svg { width: 12px; height: 12px; }
.avoid-grid .chip { min-height: 37px; font-size: 11px; padding: 8px 12px; }
.custom-input-row { display: flex; gap: 8px; margin-top: 14px; }
.custom-input-row input, .search-box input { min-width: 0; flex: 1; background: #f7f7f0; border: 1px solid #e8e9df; border-radius: 9px; padding: 11px; color: var(--ink); width: 100%; font-size: 12px; }
input::placeholder { color: #b0b2a3; }
.custom-input-row button { min-width: 48px; border-radius: 9px; color: #a26f4b; background: #f8eee2; font-size: 12px; }
.custom-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.custom-tags .chip { min-height: 32px; padding: 5px 9px; font-size: 11px; }
.input-error { color: #ba4f34; font-size: 11px; margin-top: 8px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid #efeee6; }
.switch-row:last-child { padding-bottom: 0; border-bottom: 0; }
.switch-label strong { font-size: 12px; font-weight: 650; }
.switch-label p { color: #9a9e8f; font-size: 10px; margin-top: 5px; line-height: 1.7; }
.switch { width: 42px; height: 25px; background: #d8ddcf; border-radius: 15px; flex-shrink: 0; position: relative; }
.switch:after { content: ""; position: absolute; width: 19px; height: 19px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #0001; transition: transform .2s; }
.switch[aria-checked="true"] { background: #839b70; }
.switch[aria-checked="true"]:after { transform: translateX(17px); }
.save-preferences { width: 100%; margin-top: 10px; min-height: 51px; }
.privacy-note { font-size: 10px; line-height: 1.9; color: #a0a592; text-align: center; margin-top: 12px; }
.history-summary { background: #eff1e4; border: 1px solid #e2e6d4; border-radius: 17px; padding: 8px 19px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.history-summary strong { font-family: Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1; color: #728360; }
.history-summary p { font-size: 11px; color: #8e977d; margin-top: 3px; }
.history-summary svg { color: #a9b792; width: 40px; height: 40px; }
.history-item { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--white); margin-bottom: 12px; }
.history-item img { width: 76px; height: 82px; object-fit: cover; border-radius: 11px; flex-shrink: 0; }
.history-item-content { flex: 1; min-width: 0; }
.section-title.history-calendar-heading h2 { display: flex; align-items: center; gap: 7px; font-family: "ZCOOL KuaiLe", var(--font); font-size: 19px; font-weight: 400; color: var(--orange); }
.history-calendar-icon { width: 25px; height: 27px; flex-shrink: 0; transform: rotate(-7deg); }
.history-detail-button { align-self: center; display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; color: var(--orange); border: 1px solid #ddbeb2; border-radius: 50%; background: var(--peach); }
.history-detail-button svg { width: 17px; height: 17px; }
.history-date { color: #9b9f8d; font-size: 10px; margin-top: 2px; }
.history-item h3 { font-size: 13px; margin-top: 7px; line-height: 1.5; }
.history-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; gap: 4px; }
.history-bottom span { font-size: 10px; color: #929b83; }
.history-bottom button { font-size: 10px; color: #a48f7a; min-height: 28px; padding-right: 0; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 16px; min-height: 44px; border-radius: 11px; border: 1px solid #e5e5d8; color: #7b876e; background: #fafaf4; font-size: 12px; }
.wide { width: 100%; }
.empty-state { border: 1px dashed #dfe4d2; background: #f6f6ec; border-radius: 20px; text-align: center; padding: 34px 20px; }
.empty-state .empty-icon { font-size: 42px; line-height: 1.4; margin-bottom: 12px; }
.empty-state h2 { font-size: 18px; margin-bottom: 12px; }
.empty-state p { color: #969d89; font-size: 12px; line-height: 1.9; margin-bottom: 20px; overflow-wrap: anywhere; }
.empty-state .primary-button { margin-top: 4px; }
.selected-banner { display: flex; align-items: center; gap: 11px; background: #ecf2e6; border: 1px solid #dce6d1; padding: 14px; border-radius: 14px; margin: 20px 0; }
.selected-banner > span { width: 29px; height: 29px; background: #7e986a; color: white; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; }
.selected-banner p { color: #6f8161; font-size: 11px; line-height: 1.8; }
.selected-banner strong { font-size: 13px; display: block; }
.selected-actions { display: flex; gap: 10px; margin-top: 16px; }
.selected-actions button { flex: 1; padding-left: 10px; padding-right: 10px; }
.chosen-message { text-align: center; color: #99a08d; font-size: 11px; line-height: 2; padding: 22px 0 7px; }
.modal-backdrop { position: fixed; inset: 0; background: #15261d70; z-index: 50; display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); animation: fade-in .18s ease-out; }
.modal { background: var(--paper); border-radius: 26px 26px 0 0; padding: 12px 24px calc(24px + env(safe-area-inset-bottom)); width: min(100%, 460px); max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 -8px 60px #10251716; animation: rise-in .22s ease-out; }
.modal-handle { width: 34px; height: 4px; border-radius: 5px; background: #d6d9ca; margin: 0 auto 15px; }
.modal-header { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-header h2 { font-size: 20px; letter-spacing: -.4px; }
.modal-header .icon-button { width: 35px; height: 35px; }
.modal .detail-photo { width: 100%; height: 198px; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 16px; }
.detail-subtitle { font-size: 12px; color: #919881; line-height: 1.9; margin-top: 10px; }
.detail-label { font-size: 12px; font-weight: 650; margin: 22px 0 10px; }
.ingredient-list { display: flex; flex-wrap: wrap; gap: 7px; }
.ingredient-list span { color: #879178; background: #eef0e6; padding: 6px 9px; font-size: 11px; border-radius: 6px; }
.detail-notice { padding: 11px 12px; font-size: 10px; line-height: 1.9; color: #a39477; background: #f6f0e4; border-radius: 9px; margin-top: 17px; }
.detail-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.confirm-image { width: 84px; height: 84px; object-fit: cover; border-radius: 16px; display: block; margin: 9px auto 17px; }
.confirm-copy { text-align: center; }
.confirm-copy h3 { font-size: 20px; letter-spacing: -.5px; }
.confirm-copy p { font-size: 12px; color: #949b87; line-height: 1.9; margin-top: 11px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-actions > button { flex: 1; }
.search-box { display: flex; align-items: center; background: #f1f2e8; border: 1px solid #e7e9dd; border-radius: 11px; padding-left: 12px; margin: 15px 0; }
.search-box svg { width: 16px; color: #99a088; }
.search-box input { border: 0; background: transparent; padding: 13px 10px; }
.record-search-results { max-height: 44dvh; overflow-y: auto; overscroll-behavior: contain; }
.record-choice { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 11px 0; width: 100%; text-align: left; }
.record-choice img { width: 50px; height: 50px; object-fit: cover; border-radius: 10px; }
.record-choice > span { flex: 1; font-size: 12px; font-weight: 600; }
.record-choice small { display: block; font-size: 10px; color: #a1a690; font-weight: 400; margin-top: 5px; }
.record-choice > svg { width: 16px; color: #a4ad92; }
.modal-note { font-size: 11px; color: #939b85; line-height: 1.9; }
.no-search-results { font-size: 12px; color: #949b87; padding: 28px 4px; text-align: center; }
.share-icon { margin: 12px auto 18px; width: 64px; height: 64px; border-radius: 20px; background: var(--peach); color: var(--orange); display: grid; place-items: center; }
.share-icon svg { width: 29px; height: 29px; }
.share-url { width: 100%; border: 1px solid var(--line); background: #f3f3e9; color: #7a856c; font-size: 11px; padding: 12px; border-radius: 9px; margin-top: 16px; }
.storage-warning { padding: 11px; background: #fff0df; border: 1px solid #f0d8bd; color: #a0784f; font-size: 10px; border-radius: 10px; line-height: 1.8; margin: 10px 0; }
#toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); background: #293f32f0; color: #fffef6; font-size: 12px; line-height: 1.8; padding: 12px 19px; border-radius: 12px; z-index: 100; max-width: min(88vw, 390px); text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 5px 20px #1a2d2420; width: max-content; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.image-fallback { opacity: .15; }
.image-failed:before { content: "🥗"; position: absolute; font-size: 76px; inset: 0; display: grid; place-items: center; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { transform: translateY(24px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 900px) {
  .modal-backdrop { align-items: center; }
  .modal { border-radius: 25px; max-height: 88dvh; padding-bottom: 25px; }
}
@media (max-width: 1190px) {
  .desktop-note { width: 220px; left: 25px; }
  .desktop-title { font-size: 23px; }
  .desktop-side { left: calc(50% + 280px); }
}
@media (max-width: 1000px) {
  .desktop-note, .desktop-side { display: none; }
}
@media (max-width: 459px) {
  body { background: var(--paper); }
  .app-header { height: 74px; padding: 18px 22px 12px; }
  #main { padding: 8px 20px 24px; }
  h1 { font-size: 30px; line-height: 1.4; }
  .intro { padding-top: 13px; }
  .intro-note { margin-top: 8px; }
  .preference-strip { margin: 18px 0 17px; padding: 12px; }
  .meal-photo { height: 205px; }
  .intro-flower { right: 8px; font-size: 54px; top: 30px; }
  .meal-heading h3 { font-size: 21px; }
  .meal-body { padding: 16px; }
  .meal-action { margin-top: 14px; padding-top: 14px; }
  .modal { padding-left: 21px; padding-right: 21px; }
}
@media (max-width: 350px) {
  #main { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 27px; }
  .intro-flower { font-size: 44px; }
  .meal-photo { height: 200px; }
  .meal-heading h3 { font-size: 19px; }
  .primary-button { padding-left: 17px; padding-right: 17px; gap: 8px; }
  .section-eyebrow { display: none; }
}
body {
  background-image: radial-gradient(#9a745510 .65px, transparent .8px), radial-gradient(#a6876120 .65px, transparent .8px);
  background-size: 5px 7px, 13px 17px;
  background-position: 0 0, 2px 4px;
}
.app-shell {
  background-color: var(--paper);
  background-image: radial-gradient(#8b684909 .7px, transparent .9px);
  background-size: 9px 11px;
  box-shadow: 0 0 70px #7650440a;
}
.app-header { height: 72px; padding: 17px 24px 13px; position: relative; }
.app-header:after {
  content: ""; height: 4px; position: absolute; left: 24px; right: 24px; bottom: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='5' viewBox='0 0 400 5'%3E%3Cpath d='M1 3Q50 1 99 3T200 2T300 3T399 2' stroke='%23765044' stroke-opacity='.25' fill='none' stroke-width='1.3'/%3E%3C/svg%3E") center / 100% 4px no-repeat;
}
.brand { font-size: 18px; font-weight: 750; letter-spacing: .1px; color: var(--orange); }
.brand-icon { background: transparent; color: var(--orange); transform: rotate(-8deg); border: 1.5px solid var(--orange); border-radius: 40% 48% 42% 36%; width: 34px; height: 34px; }
.brand-icon svg { transform: none; }
.icon-button { background: #fffaf285; border-color: #cfb79d; border-radius: 48% 44% 49% 42%; color: var(--orange); }
.brand-dot { color: var(--blue); }
.brand > span:last-child, .preference-heading h1, .preferences-active .form-section h2, .intro.today-intro h1, .history-heading h1 {
  font-family: "ZCOOL KuaiLe", var(--font);
  font-weight: 400;
  font-synthesis: none;
}
.preferences-active .form-section h2 { font-size: 15px; }
#main { padding-top: 10px; }
.preference-heading { padding: 7px 0 23px; position: relative; }
.preference-heading h1 { font-size: 25px; line-height: 1.35; letter-spacing: -.6px; white-space: nowrap; color: var(--ink); }
.little-lamp { position: absolute; width: 55px; height: 56px; right: 8px; top: -13px; color: var(--orange); transform: rotate(4deg); }
.preference-heading .accent { color: var(--orange); }
.preference-tools { display: flex; justify-content: flex-end; margin: -10px 0 9px; }
.reset-preferences { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 5px 11px; color: var(--orange); font-size: 12px; border: 1px solid #d8c0a6; border-radius: 8px 11px 8px 10px; background: #fffaf2; }
.reset-preferences svg { width: 14px; height: 14px; }
.reset-preferences:hover { background: #f6e6de; }
.accent:after { height: 7px; bottom: -8px; border-color: var(--blue); border-top-width: 3px; transform: rotate(-2deg); }
.form-section {
  position: relative; padding: 15px 15px 14px; margin-bottom: 13px; background: #fffaf2;
  border: 1.3px solid #dac6ad; border-radius: 16px 19px 15px 18px / 17px 15px 19px 15px;
  box-shadow: 2px 3px 0 #e6d4bb65;
}
.form-section:nth-of-type(2n) { border-radius: 18px 14px 19px 14px / 15px 19px 14px 18px; }
.spice-section:before { content: ""; position: absolute; height: 11px; width: 46px; background: #91bbd540; border-left: 1px dashed #fff8; border-right: 1px dashed #fff8; top: -5px; right: 42px; transform: rotate(4deg); pointer-events: none; }
.form-section h2 { font-size: 14px; font-weight: 650; color: var(--ink); gap: 9px; line-height: 1.6; }
.section-number { display: grid; place-items: center; width: 25px; height: 24px; font-family: Georgia, serif; font-size: 12px; font-weight: 400; color: var(--orange); background: #f1d9d2; border-radius: 40% 50% 42% 48%; transform: rotate(-6deg); }
.type-section .section-number, .avoid-section .section-number { background: #ddebf0; color: #526f7e; }
.requirements-section .section-number { background: #e3e8d5; color: #6c7b51; }
.section-sketch { margin-left: auto; color: var(--orange); transform: rotate(9deg); }
.section-sketch svg { width: 26px; height: 26px; stroke-width: 1.4; }
.form-description { font-size: 10px; color: #967e6e; line-height: 1.75; margin-top: 10px; }
.chip-grid { gap: 8px; margin-top: 13px; }
.chip {
  border: 1px solid #d7c4ac; background: #fffdf7; border-radius: 8px 11px 8px 10px;
  font-size: 12px; color: #806558; padding: 8px 10px; min-height: 40px; gap: 5px;
}
.chip svg { width: 16px; height: 16px; stroke-width: 1.5; color: #a07562; }
.chip.selected { border-color: var(--orange); background: #f6e6de; color: var(--orange); font-weight: 550; box-shadow: 1px 1px 0 #96332f15; }
.chip.selected svg { color: var(--orange); }
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.type-grid .chip { justify-content: center; padding: 8px 4px; }
.type-grid .chip.selected { background: #e5eff3; border-color: #6d98ae; color: #4b6e7e; }
.type-grid .chip.selected svg { color: #4b6e7e; }
.spice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.spice-chip {
  border: 1px dashed #ddc8ac; background: #fffaf2; border-radius: 9px 12px 8px 10px; padding: 6px 10px 8px;
  min-height: 65px; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 9px; color: #94705e; font-size: 13px;
}
.spice-chip.selected { background: #e5eff3; color: #4b6e7e; border-color: #8eafbc; }
.spice-illustration { height: 25px; display: flex; align-items: center; justify-content: center; width: 25px; flex-shrink: 0; }
.spice-illustration svg { width: 21px; height: 25px; stroke-width: 1.4; color: var(--orange); transform: rotate(-13deg); }
.spice-illustration svg + svg { margin-left: -8px; transform: rotate(4deg); }
.spice-chip:first-child svg { color: #879569; }
.spice-chip:last-child svg { color: var(--orange); transform: rotate(8deg); }
.spice-section .form-description { margin-top: 5px; }
.spice-note { margin-top: 8px; color: #937d66; font-size: 11px; line-height: 1.7; }
.avoid-grid .chip { min-height: 36px; padding: 7px 11px; font-size: 11px; }
.custom-input-row { margin-top: 13px; }
.custom-input-row input, .search-box input, .notes-label + textarea { background: #f6f0e4; border-color: #ddcdb7; color: var(--ink); }
.custom-input-row input { font-size: 11px; padding: 11px 9px; border-radius: 7px 10px 8px 9px; }
input::placeholder, textarea::placeholder { color: #a58d7a; }
.custom-input-row button { background: #e4edf1; color: #4b6e7e; border: 1px solid #bdd0d8; border-radius: 9px 7px 10px 8px; }
.custom-tags:empty { display: none; }
.notes-label { display: block; font-size: 11px; color: #967e6e; margin: 15px 0 8px; }
textarea { width: 100%; resize: vertical; min-height: 70px; max-height: 180px; font-size: 12px; line-height: 1.9; border: 1px solid; padding: 10px; border-radius: 7px 10px 8px 9px; }
.requirement-feedback { color: #6c7b51; font-size: 10px; line-height: 1.9; }
.requirement-feedback:empty { display: none; }
.requirement-feedback span { display: block; margin-top: 6px; }
.requirement-feedback svg { width: 12px; height: 12px; margin-right: 3px; }
.requirement-feedback .note-only { color: #967e6e; }
.primary-button { background: var(--orange); border-radius: 11px 14px 10px 13px / 12px 10px 13px 10px; box-shadow: 2px 3px 0 #96332f18; letter-spacing: .4px; }
.save-preferences { margin-top: 9px; min-height: 49px; }
.food-doodle { width: 125px; height: 85px; color: var(--orange); display: block; }
.intro > .food-doodle { position: absolute; width: 117px; height: 90px; right: -2px; top: 13px; transform: rotate(5deg); }
.preference-signoff { display: flex; align-items: center; justify-content: center; gap: 7px; padding-top: 15px; }
.preference-signoff .food-doodle { width: 57px; height: 43px; transform: rotate(-6deg); }
.preference-signoff span { font-size: 10px; color: #9b7d67; }
.privacy-note { font-size: 9px; color: #9d8775; margin-top: 8px; }
.bottom-nav { background: #fffbf2f7; border-top: 0; padding-top: 11px; }
.bottom-nav:before {
  content: ""; position: absolute; top: -3px; height: 5px; left: 0; right: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 5'%3E%3Cpath d='M0 3Q50 1 110 3T230 3T350 2T460 3' fill='none' stroke='%23765044' stroke-opacity='.4' stroke-width='1.3'/%3E%3C/svg%3E") center / 100% 5px no-repeat;
}
.nav-item { color: #a08e7b; }
.nav-item svg { width: 25px; height: 25px; stroke-width: 1.5; }
.nav-item.active { color: var(--orange); }
.nav-item.active:after { top: 1px; width: 39px; height: 28px; background: #f0d9cd77; border-radius: 40% 50% 42% 48%; z-index: -1; transform: rotate(-5deg); }
.greeting-meta { color: #9a7c60; letter-spacing: .6px; }
.greeting-meta svg { color: #bc9567; }
.intro { padding-top: 12px; }
.intro h1 { font-size: 30px; line-height: 1.4; color: var(--ink); }
.intro-note { color: #9b806d; font-size: 11px; margin-top: 10px; }
.preference-strip { background: #e6eff1; border-color: #c1d3d9; border-radius: 12px 15px 12px 14px; margin-top: 19px; padding: 12px; }
.strip-icon, .strip-copy strong, .strip-edit { color: #5f7e8f; }
.strip-copy span { color: #765044; font-size: 11px; }
.type-fallback-note { font-size: 11px; line-height: 1.8; color: #9a7659; margin: -4px 0 16px; }
.recommendation-note { font-size: 11px; line-height: 1.8; color: #93735d; margin: -4px 0 15px; }
.filter-explanation { font-size: 11px; line-height: 1.9; padding: 16px; margin: 12px 0; border: 1px dashed #c9b18c; border-radius: 12px; color: #967d65; }
.filter-explanation strong { color: var(--ink); }
.filter-explanation small { font-size: 10px; }
.filter-explanation ~ .wide { margin: 5px 0; }
.section-title h2 { font-size: 14px; }
.section-eyebrow { color: #b19a81; }
.round-label { color: #9a8268; }
.round-label svg { color: #829166; }
.meal-card { border-color: #dcc8ad; border-radius: 18px 22px 17px 21px; box-shadow: 2px 4px 0 #dfc8a52c; }
.meal-photo .photo-badge { color: var(--orange); background: #fff9ebef; border-radius: 5px 9px 5px 8px; }
.meal-stamp { border-color: #96332f8c; outline-color: #fff9eb55; color: var(--orange); border-radius: 45% 49% 43% 48%; background: #f8f0dfea; font-size: 14px; }
.meal-heading h3 { font-size: 21px; color: var(--ink); }
.shop-line, .meal-description { color: #9b826d; }
.detail-link { border-color: #dac3a6; color: var(--orange); border-radius: 45% 49% 43% 48%; }
.tag { color: #70805c; background: #e9eddf; border-radius: 4px 6px 4px 7px; }
.tag.warm { color: #9b6a48; background: #f3e2c8; }
.meal-action { border-top-color: #dcc6a7; }
.why-box { background: var(--peach); border: 1px dashed #c7a39a; border-radius: 6px 11px 7px 12px; position: relative; }
.why-title { color: var(--ink); }
.why-item { color: #886955; }
.why-item svg { color: #9c7f68; }
.why-item { color: #8d7b62; }
.why-item svg { color: #9b966d; }
.text-button { color: #8f6e55; }
.alternative { --alternative-paper: #e6eff1; --alternative-line: #aac9d5; position: relative; padding: 9px 8px 0; border-color: #b9ced3; border-radius: 13px 18px 12px 16px; background: var(--alternative-paper); box-shadow: 2px 3px 0 #d8c6b747; transform: rotate(-1deg); }
.alternative:nth-child(even) { --alternative-paper: #f1d9d2; --alternative-line: #d8b5a9; border-color: #d8b5a9; border-radius: 17px 12px 16px 12px; transform: rotate(1deg); }
.alternative:before { content: ""; position: absolute; z-index: 2; top: 2px; left: 19px; width: 37px; height: 10px; background: #f2dfb8dc; border-inline: 1px dashed #fffaf2; transform: rotate(-8deg); pointer-events: none; }
.alternative:nth-child(even):before { left: auto; right: 19px; background: #cbd2b8c9; transform: rotate(8deg); }
.alternative .alternative-photo { height: 124px; border: 1px solid var(--alternative-line); border-radius: 9px 12px 7px 10px; }
.alternative .alternative-photo img { padding: 5px 9px 12px; }
.alternative-doodle { position: absolute; right: 3px; top: 4px; width: 22px; height: 22px; color: #91bbd5; transform: rotate(12deg); pointer-events: none; }
.alternative:nth-child(even) .alternative-doodle { right: auto; left: 3px; color: #c69a62; transform: rotate(-10deg); }
.alternative .alternative-copy { position: relative; padding: 6px 3px 11px; }
.alternative-wave { position: absolute; top: -15px; left: -1px; width: calc(100% + 2px); height: 18px; color: var(--alternative-paper); pointer-events: none; }
.alternative h3 { position: relative; font-family: "ZCOOL KuaiLe", var(--font); font-size: 14px; font-weight: 400; color: var(--orange); }
.alternative-meta { color: #a18b73; }
.alternative-meta > svg { flex-shrink: 0; width: 24px; height: 24px; padding: 5px; color: var(--orange); border: 1px solid #d9c3a4; border-radius: 46% 53% 44% 51%; background: var(--white); }
.alternative-meta > span, .history-bottom > span { padding: 4px 7px; border-radius: 4px 6px 4px 7px; color: #70805c; background: #e9eddf; line-height: 1.5; }
.yesterday-nudge { color: #9c836b; }
.footnote { color: #a18d75; }
.footnote.today-signoff { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 15px; color: #9b7d67; }
.today-signoff .food-doodle { width: 57px; height: 43px; transform: rotate(-6deg); }
.preference-signoff > span, .today-signoff > span { display: inline-block; font-family: "ZCOOL KuaiLe", var(--font); font-size: 16px; font-weight: 400; font-synthesis: none; line-height: 1.6; letter-spacing: .2px; color: var(--orange); transform: skew(-8deg) rotate(-1deg); }
.history-summary { background: #e7eddf; border-color: #cbd2b8; border-radius: 10px 17px 11px 16px; }
.history-summary strong { color: #73815b; }
.history-summary p { color: #8c9275; }
.history-item { border-color: #ddc8ac; border-radius: 12px 16px 11px 15px; }
.history-photo-frame { position: relative; flex: 0 0 84px; width: 84px; height: 90px; padding: 4px; align-self: flex-start; background: #e5eff2; border-radius: 10px 13px 9px 12px; transform: rotate(-2deg); }
.history-photo-frame img, .history-item .history-photo-frame .food-image-empty { width: 76px; height: 82px; border-radius: 8px 11px 7px 10px; }
.history-photo-doodle { position: absolute; inset: -4px; width: 92px; height: 98px; pointer-events: none; }
.history-date { color: #a1856c; }
.history-bottom span { color: #937d66; }
.page-eyebrow { color: #9f876c; }
.page-heading h1 { color: var(--ink); }
.page-heading p { color: #9a8068; }
.page-heading { position: relative; }
.page-heading > .food-doodle { position: absolute; right: -3px; top: 35px; width: 122px; height: 90px; transform: rotate(6deg); }
.selected-banner { background: #e8eddb; border-color: #c6d0af; border-radius: 11px 16px 12px 15px; }
.selected-banner > span { background: #879569; }
.selected-banner p { color: #73815b; }
.secondary-button { background: #f4ecdc; color: #8e6f58; border-color: #d9c3a4; border-radius: 8px 11px 8px 10px; }
.chosen-message { color: #9f856c; }
.empty-state { background: #f6eedc; border-color: #c9b18c; }
.empty-state .food-doodle { margin: 0 auto 20px; }
.empty-state p { color: #977d63; }
.modal-backdrop { background: #4a342568; }
.modal { background: var(--white); }
.detail-action .primary-button { width: 100%; }
.modal-handle { background: #d6c1a2; }
.modal-header h2 { color: var(--orange); font-size: 19px; }
.detail-subtitle, .modal-note, .confirm-copy p { color: #967d65; }
.ingredient-list span { color: #8c745d; background: #f2e8d5; }
.detail-notice { background: #f5eada; color: #9d7d58; }
.search-box { background: #f4ecdc; border-color: #d9c5a7; }
.record-choice { border-color: #e7d8c2; }
.record-choice small { color: #9f866a; }
.record-choice > svg, .search-box svg { color: #a48a6b; }
.share-icon { background: #f1d9d2; }
.share-url { background: #f4ecdc; color: var(--ink); }
#toast { background: #765044f5; }
.desktop-mark, .desktop-edition { color: #a18466; }
.desktop-title { color: var(--ink); }
.desktop-note p { color: #9d8268; }
.desktop-doodle { color: var(--orange); font-size: 75px; width: 175px; height: 120px; margin: 28px 0 25px 25px; transform: rotate(-5deg); }
.desktop-doodle svg { width: 100%; height: 100%; }
.desktop-side { color: #a0876e; }
.side-line { background: #cbb397; }
@media (max-width: 459px) {
  .app-header { height: 66px; padding: 13px 20px 12px; }
  .preference-heading h1 { font-size: 24px; }
  .intro > .food-doodle { width: 100px; right: -5px; top: 16px; }
  .meal-heading h3 { font-size: 20px; }
}
@media (max-width: 350px) {
  .preference-heading h1 { font-size: 21px; letter-spacing: -.8px; }
  .little-lamp { width: 44px; right: 0; }
  .form-section { padding-left: 11px; padding-right: 11px; }
  .chip { padding: 8px; font-size: 11px; }
  .spice-grid { gap: 2px; }
  .intro > .food-doodle { width: 83px; right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.preferences-active { padding-bottom: calc(174px + env(safe-area-inset-bottom)); }
.preferences-active .preference-heading { padding-bottom: 14px; }
.preferences-active .preference-tools { margin: -4px 0 8px; }
.preferences-active .form-section { margin-bottom: 12px; }
.preferences-active .avoid-grid { gap: 7px; }
.preferences-active .avoid-grid .chip { min-height: 35px; padding: 7px 10px; }
.preferences-active .spice-grid { margin-top: 9px; }
.preferences-active .spice-chip { min-height: 59px; }
.avoid-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: #967e6e; font-size: 10px; }
.avoid-status button { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: #667c83; padding: 3px 0 3px 10px; }
.avoid-status svg { width: 12px; height: 12px; }
.mood-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mood-chip { display: flex; align-items: center; gap: 8px; min-height: 57px; padding: 9px 10px; border: 1px solid #d9c5ab; border-radius: 9px 12px 8px 11px; text-align: left; background: #fffdf7; font-size: 12px; position: relative; }
.mood-chip > svg { color: #a78165; width: 18px; height: 18px; stroke-width: 1.5; }
.mood-chip small { display: block; color: #a18b78; font-size: 9px; font-weight: 400; margin-top: 4px; line-height: 1.5; }
.mood-chip:first-child { grid-column: 1 / -1; min-height: 52px; background: #edf3f4; border-color: #c4d7de; }
.mood-chip.selected { background: #f6e6de; border-color: #96332f; color: #96332f; }
.mood-chip:first-child.selected { background: #e4eef2; border-color: #83a7b8; color: #4b6e7e; }
.mood-chip.selected > svg { color: currentColor; }
.mood-chip .mood-check { margin-left: auto; width: 12px; height: 12px; }
.advanced-toggle { width: 100%; border: 1px dashed #c7a39a; background: var(--peach); padding: 14px; border-radius: 11px 15px 10px 13px; display: flex; gap: 10px; align-items: center; justify-content: space-between; text-align: left; margin: 17px 0 13px; }
.advanced-toggle > span:first-child { min-width: 0; flex: 1; }
.advanced-toggle strong { font-size: 12px; margin-left: 7px; font-weight: 600; }
.advanced-toggle > span > svg { width: 16px; height: 16px; color: #8b775e; }
.advanced-toggle small { display: block; font-size: 10px; color: #9a836d; margin-top: 6px; line-height: 1.8; overflow-wrap: anywhere; }
.expand-label { display: flex; gap: 2px; align-items: center; font-size: 10px; color: #9a765a; white-space: nowrap; }
.advanced-toggle[aria-expanded="true"] .expand-label svg { transform: rotate(-90deg); }
.cuisine-grid .chip { font-size: 11px; padding: 8px 10px; }
.match-mode { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #e9f0f1; border: 1px solid #bed0d7; padding: 14px; margin-top: 13px; border-radius: 10px 14px 10px 13px; }
.match-mode strong { font-size: 12px; color: #526f7e; }
.match-mode p { font-size: 10px; line-height: 1.8; color: #819194; margin-top: 5px; }
.requirements-dropdown { margin: 17px 0 5px; }
.default-strategy { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; line-height: 1.7; color: var(--ink); padding: 12px 15px; border: 1px solid #dbc8b9; border-radius: 22px; background: #fffaf2d9; box-shadow: inset 0 1px 0 #fff, 0 3px 10px #9272580a; }
.default-strategy > span:first-of-type { display: flex; align-items: center; flex: 1; min-width: 0; }
.default-strategy strong { font-size: 12px; font-weight: 600; color: var(--orange); }
.default-strategy > svg { width: 19px; height: 19px; color: #89936e; }
.requirements-expand { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f4e8da; }
.requirements-expand svg { width: 13px; height: 13px; color: #9b7a66; transform: rotate(90deg); transition: transform .2s; }
.default-strategy[aria-expanded="true"] { border-color: #afbdc7; box-shadow: 0 0 0 3px #91bbd524, inset 0 1px 0 #fff; }
.default-strategy[aria-expanded="true"] .requirements-expand svg { transform: rotate(-90deg); }
.requirements-menu { margin-top: 9px; padding: 14px 10px 10px; background: linear-gradient(145deg, #fffdf7f5, #f8eee6f5); border: 1px solid #e1d2c3; border-radius: 20px; box-shadow: inset 0 1px 0 #fff, 0 10px 24px #76504412; }
.requirements-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; padding: 0 8px 8px; color: #846653; }
.requirements-title > span { font-size: 9px; color: #a28e7a; }
.requirement-options { display: grid; gap: 3px; }
.requirement-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-size: 12px; }
.requirement-option:hover { background: #f3e7dc; }
.requirement-option:has(input:checked) { background: #eaf0f1; border-color: #cfdee2; color: #4b6e7e; }
.requirement-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; scroll-margin-block: 16px 180px; }
.requirement-check { display: grid; place-items: center; width: 19px; height: 19px; flex-shrink: 0; background: #fffaf2; border: 1px solid #d7c6b5; border-radius: 6px; box-shadow: inset 0 1px 2px #7650440a; }
.requirement-check svg { width: 13px; height: 13px; opacity: 0; stroke-width: 2; }
.requirement-option input:checked + .requirement-check { background: #91bbd533; border-color: #8eafbc; }
.requirement-option input:checked + .requirement-check svg { opacity: 1; }
.requirement-option input:focus-visible + .requirement-check { outline: 2px solid var(--orange); outline-offset: 3px; }
.requirement-sketch { width: 16px; height: 16px; margin-left: auto; color: #a38971; }
.requirements-notes { padding: 0 8px 5px; }
.requirements-notes .notes-label { margin-top: 13px; }
.preferences-dock { position: fixed; z-index: 21; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-height, 70px)); width: min(100%, 460px); padding: 13px 0 14px; display: flex; justify-content: center; background: #f8f0dff5; backdrop-filter: blur(14px); }
.primary-button.lunch-cta { position: relative; margin: 0; min-height: 48px; width: 66.6667%; gap: 8px; border: 1px solid #d8a38e; border-radius: 999px; background: linear-gradient(115deg, #e7b39e 0%, #f4cfb9 48%, #e8b39d 100%); color: #624637; font-size: 15px; font-weight: 700; letter-spacing: .6px; box-shadow: 0 0 0 5px #e9d8c3, 0 0 0 6px #d5bba46b, inset 0 2px 4px #fff6, inset 0 -3px 5px #b97f6426, 0 8px 20px #ab73502b; transition: transform .18s, box-shadow .18s; }
.primary-button.lunch-cta:hover { background: linear-gradient(115deg, #ecbba6, #f7d6c2 48%, #edbca7); box-shadow: 0 0 0 5px #e9d8c3, 0 0 0 6px #d5bba46b, inset 0 2px 4px #fff8, 0 9px 24px #ab735036; }
.primary-button.lunch-cta:active { transform: translateY(2px) scale(.99); }
.lunch-cta .cta-sparkles { width: 21px; height: 21px; stroke-width: 1.5; }
.meal-action, .detail-action { justify-content: center; padding-bottom: 5px; }
.preference-conflict { color: #96332f; font-size: 11px; line-height: 1.8; margin-top: 8px; }
.preference-conflict:empty { display: none; }
.preferences-active ~ #toast { bottom: 160px; }
.other-inspiration { margin-top: 24px; }
.other-inspiration > .form-description { margin: -3px 0 12px; }
.preferences-active .preference-heading { padding-top: 6px; padding-bottom: 12px; }
.preferences-active .preference-tools { height: 26px; margin: -2px 0 6px; }
.preferences-active .reset-preferences { min-height: 28px; padding: 4px 10px; font-size: 11px; }
.preferences-active .form-section { padding: 12px 14px; }
.preferences-active .spice-grid { margin-top: 5px; }
.preferences-active .spice-chip { min-height: 51px; padding-top: 3px; padding-bottom: 5px; gap: 5px; }
.preferences-active .form-description { margin-top: 6px; }
.preferences-active .avoid-grid { margin-top: 10px; gap: 6px; }
.preferences-active .avoid-grid .chip { min-height: 32px; padding: 5px 10px; }
.preferences-active .custom-input-row { margin-top: 10px; }
.preferences-active .custom-input-row input { padding-top: 9px; padding-bottom: 9px; }
.preferences-active .avoid-status { margin-top: 5px; }
.preferences-active .avoid-status button { min-height: 29px; }
.preferences-active .mood-grid { margin-top: 10px; gap: 7px; }
.preferences-active .mood-chip { min-height: 47px; padding: 7px 9px; }
.preferences-active .mood-chip:first-child { min-height: 42px; }
.preferences-active .mood-chip:first-child small { display: none; }
.preferences-active .taste-section > .form-description { font-size: 9px; }
.preferences-active .preference-heading { padding-bottom: 4px; }
.preferences-active .preference-tools { height: 22px; margin-bottom: 5px; }
.preferences-active .mood-chip, .preferences-active .mood-chip:first-child { min-height: 44px; }
.preferences-active .mood-chip small { display: none; }
.mood-caption { font-size: 9px; line-height: 1.6; margin-top: 7px; color: #a18b78; }
@media (min-width: 360px) and (max-height: 870px) {
  .preferences-active .mood-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preferences-active .mood-chip, .preferences-active .mood-chip:first-child { grid-column: auto; padding: 8px 3px; gap: 3px; justify-content: center; font-size: 11px; }
  .preferences-active .mood-chip:last-child { grid-column: 2 / 4; }
  .preferences-active .mood-chip .mood-check { display: none; }
  .preferences-active .mood-chip > svg { width: 14px; height: 14px; }
}
[hidden] { display: none !important; }
.score-details { font-size: 11px; line-height: 1.9; color: #957a62; margin-top: 15px; border: 1px dashed #d9c5ab; border-radius: 10px; padding: 10px 12px; }
.score-details summary { cursor: pointer; color: #765044; min-height: 25px; }
.score-details p { margin-top: 4px; }
.history-configuration { color: #9b826d; font-size: 9px; line-height: 1.6; margin-top: 3px; }
.intro.today-intro { padding-top: 17px; min-height: 75px; }
.intro.today-intro h1 { white-space: nowrap; font-size: 27px; line-height: 1.5; letter-spacing: -.8px; }
.intro.today-intro > .food-doodle { width: 87px; height: 67px; right: -2px; top: 2px; }
.swap-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 15px; border: 1px solid #fffdf8; background: linear-gradient(145deg, #f4fbfdeb, #dceaf0dc); color: var(--orange); border-radius: 999px; font-size: 12px; box-shadow: inset 2px 2px 4px #fff, inset -2px -3px 5px #a8c0ca3b, 0 0 0 3px #dbe5e78c, 0 4px 10px #7b939b26; backdrop-filter: blur(8px); }
.swap-button svg { width: 15px; height: 15px; }
.swap-button:hover { background: linear-gradient(145deg, #fff, #e4f0f4); }
.swap-button:active { transform: translateY(1px); box-shadow: inset 1px 2px 5px #a8c0ca45, 0 0 0 3px #dbe5e78c; }
@media (max-width: 350px) {
  .intro.today-intro h1 { font-size: 23px; }
  .intro.today-intro > .food-doodle { width: 68px; right: -3px; }
}
.meal-photo.pending-photo { height: 175px; }
.meal-photo.category-photo { height: auto; background: #fff; }
.meal-image-tools { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 10px 16px 4px; background: linear-gradient(115deg, #e6eff1, #f4f7f5); }
.meal-image-tools:after { content: ""; position: absolute; z-index: -1; height: 19px; width: 83%; right: -8%; bottom: -1px; background: #fff; border-radius: 65% 55% 0 0 / 100% 100% 0 0; transform: rotate(-2deg); }
.meal-sky-sketch { display: flex; align-items: center; gap: 4px; color: #91bbd5; padding-right: 7px; transform: rotate(-5deg); pointer-events: none; }
.meal-sky-sketch > svg:first-child { width: 19px; height: 19px; stroke-width: 1.2; }
.meal-sky-sketch > svg:last-child { width: 73px; height: 25px; }
.meal-illustration { height: 175px; background: #fff; }
.meal-image-footer { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 78px; padding: 9px 22px 8px; background: #fff; }
.meal-scene-wave { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.meal-photo .meal-mascot { display: block; flex-shrink: 0; width: 78px; height: 65px; object-fit: contain; background: transparent; transform: rotate(-5deg); }
.meal-image-footer .meal-stamp { position: static; display: flex; align-items: center; gap: 5px; flex-shrink: 0; width: auto; height: 35px; padding: 7px 11px; border: 1px dashed #d9b4a9; outline: 3px solid #fffaf29c; border-radius: 14px 19px 13px 18px; background: #f9e9df; color: var(--orange); font-family: var(--font); font-size: 11px; line-height: 1.4; transform: rotate(-5deg); box-shadow: 2px 3px 0 #d8c6b72b; }
.meal-stamp > svg { width: 13px; height: 13px; stroke-width: 1.4; }
.alternative-photo.category-photo { background: #fff; }
.category-photo img, .modal .detail-photo, .confirm-image, .history-item img, .record-choice img { object-fit: contain; object-position: center; background: #fff; }
.category-photo:after { display: none; }
.category-photo .photo-label, .category-photo .mini-photo-label { color: #9b826d; text-shadow: none; }
.food-image-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #f6f0e4; color: #a28e7a; font-size: 12px; text-align: center; }
.modal .food-image-empty.detail-photo, .food-image-empty.confirm-image { display: flex; }
.food-image-empty.confirm-image { width: 84px; height: 84px; }
.history-item .food-image-empty { width: 76px; height: 82px; flex-shrink: 0; border-radius: 11px; font-size: 9px; }
.record-choice .food-image-empty { width: 50px; height: 50px; flex-shrink: 0; border-radius: 10px; font-size: 9px; }
.dish-picture-frame { position: relative; margin-bottom: 14px; padding: 8px; background: #e6eff1; border: 1px solid #bfd4dd; border-radius: 17px 22px 16px 21px; box-shadow: 2px 3px 0 #bfd4dd26; }
.modal .dish-picture-frame .detail-photo { height: 188px; margin: 0; border-radius: 11px 15px 10px 14px; }
.dish-picture-outline { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); pointer-events: none; }
.dish-picture-star { position: absolute; right: 1px; bottom: 0; width: 25px; height: 25px; color: #c69a62; transform: rotate(8deg); pointer-events: none; }
.merchant-panel { position: relative; isolation: isolate; padding: 16px 13px 12px; background: #e6eff1; border: 1px solid #b9ced3; border-radius: 12px 19px 13px 17px; box-shadow: 2px 3px 0 #bfd4dd35; }
.merchant-panel:before { content: ""; position: absolute; width: 43px; height: 10px; right: 24px; top: -5px; background: #cbd2b8cc; border-inline: 1px dashed #fffaf2; transform: rotate(5deg); pointer-events: none; }
.merchant-heading { display: flex; align-items: center; gap: 8px; color: var(--orange); }
.merchant-heading > svg { width: 23px; height: 23px; transform: rotate(-6deg); flex-shrink: 0; }
.merchant-heading h3 { font-family: "ZCOOL KuaiLe", var(--font); font-size: 17px; font-weight: 400; line-height: 1.5; }
.merchant-intro { margin: 3px 0 12px 31px; color: #7c8b8b; font-size: 10px; line-height: 1.6; }
.merchant-list { display: flex; flex-direction: column; gap: 8px; }
.merchant-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 10px; background: var(--white); border: 1px dashed #c3d0cb; border-radius: 9px 13px 8px 12px; }
.merchant-row:nth-child(even) { border-radius: 12px 8px 12px 9px; }
.merchant-index { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 33px; background: var(--peach); color: var(--orange); border: 1px solid #ddbeb2; border-radius: 42% 51% 44% 49%; font-family: "ZCOOL KuaiLe", var(--font); font-size: 15px; transform: rotate(-7deg); }
.merchant-row:nth-child(even) .merchant-index { background: #f2dfb8; border-color: #dfc79c; transform: rotate(5deg); }
.merchant-name { display: flex; align-items: center; flex: 1; min-width: 0; }
.merchant-name h4 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.copy-merchant { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0; min-height: 34px; padding: 7px 9px; color: var(--green); background: #e9eddf; border: 1px solid #cbd2b8; border-radius: 13px 17px 12px 16px; font-size: 10px; white-space: nowrap; }
.copy-merchant svg { width: 12px; height: 12px; }
.copy-merchant:hover { background: #dfe6d3; }
.copy-merchant:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.merchant-flourish { position: absolute; right: 13px; top: 14px; width: 22px; height: 22px; color: var(--blue); transform: rotate(8deg); pointer-events: none; }
.history-heading { padding-top: 4px; margin-bottom: 20px; }
.history-heading h1 { white-space: nowrap; font-size: clamp(20px, 5.7vw, 25px); line-height: 1.5; letter-spacing: -1px; padding-right: 64px; }
.history-heading > .food-doodle { width: 60px; height: 48px; top: 0; right: 0; }
.history-heading p { margin-top: 10px; }
.app-shell .app-header { gap: 8px; }
.app-header .brand { flex-shrink: 0; }
.app-header .share-trigger { flex: 0 0 36px; width: 36px; height: 36px; }
.header-date { margin-left: 4px; margin-right: auto; gap: 5px; font-size: 10px; line-height: 1.6; letter-spacing: 0; white-space: nowrap; }
.header-date svg { width: 13px; height: 13px; }
.today-active .intro.today-intro { padding-top: 8px; min-height: 65px; }
@media (max-width: 350px) {
  .app-header .brand { font-size: 15px; gap: 5px; }
  .app-header .brand-icon { width: 29px; height: 29px; }
  .app-shell .app-header { gap: 6px; }
  .header-date { font-size: 9px; gap: 3px; }
}
@media (max-width: 350px) {
  .merchant-panel { padding-inline: 10px; }
  .merchant-row { gap: 7px; padding-inline: 8px; }
  .merchant-index { flex-basis: 26px; width: 26px; height: 29px; font-size: 13px; }
  .copy-merchant { padding-inline: 7px; }
  .merchant-flourish { display: none; }
  .merchant-heading h3 { font-size: 16px; }
}
