/* Photo-first Friends feed. Scoped to the existing app and shared by both clients. */
body:has(#cef1.cef-premium),
#item-17874127320:has(#cef1.cef-premium) { background:#0b1014!important; background-image:none!important; }
#item-17874127320:has(#cef1.cef-premium) > .ba-section-items > .ba-row-wrapper.ba-container { width:min(100%,632px)!important; max-width:632px!important; }
#cef1.cef-premium {
    --cf-bg:#0b1014; --cf-surface:#131a20; --cf-line:#242c33;
    --cf-text:#f5f6f7; --cf-muted:#939da7; --cf-orange:#ff8a36; --cf-heart:#ff4f70;
    background:var(--cf-bg)!important; color:var(--cf-text)!important;
    border:0!important; border-radius:0!important; box-shadow:none!important; padding:0!important;
    font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Arial,sans-serif!important;
}
#cef1.cef-premium * { font-family:inherit; }
#cef1.cef-premium.cef1-v37 .cef1-header { padding:18px 18px 14px!important; gap:12px!important; }
#cef1.cef-premium.cef1-v37 .cef1-title { font-size:27px!important; font-weight:700!important; letter-spacing:-.8px!important; text-shadow:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-header-actions { gap:8px!important; }
#cef1.cef-premium.cef1-v37 .cef1-header-btn { min-width:44px!important; min-height:44px!important; color:var(--cf-text)!important; box-shadow:none!important; }
#cef1.cef-premium.cef1-v37 #cef1-friends-list { gap:14px!important; padding:0 18px 18px!important; scroll-padding-inline:18px; scrollbar-width:none; }
#cef1.cef-premium #cef1-friends-list::-webkit-scrollbar { display:none; }
#cef1.cef-premium.cef1-v37 .cef37-story { flex:0 0 76px!important; width:76px!important; min-width:76px!important; max-width:76px!important; gap:8px!important; }
#cef1.cef-premium.cef1-v37 .cef37-story .cef1-avatar { box-sizing:border-box!important; width:72px!important; height:72px!important; min-width:72px!important; min-height:72px!important; flex:0 0 72px!important; padding:4px!important; border:2px solid #49545f!important; background:var(--cf-surface)!important; box-shadow:none!important; font-size:22px!important; font-weight:600!important; }
#cef1.cef-premium.cef1-v37 .cef37-story .cef1-avatar img { border:3px solid var(--cf-bg)!important; box-sizing:border-box!important; }
#cef1.cef-premium.cef1-v37 .cef37-story.cef37-has-story.cef37-unseen .cef1-avatar { border:2px solid transparent!important; background:linear-gradient(var(--cf-bg),var(--cf-bg)) padding-box,linear-gradient(35deg,#ffd66c,#ff8536 35%,#ed3a80 75%,#b84dff) border-box!important; }
#cef1.cef-premium.cef1-v37 .cef37-story.cef37-has-story.cef37-seen .cef1-avatar { border-color:#525c66!important; }
#cef1.cef-premium.cef1-v37 .cef37-story.cef37-add-story .cef1-avatar { border:1px dashed #55616c!important; background:var(--cf-surface)!important; color:var(--cf-text)!important; }
#cef1.cef-premium.cef1-v37 .cef37-story-name { max-width:76px!important; font-size:12px!important; font-weight:400!important; color:#cdd2d8!important; }
#cef1.cef-premium.cef1-v37 #cef1-main > .cef1-tabs { width:100%!important; margin:0!important; padding:0 18px!important; box-sizing:border-box!important; background:var(--cf-bg)!important; border:0!important; border-bottom:1px solid var(--cf-line)!important; box-shadow:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-tab { min-height:46px!important; font-size:13px!important; font-weight:600!important; background:none!important; color:var(--cf-muted)!important; }
#cef1.cef-premium.cef1-v37 .cef1-tab.cef1-active { color:var(--cf-text)!important; border-bottom-color:var(--cf-orange)!important; }
#cef1.cef-premium.cef1-v37 #cef1-feed-view { padding-bottom:0!important; }
#cef1.cef-premium.cef1-v37 #cef1-feed-list { gap:0!important; padding:0 0 calc(110px + env(safe-area-inset-bottom))!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-card { width:100%!important; max-width:600px!important; margin:0 auto!important; padding:0 0 18px!important; border:0!important; border-bottom:1px solid var(--cf-line)!important; border-radius:0!important; background:var(--cf-bg)!important; box-shadow:none!important; overflow:hidden!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-head { min-height:66px!important; padding:10px 16px!important; box-sizing:border-box!important; }
#cef1.cef-premium.cef1-v37 .cef37-feed-person { min-height:44px!important; gap:11px!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-head .cef1-avatar { width:38px!important; height:38px!important; min-width:38px!important; flex:0 0 38px!important; border:1px solid #424d57!important; background:#202a33!important; color:#e1e6eb!important; box-shadow:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-name { font-size:14px!important; font-weight:600!important; line-height:1.4!important; overflow-wrap:anywhere!important; color:var(--cf-text)!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-time { font-size:11px!important; font-weight:400!important; color:var(--cf-muted)!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-media { width:100%!important; margin:0!important; border:0!important; border-radius:0!important; aspect-ratio:1!important; background:var(--cf-surface)!important; box-shadow:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-media::after { display:none!important; content:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-image { width:100%!important; height:100%!important; aspect-ratio:auto!important; border-radius:0!important; background:var(--cf-surface)!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-image img { display:block; width:100%!important; height:100%!important; object-fit:cover!important; border-radius:0!important; pointer-events:none; -webkit-user-drag:none; }
#cef1.cef-premium.cef1-v37 .cef1-feed-image:not(:has(img)),
#cef1.cef-premium.cef1-v37 .cef1-feed-image:has(img[style*="display: none"]) { display:flex!important; align-items:center; justify-content:center; }
#cef1.cef-premium.cef1-v37 .cef1-feed-image:not(:has(img))::after,
#cef1.cef-premium.cef1-v37 .cef1-feed-image:has(img[style*="display: none"])::after { content:""; width:40px; height:32px; border:1px solid #636a76; border-radius:4px; background:linear-gradient(145deg,transparent 55%,#444a54 56%,#444a54 70%,transparent 71%); opacity:.5; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body { display:flex!important; flex-direction:column!important; gap:0!important; padding:3px 16px 0!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body > .cef37-actions { order:0!important; padding:0!important; margin:0 0 2px!important; border:0!important; gap:6px!important; }
#cef1.cef-premium.cef1-v37 .cef37-actions .cef37-icon-button { width:44px!important; height:46px!important; padding:9px!important; color:var(--cf-text)!important; border:0!important; border-radius:12px!important; background:transparent!important; transition:transform .16s ease,color .16s ease!important; }
#cef1.cef-premium.cef1-v37 .cef37-actions .cef37-icon,
#cef1.cef-premium.cef1-v37 .cef37-actions .cef37-icon-button svg { width:26px!important; height:26px!important; }
#cef1.cef-premium.cef1-v37 .cef37-actions .cef37-icon-button:first-child { margin-left:-9px!important; }
#cef1.cef-premium.cef1-v37 .cef37-actions .cef37-icon-button:last-child { margin-left:auto!important; margin-right:-9px!important; }
#cef1.cef-premium.cef1-v37 .cef37-actions .cef37-icon-button:active { transform:scale(.88)!important; }
#cef1.cef-premium.cef1-v37 .cef37-actions .cef37-like.cef37-liked { color:var(--cf-heart)!important; }
#cef1.cef-premium.cef1-v37 .cef37-like.cef37-liked svg { fill:currentColor!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-reaction-bar { order:1!important; margin:0 0 5px!important; }
#cef1.cef-premium.cef1-v37 .cef1-reaction-summary { gap:8px!important; }
#cef1.cef-premium.cef1-v37 .cef1-reaction-total { color:var(--cf-text)!important; font-size:12px!important; font-weight:600!important; }
#cef1.cef-premium.cef1-v37 .cef1-reactor-stack:empty,
#cef1.cef-premium.cef1-v37 .cef1-no-reactions { display:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-title { order:2!important; margin:0 0 10px!important; font-size:14px!important; line-height:1.5!important; font-weight:500!important; color:var(--cf-text)!important; overflow-wrap:anywhere!important; white-space:normal!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body > .cef40-nutrition-overlay { order:3!important; position:static!important; width:100%!important; box-sizing:border-box!important; display:flex!important; gap:0!important; padding:10px 0!important; margin:0 0 7px!important; border:1px solid var(--cf-line)!important; border-radius:12px!important; background:var(--cf-surface)!important; box-shadow:none!important; backdrop-filter:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body > .cef40-nutrition-overlay[hidden] { display:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body .cef40-nutrition-cell { flex:1 1 0!important; min-width:0!important; min-height:0!important; display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:center!important; gap:3px!important; padding:0 5px!important; border:0!important; border-radius:0!important; background:none!important; box-shadow:none!important; backdrop-filter:none!important; text-shadow:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body .cef40-nutrition-cell + .cef40-nutrition-cell { border-left:1px solid var(--cf-line)!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body .cef40-nutrition-cell::before { display:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body .cef40-nutrition-cell strong { font-size:13px!important; line-height:1.3!important; font-weight:600!important; letter-spacing:0!important; color:#e3e8ed!important; overflow:visible!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body .cef40-nutrition-cell span { margin:0!important; font-size:10px!important; font-weight:400!important; text-transform:none!important; color:var(--cf-muted)!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body .cef40-nutrition-cell[data-ce-nutrient="protein"] span { color:#8db4ef!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body .cef40-nutrition-cell[data-ce-nutrient="carbs"] span { color:#86c5a8!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body .cef40-nutrition-cell[data-ce-nutrient="fat"] span { color:#d4bf88!important; }
#cef1.cef-premium.cef1-v37 .cef1-comments { order:4!important; margin:0!important; border:0!important; background:none!important; }
#cef1.cef-premium.cef1-v37 .cef37-comments-link { min-height:32px!important; font-size:12px!important; font-weight:400!important; color:var(--cf-muted)!important; }
#cef1.cef-premium .cef1-double-heart { width:92px!important; height:92px!important; font-size:0!important; pointer-events:none!important; filter:drop-shadow(0 4px 12px #0006); }
#cef1.cef-premium .cef1-double-heart svg { display:block; width:100%; height:100%; fill:#fff; }
#cef1.cef-premium .cef1-double-heart.cef1-heart-go { animation:cf-heart-pop .62s cubic-bezier(.2,.8,.25,1) both!important; }
@keyframes cf-heart-pop { 0%{opacity:0;transform:translate(-50%,-50%) scale(.3) rotate(-18deg)} 25%{opacity:1;transform:translate(-50%,-50%) scale(1.15) rotate(5deg)} 45%,70%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)} 100%{opacity:0;transform:translate(-50%,-65%) scale(.85)} }
#cef1.cef-premium button:focus-visible { outline:2px solid var(--cf-orange)!important; outline-offset:3px; }
body:has(#cef1.cef-premium) .cef37-comments-dialog .cef37-panel { background:#131a20!important; border:1px solid #303a43!important; border-radius:22px 22px 0 0!important; box-shadow:none!important; }
body:has(#cef1.cef-premium) .cef37-comments-head h2 { font-size:18px!important; font-weight:600!important; }
body:has(#cef1.cef-premium) .cef37-compose { background:#131a20!important; border-color:#303a43!important; }
body:has(#cef1.cef-premium) .cef37-compose .cef37-comment-input { background:#1c252d!important; border-color:#35414c!important; border-radius:22px!important; }
body:has(#cef1.cef-premium) .cef37-comments-list .cef1-comment-row { border-bottom:1px solid #242c33!important; }
body:has(#cef1.cef-premium) .cef37-comments-list .cef1-comment-time,
body:has(#cef1.cef-premium) .cef37-comments-empty { color:#939da7!important; }
body:has(#cef1.cef-premium) #cef1-reaction-sheet { background:rgba(0,0,0,.7)!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
body:has(#cef1.cef-premium) .cef1-reaction-panel { background:#131a20!important; border-color:#303a43!important; border-radius:22px!important; box-shadow:none!important; }
body:has(#cef1.cef-premium) .cef1-reaction-option,
body:has(#cef1.cef-premium) .cef1-reactor-emoji { font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif!important; }
@media(min-width:700px) {
    #cef1.cef-premium.cef1-v37 .cef1-header,
    #cef1.cef-premium.cef1-v37 #cef1-friends-list { max-width:632px!important; margin-inline:auto!important; box-sizing:border-box!important; }
    #cef1.cef-premium.cef1-v37 .cef1-feed-media { border-radius:4px!important; overflow:hidden!important; }
    body:has(#cef1.cef-premium) .cef37-comments-dialog .cef37-panel { border-radius:22px!important; }
}
@media(prefers-reduced-motion:reduce) {
    #cef1.cef-premium .cef37-icon-button { transition:none!important; }
    #cef1.cef-premium .cef1-double-heart.cef1-heart-go { animation:none!important; opacity:1!important; transform:translate(-50%,-50%)!important; }
}

/* V50: consistent gutters, a distinct profile header, pins, daily list and summary. */
#cef1.cef-premium.cef1-v37 { --cf-gutter:16px; background:#0b1014!important; }
#cef1.cef-premium.cef1-v37 #cef1-feed-list { padding:6px var(--cf-gutter) calc(110px + env(safe-area-inset-bottom))!important; gap:20px!important; box-sizing:border-box!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-card { border:1px solid var(--cf-line)!important; border-radius:18px!important; background:#10171d!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-head { padding:10px 12px!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-media { width:calc(100% - 16px)!important; margin:0 8px!important; border-radius:12px!important; overflow:hidden!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-image,
#cef1.cef-premium.cef1-v37 .cef1-feed-image img { border-radius:12px!important; }
#cef1.cef-premium.cef1-v37 .cef1-feed-body { padding-inline:14px!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile,
#cef1.cef-premium.cef1-v37 #cef1-my-profile { padding:0!important; background:var(--cf-bg)!important; background-image:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-page-top { padding:12px var(--cf-gutter)!important; min-height:60px!important; box-sizing:border-box!important; border-bottom:1px solid var(--cf-line)!important; background:var(--cf-bg)!important; }
#cef1.cef-premium.cef1-v37 .cef1-page-title { color:var(--cf-text)!important; font-size:17px!important; font-weight:600!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile-content,
#cef1.cef-premium.cef1-v37 #cef1-my-content { padding:20px var(--cf-gutter) calc(120px + env(safe-area-inset-bottom))!important; box-sizing:border-box!important; width:100%!important; max-width:680px!important; margin-inline:auto!important; }
#cef1.cef-premium.cef1-v37 .cef1-profile-user { grid-template-columns:76px minmax(0,1fr)!important; gap:4px 16px!important; padding:18px!important; margin:0 0 24px!important; background:linear-gradient(135deg,#1b2833,#121b23)!important; border:1px solid #2d3a46!important; border-radius:20px!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile-avatar { width:76px!important; height:76px!important; min-width:76px!important; border:2px solid #526374!important; box-shadow:0 0 0 4px #111c25!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile-name { font-size:24px!important; color:var(--cf-text)!important; letter-spacing:-.5px!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile-handle { font-size:12px!important; color:var(--cf-muted)!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile-bio { font-size:13px!important; color:#c7cfd6!important; }
#cef1.cef-premium.cef1-v37 .cef1-profile-friends { display:inline-flex!important; width:fit-content!important; align-items:center!important; gap:4px!important; padding:5px 9px!important; background:#24333f!important; color:#e1e8ee!important; font-size:11px!important; border-radius:8px!important; }
#cef1.cef-premium.cef1-v37 .cef1-section { margin:0 0 24px!important; padding:0!important; border:0!important; background:none!important; }
#cef1.cef-premium.cef1-v37 .cef1-section-head { margin-bottom:12px!important; padding:0!important; gap:10px!important; }
#cef1.cef-premium.cef1-v37 .cef1-section-title,
#cef1.cef-premium.cef1-v37 .cef1-my-section-title { font-size:14px!important; font-weight:600!important; color:var(--cf-text)!important; letter-spacing:0!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile-pins,
#cef1.cef-premium.cef1-v37 #cef1-my-pins { gap:10px!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; }
#cef1.cef-premium.cef1-v37 .cef1-profile-pin,
#cef1.cef-premium.cef1-v37 .cef1-my-pin { aspect-ratio:1!important; height:auto!important; border:1px solid #34414c!important; border-radius:14px!important; background:#18222c!important; }
#cef1.cef-premium.cef1-v37 .cef-polish-no-pins { grid-column:1/-1; padding:18px 16px!important; border:1px dashed #36434e!important; border-radius:14px!important; background:#10181e!important; color:#a5b0ba!important; font-size:12px!important; line-height:1.5!important; text-align:center; }
#cef1.cef-premium.cef1-v37 .cef37-profile-tabs { display:flex!important; gap:4px!important; padding:4px!important; margin:4px 0 22px!important; border:1px solid #2a3540!important; border-radius:14px!important; background:#151e26!important; }
#cef1.cef-premium.cef1-v37 .cef37-profile-tabs button { min-height:42px!important; padding:10px 12px!important; border:0!important; border-radius:10px!important; font-size:13px!important; font-weight:600!important; color:#a2aeb9!important; }
#cef1.cef-premium.cef1-v37 .cef37-profile-tabs .cef37-active { background:#ff8a36!important; color:#14191d!important; box-shadow:0 2px 8px #0003!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile-meals { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:12px!important; }
#cef1.cef-premium.cef1-v37 .cef37-meal-tile { aspect-ratio:auto!important; height:auto!important; min-width:0!important; border:1px solid #303c47!important; border-radius:14px!important; background:#151f28!important; overflow:hidden!important; text-align:left!important; padding:0!important; }
#cef1.cef-premium.cef1-v37 .cef37-meal-tile > img { position:static!important; inset:auto!important; display:block!important; width:100%!important; height:auto!important; aspect-ratio:1.2!important; object-fit:cover!important; }
#cef1.cef-premium.cef1-v37 .cef37-tile-caption { position:static!important; display:flex!important; flex-direction:column!important; gap:4px!important; min-height:54px!important; padding:10px!important; box-sizing:border-box!important; background:#151f28!important; }
#cef1.cef-premium.cef1-v37 .cef37-tile-caption > span { color:#f0f4f7!important; font-size:12px!important; line-height:1.4!important; font-weight:500!important; white-space:normal!important; overflow:hidden!important; display:-webkit-box!important; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
#cef1.cef-premium.cef1-v37 .cef37-tile-caption small { color:#9eacb9!important; font-size:11px!important; font-weight:400!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile-meals > .cef1-empty { grid-column:1/-1!important; padding:30px 20px!important; min-height:120px!important; border:1px solid #293641!important; border-radius:16px!important; background:#111b23!important; color:#aab6c0!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile-meals .cef1-empty-text { font-size:13px!important; line-height:1.6!important; color:#aab6c0!important; opacity:1!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile-meals .cef1-empty-icon:empty { display:none!important; }
#cef1.cef-premium.cef1-v37 #cef1-profile-today { padding:20px!important; border:1px solid #34424e!important; border-radius:18px!important; background:#16222c!important; }
#cef1.cef-premium.cef1-v37 .cef1-profile-macros-grid { gap:10px!important; }
#cef1.cef-premium.cef1-v37 .cef1-my-hero { padding:22px 18px!important; margin:0 0 24px!important; border:1px solid #2d3a46!important; border-radius:20px!important; background:linear-gradient(135deg,#1b2833,#121b23)!important; }
#cef1.cef-premium.cef1-v37 .cef1-my-section { margin:0 0 24px!important; }
#cef1.cef-premium.cef1-v37 #cef1-my-edit-open { background:#263744!important; border:1px solid #435362!important; border-radius:12px!important; color:var(--cf-text)!important; }
@media(min-width:700px) { #cef1.cef-premium.cef1-v37 #cef1-profile-meals { grid-template-columns:repeat(3,minmax(0,1fr))!important; } }
@media(max-width:359px) { #cef1.cef-premium.cef1-v37 { --cf-gutter:14px; } #cef1.cef-premium.cef1-v37 .cef1-profile-user { grid-template-columns:62px minmax(0,1fr)!important; gap:4px 12px!important; padding:14px!important; } #cef1.cef-premium.cef1-v37 #cef1-profile-avatar { width:62px!important; height:62px!important; min-width:62px!important; } #cef1.cef-premium.cef1-v37 #cef1-profile-name { font-size:21px!important; } }

/* One visual language for every Friends surface. Full-width surfaces, inset controls. */
@layer ce-app-background {
    body:not(.gridbox):has(#cef1.cef-unified),
    body:not(.gridbox):has(#cef1.cef-unified)::before { background:#0b1014!important; }
    body:not(.gridbox) #cef1.cef-unified,
    body:not(.gridbox) #cef1.cef-unified .cef1-tabs { background:#0b1014!important; }
}
body:has(#cef1.cef-unified) { margin:0!important; }
#cef1.cef-premium.cef1-v37.cef-unified { --cf-bg:#0b1014; --cf-surface:#151e26; --cf-line:#28323b; --cf-muted:#9ba7b1; width:100%!important; max-width:100%!important; margin:0!important; padding:0!important; border:0!important; border-radius:0!important; background:#0b1014!important; }
#cef1.cef-premium.cef1-v37.cef-unified,
#cef1.cef-premium.cef1-v37.cef-unified :is(button,input,textarea,select),
body:has(#cef1.cef-unified) :is(.cef37-overlay,#cef1-reaction-sheet,#cef1-remove-sheet,#cef1-pin-manager-sheet,#cef1-pin-lightbox,#cef1-toast) { font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Arial,sans-serif!important; }
body:has(#cef1.cef-unified) :is(.cef37-overlay,#cef1-reaction-sheet,#cef1-remove-sheet,#cef1-pin-manager-sheet) :is(button,input,textarea) { font-family:inherit!important; }
#cef1.cef-premium.cef1-v37.cef-unified :is(#cef1-main,#cef1-connect,#cef1-profile,#cef1-my-profile,#cef1-activity) { background:var(--cf-bg)!important; background-image:none!important; box-sizing:border-box!important; }
#cef1.cef-premium.cef1-v37.cef-unified :is(#cef1-connect,#cef1-profile,#cef1-my-profile) { padding:0 0 calc(115px + env(safe-area-inset-bottom))!important; scroll-padding-bottom:120px; scrollbar-width:none; }
#cef1.cef-premium.cef1-v37.cef-unified :is(#cef1-connect,#cef1-profile,#cef1-my-profile)::-webkit-scrollbar { display:none; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-page-top { position:sticky!important; top:0!important; z-index:25!important; padding:10px 16px!important; min-height:58px!important; backdrop-filter:none!important; }
#cef1.cef-premium.cef1-v37.cef-unified :is(.cef1-back,.cef1-more) { width:44px!important; height:44px!important; min-width:44px!important; border-radius:12px!important; color:#f2f5f7!important; background:transparent!important; font-size:26px!important; }
#cef1.cef-premium.cef1-v37.cef-unified #cef1-feed-list { padding:0 0 calc(115px + env(safe-area-inset-bottom))!important; gap:12px!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-feed-card { max-width:100%!important; border:0!important; border-bottom:1px solid var(--cf-line)!important; border-radius:0!important; background:var(--cf-bg)!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-feed-head { padding:12px 16px!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-feed-media { width:100%!important; margin:0!important; border-radius:0!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-feed-image,
#cef1.cef-premium.cef1-v37.cef-unified .cef1-feed-image img { border-radius:0!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-feed-body { padding-inline:16px!important; }
#cef1.cef-premium.cef1-v37.cef-unified :is(#cef1-profile-content,#cef1-my-content) { max-width:100%!important; padding:0 0 20px!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-profile-user,
#cef1.cef-premium.cef1-v37.cef-unified .cef1-my-hero { border:0!important; border-bottom:1px solid var(--cf-line)!important; border-radius:0!important; padding:24px 20px!important; margin:0 0 24px!important; background:#14212b!important; }
#cef1.cef-premium.cef1-v37.cef-unified :is(.cef1-section,.cef1-my-section) { margin-inline:16px!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef37-profile-tabs { margin:4px 16px 22px!important; }
#cef1.cef-premium.cef1-v37.cef-unified #cef1-my-edit-panel { margin:0 16px!important; padding:18px 0!important; background:none!important; border:0!important; }
#cef1.cef-premium.cef1-v37.cef-unified :is(.cef1-my-settings,.cef1-my-stats) { gap:10px!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-my-today-meal { padding:14px!important; border:1px solid var(--cf-line)!important; border-radius:14px!important; background:var(--cf-surface)!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-my-today-name { font-size:13px!important; color:#f0f4f7!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-my-today-empty { padding:24px 16px!important; border:1px solid var(--cf-line)!important; border-radius:14px!important; background:var(--cf-surface)!important; color:var(--cf-muted)!important; font-size:13px!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-search-wrap { margin:18px 16px 24px!important; }
#cef1.cef-premium.cef1-v37.cef-unified #cef1-search { box-sizing:border-box!important; width:100%!important; height:50px!important; min-height:50px!important; padding:12px 44px!important; border:1px solid #33414d!important; border-radius:14px!important; background:var(--cf-surface)!important; color:#f2f5f7!important; font-size:16px!important; box-shadow:none!important; }
#cef1.cef-premium.cef1-v37.cef-unified #cef1-search,
#cef1.cef-premium.cef1-v37.cef-unified #cef1-search::placeholder { font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important; }
#cef1.cef-premium.cef1-v37.cef-unified #cef1-search::placeholder { color:#8e9da9!important; opacity:1!important; }
#cef1.cef-premium.cef1-v37.cef-unified :is(.cef1-search-icon,#cef1-search-clear) { color:#9baab6!important; }
#cef1.cef-premium.cef1-v37.cef-unified #cef1-search-clear { width:44px!important; height:44px!important; right:3px!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-connect-section { margin:0!important; padding:0!important; border:0!important; background:none!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-connect-title { padding:0 18px 12px!important; margin:0!important; font-size:14px!important; font-weight:600!important; color:#e7edf2!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-connect-list { gap:0!important; padding:0!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-connect-profile-row,
#cef1.cef-premium.cef1-v37.cef-unified .cef1-connect-user { display:grid!important; grid-template-columns:44px minmax(0,1fr) 24px!important; align-items:center!important; gap:14px!important; box-sizing:border-box!important; width:100%!important; min-width:0!important; min-height:82px!important; margin:0!important; padding:14px 18px!important; border:0!important; border-bottom:1px solid var(--cf-line)!important; border-radius:0!important; background:var(--cf-bg)!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-connect-profile-row .cef1-avatar,
#cef1.cef-premium.cef1-v37.cef-unified .cef1-connect-user .cef1-avatar { width:44px!important; height:44px!important; min-width:44px!important; min-height:44px!important; flex:0 0 44px!important; border:1px solid #455563!important; background:#202d38!important; color:#e3eaf0!important; font-size:15px!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-connect-info { min-width:0!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-connect-name { color:#f2f5f7!important; font-size:14px!important; font-weight:600!important; line-height:1.45!important; overflow-wrap:anywhere; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-connect-handle { color:var(--cf-muted)!important; font-size:12px!important; line-height:1.5!important; overflow-wrap:anywhere; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-connect-profile-chevron { color:#8394a2!important; font-size:24px!important; text-align:center!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-suggested-empty { padding:28px 20px!important; color:var(--cf-muted)!important; font-size:13px!important; text-align:center; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-profile-connect-action { min-height:44px!important; padding:10px 18px!important; border-radius:12px!important; font-size:13px!important; background:#ff8a36!important; color:#12191e!important; border:0!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-profile-connect-action.cef1-secondary { background:#2a3d4b!important; color:#e6edf2!important; }
#cef1.cef-premium.cef1-v37.cef-unified #cef1-activity-list { padding:0 0 calc(115px + env(safe-area-inset-bottom))!important; gap:0!important; }
#cef1.cef-premium.cef1-v37.cef-unified :is(.cef1-activity-social-head,.cef1-activity-group-title) { padding:16px 18px!important; margin:0!important; }
#cef1.cef-premium.cef1-v37.cef-unified :is(.cef1-activity-row,.cef1-activity-request-row) { padding:16px!important; border:0!important; border-bottom:1px solid var(--cf-line)!important; border-radius:0!important; background:var(--cf-bg)!important; gap:12px!important; grid-template-columns:40px minmax(0,1fr) 54px!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-activity-request-row { grid-template-columns:40px minmax(0,1fr)!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-activity-request-actions { grid-column:2!important; flex-direction:row!important; gap:8px!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-activity-request-actions button { min-height:40px!important; min-width:80px!important; font-size:12px!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-activity-clear { min-height:40px!important; border-color:#39434c!important; background:#1b2832!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-activity-text { font-size:13px!important; line-height:1.55!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-empty { color:var(--cf-muted)!important; opacity:1!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-empty-text { color:var(--cf-muted)!important; font-size:13px!important; line-height:1.6!important; }
#cef1.cef-premium.cef1-v37.cef-unified .cef1-empty-icon:empty { display:none!important; }
#cef1.cef-premium.cef1-v37.cef-unified :is(.cef1-my-field input,.cef1-my-field textarea) { font-size:16px!important; border:1px solid #3b4a57!important; border-radius:12px!important; background:#17232d!important; color:#f0f4f7!important; }
body:has(#cef1.cef-unified) .cef37-comments-dialog .cef37-panel { border-radius:22px 22px 0 0!important; background:#121b23!important; }
body:has(#cef1.cef-unified) .cef37-comments-head { padding:16px!important; border-bottom:1px solid #2c3842!important; }
body:has(#cef1.cef-unified) .cef37-compose { padding:12px 16px max(12px,env(safe-area-inset-bottom))!important; gap:10px!important; }
body:has(#cef1.cef-unified) .cef37-comment-input { min-height:46px!important; font-size:16px!important; border-radius:24px!important; border:1px solid #3b4a56!important; background:#1b2934!important; color:#f2f5f7!important; }
body:has(#cef1.cef-unified) .cef37-comments-empty { padding:28px 20px!important; color:#aab6c0!important; font-size:13px!important; }
body:has(#cef1.cef-unified) :is(.cef1-reaction-panel,.cef1-remove-panel,.cef1-pin-manager-panel) { padding:20px!important; border:1px solid #35424e!important; border-radius:22px 22px 0 0!important; background:#14212b!important; box-shadow:0 -12px 48px #0005!important; }
body:has(#cef1.cef-unified) :is(#cef1-reaction-sheet,#cef1-remove-sheet,#cef1-pin-manager-sheet,#cef1-pin-lightbox) { z-index:2147483100!important; }
body:has(#cef1.cef-unified) .cef1-sheet-btn { min-height:46px!important; border-radius:12px!important; font-size:14px!important; }
body:has(#cef1.cef-unified) #cef1-toast { top:auto!important; bottom:calc(118px + env(safe-area-inset-bottom))!important; left:50%!important; transform:translateX(-50%)!important; max-width:calc(100vw - 40px)!important; width:max-content!important; box-sizing:border-box!important; padding:12px 16px!important; border:1px solid #3b4b59!important; border-radius:14px!important; background:#23333f!important; color:#f2f5f7!important; font-size:13px!important; line-height:1.45!important; box-shadow:0 6px 24px #0005!important; pointer-events:none!important; }
body:has(#cef1.cef-unified) .cef48-story-close { display:flex!important; visibility:visible!important; opacity:1!important; pointer-events:auto!important; width:44px!important; height:44px!important; align-items:center!important; justify-content:center!important; border-radius:50%!important; background:#10182099!important; }
@media(min-width:700px) { body:has(#cef1.cef-unified) .cef37-comments-dialog .cef37-panel { border-radius:22px!important; } }
/* Read the original meal entry on the back of its photo. */
#cef1 .cef54-meal-flip { position:relative!important; perspective:1200px; cursor:pointer; }
#cef1 .cef54-meal-turn { position:absolute; inset:0; transform-style:preserve-3d; transition:transform .48s cubic-bezier(.2,.7,.2,1); }
#cef1 .cef54-flipped .cef54-meal-turn { transform:rotateY(180deg); }
#cef1 .cef54-meal-turn > .cef1-feed-image,
#cef1 .cef54-meal-back { position:absolute!important; inset:0; width:100%; height:100%; box-sizing:border-box; backface-visibility:hidden; -webkit-backface-visibility:hidden; }
#cef1 .cef54-meal-back { display:flex; flex-direction:column; transform:rotateY(180deg); background:var(--cf-surface,#17212b); color:var(--cf-text,#f2f5f7); overflow-y:auto; overscroll-behavior:contain; padding:52px 22px; text-align:center; }
#cef1 .cef54-meal-text { flex:none; width:100%; min-width:0; margin-block:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-size:16px; line-height:1.65; font-weight:400; }
#cef1 .cef54-meal-hint { position:absolute; z-index:3; bottom:12px; left:50%; transform:translateX(-50%); padding:6px 12px; border-radius:20px; background:#0b121dd9; color:#fff; font-size:12px; line-height:1.4; pointer-events:none; white-space:nowrap; }
#cef1 .cef54-meal-flip:focus-visible { outline:3px solid #ff8a36!important; outline-offset:3px; }
#cef1 .cef54-meal-back[aria-hidden="true"] { pointer-events:none; }
#cef1 .cef54-flipped .cef1-feed-image { pointer-events:none; }
@media(prefers-reduced-motion:reduce) { #cef1 .cef54-meal-turn { transition:none; } }
@media(max-width:699px) {
    body:has(#cef1.cef-unified) :is(#cef1-reaction-sheet,#cef1-remove-sheet,#cef1-pin-manager-sheet) { padding:0!important; }
    body:has(#cef1.cef-unified) :is(.cef1-reaction-panel,.cef1-remove-panel,.cef1-pin-manager-panel) { box-sizing:border-box!important; width:100%!important; max-width:100%!important; margin:0!important; border-left:0!important; border-right:0!important; border-bottom:0!important; }
}
