:root {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: #303d31;
  background: #e9ede6;
  --green: #344f3c;
  --accent: #c56b50;
  --muted: #7c8575;
  --line: #e6e9df;
  --surface: #f8f9f5;
  --app-width: 480px;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; color: inherit; touch-action: manipulation; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #a0b391; outline-offset: 1px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex-shrink: 0; }
.app-shell { max-width: var(--app-width); min-height: 100vh; min-height: 100dvh; margin: auto; background: var(--surface); position: relative; box-shadow: 0 0 80px #283b2610; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: calc(16px + env(safe-area-inset-top)) 20px 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: 1px; min-height: 44px; }
.brand-icon { display: grid; place-items: center; width: 39px; height: 42px; border-radius: 13px; background: var(--green); color: #fff; font-family: serif; font-size: 25px; flex-shrink: 0; }
.brand small { display: block; font-size: 8px; letter-spacing: 1.8px; font-weight: 500; margin-top: 5px; color: var(--muted); }
.avatar { width: 44px; height: 44px; background: #e9eddF; border: 4px solid #fff; border-radius: 50%; color: #6e805b; font-size: 15px; }
main { padding: 0 20px calc(162px + env(safe-area-inset-bottom)); }
.hero { position: relative; display: flex; align-items: center; min-height: 228px; margin: 8px 0 17px; padding: 21px; background: #edf0e4; border-radius: 22px; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { font-size: 10px; letter-spacing: 2px; color: var(--accent); font-weight: 600; margin: 0 0 11px; }
h1 { font-size: 28px; font-weight: 650; line-height: 1.48; letter-spacing: 1px; margin: 0; }
h1 span { color: var(--accent); }
.hero-description { font-size: 11px; color: #77836b; margin: 10px 0 18px; }
.primary, .secondary { min-height: 46px; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary { background: var(--green); color: #fff; }
.secondary { border: 1px solid #dae1d2; background: white; }
.primary:active { background: #47664b; }
.secondary:active { background: #edf1e7; }
.hero .primary { min-height: 44px; padding: 9px 14px; font-size: 13px; }
.hero-art { width: 190px; height: 210px; position: absolute; top: 19px; right: -14px; transform: scale(.78); transform-origin: center; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.art-note, .art-caption { display: none; }
.plate { width: 190px; height: 190px; flex-shrink: 0; border-radius: 50%; background: #f7f5e9; border: 13px solid #fffefa; box-shadow: 7px 13px 20px #5e684315, inset 0 0 0 2px #e4e4d5; position: relative; transform: rotate(-12deg); }
.food-leaf { position: absolute; width: 73px; height: 42px; background: #779269; border-radius: 70% 10% 70% 10%; box-shadow: inset 6px 3px #94a47c; left: 16px; top: 26px; }
.leaf-two { transform: rotate(80deg); left: 61px; top: 25px; background: #637e54; }
.leaf-three { transform: rotate(145deg); left: 38px; top: 76px; background: #a0ae7b; }
.tomato { position: absolute; background: #cf7155; border-radius: 50%; width: 43px; height: 42px; box-shadow: inset 5px 4px #df8c6d; }
.tomato:after { content: '✳'; position: absolute; color: #60704c; left: 11px; top: 0; font-size: 22px; }
.tomato-one { top: 85px; left: 13px; }
.tomato-two { top: 30px; right: 15px; width: 35px; height: 35px; }
.egg { position: absolute; width: 81px; height: 71px; background: #fffdf2; border-radius: 48% 56% 45% 40%; bottom: 18px; right: 10px; box-shadow: 2px 3px 7px #735c3020; }
.egg i { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: #e9b655; top: 16px; left: 25px; box-shadow: inset 2px 2px #f3c56b; }
.pepper { position: absolute; bottom: 23px; left: 25px; color: #587346; font-size: 25px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 25px; }
.stats>div { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.stat-icon { width: 28px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 22px; }
.peach { background: #f8eee6; color: #c98a68; }
.green { background: #edf1e7; color: #85966e; }
.yellow { background: #faf3e1; color: #c5a45b; }
.stats p { margin: 0; }
.stats strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.2; }
.stats p>span { display: block; margin-top: 5px; font-size: 10px; color: #7a856f; white-space: nowrap; }
.pick-banner { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; background: #f0ebe0; border-radius: 14px; min-height: 62px; padding: 12px 16px; text-align: left; font-size: 12px; color: #98856a; }
.pick-banner>span:first-child { display: flex; align-items: center; gap: 10px; }
.pick-banner strong { font-size: 12px; color: #6f624c; font-weight: 500; }
.dice { font-size: 33px; color: #aa936c; transform: rotate(15deg); }
.recipe-section { scroll-margin-top: 18px; }
.section-top { display: flex; flex-direction: column; gap: 16px; }
h2 { font-size: 21px; margin: 0; font-weight: 600; letter-spacing: .5px; }
.section-top h2>span { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 9px; }
.tools { display: flex; gap: 8px; width: 100%; }
.search { display: flex; align-items: center; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 0 11px; gap: 8px; flex: 1; min-width: 0; }
.search>span { color: #80916e; font-size: 24px; }
.search input { width: 100%; min-width: 0; min-height: 46px; font-size: 16px; background: transparent; border: 0; padding: 10px 0; color: #4b5546; }
.search input::placeholder { font-size: 13px; color: #8b9483; }
.tools select { font-size: 13px; min-width: 98px; min-height: 46px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; color: #68785c; background: #fff; }
.sample-notice { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #7d896e; font-size: 11px; margin: 8px 0 0; line-height: 1.5; }
.sample-notice .text-button { font-size: 11px; white-space: nowrap; padding: 9px 0 9px 5px; }
.filters { display: flex; flex-direction: column; gap: 9px; margin: 8px 0 16px; }
.categories { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: 2px 0; }
.categories::-webkit-scrollbar { display: none; }
.category { flex-shrink: 0; min-height: 44px; padding: 10px 14px; border-radius: 12px; color: #78866c; font-size: 13px; white-space: nowrap; }
.category.active { background: var(--green); color: white; }
.time-filter { align-self: flex-end; min-height: 44px; padding: 7px 0 7px 10px; font-size: 12px; color: #718162; display: flex; align-items: center; gap: 7px; }
.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.recipe-card { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: white; position: relative; }
.card-open { display: block; width: 100%; text-align: left; padding: 0; }
.dish-art { height: 151px; background: var(--dish-bg, #edece0); position: relative; display: grid; place-items: center; overflow: hidden; }
.dish-art:before { content: ''; position: absolute; width: 111px; height: 111px; border: 11px solid #fff9; border-radius: 50%; background: #fff5; box-shadow: 4px 8px 13px #49512d10; transform: rotate(-15deg); }
.dish-emoji { font-size: 67px; position: relative; filter: drop-shadow(4px 6px 3px #63552518); transform: rotate(-8deg); }
.dish-art>img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.dish-category { position: absolute; left: 10px; top: 11px; background: #ffffffe8; color: #58674b; font-size: 10px; border-radius: 5px; padding: 5px 7px; }
.favorite-button { position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; border-radius: 50%; color: #79886a; font-size: 24px; display: grid; place-items: center; isolation: isolate; }
.favorite-button:before { content: ''; position: absolute; z-index: -1; inset: 5px; background: #fffffff2; border-radius: 50%; }
.favorite-button.selected { color: #c36c53; }
.card-copy { padding: 13px 12px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.card-title h3 { font-size: 15px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating { font-size: 11px; color: #a9853d; white-space: nowrap; }
.card-description { font-size: 11px; color: #7d8872; margin: 9px 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid #eff1e9; padding-top: 10px; font-size: 11px; color: #7e8c70; }
.card-meta>span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { text-align: center; padding: 45px 5px; }
.empty-state>span { font-size: 45px; }
.empty-state h3 { font-size: 17px; }
.empty-state p { font-size: 13px; color: var(--muted); line-height: 1.8; }
footer { display: flex; flex-direction: column; gap: 7px; text-align: center; margin-top: 30px; padding: 20px 0; font-size: 12px; color: #8d9981; }
footer span { font-size: 10px; }
.bottom-nav { position: fixed; z-index: 3; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--app-width)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fcfdf9f5; border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-item { position: relative; display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; min-height: 54px; font-size: 11px; color: #919b87; border-radius: 14px; }
.nav-item.active { color: var(--green); background: #edf1e6; font-weight: 600; }
.nav-item .count { display: none; }
.floating-add { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); right: max(20px, calc((100vw - var(--app-width)) / 2 + 20px)); z-index: 2; width: 56px; height: 56px; border-radius: 19px; color: white; background: var(--green); box-shadow: 0 6px 18px #304e3b40; font-size: 32px; display: grid; place-items: center; }
.modal { border: 0; border-radius: 24px 24px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--surface); color: #303d31; width: min(100%, var(--app-width)); max-width: 100%; max-height: 94vh; max-height: 94dvh; margin: auto auto 0; box-shadow: 0 -10px 60px #1a2f2c25; overscroll-behavior: contain; }
.modal::backdrop { background: #23332780; backdrop-filter: blur(3px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.modal-header .eyebrow { font-size: 9px; margin-bottom: 8px; }
.icon-button { display: grid; place-items: center; font-size: 28px; width: 44px; height: 44px; border-radius: 50%; color: #78816f; flex-shrink: 0; }
.icon-button:active { background: #e7ecdf; }
.editor-modal { height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin: 0 auto; border-radius: 0; padding: 0; }
#recipe-form { padding: 0 20px; }
.editor-modal .modal-header { position: sticky; z-index: 2; top: 0; margin: 0 -20px 22px; padding: calc(16px + env(safe-area-inset-top)) 20px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.form-grid label, .photo-field>label, .pick-options label { display: flex; flex-direction: column; gap: 9px; min-width: 0; font-size: 13px; color: #68775c; }
.form-grid .full { grid-column: 1/-1; }
.required { color: var(--accent); display: contents; }
.form-grid input:not([type=file]), .form-grid select, .form-grid textarea, .pick-options select { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid #dfe4d7; border-radius: 11px; background: #fff; color: #35422e; font-size: 16px; }
.form-grid input[type=date] { appearance: none; -webkit-appearance: none; }
.form-grid textarea { resize: vertical; line-height: 1.7; }
.form-grid textarea::placeholder { font-size: 14px; }
.photo-field small { font-size: 11px; color: #859275; }
.photo-field>input { margin-top: 12px; max-width: 100%; font-size: 12px; min-height: 44px; }
.photo-field input::file-selector-button { border: 1px solid #dfe4d7; border-radius: 9px; background: white; color: #5d7050; padding: 12px; margin-right: 8px; cursor: pointer; min-height: 44px; }
#photo-preview { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
#photo-preview img { width: 100px; height: 75px; object-fit: cover; border-radius: 9px; }
.text-button { min-height: 44px; font-size: 13px; color: var(--accent); padding: 10px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.editor-modal .modal-footer { position: sticky; z-index: 2; bottom: 0; margin: 20px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.editor-modal .modal-footer .primary { flex: 1; }
.editor-modal .modal-footer .secondary { min-width: 90px; }
.form-error { font-size: 13px; color: #b94832; line-height: 1.6; }
.form-error:empty { display: none; }
.detail-modal { padding: 0; }
.detail-hero { position: relative; }
.detail-hero .dish-art { height: 240px; }
.detail-hero .dish-art:before { width: 165px; height: 165px; }
.detail-hero .dish-emoji { font-size: 104px; }
.detail-close { position: absolute; right: 14px; top: 14px; background: #ffffffdf; }
.detail-body { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.detail-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.detail-heading h2 { overflow-wrap: anywhere; font-size: 24px; }
.detail-heading>.text-button { white-space: nowrap; flex-shrink: 0; }
.detail-tags { display: flex; gap: 7px; flex-wrap: wrap; font-size: 12px; color: #77846a; margin: 12px 0 25px; }
.detail-tags>span { background: #edf0e5; padding: 7px 10px; border-radius: 7px; }
.detail-body h3 { font-size: 16px; font-weight: 600; margin: 25px 0 13px; }
.ingredients { display: flex; flex-wrap: wrap; gap: 8px; }
.ingredients span { background: #f0f2e8; padding: 10px 12px; border-radius: 8px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.steps { padding-left: 23px; font-size: 15px; line-height: 1.95; color: #66715d; overflow-wrap: anywhere; }
.steps li { padding-left: 5px; margin: 13px 0; white-space: pre-wrap; }
.notes { font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: #7d846e; background: #f5f0e5; padding: 15px; border-radius: 11px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.detail-actions .primary { grid-column: 1/-1; }
.detail-actions .text-button { grid-column: 1/-1; justify-self: center; }
.muted { color: #7e8b71; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.pick-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 14px; }
.pick-favorite { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; color: #748365; }
.pick-result { text-align: center; padding: 28px 0; font-size: 48px; min-height: 190px; }
.pick-result p { font-size: 14px; line-height: 1.8; color: #7f8d71; }
.pick-result h3 { font-size: 23px; margin: 10px 0; overflow-wrap: anywhere; }
.pick-result .secondary { margin: 8px 0; font-size: 14px; }
.wide { width: 100%; }
.confirm-modal { width: min(calc(100% - 40px), 400px); margin: auto; border-radius: 22px; padding: 25px 22px; }
.confirm-modal p { font-size: 14px; line-height: 1.8; color: #7c866f; overflow-wrap: anywhere; }
.settings-intro { display: flex; align-items: center; gap: 14px; padding: 20px 16px; border-radius: 16px; background: #eaf0df; }
.settings-intro h3 { font-size: 15px; margin: 0 0 7px; }
.settings-intro p { font-size: 12px; color: #7e8c70; margin: 0; }
.settings-section-title { font-size: 14px; font-weight: 500; margin: 26px 0 12px; }
.backup-actions { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.backup-actions>button { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0; width: 100%; min-height: 75px; font-size: 15px; text-align: left; }
.backup-actions>button+button { border-top: 1px solid var(--line); }
.backup-actions small { display: block; margin-top: 7px; font-size: 11px; color: #8b967f; }
.storage-note { font-size: 12px; color: #879279; line-height: 1.9; margin: 17px 0 0; }
#toast { position: fixed; bottom: calc(92px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(calc(100vw - 40px), 420px); padding: 13px 18px; border-radius: 12px; background: #344d3cf5; box-shadow: 0 3px 16px #162a201f; color: white; font-size: 13px; line-height: 1.7; z-index: 10; text-align: center; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 359px) {
  main { padding-left: 14px; padding-right: 14px; }
  .app-header { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 18px 16px; }
  h1 { font-size: 26px; }
  .hero-art { right: -43px; transform: scale(.64); }
  .hero-description { font-size: 10px; }
  .stats>div { gap: 5px; }
  .stat-icon { width: 23px; }
  .stats p>span { font-size: 9px; }
  .pick-banner { padding: 12px; }
  .pick-banner>span:first-child { gap: 5px; }
  .pick-banner strong { font-size: 11px; }
  .recipe-grid { gap: 10px; }
  .dish-art { height: 135px; }
  .card-copy { padding: 12px 9px; }
  .card-title h3 { font-size: 14px; }
  .rating { font-size: 10px; }
}
@media (min-width: 600px) {
  :root { --app-width: 1280px; }
  .app-shell { border-left: 1px solid #dce2d4; border-right: 1px solid #dce2d4; }
  .app-header { padding: calc(24px + env(safe-area-inset-top)) 28px 20px; }
  main { padding: 0 28px calc(168px + env(safe-area-inset-bottom)); }
  .hero { min-height: 250px; padding: 30px; margin-top: 0; }
  h1 { font-size: 32px; }
  .hero-description { font-size: 13px; line-height: 1.8; }
  .hero-art { right: 32px; top: 18px; transform: scale(1); }
  .stats { gap: 14px; }
  .stats>div { padding: 18px 10px; }
  .stat-icon { width: 36px; height: 40px; font-size: 26px; }
  .stats>div strong { font-size: 26px; }
  .stats p>span { font-size: 12px; }
  .pick-banner strong { font-size: 14px; }
  .dish-art { height: auto; aspect-ratio: 1.45; }
  .dish-art:before { width: 130px; height: 130px; }
  .dish-emoji { font-size: 78px; }
  .card-copy { padding: 17px 15px; }
  .card-title h3 { font-size: 16px; }
  .card-description { font-size: 12px; }
  .recipe-grid { gap: 20px; }
  .bottom-nav { width: min(calc(100% - 64px), 560px); bottom: 16px; border: 1px solid #dfe5d7; border-radius: 23px; box-shadow: 0 8px 32px #2d452322; }
  .nav-item { min-height: 58px; font-size: 12px; }
  .floating-add { width: 60px; height: 60px; right: max(28px, calc((100vw - var(--app-width)) / 2 + 28px)); bottom: calc(118px + env(safe-area-inset-bottom)); }
  .modal { width: min(calc(100% - 64px), 600px); max-width: calc(100% - 64px); max-height: calc(100dvh - 64px); margin: auto; border-radius: 24px; padding: 28px 28px calc(28px + env(safe-area-inset-bottom)); }
  .editor-modal { width: min(calc(100% - 64px), 760px); height: min(90dvh, 960px); padding: 0; }
  #recipe-form { padding: 0 28px; }
  .editor-modal .modal-header { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
  .editor-modal .modal-footer { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
  .form-grid { gap: 22px 20px; }
  .detail-modal { width: min(calc(100% - 64px), 760px); padding: 0; }
  .detail-hero .dish-art { height: 260px; aspect-ratio: auto; }
  .detail-body { padding: 26px 28px; }
  .detail-actions { grid-template-columns: 1.4fr 1fr 1fr; }
  .detail-actions .primary { grid-column: auto; }
  .confirm-modal { width: 400px; padding: 25px 22px; }
  #toast { bottom: calc(112px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
  main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px 24px; }
  .hero { margin: 0; min-height: 266px; padding: 25px; }
  .hero-description { max-width: 205px; }
  .hero-art { top: auto; bottom: -18px; right: -38px; transform: scale(.8); }
  .stats { margin: 0; gap: 12px; }
  .stats>div { flex-direction: column; gap: 10px; padding: 18px 5px; }
  .stats p { text-align: center; }
  .stats p>span { font-size: 11px; }
  .pick-banner { min-height: 82px; }
  .pick-banner>span:first-child { flex-direction: column; align-items: flex-start; gap: 8px; }
  .recipe-section, footer { grid-column: 1/-1; min-width: 0; }
  .section-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .tools { width: 55%; max-width: 480px; }
  .search input::placeholder { font-size: 12px; }
  .filters { flex-direction: row; align-items: center; justify-content: space-between; margin: 12px 0 20px; }
  .categories { min-width: 0; }
  .time-filter { flex-shrink: 0; align-self: auto; }
  .category { padding-left: 11px; padding-right: 11px; }
  .recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  footer { margin-top: 0; }
}
@media (min-width: 1024px) {
  .app-header { padding-left: 36px; padding-right: 36px; }
  main { padding-left: 36px; padding-right: 36px; column-gap: 28px; }
  .hero { padding: 30px; }
  h1 { font-size: 35px; }
  .hero-description { max-width: none; }
  .hero-art { right: 3px; bottom: 15px; transform: scale(.95); }
  .stats>div { flex-direction: row; gap: 10px; }
  .stats p { text-align: left; }
  .pick-banner>span:first-child { flex-direction: row; align-items: center; gap: 15px; }
  .recipe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-meta { flex-direction: row; justify-content: space-between; gap: 4px; }
  .floating-add { right: max(36px, calc((100vw - var(--app-width)) / 2 + 36px)); }
}
@media (min-width: 600px) and (max-height: 600px) {
  .modal { max-height: calc(100dvh - 24px); }
  .editor-modal { height: calc(100dvh - 24px); }
  .bottom-nav { bottom: 8px; padding-top: 4px; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
  .nav-item { min-height: 50px; }
}
@media (max-width: 767px) and (orientation: landscape) {
  .hero { min-height: 220px; }
  .modal { max-height: calc(100dvh - 16px); }
  .editor-modal { height: 100dvh; max-height: 100dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.photo-status { font-size: 12px; line-height: 1.7; color: #687b5b; margin: 10px 0 0; overflow-wrap: anywhere; }
.photo-status:empty { display: none; }
