/* Image-first, bounded force simulation; the camera moves, the settled foods do not. */
.eat-plate .ep-food-canvas{overflow:hidden!important;touch-action:none!important;cursor:grab;overscroll-behavior:contain}
.eat-plate .ep-food-canvas:active{cursor:grabbing}
.eat-plate .ep-food-canvas .ep-food-label{display:none!important}
.eat-plate .ep-food-canvas :is(.ep-orbit-canvas,.ep-zoom-window){will-change:transform;transition:none;contain:layout style}
.eat-plate .ep-food-canvas :is(.ep-orbit-canvas,.ep-zoom-window)::after{display:none}
.eat-plate .ep-canvas-tools{position:absolute;right:8px;top:7px;z-index:7;display:flex;gap:5px;pointer-events:auto}
.eat-plate .ep-canvas-tools button{display:grid;place-items:center;min-width:36px;height:36px;padding:3px 8px;border:1px solid #8e9da4;border-radius:10px 14px 12px 9px;background:#f9fcfde8;color:#536d79;font:16px system-ui,sans-serif}
.eat-plate .ep-food-tooltip{position:absolute;z-index:9;width:max-content;max-width:min(280px,calc(100% - 16px));box-sizing:border-box;padding:7px 10px;border:1px solid #92a4ab;border-radius:8px 12px 9px 7px;background:#fffefa;color:#283b44;font-size:16px;line-height:1.25;pointer-events:none;box-shadow:0 2px 7px #263b4418}
.eat-plate .ep-food-description{display:block;margin-top:4px;font-size:.875rem;font-weight:400;overflow-wrap:anywhere}
.eat-plate .ep-food-tooltip[hidden]{display:none!important}
.eat-plate .ep-food-canvas:focus-visible{outline:2px solid #3289c7;outline-offset:-3px}
.eat-plate .ep-food-canvas :is(.ep-ingredient,.ep-zoom-circle,.ep-pair-choice):focus-visible{outline:2px solid #3289c7;outline-offset:5px}
@media(pointer:coarse){.eat-plate .ep-canvas-tools button{min-width:44px;min-height:44px}}

.eat-plate .ep-stage.ep-exploring>.ep-canvas-tools,.eat-plate .ep-stage.ep-exploring>.ep-food-tooltip{display:none!important}

.eat-plate .ep-food-canvas,.eat-plate .ep-food-canvas img{-webkit-touch-callout:none;user-select:none}

/* WebKit needs its prefixed selection rule on every rendered food descendant. */
html body[data-view=eat] .eat-plate .ep-food-canvas,html body[data-view=eat] .eat-plate .ep-food-canvas *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-tap-highlight-color:transparent!important}
html body[data-view=eat] .eat-plate .ep-food-canvas img{-webkit-user-drag:none!important;pointer-events:none}
html.minimal-ui body[data-view=eat] :is(.ep-search-dock,.ep-search,.ep-query,.ep-search-dock button,.ep-photo-trigger,.ep-query input,.ep-plan-tools,.ep-facets button,.ep-zoom-path button,.ep-canvas-tools button,.minimal-header .minimal-menu,.minimal-header .minimal-matrix,.minimal-header .view-matrix-toggle){background:transparent!important;background-image:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.minimal-ui body[data-view=eat] :is(.ep-query,.ep-search>[data-search-intent],.ep-facets button,.ep-zoom-path button,.ep-photo-trigger,.minimal-header .minimal-menu,.minimal-header .view-matrix-toggle)::before{background-color:transparent!important;background-image:none!important;box-shadow:none!important}

html.minimal-ui body[data-view=eat] :is(.ep-facet-icon,.ep-plan-reset,.ep-plan-share,.ep-plan-tools button,.ep-zoom-path button,.ep-canvas-tools button){background:transparent!important;background-image:none!important;box-shadow:none!important}

/* The capture surface has a high-specificity global rule; scope these overrides to Eat. */
html.minimal-ui body[data-view=eat] #personalView .eat-plate :is(.ep-search-dock,.ep-query,.ep-search [data-search-intent],.ep-query input,.ep-photo-trigger,.ep-plan-tools button,.ep-facets button,.ep-zoom-path button,.ep-canvas-tools button){background:transparent!important;background-image:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.minimal-ui body[data-view=eat] #personalView .eat-plate :is(.ep-query,.ep-search [data-search-intent],.ep-plan-tools button,.ep-facets button,.ep-zoom-path button)::before,html.minimal-ui body[data-view=eat] #personalView .eat-plate :is(.ep-query,.ep-search [data-search-intent],.ep-plan-tools button,.ep-facets button,.ep-zoom-path button)::after{background-color:transparent!important;background-image:none!important;box-shadow:none!important}
html.minimal-ui body[data-view=eat] #personalView .eat-plate :is(.ec-dock,.ec-search,.ec-field,.ec-search-icon){background:transparent!important;background-image:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.minimal-ui body[data-view=eat] #personalView .eat-plate :is(.ec-field,.ec-search-icon)::before,html.minimal-ui body[data-view=eat] #personalView .eat-plate :is(.ec-field,.ec-search-icon)::after{background:transparent!important;background-image:none!important;box-shadow:none!important}
html.minimal-ui body[data-view=eat] :is(.minimal-header .minimal-menu,.minimal-header .view-matrix-toggle,.ep-plan-tools,.ep-zoom-path) .hand-control-circle{fill:transparent!important}

/* Eat owns this surface even when embedded without a body view attribute.
   Keep the handmade outline, but never paint a panel over the canvas. */
html.minimal-ui body #personalView .eat-plate :is(.ep-search-dock,.ep-search,.ep-query,.ep-query input,.ep-photo-trigger,.ep-search [data-search-intent],.ec-dock,.ec-search,.ec-field){background-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.minimal-ui body #personalView .eat-plate.eat-plate :is(.ep-query,.ec-field).hand-field-edge{border-color:transparent!important;border-radius:999px!important;background-image:var(--hand-field-image)!important;background-size:100% 100%!important;background-repeat:no-repeat!important;background-origin:border-box!important}
html.minimal-ui body #personalView .eat-plate .ep-search-dock::before,html.minimal-ui body #personalView .eat-plate .ep-query::before{background:transparent!important;box-shadow:none!important}
.eat-plate :is(.ep-plan-details,.ep-log,.ep-web-panel){padding-bottom:var(--ep-dock-clearance,110px)}

/* Eat control backgrounds are always transparent, including root/subpages.
   Keep this invariant independent of the body's current view marker. */
html.minimal-ui body #personalView .eat-plate.eat-plate.eat-plate :is(.ep-workflow,.ep-plan-tools,.ep-prepare-options,.ep-zoom-path,.ep-search-dock,.ec-dock){background:transparent!important;background-image:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.minimal-ui body #personalView .eat-plate.eat-plate.eat-plate :is(.ep-search-dock,.ec-dock)::before,html.minimal-ui body #personalView .eat-plate.eat-plate.eat-plate :is(.ep-search-dock,.ec-dock)::after{content:none!important;background:transparent!important;box-shadow:none!important}
html.minimal-ui body[data-view=eat] .minimal-header{background:transparent!important;background-image:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* Paint to the physical viewport, under transparent controls. The usable frame
   between controls is a camera anchor, never a clipping rectangle. */
.eat-plate .ep-stage{container-type:normal;overflow:visible;z-index:0}
.eat-plate .ep-food-canvas:not(.ep-browse-outgoing){position:fixed!important;inset:auto!important;left:var(--ep-canvas-left,0px)!important;top:var(--ep-canvas-top,0px)!important;width:var(--ep-canvas-width,100vw)!important;height:var(--ep-canvas-height,100dvh)!important;min-height:0!important;overflow:hidden!important;background:transparent!important}
.eat-plate :is(.ep-workflow,.ep-plan-tools,.ep-prepare-options,.ep-excluded){position:relative;z-index:10}

/* Explicit paint layers: artwork stays behind every transparent control surface,
   including fixed canvases and fading snapshots on WebKit. */
html.minimal-ui body[data-view=eat] main>.minimal-header{z-index:100!important}
html.minimal-ui body[data-view=eat] #personalView .eat-plate .ep-stage{z-index:0!important;isolation:isolate}
html.minimal-ui body[data-view=eat] #personalView .eat-plate .ep-food-canvas{z-index:0!important}
html.minimal-ui body[data-view=eat] #personalView .eat-plate :is(.ep-workflow,.ep-plan-tools,.ep-prepare-options,.ep-excluded){position:relative;z-index:20!important}
html.minimal-ui body[data-view=eat] #personalView .eat-plate .ep-search-dock{z-index:100!important}
html.minimal-ui body[data-view=eat] #personalView .eat-plate .ep-zoom-path{z-index:20!important}

/* Owner update: Views header is the top layer; only bottom control pills get wash. */
html.minimal-ui body[data-view=eat] .minimal-header{z-index:10000!important}
/* The navigation row is transparent space except for its actual controls. */
html.minimal-ui body[data-view=eat] #personalView .eat-plate .ep-zoom-path{pointer-events:none}
html.minimal-ui body[data-view=eat] #personalView .eat-plate .ep-zoom-path button{pointer-events:auto}
html.minimal-ui body[data-view=eat] #personalView .eat-plate .ep-web-result>.row-actions{width:180px!important;min-width:180px;flex-wrap:nowrap;overflow:visible}
html.minimal-ui body[data-view=eat] #personalView .eat-plate .ep-web-result>.row-actions>button{display:flex!important;width:60px!important;min-width:60px!important;max-width:60px;flex:0 0 60px!important;visibility:visible!important;opacity:1}
html.minimal-ui body[data-view=eat] #personalView .eat-plate .ep-web-result.actions-open>.swipe-front{transform:translateX(-180px)!important}

/* Owner update November 20: opaque Views header and compact boxed meal controls. */
html.minimal-ui body[data-view=eat] .minimal-header{background:#fff!important;background-image:none!important}
html.minimal-ui body #personalView .eat-plate.eat-plate.eat-plate .ep-workflow{display:grid!important;gap:8px;margin-bottom:8px;background:transparent!important}
html.minimal-ui body #personalView .eat-plate.eat-plate.eat-plate .ep-workflow button{min-height:46px;padding:8px 4px;border:1.5px solid #819197!important;border-radius:11px 8px 10px 7px!important;background:#fff!important;color:#26383e!important;box-shadow:none!important}
html.minimal-ui body #personalView .eat-plate.eat-plate.eat-plate .ep-workflow button[aria-pressed=true]{background:#ff710b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#dc620c!important}
html.minimal-ui body #personalView .eat-plate.eat-plate.eat-plate .ep-plan-tools:not([hidden]){display:flex!important;gap:9px;min-height:46px;margin:0 auto 8px}
html.minimal-ui body #personalView .eat-plate.eat-plate.eat-plate .ep-plan-tools :is(.ep-plan-reset,.ep-expand,.ep-preferences){display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;min-height:42px;padding:8px;border:1px solid #85a8b5;border-radius:11px 8px 12px 9px;background:#cbe8ef!important;color:#365e6c!important;font-size:24px;box-sizing:border-box}
html.minimal-ui body #personalView .eat-plate.eat-plate.eat-plate .ep-plan-tools .ep-preferences{margin-left:auto}
.eat-plate .ep-plan-tools svg{width:24px;height:24px}
.eat-plate .ep-canvas-tools,.eat-plate .ep-zoom-reset{display:none!important}
.eat-plate .ep-preferences-page{width:min(100%,760px);margin:auto;padding:0 0 var(--ep-dock-clearance,120px);position:relative;z-index:30;background:#f4f7f8;box-sizing:border-box}
.eat-plate .ep-preferences-nav{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.eat-plate .ep-preferences-nav h2{font-size:1.25rem;margin:0}
.eat-plate :is(.ep-preferences-nav button,.ep-cuisine-back){min-width:44px;min-height:44px;font-size:28px;border:0;background:transparent}
.eat-plate .ep-preferences-page .ep-facets{display:grid!important;overflow:visible;gap:8px;width:100%;margin:0}
html.minimal-ui body[data-view=eat] #personalView .eat-plate .ep-preferences-page .ep-facets button{display:flex;flex-direction:row;align-items:center;gap:12px;min-width:0;min-height:64px;width:100%;padding:12px 14px;text-align:left;font-size:1rem;font-weight:400;text-transform:none;background:#fff!important;border:1px solid #d4dfe2;border-radius:9px 12px 8px 11px;box-sizing:border-box}
.eat-plate .ep-preference-name{flex:1}
.eat-plate .ep-preference-value{color:#60757d;font-size:.9rem}
.eat-plate .ep-preferences-page .ep-facet-icon{flex:0 0 30px;width:30px;height:30px}
.eat-plate .ep-facet-options{display:grid;gap:8px}
.eat-plate .ep-facet-options button{width:100%;min-height:48px;text-align:left}
.eat-plate .ep-cuisine-back{position:relative;z-index:5}
.eat-plate .ep-cuisine-clear{position:absolute;right:0;top:0;z-index:5;min-width:44px;min-height:44px;font-size:26px;background:#fff;border:1px solid #b1c7ce;border-radius:10px 8px 12px 9px}
.eat-plate .ep-cuisine-page{position:relative}
.eat-plate .ep-preference-value{max-width:48%;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:right}
.eat-plate .ep-allergen-toggle{display:flex;align-items:center;gap:12px}
.eat-plate .ep-allergen-toggle::before{content:'';width:22px;height:22px;flex:none;border:1.5px solid #819197;border-radius:5px 7px 6px 5px;background:#fff}
.eat-plate .ep-allergen-toggle[aria-checked=true]::before{content:'✓';display:grid;place-items:center;background:#c6e8f0;color:#354d57}
.eat-plate .ep-allergen-add{display:flex;gap:8px;margin:12px 0}
.eat-plate .ep-allergen-add input{flex:1;min-width:0;min-height:44px;padding:10px 14px;border:1.5px solid #819197;border-radius:999px;background:rgba(247,247,247,.96)}
.eat-plate .ep-allergen-add button{width:44px;border:1px solid #819197;border-radius:50%;background:#c6e8f0}

.eat-plate .ep-dislikes-toggle{display:flex;align-items:center;gap:8px;min-height:44px}
.eat-plate .ep-dislikes-search{margin-block:8px 16px}

.ep-preference-art{object-fit:contain;filter:grayscale(1) contrast(1.25);display:block}
.ep-allergen-art{position:relative}
.ep-allergen-art svg{position:absolute;right:2px;bottom:2px;width:18px!important;height:18px!important;background:#fff;border-radius:3px}
