:root {
  --paper: #f8f6ef;
  --white: #fffefa;
  --ink: #30372b;
  --muted: #69705f;
  --green: #53663e;
  --green-dark: #3b4f2b;
  --green-pale: #edf0e5;
  --orange: #ba6844;
  --line: #e5e4d9;
  --serif: 'Noto Serif CJK SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.65 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif; -webkit-font-smoothing: antialiased; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button { border: 0; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--orange); }
::selection { background: #dce3cf; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 254, 250, .7); }
.header-inner { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: #ece8da; color: var(--orange); }
.brand-mark .icon { width: 29px; height: 29px; stroke-width: 1.5; }
.brand strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 800; letter-spacing: 1px; line-height: 1.4; }
.brand-dot { color: var(--orange); font: bold 28px Georgia, serif; margin-left: 2px; }
.brand small { display: block; font-size: 10px; letter-spacing: 2.3px; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; margin-right: 40px; }
.main-nav a, .main-nav button { padding: 13px 0; background: none; font-size: 13px; color: #767b6d; position: relative; }
.main-nav .nav-active { color: var(--green); font-weight: 600; }
.nav-active::after { content: ''; width: 5px; height: 5px; background: var(--green); border-radius: 50%; position: absolute; bottom: 1px; left: calc(50% - 2px); }
.main-nav a:hover, .main-nav button:hover { color: var(--orange); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 23px; min-height: 52px; border-radius: 9px; font-weight: 500; line-height: 1.4; transition: background .2s, transform .2s, box-shadow .2s; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #fffef8; border: 1px solid var(--green); }
.button-primary:hover:not(:disabled) { background: var(--green-dark); box-shadow: 0 5px 15px #3b4f2b18; }
.button-outline { background: transparent; border: 1px solid #d4d7c9; color: var(--green); }
.button-outline:hover { background: var(--green-pale); }
.button-small { min-height: 42px; padding: 10px 17px; font-size: 13px; border-radius: 7px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 58px; padding: 58px 0 68px; min-height: 540px; }
.hero-copy { padding-top: 6px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 2.5px; color: var(--orange); font-weight: 500; }
.little-line { width: 24px; height: 1px; background: var(--orange); }
h1 { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 58px); font-weight: 700; line-height: 1.48; letter-spacing: 3px; margin: 19px 0; position: relative; }
h1 span { color: var(--green); }
.heading-spark { position: absolute; width: 28px; height: 28px; color: #d0a36b; margin: 12px 0 0 13px; }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.95; letter-spacing: .7px; }
.hero-actions { display: flex; gap: 12px; margin-top: 29px; flex-wrap: wrap; }
.hero-actions .arrow-icon { width: 16px; margin-left: 7px; }
.hero-footnote { display: flex; gap: 7px; align-items: center; color: #929381; font-size: 11px; margin-top: 19px; letter-spacing: .5px; }
.hero-footnote .icon { width: 14px; height: 14px; color: #a1a88d; }
.hero-visual { position: relative; margin: 0 17px 0 0; }
.hero-visual::before { content: ''; position: absolute; background: #eeeddd; inset: 16px -16px -16px 20px; border-radius: 48% 44% 17% 18%; transform: rotate(3deg); }
.hero-photo-frame { position: relative; width: 100%; aspect-ratio: 1.29; border-radius: 45% 45% 16% 16%; overflow: hidden; background: #ded7c5; }
.hero-photo { height: 100%; width: 100%; object-fit: cover; object-position: center 52%; transform: scale(1.04); }
.daily-stamp { position: absolute; top: 0; right: -17px; width: 94px; height: 94px; border: 1px dashed #c4a171; background: #f4ead5; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(12deg); color: #946740; outline: 5px solid var(--paper); }
.daily-stamp span { font-size: 10px; letter-spacing: 3px; }
.daily-stamp strong { font: 700 17px/1.8 var(--serif); letter-spacing: 1px; }
.daily-stamp .icon { width: 12px; height: 12px; }
.photo-note { display: flex; align-items: center; gap: 12px; position: absolute; bottom: 5px; left: -27px; padding: 14px 19px; background: #fffef8f2; border: 1px solid #f4f0e4; border-radius: 12px; box-shadow: 0 10px 40px #45452c13; transform: rotate(-3deg); }
.note-heart { display: grid; place-items: center; border-radius: 50%; width: 35px; height: 35px; background: #f6eadb; color: var(--orange); }
.note-heart .icon { width: 17px; height: 17px; }
.photo-note strong { display: block; font-size: 12px; font-weight: 500; letter-spacing: .7px; }
.photo-note small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 1px; margin-top: 2px; }
.hero-doodle { width: 80px; height: 65px; position: absolute; color: #a4aa8e; bottom: -33px; right: -18px; transform: rotate(15deg); }
.menu-section { padding-top: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.heading-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
h2 { font: 700 29px/1.5 var(--serif); letter-spacing: 1px; }
.count-badge { padding: 3px 10px; border-radius: 5px; background: #eeede3; font-size: 10px; color: #848570; }
.section-heading p { margin-top: 5px; color: var(--muted); font-size: 12px; letter-spacing: .5px; }
.search-wrap { display: flex; gap: 10px; align-items: center; width: 245px; border: 1px solid var(--line); background: #fffef86b; border-radius: 8px; padding: 10px 13px; color: #949784; }
.search-wrap:focus-within { border-color: var(--green); }
.search-wrap .icon { width: 17px; height: 17px; }
.search-wrap input { background: transparent; border: 0; outline: 0; font-size: 12px; width: 100%; min-width: 0; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #a0a294; }
.menu-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 25px 0 24px; }
.category-list { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.category-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 17px; min-height: 40px; color: #7c8171; border-radius: 7px; font-size: 12px; background: #efeee5; transition: color .2s, background .2s; }
.category-button .icon { width: 16px; height: 16px; }
.category-button[aria-pressed=true] { background: var(--green); color: white; }
.category-button:hover:not([aria-pressed=true]) { background: #e5e8d9; color: var(--green); }
.category-count { font-size: 10px; opacity: .7; margin-left: 1px; }
.menu-hint { display: flex; align-items: center; gap: 7px; color: #8c917d; font-size: 11px; white-space: nowrap; }
.menu-hint .icon { width: 15px; height: 15px; }
.dish-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 22px; }
.dish-card { min-width: 0; overflow: hidden; border-radius: 13px; background: var(--white); border: 1px solid #e7e5d9; transition: transform .25s, box-shadow .25s; animation: card-enter .35s both; }
.dish-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px #353d2510; }
.photo-button { width: 100%; padding: 0; position: relative; overflow: hidden; background: #e9e6dc; display: block; text-align: left; }
.card-photo { width: 100%; height: auto; aspect-ratio: 1.41; object-fit: cover; transition: transform .5s; }
.dish-card:hover .card-photo { transform: scale(1.045); }
.card-category { position: absolute; top: 12px; left: 12px; padding: 3px 10px; font-size: 10px; line-height: 1.8; border-radius: 5px; background: #fffef5eb; color: #5e6850; backdrop-filter: blur(8px); }
.photo-cta { position: absolute; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 6px; background: #fffef8eb; color: var(--green); font-size: 10px; padding: 5px 9px; border-radius: 5px; opacity: 0; transition: opacity .2s; }
.photo-cta .icon { width: 12px; height: 12px; }
.dish-card:hover .photo-cta, .photo-button:focus-visible .photo-cta { opacity: 1; }
.card-body { padding: 16px 17px 17px; }
.card-body h3 { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.name-button { padding: 0; background: none; text-align: left; overflow-wrap: anywhere; font-weight: inherit; font-size: inherit; }
.name-button:hover { color: var(--green); }
.card-arrow { width: 15px; height: 15px; color: #a0a78d; }
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card-body .tag-list { margin-top: 9px; min-height: 21px; }
.tag { display: inline-flex; align-items: center; padding: 1px 7px; background: #f0f2e9; color: #61704e; border-radius: 4px; font-size: 11px; line-height: 1.9; }
.tag-warm { color: #8e5933; background: #f8eee0; }
.card-note { font-size: 12px; color: #6f7563; margin-top: 10px; min-height: 43px; line-height: 1.8; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.menu-bottom { display: flex; justify-content: center; align-items: center; gap: 17px; margin: 32px 0 38px; }
.menu-bottom>span { width: 46px; height: 1px; background: #dedfd1; }
.menu-bottom p { font-size: 10px; color: #91967f; letter-spacing: 1px; }
.menu-bottom .icon { width: 13px; height: 13px; margin-right: 5px; }
.family-note { display: flex; align-items: center; gap: 18px; background: #eceee2; border: 1px solid #e2e5d4; border-radius: 12px; padding: 25px 29px; }
.family-note-icon { background: #e1e6d4; color: var(--green); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; }
.family-note-icon .icon { width: 22px; height: 22px; }
.family-note h2 { font-size: 18px; letter-spacing: .5px; }
.family-note p { font-size: 11px; color: #8a907b; margin-top: 5px; }
.text-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; background: none; padding: 8px 0; color: var(--green); font-size: 12px; }
.text-button:hover { color: var(--orange); }
.family-note .text-button { margin-left: auto; white-space: nowrap; }
.text-button .icon { width: 17px; height: 17px; }
.site-footer { padding-top: 43px; padding-bottom: 24px; font-size: 10px; color: #969987; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 17px; border-bottom: 1px dashed #dddccd; letter-spacing: .5px; }
.footer-motto { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #858d74; }
.footer-motto .icon { width: 20px; height: 20px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; }
.footer-bottom button { display: inline-flex; align-items: center; gap: 5px; color: inherit; font-size: 10px; background: none; padding: 6px 0; }
.footer-bottom .icon { width: 13px; height: 13px; }
.modal { width: min(540px, calc(100% - 32px)); max-height: min(92dvh, 960px); margin: auto; border: 1px solid #e6e1d3; border-radius: 20px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 25px 100px #252d2440; overscroll-behavior: contain; }
.modal::backdrop { background: #242c2675; backdrop-filter: blur(5px); }
.modal[open] { animation: modal-enter .2s ease-out; }
.dialog-shell { padding: 30px; position: relative; }
.close-button { width: 34px; height: 34px; padding: 7px; display: grid; place-items: center; border-radius: 50%; position: absolute; right: 16px; top: 16px; background: #f3f1e8ed; color: #767e68; z-index: 2; }
.close-button:hover { background: #e9eadd; color: var(--ink); }
.dialog-shell>.eyebrow { font-size: 10px; margin-bottom: 8px; }
.dialog-shell h2 { font-size: 26px; }
.dialog-description { color: var(--muted); font-size: 12px; margin-top: 8px; }
.upload-field { position: relative; margin: 23px 0 20px; }
#dish-photo { opacity: 0; position: absolute; width: 1px; height: 1px; }
.upload-label { border: 1px dashed #cdd2bd; border-radius: 10px; overflow: hidden; min-height: 135px; display: grid; place-items: center; cursor: pointer; background: #f1f1e7; position: relative; }
.upload-label:hover { border-color: var(--green); background: #ecefe0; }
#dish-photo:focus-visible+.upload-label { outline: 2px solid var(--orange); outline-offset: 3px; }
#upload-prompt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 10px; }
#upload-prompt .icon { width: 25px; height: 25px; color: #8d9879; margin-bottom: 2px; }
#upload-prompt strong { font-weight: 400; color: #737e61; font-size: 12px; }
#upload-prompt small { font-size: 10px; color: #969b87; }
#photo-preview { width: 100%; height: 150px; object-fit: cover; }
.replace-photo { position: absolute; bottom: 9px; right: 10px; padding: 3px 9px; font-size: 10px; border-radius: 4px; background: #fffef8e8; }
.remove-photo { display: block; margin-left: auto; padding-bottom: 0; font-size: 10px; }
.form-row { display: flex; gap: 15px; }
.field { margin-bottom: 17px; min-width: 0; }
.field-name { flex: 1; }
.field-category { width: 110px; }
.field label, .flavor-field legend { display: block; font-size: 12px; margin-bottom: 7px; font-weight: 500; }
.required-mark { color: var(--orange); margin-left: 3px; }
.field input, .field select, .field textarea { border: 1px solid #dcded1; border-radius: 7px; width: 100%; padding: 11px 12px; background: var(--white); color: var(--ink); font-size: 12px; min-height: 42px; }
.field textarea { resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #9aab7d55; outline-offset: 0; border-color: #95a579; }
.flavor-field { border: 0; padding: 0; margin: 0 0 18px; }
.flavor-field legend span { color: #9a9d8c; font-size: 10px; font-weight: 400; margin-left: 8px; }
.flavor-options { display: flex; gap: 7px; flex-wrap: wrap; }
.flavor-options label { position: relative; cursor: pointer; }
.flavor-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.flavor-options span { display: block; padding: 5px 12px; min-height: 31px; border-radius: 6px; border: 1px solid #e0e1d4; background: #f1f1e8; color: #838a74; font-size: 11px; }
.flavor-options input:checked+span { background: #e4ead7; border-color: #a6b68f; color: var(--green-dark); }
.flavor-options input:focus-visible+span { outline: 2px solid var(--orange); outline-offset: 2px; }
.form-footer { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 20px; }
.form-footer>span { color: #979c88; font-size: 10px; }
.form-footer>span .icon { width: 13px; height: 13px; margin-right: 3px; }
.form-footer .button { font-size: 12px; padding: 13px 17px; min-height: 46px; }
.form-error, .storage-notice { padding: 10px 13px; border-radius: 6px; color: #985133; font-size: 12px; background: #f5e8da; border: 1px solid #ecd5bf; }
.storage-notice { margin-bottom: 20px; }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed #d9ddcc; border-radius: 12px; background: #f2f2e9; }
.empty-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 17px; color: #85956d; border-radius: 50%; background: #e8ecdd; }
.empty-icon .icon { width: 33px; height: 33px; }
.empty-state h3 { font: 700 23px var(--serif); }
.empty-state p { font-size: 12px; color: var(--muted); margin: 12px auto 22px; max-width: 350px; }
.empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.empty-actions .button { min-height: 42px; font-size: 12px; padding: 11px 16px; }
.dish-modal { width: min(460px, calc(100% - 32px)); }
.dish-shell { padding: 0; min-height: 330px; }
.detail-photo-wrap { position: relative; }
#detail-photo { width: 100%; height: 245px; object-fit: cover; }
.detail-origin { position: absolute; bottom: 16px; left: 25px; padding: 4px 12px; color: var(--green); border-radius: 5px; background: #fffef6ef; font-size: 10px; letter-spacing: 1px; }
.detail-body { padding: 25px 28px 24px; }
.detail-body .eyebrow { font-size: 10px; }
.detail-body h2 { margin-top: 9px; overflow-wrap: anywhere; }
.detail-meta { display: flex; gap: 10px; margin-top: 13px; align-items: center; }
#detail-category { padding-right: 10px; border-right: 1px solid #d8dccb; color: #7a8669; font-size: 11px; }
#detail-note { color: var(--muted); font-size: 13px; margin-top: 16px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-actions { display: flex; gap: 12px; margin-top: 25px; }
.detail-actions .button { flex: 1; font-size: 13px; min-height: 46px; padding: 12px; }
.draw-scope { margin-top: 15px; font-size: 10px; text-align: center; color: #9a9e8d; }
.draw-loading { min-height: 390px; padding: 65px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.rolling-dice { width: 85px; height: 85px; display: grid; place-items: center; color: var(--green); border-radius: 22px; background: #e7ecda; animation: dice-roll .75s ease-in-out infinite; }
.rolling-dice .icon { width: 46px; height: 46px; }
.draw-loading p { font-family: var(--serif); font-size: 22px; margin-top: 29px; }
.draw-loading small { color: var(--muted); font-size: 12px; margin-top: 8px; }
.tips-list { margin: 23px 0; display: grid; gap: 23px; }
.tips-list>div { display: flex; gap: 13px; }
.tips-list>div>.icon { margin-top: 3px; color: #87966f; }
.tips-list p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.tips-list strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 13px; font-weight: 500; }
.tips-confirm { width: 100%; margin-top: 4px; font-size: 13px; }
.toast { position: fixed; bottom: max(30px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 13px 23px; width: max-content; max-width: calc(100% - 40px); background: #374a2df5; color: #fffef5; border: 1px solid #65724e; box-shadow: 0 6px 30px #24331e20; border-radius: 10px; font-size: 13px; z-index: 20; text-align: center; }
.noscript-note { position: fixed; bottom: 20px; left: 20px; right: 20px; padding: 20px; text-align: center; background: #fae9d9; color: #8a4127; z-index: 30; }
@keyframes card-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dice-roll { 0%, 100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(12deg) translateY(-12px); } }
@media (min-width: 1500px) { .hero { padding-block: 68px 80px; } }
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .main-nav { margin-right: 10px; gap: 23px; }
  .hero { gap: 35px; padding-top: 45px; min-height: 500px; }
  h1 { font-size: 44px; letter-spacing: 1px; }
  .hero-actions .button { padding: 13px 16px; font-size: 12px; }
  .hero-actions .arrow-icon { display: none; }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .photo-note { left: -15px; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 44px); }
  .header-inner { height: 80px; gap: 15px; }
  .main-nav { display: none; }
  .hero { gap: 27px; padding: 45px 0 60px; min-height: auto; }
  h1 { font-size: 35px; }
  .hero-description { font-size: 12px; }
  .hero-actions { gap: 8px; margin-top: 23px; }
  .hero-actions .button { padding: 12px; min-height: 44px; gap: 6px; font-size: 11px; }
  .hero-actions .icon { width: 17px; height: 17px; }
  .hero-footnote { font-size: 9px; }
  .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .heading-spark { width: 18px; height: 18px; margin-left: 7px; }
  .daily-stamp { width: 73px; height: 73px; right: -12px; top: -9px; }
  .daily-stamp strong { font-size: 13px; }
  .photo-note { gap: 8px; padding: 10px; bottom: -10px; }
  .photo-note strong { font-size: 10px; }
  .photo-note small { font-size: 8px; }
  .note-heart { width: 27px; height: 27px; }
  .hero-doodle { display: none; }
  .menu-hint { display: none; }
  .dish-grid { gap: 17px; }
  .card-body { padding: 13px; }
  .card-body h3 { font-size: 15px; }
  .family-note { padding: 22px; gap: 14px; flex-wrap: wrap; }
  .family-note h2 { font-size: 16px; }
  .family-note .text-button { margin-left: 60px; padding-top: 0; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 25px; }
  .container { width: calc(100% - 40px); }
  .header-inner { height: 78px; }
  .brand { gap: 8px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 12px; }
  .brand-mark .icon { width: 25px; height: 25px; }
  .brand strong { font-size: 18px; letter-spacing: .2px; }
  .brand small { font-size: 8px; letter-spacing: 1.5px; }
  .brand-dot { font-size: 22px; }
  .header-inner .button { padding: 9px 12px; font-size: 11px; min-height: 38px; gap: 4px; }
  .header-inner .button .icon { width: 16px; height: 16px; }
  .hero { grid-template-columns: 1fr; gap: 29px; padding: 33px 0 48px; }
  .hero-copy { padding: 0 2px; }
  h1 { font-size: 42px; line-height: 1.4; letter-spacing: 1.5px; margin: 15px 0 14px; }
  .heading-spark { width: 23px; height: 23px; margin: 9px 0 0 10px; }
  .hero-description { font-size: 12px; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .button { min-height: 48px; font-size: 12px; padding: 13px 17px; gap: 7px; }
  .hero-actions .arrow-icon { display: block; width: 15px; margin-left: 1px; }
  .hero-footnote { font-size: 10px; margin-top: 14px; }
  .hero-visual { margin: 0 13px 0 12px; }
  .hero-photo-frame { aspect-ratio: 1.54; border-radius: 39% 39% 14% 14%; }
  .hero-photo { object-position: center 55%; }
  .hero-visual::before { inset: 10px -9px -9px 10px; }
  .daily-stamp { right: -13px; top: -4px; width: 76px; height: 76px; }
  .daily-stamp strong { font-size: 14px; }
  .photo-note { left: -13px; bottom: -7px; padding: 11px 15px; }
  .photo-note strong { font-size: 11px; }
  .photo-note small { font-size: 9px; }
  .section-heading { flex-direction: column; align-items: stretch; gap: 17px; }
  h2 { font-size: 26px; }
  .heading-line { gap: 12px; }
  .section-heading p { font-size: 11px; }
  .search-wrap { width: 100%; padding: 11px 13px; min-height: 43px; }
  .search-wrap input { font-size: 12px; }
  .menu-toolbar { margin: 17px 0 19px; }
  .category-list { width: 100%; gap: 6px; }
  .category-button { flex: 1; padding: 9px 8px; font-size: 11px; gap: 5px; min-height: 39px; white-space: nowrap; }
  .category-button .icon { width: 14px; height: 14px; }
  .category-count { display: none; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; }
  .dish-card { border-radius: 10px; }
  .card-photo { aspect-ratio: 1.16; }
  .card-category { top: 8px; left: 8px; padding: 2px 7px; font-size: 9px; }
  .card-body { padding: 12px 11px; }
  .card-body h3 { font-size: 14px; gap: 4px; }
  .card-arrow { width: 12px; height: 12px; }
  .card-body .tag-list { gap: 4px; margin-top: 7px; }
  .tag { font-size: 10px; padding-inline: 6px; }
  .card-note { font-size: 11px; line-height: 1.8; margin-top: 7px; min-height: 40px; }
  .menu-bottom { margin: 26px 0; gap: 10px; }
  .menu-bottom p { font-size: 9px; letter-spacing: .5px; }
  .menu-bottom>span { width: 26px; }
  .family-note { display: grid; grid-template-columns: 36px minmax(0, 1fr); padding: 20px 17px; gap: 12px; }
  .family-note-icon { width: 36px; height: 36px; }
  .family-note>div:nth-child(2) { flex: 1; }
  .family-note h2 { font-size: 15px; }
  .family-note p { font-size: 10px; line-height: 1.9; }
  .family-note .text-button { grid-column: 2; justify-self: start; margin-left: 0; font-size: 11px; }
  .site-footer { padding-top: 29px; padding-bottom: 17px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 7px; }
  .footer-top>span:last-child { margin-left: 28px; font-size: 9px; }
  .footer-bottom { font-size: 9px; }
  .footer-bottom button { font-size: 9px; }
  .modal { border-radius: 15px; max-height: 92dvh; }
  .dialog-shell { padding: 25px 22px; }
  .dialog-shell h2 { font-size: 24px; }
  .dialog-description { font-size: 11px; }
  .dialog-shell>.eyebrow { font-size: 9px; }
  .upload-field { margin-top: 19px; }
  .upload-label { min-height: 112px; }
  #upload-prompt { padding: 15px 5px; }
  #upload-prompt small { font-size: 9px; }
  .form-row { gap: 11px; }
  .field-category { width: 86px; }
  .field input, .field select, .field textarea { padding: 10px; font-size: 16px; }
  .field textarea::placeholder, .field input::placeholder { font-size: 12px; }
  .flavor-options { gap: 6px; }
  .flavor-options span { padding: 6px 10px; }
  .form-footer { margin-top: 15px; }
  .form-footer>span { display: none; }
  .form-footer .button { width: 100%; min-height: 46px; }
  .dish-shell { padding: 0; }
  #detail-photo { height: 210px; }
  .detail-body { padding: 22px; }
  .detail-actions { gap: 9px; }
  .detail-actions .button { font-size: 12px; padding: 12px 10px; }
  .empty-state { padding: 36px 16px; }
}
@media (max-width: 355px) {
  .container { width: calc(100% - 28px); }
  .brand strong { font-size: 16px; }
  .brand-mark { width: 33px; height: 33px; }
  .header-inner .button { padding-inline: 9px; }
  h1 { font-size: 37px; }
  .hero-actions .button { padding-inline: 12px; }
  .hero-actions .arrow-icon { display: none; }
  .category-button { gap: 4px; padding-inline: 6px; }
  .category-button .icon { display: none; }
  .card-body h3 { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
.sharing-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 24px; padding: 20px 22px; border: 1px solid #dfe4d4; border-radius: 14px; background: #f0f2e8; }
.management-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -9px 0 20px; }
.management-bar p { color: #7b806e; font-size: 12px; line-height: 1.8; }
.management-bar .button { min-height: 44px; padding: 9px 14px; flex-shrink: 0; font-size: 12px; }
#manage-menu[aria-pressed="true"] { color: var(--green-dark); background: #e7eddc; border-color: #9cac82; }
.card-manage-actions { display: flex; gap: 8px; padding-top: 11px; margin-top: 12px; border-top: 1px solid #e9e7dc; }
.card-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 1; min-width: 44px; min-height: 44px; padding: 7px 5px; border: 1px solid #dfe3d6; border-radius: 8px; background: #f1f3e9; color: #65764e; font-size: 12px; }
.card-action .icon { width: 15px; height: 15px; }
.card-action:hover { background: #e5ead9; }
.card-action-delete { color: #a06454; background: #fbf0e9; border-color: #efdfd4; }
.card-action-delete:hover { background: #f5e1d6; }
.cleanup-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; padding: 12px 16px; border: 1px solid #eadac4; border-radius: 12px; background: #fbf3e6; color: #8a6e48; font-size: 12px; line-height: 1.8; }
.cleanup-notice .text-button { min-width: 64px; min-height: 44px; flex-shrink: 0; }
.delete-modal { max-width: 440px; }
.delete-photo { width: 100%; height: 150px; object-fit: cover; border-radius: 11px; margin: 20px 0 16px; }
.delete-question { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.delete-warning { color: #a06454; font-size: 12px; line-height: 1.9; margin-top: 8px; }
.delete-actions { display: flex; gap: 12px; margin-top: 24px; }
.delete-actions .button { flex: 1; min-width: 44px; min-height: 48px; }
.button-danger { color: #fffaf5; background: #ad6553; border-color: #ad6553; }
.button-danger:hover { background: #945340; border-color: #945340; }
.sharing-panel strong { color: #52673c; font-size: 15px; }
.sharing-panel p { margin: 6px 0 0; font-size: 12px; color: #7b806e; }
.sharing-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.sharing-actions .button { font-size: 12px; padding: 10px 15px; min-height: 40px; }
.sharing-actions .text-button { font-size: 11px; }
.login-modal { max-width: 440px; }
#login-form { margin-top: 22px; }
#login-form .field + .field { margin-top: 16px; }
#login-submit { width: 100%; margin-top: 22px; }
.login-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.remember-option { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 13px; }
.remember-option input { width: 18px; height: 18px; accent-color: var(--green); }
.login-options .text-button { min-height: 44px; }
.login-hint, .photo-status { color: #6c785a; font-size: 12px; line-height: 1.8; }
.login-hint { margin: 0 0 6px; }
.password-help { margin-top: 12px; padding: 14px; border: 1px solid #dfdfcd; border-radius: 10px; background: #f1f1e7; font-size: 12px; line-height: 1.9; }
.password-help strong { color: var(--green-dark); }
.password-help p { margin-top: 7px; }
.menu-update-notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; margin: -10px 0 22px; border: 1px solid #e9c9a8; border-radius: 12px; background: #fff0de; color: #8b5b33; font-size: 13px; }
.menu-update-notice .button { flex-shrink: 0; min-height: 44px; font-size: 12px; }
.photo-status { margin: 8px 0 0; }
.upload-field[aria-busy="true"] .upload-label { border-color: #94a77b; background: #eaf0df; cursor: progress; }
.upload-field[aria-busy="true"] #upload-prompt .icon { animation: photo-pulse 1s ease-in-out infinite alternate; }
.category-field { border: 0; padding: 0; margin: 0 0 18px; }
.category-field legend { font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.category-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.category-options label { position: relative; cursor: pointer; }
.category-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.category-options span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #dcded1; border-radius: 9px; background: #fafaf5; color: #747c67; font-size: 13px; }
.category-options input:checked + span { color: var(--green-dark); border-color: #a6b68f; background: #e4ead7; font-weight: 600; }
.category-options input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.flavor-options span { display: flex; align-items: center; min-height: 40px; }
.note-options { padding: 0 0 4px; }
.note-options summary { min-height: 44px; padding: 10px 0; color: #6f7e58; font-size: 12px; cursor: pointer; }
.quick-notes { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px; }
.quick-notes button { min-height: 40px; padding: 7px 12px; border: 1px solid #dedfce; border-radius: 7px; background: #f3f2e8; color: #777b67; font-size: 12px; }
.quick-notes button:hover { color: var(--green-dark); background: #e8eddd; }
#add-dialog { scroll-padding-bottom: 100px; }
#add-dialog .field { scroll-margin-bottom: 110px; }
#add-dialog .form-footer { position: sticky; bottom: 0; z-index: 2; padding: 14px 30px; margin: 14px -30px -30px; background: var(--paper); border-top: 1px solid #e5e4d6; box-shadow: 0 -8px 18px #f9f8efc9; }
@keyframes photo-pulse { from { opacity: .45; } to { opacity: 1; } }
@media (max-width: 600px) {
  #add-dialog .form-footer { padding: 12px 22px max(12px, env(safe-area-inset-bottom)); margin: 12px -22px -25px; }
  .flavor-options span, .quick-notes button { min-height: 44px; }
  .menu-update-notice { font-size: 12px; padding: 11px 13px; }
  .login-modal .field input { font-size: 16px; }
}
@media (max-width: 600px) {
  .sharing-panel { flex-direction: column; align-items: stretch; padding: 17px; gap: 15px; }
  .sharing-panel strong { font-size: 13px; }
  .sharing-panel p { font-size: 11px; line-height: 1.8; }
  .sharing-actions { justify-content: flex-start; gap: 12px; }
}
/* Network feedback also works on small screens and with reduced motion. */
.network-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-block:10px}
.network-tools:has(> [hidden]):not(:has(> :not([hidden]))){display:none}
#connection-notice{color:#735b3f;font-size:14px;margin:0;line-height:1.6}
#retry-menu{min-height:44px}
#sharing-status.is-loading::before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;vertical-align:-2px;border:2px solid #e1d8c8;border-top-color:#8b5e32;border-radius:50%;animation:network-spin .85s linear infinite}
@keyframes network-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#sharing-status.is-loading::before{animation:none}}
