/* The food picker is the mobile app. Gestures own card transforms in JS. */
#food-dialog[hidden],#food-group-dialog[hidden],#food-preferences-panel[hidden]{display:none!important}
#food-dialog{--app-ink:#30283e;--app-muted:#7b6d88;--app-accent:#7561ce;--app-light:#f4effc;--app-line:#ece5f3}
#food-dialog:focus{outline:none}
#food-dialog>.food-shell,#food-group-dialog>.fg-shell{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}
#food-dialog .food-head{padding:12px 20px;gap:12px;min-height:72px}
#food-dialog .food-head .food-brand{display:flex;align-items:center;gap:9px;min-width:0}
#food-dialog .food-head .food-brand>img{width:38px;height:38px;object-fit:contain;flex-shrink:0}
#food-dialog .food-head .food-brand>span{display:flex;flex-direction:column;gap:0;align-items:flex-start;line-height:1.3}
#food-dialog .food-brand small{font-size:12px;line-height:1.25;letter-spacing:.045em;color:#897796;font-weight:400}
#food-dialog .food-brand strong{font-size:18px;letter-spacing:.025em;color:var(--app-ink);font-weight:650;line-height:1.5}
#food-dialog .food-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
#food-dialog .food-head .food-header-actions .food-group-entry{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;border:1px solid #ded2ef;background:#f5effd;color:#79579b;border-radius:24px;width:auto;min-width:77px;min-height:44px;height:44px;margin:0;padding:8px 13px;font-size:14px!important;font-weight:600;line-height:1.4}
#food-dialog .food-header-actions .food-group-entry svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
#food-dialog .food-head button[data-cmd="close"]{min-width:44px;width:44px;height:44px;min-height:44px;border-radius:50%;padding:0;background:#f7f4fb;color:#8b749d;display:grid;place-items:center}
#food-dialog .food-head button[data-cmd="close"] svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
#food-dialog .food-deck-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 15px;flex-shrink:0}
#food-dialog .food-deck-heading h1{font-size:25px;line-height:1.4;letter-spacing:-.025em;font-weight:650;color:var(--app-ink);margin:0}
#food-dialog .food-deck-heading p{margin:3px 0 0;font-size:13px;line-height:1.6;color:#97859f;letter-spacing:.01em}
#food-dialog .food-deck-count{font-size:12px;white-space:nowrap;letter-spacing:.025em;color:#9987a7;background:#f7f2fc;border-radius:15px;padding:5px 10px}
#food-dialog .food-filter-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;margin:0 0 13px}
#food-dialog .food-filter-bar .food-contexts{display:flex;flex:1;gap:5px;flex-wrap:nowrap;margin:0;min-width:0}
#food-dialog .food-filter-bar .food-contexts button{flex:1;min-width:44px;min-height:44px;height:44px;background:transparent;border-radius:14px;font-size:14px;padding:8px 9px;color:#907a9e;line-height:1.4;white-space:nowrap;box-shadow:none}
#food-dialog .food-filter-bar .food-contexts button[aria-pressed="true"]{background:#eee6fb;color:#795e9d;font-weight:650;box-shadow:inset 0 0 0 1px #e4d8f4}
#food-dialog .food-preference-entry{display:flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:44px;height:44px;min-width:64px;background:#fff;border:1px solid #e6dbef;border-radius:14px;font-size:14px;color:#7e6990;padding:8px 10px;white-space:nowrap}
#food-dialog .food-preference-entry svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#food-dialog .food-preference-entry b,#food-dialog .food-preference-entry .count{min-width:17px;line-height:19px;font-size:12px;font-weight:600;text-align:center;background:#e9ddf6;border-radius:10px;color:#855e9c;padding:0 4px}
#food-dialog:not([data-screen="cards"]) .food-deck-heading{display:block}
#food-dialog:not([data-screen="cards"]) .food-deck-heading>h1{margin:0 0 6px}
#food-dialog:not([data-screen="cards"]) .food-deck-heading>p{font-size:14px;line-height:1.75;margin:0;color:#7e6a8c}
#food-dialog .food-loading>img,#food-dialog .food-empty>img{display:block;width:64px;height:64px;max-width:64px;object-fit:contain;margin:0 auto 18px;flex-shrink:0}
#food-dialog .food-loading{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;min-height:240px;padding:30px 20px;text-align:center}
#food-dialog .food-loading>p{font-size:16px;line-height:1.7;margin:0;color:#806a90}
#food-dialog .food-empty>p{font-size:16px;line-height:1.8;color:#806a90}
#food-dialog .food-empty>button{margin:8px 4px 0;min-height:44px}
#food-dialog .food-favorite svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#food-dialog .food-favorite[aria-pressed="true"]{color:#9468bf;background:#f5ecff}
#food-dialog .food-favorite[aria-pressed="true"] svg{fill:#c4a2e4;stroke:#9468bf}
#food-dialog #food-form button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#food-dialog[data-screen="cards"] .food-chips{display:flex;flex-wrap:nowrap;gap:6px;flex-shrink:0;min-width:0;overflow:auto;margin:0 0 9px;padding:0 0 2px;scrollbar-width:none}
#food-dialog[data-screen="cards"] .food-chips::-webkit-scrollbar{display:none}
#food-dialog[data-screen="cards"] .food-chips:empty{display:none}
#food-dialog[data-screen="cards"] .food-chips button{flex-shrink:0;min-height:38px;padding:8px 11px;font-size:14px!important;line-height:1.4;color:#8e729d;background:#f3edf9;border-radius:19px}

