:root {
  color-scheme: dark;
  --ink:#f8efe2; --muted:#bcae9d; --paper:#17120f; --panel:#211914;
  --card:#2b2019; --accent:#e45635; --gold:#e8b96a; --line:#49372c;
  --shadow:0 20px 60px rgba(0,0,0,.28);
}
* { box-sizing:border-box; }
body:has(dialog[open]) { overflow:hidden; }
:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
textarea { resize:vertical; }
.form-intro { margin:14px 0; color:var(--muted); font-size:.82rem; line-height:1.6; }
.optional-tags { margin-bottom:18px; }
.optional-tags summary { cursor:pointer; color:var(--gold); padding:8px 0; }
.optional-tags fieldset { margin-top:12px; }
.detail-actions { display:flex; flex-wrap:wrap; gap:10px; }
.record-dialog form>.actions { position:sticky; bottom:-26px; z-index:4; margin:20px -26px -26px; padding:14px 26px; background:#241a15; border-top:1px solid var(--line); }
.dish-title-row h3,.encore-item h3,.record p { overflow-wrap:anywhere; }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto !important; } *,*::before,*::after { transition:none !important; } }
html { scroll-behavior:smooth; }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 85% 0,#3c241b 0,transparent 30rem),radial-gradient(circle at 0 55%,rgba(94,51,32,.26),transparent 28rem),var(--paper); color:var(--ink); font-family:"Segoe UI","Microsoft YaHei",sans-serif; }
button,input,textarea,select { font:inherit; }
button { border:0; border-radius:999px; padding:11px 18px; background:var(--accent); color:#fff; cursor:pointer; font-weight:700; transition:transform .18s,background .18s,opacity .18s; }
button:hover { transform:translateY(-1px); background:#f06240; }
button:disabled { opacity:.45; cursor:not-allowed; transform:none; }
button.quiet,.text-button,.nav-button { background:transparent; color:var(--ink); border:1px solid var(--line); }
.text-button { border:0; color:var(--gold); padding-inline:0; }
[hidden] { display:none !important; }
.site-header,main { width:min(1180px,calc(100% - 36px)); margin:auto; }
.site-header { min-height:92px; display:grid; grid-template-columns:1fr auto 1fr; gap:24px; align-items:center; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:12px; color:inherit; text-decoration:none; width:max-content; }
.brand-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:var(--accent); font:800 1.4rem Georgia,serif; box-shadow:0 7px 22px rgba(228,86,53,.25); }
.brand strong,.brand small { display:block; }
.brand strong { font:800 1.15rem Georgia,"Microsoft YaHei",serif; }
.brand small { margin-top:3px; color:var(--muted); font-size:.58rem; letter-spacing:.16em; }
nav { display:flex; gap:6px; }
.nav-button { border-color:transparent; padding:9px 15px; color:var(--muted); }
.nav-button.active { color:#fff; border-color:var(--line); background:var(--card); }
.status { justify-self:end; display:flex; gap:12px; align-items:center; color:var(--muted); font-size:.8rem; }
main { padding:34px 0 80px; }
#message { position:fixed; left:50%; top:100px; z-index:20; transform:translateX(-50%); min-height:0; margin:0; padding:0 16px; border-radius:999px; background:#f7e4ca; color:#6f2919; box-shadow:var(--shadow); line-height:42px; }
#message:empty { display:none; }
.dialog-message { position:fixed; top:max(16px,env(safe-area-inset-top)); left:50%; z-index:6; width:min(620px,calc(100% - 36px)); margin:0; padding:10px 14px; transform:translateX(-50%); border-radius:12px; background:#f7e4ca; color:#6f2919; box-shadow:var(--shadow); font-size:.85rem; line-height:1.45; }
.dialog-message:empty { display:none; }
.data-notice { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:0 0 18px; padding:14px 16px; border:1px solid var(--gold); border-radius:14px; background:var(--panel); color:var(--gold); }
.data-notice span { flex:1; min-width:160px; line-height:1.6; }
.save-status { margin:18px 0 0; padding:12px 14px; border:1px solid var(--line); border-radius:12px; color:var(--gold); line-height:1.6; font-size:.85rem; overflow-wrap:anywhere; }
.draft-help { display:flex; align-items:flex-start; flex-wrap:wrap; gap:10px; color:var(--muted); font-size:.75rem; line-height:1.55; margin:12px 0; }
.draft-help span { flex:1; min-width:160px; }
.image-compression { margin-top:14px; font-weight:400; }
.record-edit-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.record-edit-actions button { min-height:38px; }
.record-photos button { padding:0; border:0; border-radius:10px; background:transparent; }
.photo-dialog { width:min(1100px,calc(100% - 28px)); padding:16px; }
.photo-heading { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.photo-heading span { flex:1; text-align:center; color:var(--muted); }
.photo-stage { overflow:auto; max-height:70dvh; text-align:center; }
.photo-stage img { max-width:100%; max-height:70dvh; object-fit:contain; border-radius:12px; }
.original-link { display:inline-block; margin-top:12px; padding:10px 0; color:var(--gold); }
.trash-item { padding:16px; border:1px solid var(--line); border-radius:14px; }
.trash-item h3 { overflow-wrap:anywhere; }
.trash-item p { color:var(--muted); font-size:.85rem; }
#open-trash { margin-bottom:12px; }
.data-notice[hidden],.save-status[hidden] { display:none; }
.eyebrow { color:var(--gold); font-weight:800; font-size:.66rem; letter-spacing:.18em; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:Georgia,"Microsoft YaHei",serif; }
.hero { position:relative; min-height:480px; display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr); gap:48px; align-items:center; padding:48px clamp(20px,5vw,70px); border:1px solid var(--line); border-radius:28px; background:linear-gradient(120deg,rgba(22,16,13,.35),rgba(22,16,13,.82)),radial-gradient(circle at 20% 20%,#6b321f,transparent 32rem),var(--panel); box-shadow:var(--shadow); overflow:hidden; }
.hero::after { content:""; position:absolute; width:280px; height:280px; right:-145px; top:-150px; border:1px solid rgba(232,185,106,.2); border-radius:50%; box-shadow:0 0 0 34px rgba(232,185,106,.035),0 0 0 70px rgba(232,185,106,.025); pointer-events:none; }
.hero h1 { margin:14px 0 22px; font-size:clamp(2.5rem,6vw,5.2rem); line-height:1.08; letter-spacing:-.04em; }
.hero-copy>p { max-width:620px; color:var(--muted); font-size:1.06rem; line-height:1.8; }
.hero-copy>button { margin-top:18px; }
.summary { display:grid; gap:12px; }
.summary article { padding:22px 24px; border:1px solid var(--line); border-radius:18px; background:rgba(31,23,19,.72); backdrop-filter:blur(8px); }
.summary strong { display:block; color:var(--gold); font:800 2.5rem/1 Georgia,serif; }
.summary span { color:var(--muted); font-size:.83rem; }
.section-heading,.page-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; }
.section-heading { margin:54px 0 18px; }
.section-heading h2 { margin:5px 0 0; font-size:2rem; }
.section-heading p { margin:7px 0 0; color:var(--muted); font-size:.83rem; }
.page-heading { min-height:150px; margin-bottom:24px; }
.page-heading h1 { margin:7px 0 0; font-size:clamp(2.6rem,6vw,4.8rem); }
.page-heading p { color:var(--muted); }
.menu-tools { margin-bottom:24px; padding:16px; border:1px solid var(--line); border-radius:18px; background:rgba(33,25,20,.72); }
.filter-chips { display:flex; gap:8px; overflow-x:auto; padding-bottom:13px; scrollbar-width:thin; }
.filter-chip { flex:0 0 auto; min-height:38px; padding:8px 14px; border:1px solid var(--line); background:transparent; color:var(--muted); }
.filter-chip.active { color:#20150e; border-color:var(--gold); background:var(--gold); }
.toolbar { display:flex; gap:16px; align-items:center; margin:0; }
.toolbar input { flex:1; }
.toolbar span { color:var(--muted); white-space:nowrap; }
input,textarea,select { width:100%; border:1px solid var(--line); border-radius:11px; padding:12px 13px; background:#18120f; color:var(--ink); outline:none; }
input:focus,textarea:focus,select:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(232,185,106,.12); }
.dish-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:18px; }
.dish-card { position:relative; min-width:0; border:1px solid var(--line); border-radius:20px; background:linear-gradient(160deg,#30231b,var(--card)); overflow:hidden; box-shadow:0 12px 32px rgba(0,0,0,.16); transition:transform .2s,border-color .2s,box-shadow .2s; }
.dish-card:hover { transform:translateY(-3px); border-color:#684a39; box-shadow:0 18px 38px rgba(0,0,0,.24); }
.dish-card:hover .food-photo img,.recent-card:hover .food-photo img { transform:scale(1.035); }
.food-photo { position:relative; aspect-ratio:4/3; background:linear-gradient(135deg,#4c3328,#211914); overflow:hidden; cursor:pointer; }
.food-photo img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s; }
.food-placeholder { height:100%; display:grid; place-items:center; color:#b98b6e; font:700 2rem Georgia,serif; }
.dish-body { padding:17px; }
.dish-title-row { display:flex; justify-content:space-between; align-items:start; gap:12px; }
.dish-card h3 { margin:0; font-size:1.32rem; }
.rating { color:var(--gold); font-weight:800; white-space:nowrap; }
.dish-meta { margin:9px 0 0; color:var(--muted); font-size:.84rem; }
.dish-description { margin:12px 0 0; color:#d6cabd; font-size:.88rem; line-height:1.55; min-height:2.7em; }
.dish-actions { display:flex; gap:9px; margin-top:15px; }
.dish-actions button { flex:1; padding:8px 12px; font-size:.82rem; }
.pending-badge,.priority-badge,.status-badge,.category-badge { display:inline-flex; padding:5px 9px; border-radius:999px; font-size:.7rem; font-weight:800; }
.pending-badge { position:absolute; top:12px; right:12px; background:rgba(228,86,53,.92); color:#fff; }
.category-badge { position:absolute; left:12px; top:12px; z-index:1; color:#f8ead8; border:1px solid rgba(255,255,255,.16); background:rgba(27,20,17,.78); backdrop-filter:blur(7px); }
.recent-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.recent-card { border:1px solid var(--line); border-radius:18px; overflow:hidden; background:var(--card); cursor:pointer; }
.recent-card .food-photo { aspect-ratio:1.2; }
.recent-body { padding:15px; }
.recent-body h3 { margin-bottom:7px; font-size:1.08rem; }
.recent-body p { margin:0; color:var(--muted); font-size:.8rem; }
.encore-list { display:grid; gap:14px; }
.encore-item { display:grid; grid-template-columns:110px 1fr auto; gap:20px; align-items:center; min-height:110px; padding:12px; border:1px solid var(--line); border-radius:18px; background:var(--card); }
.encore-item .food-photo { width:110px; height:86px; aspect-ratio:auto; border-radius:12px; }
.encore-item h3 { margin:0 0 7px; }
.encore-item p { margin:5px 0 0; color:var(--muted); }
.priority-strong { color:#fff; background:var(--accent); }.priority-soon { color:#24180f; background:var(--gold); }.priority-casual { color:var(--muted); background:#3a2b23; }
.status-badge { color:#b4d3ad; background:#203822; margin-left:7px; }
.ranking-controls { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:12px; padding:16px; border:1px solid var(--line); border-radius:18px; background:rgba(33,25,20,.72); }
.ranking-tabs { display:flex; gap:8px; }
.ranking-tab { border:1px solid var(--line); background:transparent; color:var(--muted); }
.ranking-tab.active { color:#20150e; border-color:var(--gold); background:var(--gold); }
.ranking-category-label { width:min(230px,100%); margin:0; color:var(--muted); }
.ranking-category-label select { margin-top:6px; }
.ranking-explanation { margin:12px 2px 24px; color:var(--muted); font-size:.86rem; }
.ranking-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.podium-card { position:relative; display:grid; grid-template-columns:1fr auto; min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:22px; background:linear-gradient(155deg,#34251c,#211914); box-shadow:0 15px 36px rgba(0,0,0,.2); }
.podium-card.podium-1 { border-color:rgba(232,185,106,.7); background:linear-gradient(155deg,#47301e,#251a14); }
.podium-card .rank-number { position:absolute; z-index:2; top:12px; right:12px; display:grid; place-items:center; width:42px; height:42px; border-radius:50%; color:#24180f; background:var(--gold); font:800 1rem Georgia,serif; box-shadow:0 7px 18px rgba(0,0,0,.3); }
.podium-card .food-photo { grid-column:1/-1; aspect-ratio:16/10; }
.podium-card .ranking-copy { min-width:0; padding:17px 10px 17px 17px; }
.ranking-overline { min-height:23px; margin-bottom:7px; }
.ranking-overline .category-badge { position:static; color:var(--muted); background:#1a130f; backdrop-filter:none; }
.ranking-copy h3 { margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:1.22rem; }
.ranking-copy p { margin:7px 0 0; color:var(--muted); font-size:.78rem; }
.ranking-value { align-self:center; padding:17px 17px 17px 0; color:var(--gold); white-space:nowrap; font:800 1.18rem Georgia,serif; }
.ranking-detail { grid-column:1/-1; margin:0 17px 17px; padding:8px 14px; }
.ranking-list { display:grid; gap:10px; margin-top:18px; }
.ranking-item { display:grid; grid-template-columns:52px 82px minmax(0,1fr) auto auto; gap:16px; align-items:center; min-height:92px; padding:9px 12px; border:1px solid var(--line); border-radius:17px; background:var(--card); }
.ranking-item .rank-number { color:var(--gold); text-align:center; font:800 1.05rem Georgia,serif; }
.ranking-item .food-photo { width:82px; height:72px; aspect-ratio:auto; border-radius:12px; }
.ranking-item .ranking-copy { min-width:0; }
.ranking-item .ranking-detail { min-width:68px; }
.empty { grid-column:1/-1; padding:54px 20px; border:1px dashed var(--line); border-radius:20px; color:var(--muted); text-align:center; }
dialog { width:min(680px,calc(100% - 28px)); max-height:90vh; overflow:auto; border:1px solid var(--line); border-radius:22px; padding:26px; background:#241a15; color:var(--ink); box-shadow:var(--shadow); }
dialog::backdrop { background:rgba(10,7,5,.78); backdrop-filter:blur(5px); }
.auth-setup-hint { margin:-3px 0 16px; color:var(--muted); font-size:.75rem; line-height:1.55; }
.dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.dialog-heading h2 { margin:6px 0 0; }
.dialog-x { width:42px; height:42px; flex:0 0 auto; padding:0; font-size:1.45rem; }
.dish-picker { margin:18px 0 20px; padding:18px; border:1px solid var(--line); border-radius:18px; background:#1b1411; }
.picker-heading { display:flex; align-items:center; gap:10px; margin:4px 0 10px; }
.picker-heading:not(:first-child) { margin-top:20px; }
.picker-heading>span { display:grid; place-items:center; width:28px; height:28px; flex:0 0 auto; border-radius:50%; background:var(--accent); color:#fff; font-weight:800; }
.picker-heading strong,.picker-heading small { display:block; }
.picker-heading small { margin-top:2px; color:var(--muted); font-size:.75rem; font-weight:400; }
.compact-label { margin:10px 0; }
.new-dish-field { padding-top:4px; }
.record-step,.record-options { margin:18px 0; padding:18px; border:1px solid var(--line); border-radius:18px; background:#1b1411; }
.upload-zone { padding:16px; border:1px dashed #755848; border-radius:14px; background:#241a15; cursor:pointer; }
.upload-zone input { width:100%; }
.review-summary { margin-top:14px; padding:14px; border:1px solid #574237; border-radius:14px; background:#211813; }
.summary-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.summary-cards { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.summary-cards article { padding:12px; border-radius:12px; background:#18110e; }
.summary-cards span { color:var(--gold); font-size:.72rem; font-weight:800; letter-spacing:.08em; }
.summary-cards p { margin:7px 0 0; color:#e3d6c7; line-height:1.55; }
.review-summary details { margin-top:12px; }
.review-summary summary { color:var(--muted); cursor:pointer; font-size:.78rem; }
.choice-fieldset,.encore-choice { margin:0 0 16px; padding:0; border:0; }
.choice-fieldset legend { font-size:.85rem; font-weight:700; color:#ddd0c1; }
.choice-help { margin:5px 0 10px; color:var(--muted); font-size:.75rem; }
.choice-chips { display:flex; flex-wrap:wrap; gap:8px; }
.choice-chip { min-height:36px; padding:7px 11px; border:1px solid var(--line); background:#241a15; color:var(--muted); font-size:.78rem; }
.choice-chip.selected { border-color:var(--accent); background:var(--accent); color:#fff; }
.choice-chip.recommended:not(.selected) { border-color:var(--gold); color:var(--gold); }
.encore-choice { padding:14px; border:1px solid var(--line); border-radius:14px; background:#241a15; }
.check-row { display:flex; align-items:center; gap:12px; margin:0; cursor:pointer; }
.check-row input { width:20px; height:20px; min-height:0; margin:0; accent-color:var(--accent); }
.check-row span,.check-row strong,.check-row small { display:block; }
.check-row small { margin-top:3px; color:var(--muted); font-weight:400; }
.detail-dialog { width:min(960px,calc(100% - 28px)); padding:0; }
.dialog-close { position:sticky; float:right; top:14px; margin:14px 14px -58px 0; z-index:2; width:42px; height:42px; padding:0; background:rgba(19,13,10,.7); font-size:1.5rem; }
.detail-hero { min-height:330px; padding:42px; display:flex; align-items:end; background:linear-gradient(0deg,rgba(19,13,10,.88),rgba(19,13,10,.1)),#3b291f center/cover; }
.detail-hero h2 { margin:8px 0; font-size:clamp(2.4rem,7vw,4.5rem); }
.detail-content { padding:30px; }
.detail-stats { display:flex; gap:22px; color:var(--muted); }
.timeline { margin-top:28px; display:grid; gap:18px; }
.record { padding:20px; border-left:2px solid var(--accent); background:#1b1411; border-radius:0 16px 16px 0; }
.record-head { display:flex; justify-content:space-between; gap:14px; }
.record p { color:#d8cbbc; line-height:1.65; }
.record-photos { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:8px; margin-top:14px; }
.record-photos img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:10px; }
.tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.tags span { padding:4px 8px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:.7rem; }
label { display:block; margin:15px 0; font-size:.85rem; font-weight:700; color:#ddd0c1; }
label input,label textarea,label select { margin-top:7px; font-weight:400; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.rating-label { display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px; }
.rating-label input { grid-column:1/-1; accent-color:var(--accent); }
.rating-label output { color:var(--gold); font-size:1.5rem; }
.image-preview { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:10px; }
.image-preview article { position:relative; min-width:0; }
.image-preview img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; }
.image-preview .cover-label { position:absolute; left:6px; bottom:6px; padding:3px 6px; border-radius:999px; background:rgba(19,13,10,.82); color:#fff; font-size:.65rem; }
.image-preview .preview-actions { display:flex; gap:5px; margin-top:5px; }
.image-preview .preview-actions button { min-height:32px; flex:1; padding:4px; font-size:.68rem; }
@media (max-width:860px) {
  .site-header { grid-template-columns:1fr auto; padding:16px 0; }.site-header nav { grid-column:1/-1; grid-row:2; overflow:auto; }.status span { display:none; }
  .hero { grid-template-columns:1fr; min-height:auto; }.summary { grid-template-columns:repeat(3,1fr); }.recent-grid { grid-template-columns:repeat(2,1fr); }
  .ranking-podium { grid-template-columns:1fr; }.podium-card { grid-template-columns:140px minmax(0,1fr) auto; }.podium-card .food-photo { grid-column:auto; grid-row:1/3; height:100%; aspect-ratio:auto; }.podium-card .ranking-detail { grid-column:2/-1; }
}
@media (max-width:560px) {
  body { padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
  button { min-height:44px; }
  input,textarea,select { min-height:46px; font-size:16px; }
  .site-header { position:sticky; top:0; z-index:18; width:100%; min-height:68px; padding:10px 12px; grid-template-columns:1fr auto; gap:10px; background:#17120f; backdrop-filter:none; }
  .brand-mark { width:38px; height:38px; border-radius:11px; }
  .brand strong { font-size:1rem; }.brand small { font-size:.52rem; }
  .status { gap:6px; }.status span { display:none; }.status button { min-height:40px; padding:8px 13px; }
  .site-header nav { position:fixed; left:0; right:0; bottom:0; z-index:30; display:grid; grid-template-columns:repeat(4,1fr); gap:0; padding:7px 6px calc(7px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:rgba(23,18,15,.97); backdrop-filter:blur(16px); }
  .nav-button { min-width:0; min-height:48px; padding:7px 2px; border-radius:12px; font-size:.72rem; white-space:nowrap; }
  main { width:calc(100% - 24px); padding:18px 0 34px; }
  #message { top:76px; width:calc(100% - 28px); text-align:center; line-height:1.35; padding:11px 14px; }
  .hero { min-height:auto; padding:24px 18px; gap:18px; border-radius:18px; }
  .hero h1 { margin:10px 0 16px; font-size:clamp(2rem,11vw,2.65rem); line-height:1.12; }
  .hero-copy>p { font-size:.94rem; line-height:1.65; }
  .hero-copy>button { width:100%; margin-top:10px; }
  .summary { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .summary article { min-width:0; padding:13px 8px; text-align:center; }
  .summary strong { font-size:1.65rem; }.summary span { font-size:.72rem; }
  .section-heading { margin:36px 0 14px; }.section-heading h2 { font-size:1.55rem; }
  .page-heading { min-height:auto; align-items:flex-start; margin:18px 0 20px; flex-direction:column; }
  .page-heading h1 { font-size:2.5rem; }.page-heading>button { position:static; width:100%; box-shadow:none; }
  .menu-tools { margin-inline:-2px; padding:12px; }.filter-chips { margin-right:-12px; padding-right:12px; }
  .toolbar { align-items:stretch; flex-direction:column; gap:8px; }.toolbar span { text-align:right; }
  .recent-grid,.dish-grid { grid-template-columns:1fr; gap:12px; }
  .recent-card { display:grid; grid-template-columns:116px 1fr; align-items:center; }.recent-card .food-photo { width:116px; height:92px; aspect-ratio:auto; }.recent-body { min-width:0; }
  .dish-card .food-photo { aspect-ratio:16/10; }.dish-body { padding:15px; }.dish-card h3 { font-size:1.2rem; }.dish-description { min-height:0; }
  .dish-actions { gap:8px; }.dish-actions button { min-height:42px; }
  .two { grid-template-columns:1fr; gap:0; }
  .encore-item { grid-template-columns:76px minmax(0,1fr); gap:12px; }.encore-item .food-photo { width:76px;height:68px; }.encore-item>button { grid-column:1/-1; width:100%; }
  .ranking-heading p { line-height:1.6; }.ranking-controls { align-items:stretch; flex-direction:column; padding:12px; }.ranking-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }.ranking-tab { min-width:0; padding:8px 4px; font-size:.76rem; }.ranking-category-label { width:100%; }
  .ranking-explanation { line-height:1.55; }.ranking-podium { gap:10px; }.podium-card { grid-template-columns:94px minmax(0,1fr) auto; border-radius:17px; }.podium-card .food-photo { width:94px; min-height:132px; }.podium-card .rank-number { width:34px; height:34px; top:8px; right:8px; font-size:.85rem; }.podium-card .ranking-copy { padding:13px 7px 10px 13px; }.podium-card .ranking-value { padding:13px 12px 10px 0; font-size:1rem; }.podium-card .ranking-detail { min-height:38px; margin:0 12px 12px; }.ranking-copy h3 { font-size:1.05rem; }
  .ranking-list { gap:8px; margin-top:12px; }.ranking-item { grid-template-columns:34px 64px minmax(0,1fr) auto; gap:9px; min-height:80px; padding:8px; }.ranking-item .food-photo { width:64px; height:62px; }.ranking-item .ranking-copy p { font-size:.7rem; }.ranking-item .ranking-value { padding:0; font-size:.88rem; }.ranking-item .ranking-detail { display:none; }
  dialog { inset:auto 0 0; width:100%; max-width:none; max-height:94dvh; margin:0; padding:20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius:20px 20px 0 0; }
  .small-dialog { width:100%; }.record-dialog { height:94dvh; }
  .dish-picker { margin:14px 0 16px; padding:14px; border-radius:15px; }
  .record-step,.record-options { margin:14px 0 16px; padding:14px; border-radius:15px; }
  .picker-heading small { font-size:.7rem; }
  .actions { position:sticky; bottom:calc(-20px - env(safe-area-inset-bottom)); z-index:4; margin:22px -16px calc(-20px - env(safe-area-inset-bottom)); padding:12px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:rgba(36,26,21,.97); }
  .actions button { flex:1; }
  .record-dialog form>.actions { bottom:calc(-20px - env(safe-area-inset-bottom)); margin:20px -16px calc(-20px - env(safe-area-inset-bottom)); padding:12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .detail-actions button { flex:1; }
  .image-preview { grid-template-columns:repeat(2,1fr); }
  .summary-cards { grid-template-columns:1fr; }
  .detail-dialog { height:94dvh; }.detail-hero { min-height:230px; padding:22px; }.detail-content { padding:20px 16px; }
  .detail-stats { gap:10px; flex-wrap:wrap; }.record { padding:16px; }
}
/* Search controls and pagination use the existing spacing and color tokens. */
.search-options { margin-top: 16px; }
.search-options summary { cursor: pointer; }
.search-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; align-items: end; }
.search-fields label { min-width: 0; }
.search-fields input, .search-fields select { width: 100%; min-width: 0; box-sizing: border-box; }
.load-more { display: block; margin: 24px auto; }
.load-more[hidden] { display: none; }
#local-drafts { flex: 1 1 200px; min-width: 0; max-width: 100%; }
