/* Small, framework-free components using the application's existing theme tokens. */
.meal-share-dialog{width:min(900px,calc(100% - 24px));max-height:90dvh;border:1px solid var(--line,#ddd);border-radius:24px;padding:24px;background:var(--surface,#fff);color:var(--text,#191919);box-shadow:0 24px 100px #0004}.meal-share-dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}.social-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.social-dialog-top h2{margin:0;font-size:24px;letter-spacing:-.6px}.social-close{border:1px solid var(--line,#ddd);border-radius:50%;width:44px;height:44px;background:var(--surface,#fff);color:inherit;font-size:26px}.social-share-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px}.meal-card-preview{align-self:start;border-radius:20px;overflow:hidden;box-shadow:0 8px 24px #0001}.meal-card-preview svg{width:100%;height:auto;display:block}.social-share-controls label{display:grid;gap:8px;font-size:13px;font-weight:650;margin-bottom:16px}.social-share-controls input,.social-share-controls select,.social-share-controls textarea{width:100%;min-height:44px;border:1px solid var(--line,#ddd);border-radius:12px;background:var(--surface,#fff);color:inherit;padding:10px 12px;font:inherit}.social-share-controls textarea{min-height:140px}.social-muted,.social-status,.social-share-controls details{font-size:13px;line-height:1.6}.social-muted{color:var(--muted,#595959)}.social-share-buttons{display:flex;flex-wrap:wrap;gap:8px}.social-share-buttons button{min-height:44px;padding:10px 15px;border:1px solid var(--line,#ddd);border-radius:999px;background:var(--surface,#fff);color:inherit;font-weight:650}.social-share-buttons button:first-child{background:var(--text,#191919);color:var(--surface,#fff)}.social-share-buttons button[hidden]{display:none}.social-share-controls a{text-decoration:underline}.social-share-controls summary{min-height:44px;padding:12px 0;cursor:pointer}.dining-rating{font-size:12px;margin:12px 0 2px;color:var(--muted,#595959);position:relative;z-index:2}.rating-summary{display:block;font-weight:650}.dining-rating fieldset{padding:0;border:0;margin:12px 0 0}.dining-rating legend{font-size:12px}.rating-scope{font-weight:400}.rating-stars{display:flex;gap:4px;margin-top:3px}.rating-stars label{display:grid;position:relative;place-items:center;width:44px;height:44px;border-radius:10px;cursor:pointer;background:var(--surface-soft,#f3f3f3)}.rating-stars input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.rating-stars span{font-size:28px;color:var(--muted,#666)}.rating-stars .is-filled span{color:#a7460c}[data-theme=dark] .rating-stars .is-filled span{color:#ffbe70}.rating-stars label:focus-within{outline:3px solid #bc6023;outline-offset:2px}.rating-status{display:block;line-height:1.5;margin-top:5px}.social-share-buttons button,.social-close,.rating-stars label{transition:transform 120ms ease,box-shadow 120ms ease}.social-share-buttons button:active,.social-close:active,.rating-stars label:active{transform:scale(.97)}.social-share-buttons button:disabled{opacity:.6;cursor:wait}@media(hover:hover){.social-share-buttons button:hover,.social-close:hover,.rating-stars label:hover{box-shadow:0 3px 10px #0002}}@media(max-width:600px){.meal-share-dialog{padding:18px}.social-share-layout{grid-template-columns:1fr}.meal-card-preview{max-width:340px;margin:0 auto;width:100%}.social-dialog-top h2{font-size:21px}}@media(prefers-reduced-motion:reduce){.social-share-buttons button,.social-close,.rating-stars label{transition:none!important;transform:none!important}.meal-share-dialog::backdrop{backdrop-filter:none}}

/* Share UX: three visible, selectable card previews with automatic copy. */
.share-icon-button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid var(--line,#ddd);border-radius:50%;background:var(--surface,#fff);color:var(--green,#174c37);box-shadow:0 1px 5px #0002;cursor:pointer;position:relative;z-index:4}
.share-icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.share-icon-button:focus-visible{outline:3px solid var(--focus,#d07631);outline-offset:2px}
.food-actions{gap:7px;align-items:center}
.food-actions .share-icon-button{width:42px;height:42px;min-width:42px;min-height:42px;flex-basis:42px}
.food-grid>.food.food-compact:has(>.representative-food-photo) .food-actions,.food-grid>.food.food-compact:has(>.sample-food-photo) .food-actions{height:auto;min-width:44px;display:flex;flex-direction:column;gap:6px}
.food-grid>.food.food-compact:has(>.representative-food-photo) .food-actions .share-icon-button,.food-grid>.food.food-compact:has(>.sample-food-photo) .food-actions .share-icon-button{background:#fff;color:#174c37;box-shadow:0 1px 5px #0003}
.venue{position:relative}
.venue-share-card-button{position:absolute;top:10px;right:10px;box-shadow:0 2px 8px #0003}
.store-topbar .venue-share-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--line);background:var(--surface-soft);color:var(--text);box-shadow:none}
.store-topbar.is-collapsed .venue-share-button{background:var(--surface-soft);color:var(--text)}
.meal-share-dialog{width:min(980px,calc(100% - 20px));max-height:calc(100dvh - 20px);overflow:auto;padding:clamp(16px,3vw,28px);}
.social-dialog-top{align-items:flex-start;margin-bottom:18px}
.social-dialog-top h2{padding:0;margin:3px 0 0;font-size:clamp(20px,3vw,28px);line-height:1.15;overflow-wrap:anywhere}
.share-eyebrow{margin:0;color:var(--muted);font-size:11px;font-weight:750;letter-spacing:1.3px;text-transform:uppercase}
.share-dialog-grid{display:grid;grid-template-columns:minmax(250px,1.08fr) minmax(220px,.92fr);align-items:start;gap:clamp(16px,3vw,28px)}
.share-preview-pane{min-width:0}
.share-card-live{width:min(100%,420px);margin:0 auto;border-radius:18px;overflow:hidden;background:var(--surface-soft);box-shadow:0 6px 22px #0002}
.share-card-live svg{display:block;width:100%;height:auto}
.share-design-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:min(100%,420px);margin:10px auto 0}
.share-design-option{display:grid;grid-template-rows:auto auto;gap:6px;min-width:0;padding:7px;border:2px solid var(--line);border-radius:13px;background:var(--surface);color:var(--text);font:inherit;font-size:11px;font-weight:700;line-height:1.2;text-align:center;cursor:pointer}
.share-design-option[aria-checked=true]{border-color:var(--green);box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 18%,transparent)}
.share-design-option:focus-visible{outline:3px solid var(--focus,#d07631);outline-offset:2px}
.share-design-thumb{display:block;overflow:hidden;border-radius:8px;background:var(--surface-soft)}
.share-design-thumb svg{display:block;width:100%;height:auto}
.social-share-controls{min-width:0;padding:8px 0}
.social-share-controls .social-muted{margin:0 0 16px}
.social-share-controls .social-share-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0}
.social-share-controls .social-share-buttons button{min-width:0;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);font-size:14px}
.social-share-controls .social-share-buttons button[data-action=native]{grid-column:1/-1;border-color:var(--green);background:var(--green);color:#fff;font-size:16px}
.social-share-controls .social-status{min-height:24px;margin:12px 0;color:var(--text);overflow-wrap:anywhere}
.share-link-note{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
@media(max-width:640px){.meal-share-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:16px;border-radius:20px}.share-dialog-grid{grid-template-columns:minmax(0,1fr);gap:14px}.share-card-live{width:min(100%,300px)}.share-design-picker{width:min(100%,360px)}.share-design-option{padding:6px;font-size:10px}.social-share-controls{padding:0}.social-share-controls .social-muted{margin-bottom:11px}.social-share-controls .social-share-buttons{grid-template-columns:1fr 1fr}.social-share-controls .social-share-buttons button{min-height:46px}.social-share-controls .social-status{margin:8px 0;min-height:20px}}
@media(max-width:380px){.share-design-picker{gap:5px}.share-design-option{padding:5px}.share-card-live{width:min(100%,270px)}}
@media(prefers-reduced-motion:reduce){.share-design-option,.share-icon-button{transition:none!important;transform:none!important}}

/* Minimal cutout share card; details expand only in the live app dialog. */
.meal-share-dialog{width:min(760px,calc(100% - 24px));max-height:min(90dvh,920px);padding:clamp(16px,3vw,26px);border-radius:22px;overflow:auto}
.social-dialog-top{align-items:center;margin-bottom:14px}
.social-dialog-top h2{max-width:calc(100% - 56px);font-size:clamp(20px,3vw,26px);line-height:1.15}
.share-dialog-grid{grid-template-columns:minmax(0,1fr) minmax(180px,.55fr);gap:20px}
.share-card-live{width:min(100%,390px);border-radius:16px;box-shadow:0 3px 14px #253a3014}
.share-expandable{width:min(100%,390px);margin:10px auto 0;border-top:1px solid var(--line);color:var(--text)}
.share-expandable summary{min-height:44px;padding:12px 2px;cursor:pointer;font-size:14px;font-weight:650;list-style:none}
.share-expandable summary::-webkit-details-marker{display:none}
.share-expandable summary::after{content:'+';float:right;color:var(--muted);font-size:18px;line-height:1}
.share-expandable[open] summary::after{content:'−'}
.share-expanded-content{padding:0 2px 14px;color:var(--muted);font-size:13px;line-height:1.5}
.share-expanded-content p{margin:0 0 8px}
.share-expanded-content ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.share-expanded-content li{display:grid;gap:2px}
.share-expanded-content li strong{color:var(--text)}
.share-caveat{font-size:12px}
.social-share-controls{align-self:center;padding:0}
.social-share-controls .social-muted{margin:0 0 12px;font-size:12px}
.social-share-controls .social-share-buttons{display:grid;grid-template-columns:1fr;gap:8px}
.social-share-controls .social-share-buttons button{min-height:44px;border-radius:999px;font-size:14px}
.social-share-controls .social-share-buttons button[data-action=native]{grid-column:auto;font-size:14px}
.social-share-controls .social-status{margin:10px 0 0;min-height:20px;font-size:12px}
@media(max-width:640px){.meal-share-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:14px;border-radius:18px}.social-dialog-top{margin-bottom:10px}.share-dialog-grid{grid-template-columns:minmax(0,1fr);gap:10px}.share-card-live{width:min(100%,330px)}.share-expandable{width:min(100%,330px)}.social-share-controls{padding:4px 0 0}.social-share-controls .social-share-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.social-share-controls .social-share-buttons button{min-height:44px;padding:8px 7px;font-size:12px}.social-share-controls .social-share-buttons button[data-action=native]{grid-column:auto;font-size:12px}}
@media(max-width:370px){.social-share-controls .social-share-buttons{grid-template-columns:1fr}.social-share-controls .social-share-buttons button{font-size:14px}}
@media(prefers-reduced-motion:reduce){.share-expanded-content{animation:none!important;transition:none!important}}

/* Content choices share one quiet visual system; the exported image matches the preview. */
.share-design-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,390px);gap:6px;margin:14px auto}
.share-design-picker[hidden]{display:none}
.share-design-option{min-height:44px;padding:8px 6px;font-size:13px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--text)}
.share-design-option[aria-checked=true]{background:var(--accent-soft,#dceade);border-color:var(--accent,#315b43);color:var(--text);box-shadow:none}
.share-card-live{border-radius:10px;overflow:hidden}
@media(max-width:640px){.share-design-picker{width:min(100%,330px)}}
/* A compact visible control inside a full touch target. */
.share-icon-button,.food-actions .share-icon-button,.store-topbar .venue-share-button,.store-topbar.is-collapsed .venue-share-button,.food-grid>.food.food-compact:has(>.representative-food-photo) .food-actions .share-icon-button,.food-grid>.food.food-compact:has(>.sample-food-photo) .food-actions .share-icon-button{width:44px;height:44px;min-width:44px;min-height:44px;flex-basis:44px;padding:0;border:0;background:transparent;color:var(--text,#183d2b);box-shadow:none}
.share-icon-button::before{content:'';position:absolute;inset:8px;border-radius:50%;background:var(--surface,#fff);border:1px solid var(--line,#dce3dc)}
.share-icon-button svg{position:relative;width:16px;height:16px;stroke-width:1.6}
.share-icon-button:hover::before{background:var(--surface-soft,#eaf0e9)}
.share-design-option:disabled{opacity:.45;cursor:not-allowed}
.meal-share-dialog{box-sizing:border-box;background:var(--surface,#fff);color:var(--text,#183d2b)}
.social-close{display:grid;place-items:center;flex:0 0 44px;padding:0;line-height:1;cursor:pointer}
.social-close:focus-visible,.social-share-buttons button:focus-visible{outline:3px solid var(--focus,#d07631);outline-offset:2px}
[data-theme=dark] .share-design-option[aria-checked=true]{background:var(--surface-soft,#253c2e);border-color:var(--green,#acd0b7);color:var(--text,#f3f5f0)}
.social-share-controls .social-share-buttons button[data-action=native]{background:var(--green,#315b43);border-color:var(--green,#315b43);color:#fff}
.venue-card-actions>.share-icon-button.venue-share-card-button{width:auto;min-width:44px;min-height:44px;padding:0 6px;gap:4px;border:0;background:transparent;box-shadow:none;font-size:12px}
.venue-card-actions>.share-icon-button.venue-share-card-button::before{display:none}
.venue-card-actions>.share-icon-button.venue-share-card-button svg{width:15px;height:15px}

/* Local previews use the same portrait composition as hosted crawler images. */
.link-preview-dialog .share-card-live{aspect-ratio:3/4;min-height:0;display:grid;place-items:center;border-radius:16px;overflow:hidden}.link-preview-dialog .share-card-live img{display:block;width:100%;height:auto;aspect-ratio:3/4}.link-preview-dialog .share-card-live>p{padding:18px;text-align:center;font-size:13px;color:var(--muted)}

.link-preview-dialog .share-card-live{width:min(100%,330px,calc((100dvh - 340px)*.75));margin-inline:auto;touch-action:pan-y}.link-preview-dialog .share-card-live:focus-visible{outline:2px solid var(--text);outline-offset:3px}.link-preview-dialog .share-look-picker{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 0 8px}.share-look-option{min-height:44px;min-width:80px;flex:1;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:12px;scroll-snap-align:center}.share-look-option[aria-checked=true]{border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text)}.share-look-option:focus-visible{outline:2px solid var(--text);outline-offset:2px}.share-look-swatch{display:block;width:18px;height:24px;border-radius:5px;border:1px solid #617067;flex:none}.share-look-option[data-palette=cream] .share-look-swatch{background:#faf9f3}.share-look-option[data-palette=forest] .share-look-swatch{background:#174c37}.share-look-option[data-palette=warm] .share-look-swatch{background:#fff1db}
/* Keep the selected portrait fully visible above the actions at compact heights. */
.link-preview-dialog .share-card-live{width:min(100%,330px,calc((min(58dvh,600px) - 150px)*.75))}
.link-preview-dialog .social-share-controls .social-status{position:static;inset:auto;min-height:0;margin:6px 0 0;padding:0;border-radius:0;background:transparent;text-align:center}
.link-preview-dialog .social-share-controls .social-status:empty{display:none}

/* The device preview scrolls independently; the action row never covers credits. */
dialog.meal-share-dialog.link-preview-dialog[open]{display:flex;flex-direction:column;width:min(560px,calc(100% - 24px));max-height:min(94dvh,940px);overflow:hidden}
.link-preview-dialog>.social-dialog-top{flex:none}
.link-preview-dialog>.share-dialog-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 0 12px;scrollbar-gutter:stable}
.link-preview-dialog>.social-share-controls{position:static;flex:none;align-self:stretch;margin:0;padding:12px 0 0;border-top:1px solid var(--line);background:var(--surface);z-index:auto}
.link-preview-dialog .share-card-live{width:min(100%,330px,max(150px,calc((min(78dvh,940px) - 340px)*.75)));aspect-ratio:3/4}
.link-preview-dialog .share-card-live>svg{display:block;width:100%;height:auto;aspect-ratio:3/4}
.link-preview-dialog .share-expandable{width:min(100%,330px);margin-bottom:4px}
.link-preview-dialog .social-share-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.link-preview-dialog .social-share-buttons button{font-size:13px;padding:8px;min-height:44px}
.link-preview-dialog .social-share-controls .social-muted{margin-bottom:8px}