/* A real movable card, with a quiet stack underneath. */
.swipe-deck{position:relative;isolation:isolate;overflow:visible;padding:0 0 7px;margin:0 1px;min-width:0;touch-action:pan-y}
.swipe-stack-card{position:absolute;z-index:-1;inset:8px 8px 0;border-radius:24px;background:#e7def3;border:1px solid #dfd3ed;transform:rotate(1.4deg);pointer-events:none}
.swipe-stack-card:after{content:"";position:absolute;inset:5px 7px -4px;border-radius:23px;background:#f0e9f8;border:1px solid #e6dbf1;transform:rotate(-2.1deg);z-index:-1}
.picku-swipe-card{position:relative;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none;will-change:transform;transform-origin:50% 70%;backface-visibility:hidden;box-shadow:0 7px 18px #3f225911;border:1px solid #eadff2}
.picku-swipe-card img{-webkit-user-drag:none;user-select:none;pointer-events:none}
.picku-swipe-card button,.picku-swipe-card a{cursor:pointer;touch-action:manipulation;user-select:auto;pointer-events:auto}
.picku-swipe-card.is-dragging{cursor:grabbing;box-shadow:0 17px 35px #573b6e2b;z-index:3}
.picku-swipe-card.is-leaving{pointer-events:none;z-index:3}
.swipe-stamp-left,.swipe-stamp-right{position:absolute;top:24px;z-index:8;display:block;pointer-events:none;user-select:none;line-height:1.2;font-size:24px;font-weight:750;letter-spacing:.06em;padding:10px 12px;border:3px solid currentColor;border-radius:10px;background:#ffffffdc;box-shadow:0 4px 12px #3f22590b;opacity:0}
.swipe-stamp-left{right:20px;transform:rotate(11deg);color:#bd5f79;opacity:var(--swipe-left-opacity,clamp(0,calc(var(--swipe-progress,0) * -1.5),1))}
.swipe-stamp-right{left:20px;transform:rotate(-11deg);color:#6850ad;opacity:var(--swipe-right-opacity,clamp(0,calc(var(--swipe-progress,0) * 1.5),1))}
#food-dialog .swipe-deck .food-card{border-radius:23px;background:#fff}
#food-dialog .swipe-deck .food-photo{height:clamp(240px,35dvh,350px);border-radius:0;background:#eee8f3}
#food-dialog .swipe-deck .food-photo img{object-fit:cover}
#food-dialog .swipe-deck .food-caption{padding:16px 19px 17px;background:#fff}
#food-dialog .swipe-deck .food-caption h2{font-size:25px;font-weight:650;line-height:1.35;margin:0 0 4px;color:#473351;letter-spacing:.025em}
#food-dialog .swipe-deck .food-caption p{font-size:14px;line-height:1.55;color:#91759f;margin:0}
#food-dialog .swipe-deck .food-favorite{width:44px;height:44px;min-height:44px;min-width:44px;top:14px;right:14px;padding:0;box-shadow:0 3px 12px #2d203719;border:1px solid #ffffff8c;background:#fffffff0}
#food-dialog .food-swipe-hint{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0;font-size:12px;color:#9b85aa;line-height:1.6;margin:9px 3px 2px;text-align:center}
#food-dialog .food-swipe-hint>span:first-child{text-align:left}
#food-dialog .food-swipe-hint>span:last-child{text-align:right}
#food-dialog .food-swipe-hint:only-child{justify-content:center}
#food-dialog[data-screen="cards"] .food-credit{margin:3px 0 0;font-size:12px;line-height:1.5;flex-shrink:0}
#food-dialog[data-screen="cards"] .food-credit summary{min-height:29px;padding:5px 1px;font-size:12px;line-height:1.5;color:#9784a3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#food-dialog[data-screen="cards"] .food-credit[open] summary{white-space:normal}
#food-dialog[data-screen="cards"] .food-notice{font-size:13px;line-height:1.6;flex-shrink:0;padding:0 2px;margin:6px 0 0;color:#967083}
#food-dialog[data-screen="cards"] .food-hints{flex-shrink:0;margin-top:8px}

/* Thumb actions and the three places in the app. */
#food-dialog footer{padding:10px 20px 11px;background:#fff;box-shadow:0 -8px 24px #80649505;border-top:1px solid #eee6f4;flex-shrink:0;position:relative;z-index:4}
#food-dialog footer .food-actions{display:grid;grid-template-columns:1fr 1.12fr 1fr;gap:10px;margin:0;align-items:stretch}
#food-dialog footer .food-actions>button,#food-dialog footer .food-actions>.food-primary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:auto;min-width:0;min-height:64px;padding:10px 5px;border-radius:18px;font-size:14px!important;line-height:1.4;font-weight:600;box-shadow:none}
#food-dialog footer .food-actions>button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#food-dialog footer .food-actions>button span{font-size:14px;line-height:1.4}
#food-dialog footer .food-actions>button[data-cmd="skip"]{background:#f4eff8;color:#9880a7;border:1px solid #ebe0f3}
#food-dialog footer .food-actions>button[data-cmd="like"]{background:#eee5fc;color:#8860af;border:1px solid #e1d2f3}
#food-dialog footer .food-actions>.food-primary{background:#7561ce!important;color:white!important;border:1px solid #7561ce}
#food-dialog .food-utility{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:3px 2px 2px}
#food-dialog .food-utility button{min-height:44px;padding:9px 9px;display:flex;align-items:center;justify-content:center;gap:6px;background:transparent;color:#9b85aa;font-size:14px;border-radius:12px;line-height:1.4}
#food-dialog .food-utility svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#food-dialog .food-utility button:disabled{opacity:.38}
#food-dialog .food-bottom-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;border-top:1px solid #f0e9f6;padding:8px 0 0;margin:0}
#food-dialog .food-bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;position:relative;min-height:58px;min-width:0;border:0;border-radius:15px;padding:6px 9px;background:transparent;color:#a08aac;font-size:14px;line-height:1.35;font-weight:400}
#food-dialog .food-bottom-nav svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#food-dialog .food-bottom-nav button[aria-current="page"]{background:#f4eefb;color:#8160a9;font-weight:650}
#food-dialog .food-bottom-nav button[aria-current="page"]:after{content:"";height:3px;width:17px;border-radius:2px;background:#a387cf;position:absolute;top:0;left:calc(50% - 8.5px)}
#food-dialog .food-bottom-nav b,#food-dialog .food-bottom-nav .count{font-size:12px;font-weight:600;line-height:1;padding:2px 4px;border-radius:8px;color:inherit}
#food-dialog[data-screen="chosen"] .food-content{padding-top:20px}
#food-dialog[data-screen="chosen"] .food-kicker{font-size:18px;margin:8px 0 17px;line-height:1.5;color:#836498;letter-spacing:.04em}
#food-dialog[data-screen="chosen"] .food-photo{height:clamp(230px,35dvh,360px)}
#food-dialog[data-screen="shortlist"] .food-content>h2,#food-dialog[data-screen="saved"] .food-content>h2,#food-dialog[data-screen="preferences"] .food-content>h2{font-size:23px;font-weight:650;color:#5e466f;line-height:1.5;margin:0 0 18px}
#food-dialog[data-screen="saved"] .food-saved{gap:15px}
#food-dialog[data-screen="saved"] .food-saved>button{border:1px solid #eadff2;border-radius:18px;background:#f9f5fd}
#food-dialog[data-screen="saved"] .food-saved span{font-size:14px;color:#806092;line-height:1.5}
#food-dialog[data-screen="preferences"] .food-content{padding-top:22px}
#food-dialog #food-preferences-panel h2{font-size:24px;font-weight:650;margin:0 0 7px;color:#5e466f;line-height:1.5}
#food-dialog #food-preferences-panel>p{font-size:16px;line-height:1.8;color:#977fa7;margin:0 0 20px}
#food-dialog #food-preferences-panel h3{font-size:16px;font-weight:600;color:#7e5e92;margin:23px 0 10px}
#food-dialog #food-preferences-panel #food-form{margin-top:14px;border:1px solid #dfd0ed;background:#faf6ff;border-radius:18px;padding:7px 7px 7px 14px;align-items:center;min-height:58px}
#food-dialog #food-preferences-panel #food-text{font-size:16px!important;line-height:1.6;min-width:0;color:#6a4e7e}
#food-dialog #food-preferences-panel #food-form button{border-radius:12px;min-height:44px;min-width:44px;height:44px;width:44px;font-size:16px!important;background:#e8dcf9;color:#8c62ac}
#food-dialog #food-preferences-panel [data-say]{font-size:14px;min-height:44px;border-radius:16px;padding:10px 13px;margin:0;background:#f2eaf9;color:#9170a5;border:1px solid #eadef3}
#food-dialog #food-preferences-panel .food-quick-conditions,#food-dialog #food-preferences-panel .food-quick{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0 22px}
#food-dialog #food-preferences-panel .food-quick-preferences{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}
#food-dialog #food-preferences-panel .food-preferences-note{font-size:14px;color:#7e6a8c;line-height:1.85;margin:17px 0 0}
#food-dialog #food-preferences-panel .food-chips{gap:8px;margin:16px 0}
#food-dialog #food-preferences-panel .food-chip{min-height:44px;background:#eae0f6;color:#8f69a9;padding:10px 13px;font-size:14px!important}
#food-dialog[data-screen="preferences"] footer>.food-primary{min-height:50px;margin-bottom:10px;font-size:16px!important}

/* Shared group gestures keep the established room UI and flow. */
#food-group-dialog .swipe-deck{margin:0 1px 9px}
#food-group-dialog .swipe-deck .fg-card{position:relative;background:#fff;border-radius:22px}
#food-group-dialog .swipe-deck .fg-card>img{height:clamp(230px,34dvh,330px)}
#food-group-dialog .swipe-deck .fg-card h2{color:#5d456e}
#food-group-dialog .swipe-stamp-left,#food-group-dialog .swipe-stamp-right{font-size:23px}
#food-group-dialog .fg-votes>button{min-height:50px!important}
#food-group-dialog .swipe-hint{font-size:12px;line-height:1.5;text-align:center;color:#7d668e;margin:5px 0 6px;flex-shrink:0}
#food-group-dialog[data-screen="voting"] .fg-notice{font-size:14px;line-height:1.6;margin-top:5px}

#mobile-launch{display:none}

@media(max-width:760px){
  html.food-mobile-boot{background:#fafaff}
  html.food-mobile-boot body{overflow:hidden}
  html.food-mobile-boot .site-header,html.food-mobile-boot #main,html.food-mobile-boot .site-footer{visibility:hidden}
  html.food-mobile-boot #mobile-launch{display:flex;position:fixed;inset:0;min-height:100dvh;z-index:100;background:#fafaff;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:calc(30px + env(safe-area-inset-top)) 28px calc(30px + env(safe-area-inset-bottom));color:#7e6a8c;gap:0}
  #mobile-launch>img{display:block;width:68px;height:68px;object-fit:contain;margin:0 0 20px}
  #mobile-launch>p{font-size:16px;line-height:1.8;margin:0}
  #mobile-launch>a{font-size:14px;line-height:1.5;color:#8b70a4;min-height:44px;display:flex;align-items:center;justify-content:center;padding:10px 16px;margin-top:20px;text-decoration:underline;text-underline-offset:5px;border-radius:15px}
  #food-dialog,#food-dialog[open],#food-group-dialog,#food-group-dialog[open]{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none;background:#fdfcff}
  #food-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
  #food-dialog .food-head{padding:calc(9px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 9px max(16px,env(safe-area-inset-left));min-height:66px;background:#fff;flex-shrink:0;border-bottom:1px solid #eee6f4}
  #food-dialog .food-head .food-brand{gap:8px}
  #food-dialog .food-head .food-brand>img{width:34px;height:34px}
  #food-dialog .food-brand strong{font-size:17px}
  #food-dialog .food-brand small{font-size:12px}
  #food-dialog .food-header-actions{gap:7px}
  #food-dialog .food-head .food-header-actions .food-group-entry{height:44px;min-height:44px;min-width:75px;padding:9px 12px;font-size:14px!important}
  #food-dialog .food-head button[data-cmd="close"]{width:44px;height:44px}
  #food-dialog .food-content{flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:14px max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left));overscroll-behavior:contain;scrollbar-width:none}
  #food-dialog .food-content::-webkit-scrollbar{display:none}
  #food-dialog[data-screen="cards"] .food-content{display:flex;flex-direction:column}
  #food-dialog .food-deck-heading{margin-bottom:9px;gap:9px}
  #food-dialog .food-deck-heading h1{font-size:22px;line-height:1.4;letter-spacing:-.02em}
  #food-dialog .food-deck-heading p{font-size:12px;line-height:1.5;margin-top:2px}
  #food-dialog .food-deck-count{padding:4px 8px;font-size:12px}
  #food-dialog .food-filter-bar{gap:7px;margin-bottom:10px}
  #food-dialog .food-filter-bar .food-contexts{gap:3px}
  #food-dialog .food-filter-bar .food-contexts button{height:44px;min-height:44px;min-width:44px;font-size:14px;line-height:1.4;padding:9px 8px;border-radius:13px}
  #food-dialog .food-preference-entry{height:44px;min-height:44px;min-width:61px;padding:9px 9px;font-size:14px;gap:5px;border-radius:13px}
  #food-dialog .food-preference-entry svg{width:15px;height:15px}
  #food-dialog[data-screen="cards"] .food-chips{margin:0 0 8px;padding:0;gap:6px;overflow-x:auto}
  #food-dialog[data-screen="cards"] .food-chips button{font-size:14px!important;min-height:44px;padding:9px 11px;border-radius:18px}
  #food-dialog[data-screen="cards"] .swipe-deck{flex:1;min-height:228px;max-height:470px;display:flex;flex-direction:column;margin:0 1px;padding-bottom:6px}
  #food-dialog[data-screen="cards"] .swipe-deck .food-card{height:100%;min-height:0;flex:1;display:flex;flex-direction:column;border-radius:22px;background:white}
  #food-dialog[data-screen="cards"] .swipe-deck .food-photo{flex:1;height:auto;min-height:154px;max-height:none;position:relative}
  #food-dialog[data-screen="cards"] .swipe-deck .food-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  #food-dialog .swipe-deck .food-caption{flex-shrink:0;min-height:70px;padding:13px 16px 14px}
  #food-dialog .swipe-deck .food-caption h2{font-size:24px!important;line-height:1.35;letter-spacing:.015em;margin:0 0 3px}
  #food-dialog .swipe-deck .food-caption p{font-size:14px;line-height:1.5;margin:0}
  #food-dialog .swipe-deck .food-favorite{width:44px;height:44px;min-width:44px;min-height:44px;top:12px;right:12px;font-size:27px!important}
  .swipe-stack-card{border-radius:23px;inset:8px 7px 0}
  .swipe-stack-card:after{border-radius:21px;inset:4px 6px -3px}
  .swipe-stamp-left,.swipe-stamp-right{font-size:21px;top:23px;padding:9px 11px;border-width:3px}
  .swipe-stamp-left{right:17px}.swipe-stamp-right{left:17px}
  #food-dialog .food-swipe-hint{font-size:12px;line-height:1.5;min-height:19px;margin:7px 3px 1px;gap:9px}
  #food-dialog[data-screen="cards"] .food-credit{font-size:12px;line-height:1.5;margin:1px 0 0}
  #food-dialog[data-screen="cards"] .food-credit summary{font-size:12px;line-height:1.5;min-height:26px;padding:4px 1px}
  #food-dialog[data-screen="cards"] .food-author{max-width:145px}
  #food-dialog[data-screen="cards"] .food-credit[open]{padding:6px 10px;margin-top:3px;background:#f6f0fb}
  #food-dialog[data-screen="cards"] .food-notice{font-size:13px;line-height:1.5;margin-top:4px}
  #food-dialog footer{padding:8px max(17px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(17px,env(safe-area-inset-left));background:#fff;border-top:1px solid #eee6f4;flex-shrink:0}
  #food-dialog footer .food-actions{gap:9px;margin:0}
  #food-dialog footer .food-actions>button,#food-dialog footer .food-actions>.food-primary{min-height:60px;height:60px;padding:8px 4px;gap:3px;border-radius:17px;font-size:14px!important}
  #food-dialog footer .food-actions>button svg{width:21px;height:21px;stroke-width:1.8}
  #food-dialog footer .food-actions>button span{font-size:14px;line-height:1.4}
  #food-dialog .food-utility{gap:12px;margin:0 0 1px}
  #food-dialog .food-utility button{min-height:44px;height:44px;gap:5px;padding:9px 7px;font-size:14px}
  #food-dialog .food-utility svg{width:15px;height:15px}
  #food-dialog .food-bottom-nav{gap:7px;padding-top:6px;border-color:#f0eaf5}
  #food-dialog .food-bottom-nav button{min-height:53px;height:53px;padding:5px 6px;gap:3px;border-radius:14px;font-size:14px}
  #food-dialog .food-bottom-nav svg{width:20px;height:20px}
  #food-dialog .food-bottom-nav b{font-size:12px}
  #food-dialog[data-screen="chosen"] .food-content{padding-top:16px}
  #food-dialog[data-screen="chosen"] .food-photo{height:clamp(235px,42dvh,430px)}
  #food-dialog[data-screen="chosen"] .food-kicker{font-size:18px;margin:6px 0 15px}
  #food-dialog[data-screen="chosen"] .food-caption h2{font-size:25px}
  #food-dialog[data-screen="shortlist"] .food-content,#food-dialog[data-screen="saved"] .food-content,#food-dialog[data-screen="preferences"] .food-content{padding-top:18px;padding-bottom:22px}
  #food-dialog[data-screen="shortlist"] .food-shortlist .food-photo{height:230px}
  #food-dialog[data-screen="saved"] .food-saved{gap:14px}
  #food-dialog[data-screen="saved"] .food-saved img{height:140px}
  #food-dialog[data-screen="preferences"] footer>.food-primary{margin-bottom:8px;min-height:49px}
  #food-dialog #food-preferences-panel h2{font-size:23px}
  #food-dialog #food-preferences-panel>p{font-size:16px;margin-bottom:19px}
  #food-dialog #food-preferences-panel #food-form{min-height:58px;padding:6px 6px 6px 13px}
  #food-dialog #food-preferences-panel .food-quick-conditions,#food-dialog #food-preferences-panel .food-quick{gap:8px}
  #food-dialog #food-preferences-panel .food-quick-preferences{gap:8px;margin:18px 0}
  #food-dialog .food-clear{margin-left:7px}
  #food-group-dialog .swipe-deck .fg-card>img{height:clamp(220px,34dvh,330px)}
  #food-group-dialog[data-screen="voting"] .fg-content{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;padding:11px 18px 12px;min-height:0}
  #food-group-dialog[data-screen="voting"] .fg-room-meta{flex-shrink:0;min-height:42px;margin:0 0 2px;gap:10px}
  #food-group-dialog[data-screen="voting"] .fg-room-meta button{min-height:44px}
  #food-group-dialog[data-screen="voting"] .fg-progress{flex-shrink:0;margin:6px 0 9px;font-size:14px;line-height:1.5}
  #food-group-dialog[data-screen="voting"] .swipe-deck{display:flex;flex-direction:column;flex:1;min-height:237px;max-height:440px;margin:0 1px;padding-bottom:7px}
  #food-group-dialog[data-screen="voting"] .swipe-deck .fg-card{display:flex;flex-direction:column;flex:1;min-height:0;height:100%;background:#fff}
  #food-group-dialog[data-screen="voting"] .swipe-deck .fg-card>img{flex:1;min-height:156px;height:auto;max-height:none;object-fit:cover}
  #food-group-dialog[data-screen="voting"] .swipe-deck .fg-card h2{flex-shrink:0;font-size:23px!important;line-height:1.35;padding:0 16px;margin:12px 0 3px!important}
  #food-group-dialog[data-screen="voting"] .swipe-deck .fg-card p{flex-shrink:0;font-size:14px;line-height:1.5;padding:0 16px 14px;margin:0}
  #food-group-dialog[data-screen="voting"] .fg-credit{flex-shrink:0;font-size:12px;line-height:1.5;margin:4px 0 0}
  #food-group-dialog[data-screen="voting"] .fg-credit summary{min-height:27px;padding:4px 0;font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #food-group-dialog[data-screen="voting"] .fg-credit[open] summary{white-space:normal}
  #food-group-dialog[data-screen="voting"] .fg-votes{flex-shrink:0;gap:8px;margin:6px 0 0}
  #food-group-dialog[data-screen="voting"] .fg-votes>button{min-height:50px;height:50px;font-size:14px!important;padding:10px 6px!important}
  #food-group-dialog[data-screen="voting"] .fg-content>.fg-plain{flex-shrink:0;min-height:44px;height:44px;font-size:14px;margin:1px auto 0;padding:9px 13px}
  #food-group-dialog[data-screen="voting"] .fg-invite{flex-shrink:0}
}
@media(max-width:760px) and (max-height:740px){
  #food-dialog .food-content{padding-top:10px;padding-bottom:7px}
  #food-dialog .food-deck-heading{margin-bottom:6px}
  #food-dialog .food-deck-heading h1{font-size:21px;line-height:1.4}
  #food-dialog[data-screen="cards"] .food-deck-heading p{display:none}
  #food-dialog .food-filter-bar{margin-bottom:8px}
  #food-dialog[data-screen="cards"] .swipe-deck{min-height:210px}
  #food-dialog[data-screen="cards"] .swipe-deck .food-photo{min-height:142px}
  #food-dialog .swipe-deck .food-caption{padding:11px 15px 12px;min-height:64px}
  #food-dialog .swipe-deck .food-caption h2{font-size:22px!important;line-height:1.3;margin-bottom:2px}
  #food-dialog .swipe-deck .food-caption p{font-size:14px;line-height:1.4}
  #food-dialog footer{padding-top:7px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}
  #food-dialog footer .food-actions>button,#food-dialog footer .food-actions>.food-primary{min-height:57px;height:57px;gap:2px;padding:7px 4px;border-radius:16px}
  #food-dialog footer .food-actions>button svg{width:20px;height:20px}
  #food-dialog .food-bottom-nav{padding-top:4px}
  #food-dialog .food-bottom-nav button{height:51px;min-height:51px;gap:2px;padding:5px 6px}
  #food-dialog .food-swipe-hint{margin-top:5px;min-height:18px}
  #food-dialog[data-screen="cards"] .food-credit summary{padding-top:3px;padding-bottom:3px;min-height:24px}
  #food-group-dialog .swipe-deck .fg-card>img{height:clamp(180px,30dvh,240px)}
  #food-group-dialog[data-screen="voting"] .fg-content{padding-top:9px;padding-bottom:6px}
  #food-group-dialog[data-screen="voting"] .fg-progress{margin-top:3px;margin-bottom:7px}
  #food-group-dialog[data-screen="voting"] .swipe-deck{min-height:220px}
  #food-group-dialog[data-screen="voting"] .swipe-deck .fg-card>img{height:auto;min-height:144px}
  #food-group-dialog[data-screen="voting"] .swipe-deck .fg-card h2{font-size:22px!important;margin-top:10px!important;line-height:1.3}
  #food-group-dialog[data-screen="voting"] .swipe-deck .fg-card p{padding-bottom:12px}
  #food-group-dialog[data-screen="voting"] .swipe-hint{margin:1px 0 4px}
  #food-group-dialog[data-screen="voting"] .fg-credit summary{min-height:25px;padding:3px 0}
}
@media(max-width:380px){
  #food-dialog .food-head{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
  #food-dialog .food-content{padding-left:max(15px,env(safe-area-inset-left));padding-right:max(15px,env(safe-area-inset-right))}
  #food-dialog .food-filter-bar{gap:5px}
  #food-dialog .food-filter-bar .food-contexts{gap:2px}
  #food-dialog .food-filter-bar .food-contexts button{font-size:14px;padding-left:6px;padding-right:6px;min-width:44px}
  #food-dialog .food-preference-entry{min-width:58px;padding-left:7px;padding-right:7px;gap:4px}
  #food-dialog .food-preference-entry svg{width:14px;height:14px}
  #food-dialog .food-deck-heading h1{font-size:21px}
  #food-dialog .food-deck-count{padding:4px 7px}
  #food-dialog footer{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
  #food-dialog footer .food-actions{gap:8px}
  #food-dialog .food-bottom-nav{gap:6px}
  #food-dialog[data-screen="cards"] .food-author{max-width:124px}
  .swipe-stamp-left,.swipe-stamp-right{font-size:20px;top:22px;padding:8px 10px}
}
@media(max-width:760px) and (max-height:600px){
  #food-dialog .food-head{padding-top:calc(5px + env(safe-area-inset-top));padding-bottom:5px;min-height:58px}
  #food-dialog .food-content{padding-top:8px}
  #food-dialog .food-deck-heading{margin-bottom:4px}
  #food-dialog[data-screen="cards"] .swipe-deck{min-height:196px}
  #food-dialog[data-screen="cards"] .swipe-deck .food-photo{min-height:128px}
  #food-dialog .food-swipe-hint{display:none}
  #food-dialog .food-deck-count{font-size:12px}
}
@media(min-width:761px){
  #food-dialog .food-deck-heading{margin-top:0}
  #food-dialog .food-content{padding-top:19px}
  #food-dialog[data-screen="cards"] .swipe-deck .food-photo{height:clamp(225px,32dvh,330px)}
  #food-dialog[data-screen="cards"] .food-content{overflow-x:hidden}
  #food-group-dialog .swipe-deck .fg-card>img{height:clamp(215px,32dvh,310px)}
}
/* Readable ink for labels; lavender belongs to surfaces and accents. */
#food-dialog .food-brand small,#food-dialog .food-deck-heading p,#food-dialog .food-deck-count,#food-dialog .food-swipe-hint,#food-dialog[data-screen="cards"] .food-credit summary{color:#7b668b}
#food-dialog .food-filter-bar .food-contexts button,#food-dialog .food-preference-entry,#food-dialog[data-screen="cards"] .food-chips button,#food-dialog .food-utility button,#food-dialog .food-bottom-nav button{color:#796286}
#food-dialog .food-filter-bar .food-contexts button[aria-pressed="true"],#food-dialog .food-bottom-nav button[aria-current="page"]{color:#68478f}
#food-dialog .swipe-deck .food-caption p{color:#80648e}
#food-dialog footer .food-actions>button[data-cmd="skip"]{color:#80648e}
#food-dialog footer .food-actions>button[data-cmd="like"]{color:#76509a}
#food-dialog[data-screen="cards"] .food-notice{font-size:14px;color:#8a5f76}
#food-dialog #food-preferences-panel>p,#food-dialog #food-preferences-panel [data-say],#food-dialog #food-preferences-panel .food-chip{color:#80608f}
@media(prefers-reduced-motion:reduce){
  .picku-swipe-card{scroll-behavior:auto}
  .swipe-stamp-left,.swipe-stamp-right{transform:none}
}
