:root{
  --ink:#1B2620; --paper:#F4EFE6; --paper-2:#EFE9DD; --card:#FFFFFF; --forest:#1E4635; --forest-2:#163528;
  --coral:#E05B49; --coral-ink:#C44A39; --sage:#9DB98C; --sage-soft:#DCE6CF; --gold:#E0A43B;
  --mute:#8A8275; --line:#E3DCCE; --dark:#12201A;
  --display:'Fraunces','Georgia',serif;
  --body:'Figtree','Helvetica Neue',Arial,sans-serif;
  --nav:66px; --bar:54px;
  --outer:#C9CFC4; --forest-text:#1E4635; --chart-bar:#1E4635;
  --drop-border:#BBB49F; --drop-hover:var(--drop-hover); --idle:#9E978A; --idle-ring:#C7C0B2;
  --placeholder:#d9ddd2; --stripe-a:#E7E1D4; --stripe-b:#DED8C9; --grab:#C5BEAE; --struck:#A9A294;
  --err-bg:#F8DDD7; --err-ink:#7A2415;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --ink:#ECE7DC; --paper:#0F1914; --paper-2:#16231C; --card:#1A2821; --forest:#2B5E47; --forest-2:#CFE5C0;
  --coral-ink:#F28B7A; --sage-soft:#2B4034; --mute:#A39D90; --line:#2C3C33; --dark:#0B130F;
  --outer:#060A08; --forest-text:#A9D1B6; --chart-bar:#5E9C7F;
  --drop-border:#4A5950; --drop-hover:#1F3027; --idle:#76806F; --idle-ring:#4A5A50;
  --placeholder:#22322A; --stripe-a:#1B2A22; --stripe-b:#22332A; --grab:#4A5A50; --struck:#6E7A70;
  --err-bg:#3A1F1A; --err-ink:#FFB4A9;
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{background:var(--outer);font-family:var(--body);color:var(--ink);display:flex;align-items:center;justify-content:center;overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--coral);outline-offset:2px}
[hidden]{display:none!important}

.phone{position:relative;width:min(100vw,420px);height:min(100dvh,880px);background:var(--paper);overflow:hidden;display:flex;flex-direction:column}
@media (min-width:500px) and (min-height:760px){.phone{border-radius:46px;box-shadow:0 0 0 11px #0d1511,0 30px 80px rgba(16,25,21,.4)}}

/* app bar */
.appbar{height:calc(env(safe-area-inset-top) + var(--bar));padding:env(safe-area-inset-top) 20px 0;display:flex;align-items:center;justify-content:space-between;flex:none;z-index:7;background:var(--paper)}
.brand{display:flex;align-items:center;gap:9px}
.logo{width:34px;height:34px;border-radius:50%;background:var(--forest);display:grid;place-items:center;flex:none}
.logo svg{width:20px;height:20px;fill:none;stroke:var(--sage);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wordmark{font-family:var(--body);font-weight:700;font-size:20px;letter-spacing:-.01em;color:var(--ink)}
.appbar-actions{display:flex;gap:10px}
.appbar .round{width:40px;height:40px;border-radius:50%;background:var(--card);border:1px solid var(--line);display:grid;place-items:center;box-shadow:0 2px 8px rgba(20,25,20,.05)}
.appbar .round svg{width:19px;height:19px;fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.phone[data-tab="discover"] .appbar{position:absolute;top:0;left:0;right:0;background:transparent;z-index:7}
.phone[data-tab="discover"] .wordmark{color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.5)}
.phone[data-tab="discover"] .logo{background:rgba(255,255,255,.18);backdrop-filter:blur(8px)}
.phone[data-tab="discover"] .appbar .round{background:rgba(255,255,255,.9)}

.screens{position:relative;flex:1;min-height:0}
.screen{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:16px}
.screen.overlay{background:var(--dark);z-index:9;overflow:hidden;padding:0}
.phone.viewing .appbar{display:none}
.phone.viewing .screens{margin-top:0}
#screen-discover{padding:0;overflow:hidden;background:var(--dark)}

/* nav */
.nav{height:calc(var(--nav) + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);background:var(--card);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:6;flex:none}
.nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--mute)}
.nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:stroke .15s}
.nav span{font-size:11px;font-weight:600;letter-spacing:.01em}
.phone[data-tab="pantry"] .nav button:nth-child(1),.phone[data-tab="nutrition"] .nav button:nth-child(2),.phone[data-tab="discover"] .nav button:nth-child(3),.phone[data-tab="cookbooks"] .nav button:nth-child(4),.phone[data-tab="profile"] .nav button:nth-child(5){color:var(--coral)}

/* eyebrow + headings */
.eyebrow{font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--coral-ink)}
.page-head{padding:18px 22px 6px}
.page-title{font-family:var(--display);font-weight:600;font-size:40px;letter-spacing:-.015em;line-height:1.02;margin-top:6px;color:var(--ink)}
.page-sub{color:var(--mute);font-size:15px;margin-top:6px}
.section-row{display:flex;align-items:baseline;justify-content:space-between;padding:22px 22px 10px}
.section-title{font-family:var(--display);font-weight:600;font-size:26px;letter-spacing:-.01em}
.link{color:var(--coral-ink);font-weight:700;font-size:14px}

/* icon btn (shared with sheets/detail) */
.icon-btn{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--card);border:1px solid var(--line)}
.icon-btn svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* stepper */
.stepper{display:inline-flex;align-items:center;background:var(--forest);color:#fff;border-radius:999px;height:34px}
.stepper button{width:34px;height:34px;font-size:20px;line-height:1;color:#fff;border-radius:50%}
.stepper button:active{background:#2c5241}
.stepper span{min-width:22px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}

/* ---------- pantry ---------- */
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:14px 22px 0}
.stat{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px 14px 16px}
.stat .k{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.stat .v{font-family:var(--display);font-weight:600;font-size:34px;letter-spacing:-.02em;margin-top:8px;line-height:1}
.stat.soon .v{color:var(--coral-ink)}
.cta-card{width:calc(100% - 44px);text-align:left;margin:18px 22px 0;background:var(--forest);color:#fff;border-radius:22px;padding:18px 20px;display:flex;align-items:center;gap:16px}
.cta-card .cta-ic{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.14);display:grid;place-items:center;flex:none}
.cta-card .cta-ic svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cta-card .cta-t{flex:1}
.cta-card b{font-family:var(--display);font-weight:600;font-size:21px;display:block}
.cta-card small{color:rgba(255,255,255,.72);font-size:13px}
.cta-card .chev{display:inline-grid;place-items:center}
.cta-card .chev svg{width:22px;height:22px;fill:none;stroke:rgba(255,255,255,.75);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.match-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:0 22px 8px}
.match-card{text-align:left;display:block;width:100%}
.match-media{position:relative;aspect-ratio:4/3.4;border-radius:18px;overflow:hidden;background:var(--placeholder)}
.match-media .poster{position:absolute;inset:0;height:100%;width:100%}
.match-badge{position:absolute;left:10px;top:10px;z-index:1;display:inline-flex;align-items:center;gap:5px;background:var(--sage-soft);color:var(--forest-2);font-size:11px;font-weight:700;padding:5px 9px;border-radius:999px}
.match-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--forest)}
.match-card .m-title{font-family:var(--display);font-weight:600;font-size:17px;letter-spacing:-.01em;margin-top:10px;line-height:1.15}
.match-card .m-meta{color:var(--mute);font-size:13px;margin-top:3px}

/* ---------- nutrition ---------- */
.nutri-hero{margin:14px 22px 0;background:var(--forest);color:#fff;border-radius:24px;padding:22px 22px}
.nutri-hero .inner{display:flex;align-items:center;gap:22px}
.nutri-hero .eyebrow{color:var(--sage);margin-bottom:4px}
.nutri-hero .big{font-family:var(--display);font-weight:600;font-size:30px;letter-spacing:-.01em;line-height:1.05}
.nutri-hero .note{color:rgba(255,255,255,.75);font-size:13.5px;margin-top:8px;background:none;padding:0;border-radius:0}
.ring{position:relative;display:grid;place-items:center;text-align:center;flex:none}
.ring svg{display:block;transform:rotate(-90deg)}
.ring .track{fill:none}
.ring .val{fill:none;stroke-linecap:round;transition:stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1)}
.ring .txt{position:absolute;line-height:1.1}
.ring .txt b{display:block;font-family:var(--display);font-weight:600;letter-spacing:-.02em}
.macro-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:14px 22px 0}
.macro{background:var(--paper-2);border:1px solid var(--line);border-radius:16px;padding:12px 14px}
.macro .pct{font-size:12px;font-weight:700;color:var(--coral-ink)}
.macro .lab{font-family:var(--display);font-weight:600;font-size:18px;margin-top:4px}
.macro .g{color:var(--mute);font-size:12.5px;margin-top:2px}
.meal-card{margin:12px 22px 0;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px 16px;display:flex;align-items:center;gap:14px;text-align:left;width:calc(100% - 44px)}
.meal-card .thumb{width:48px;height:48px;border-radius:12px;overflow:hidden;flex:none;background:var(--placeholder)}
.meal-card .mc-t{flex:1;min-width:0}
.meal-card .tag{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.meal-card b{display:block;font-family:var(--display);font-weight:600;font-size:17px;letter-spacing:-.01em;margin-top:1px}
.meal-card small{color:var(--mute);font-size:13px}
.meal-card .chev{color:var(--mute);font-size:20px}
.meal-card .x{color:var(--mute);font-size:20px;width:28px;height:28px;flex:none}
.week{margin:10px 22px;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:18px 14px 12px}
.week svg{width:100%;display:block}
.week-stats{display:flex;gap:30px;padding:8px 22px}
.week-stats div b{display:block;font-family:var(--display);font-weight:600;font-size:28px;letter-spacing:-.02em}
.week-stats div span{color:var(--mute);font-size:14px}
.thumb svg,.poster{width:100%;height:100%;display:block}
.add-link{color:var(--coral-ink);font-weight:700;font-size:14px}

/* ---------- discover (reels) ---------- */
.feed{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none}
.feed::-webkit-scrollbar{display:none}
.reel{height:100%;scroll-snap-align:start;scroll-snap-stop:always;position:relative}
.pager{height:100%;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.pager::-webkit-scrollbar{display:none}
.pane{flex:none;width:100%;height:100%;scroll-snap-align:start;scroll-snap-stop:always;position:relative;overflow:hidden}
.pane.video{background:var(--dark)}
.pane .poster{position:absolute;inset:0;height:100%}
.pane video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,22,18,.35) 0,transparent 30%,transparent 46%,rgba(14,22,18,.9) 100%);pointer-events:none}
.r-avatar{position:relative;flex:none;margin-bottom:6px;width:48px;height:48px;border-radius:50%;border:2px solid #fff;overflow:visible;background:var(--forest);display:grid;place-items:center;color:var(--sage);font-family:var(--display);font-weight:700;font-size:20px}
.r-avatar .plus{position:absolute;bottom:-7px;left:50%;transform:translateX(-50%);width:18px;height:18px;border-radius:50%;background:var(--coral);color:#fff;font-size:13px;display:grid;place-items:center;border:2px solid #fff}
.caption{position:absolute;left:18px;right:70px;bottom:22px;color:#fff}
.match-pill{display:inline-flex;align-items:center;gap:6px;background:var(--sage-soft);color:var(--forest-2);font-size:11px;font-weight:700;letter-spacing:.04em;padding:6px 11px;border-radius:999px;margin-bottom:12px}
.match-pill svg{width:12px;height:12px;fill:none;stroke:var(--forest-2);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.caption .who{font-weight:600;font-size:14.5px;display:flex;align-items:center;gap:8px}
.caption .who .follow{color:var(--sage);font-weight:700}
.caption h2{font-family:var(--display);font-weight:700;font-size:30px;letter-spacing:-.015em;line-height:1.04;margin:10px 0 8px}
.caption p{font-size:14.5px;line-height:1.4;color:rgba(255,255,255,.88)}
.caption-more{color:var(--sage);font-weight:700;text-decoration:underline;white-space:nowrap}
.meta-chips{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.meta-chips .mc{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.14);backdrop-filter:blur(8px);color:#fff;font-size:12.5px;font-weight:600;padding:7px 11px;border-radius:10px}
.meta-chips .mc svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rail{position:absolute;right:12px;bottom:22px;display:flex;flex-direction:column;gap:18px;align-items:center;color:#fff;z-index:2}
.rail button{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:600;color:#fff}
.rail .ic{width:28px;height:28px;display:grid;place-items:center}
.rail svg{width:27px;height:27px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 4px rgba(0,0,0,.4))}
.rail button[aria-pressed="true"] .heart svg{fill:var(--coral);stroke:var(--coral)}
.rail .save[aria-pressed="true"] svg{fill:#fff}
.edge{position:absolute;top:44%;transform:translateY(-50%);z-index:2;background:rgba(14,22,18,.5);color:#fff;font-size:11px;font-weight:700;padding:13px 6px;backdrop-filter:blur(8px)}
.edge.l{left:0;border-radius:12px 0 0 12px;writing-mode:vertical-rl;transform:translateY(-50%) rotate(180deg)}
.edge.r{right:0;border-radius:12px 0 0 12px;writing-mode:vertical-rl}
.dots{position:absolute;left:0;right:0;top:calc(env(safe-area-inset-top) + var(--bar) + 8px);display:flex;justify-content:center;gap:6px;z-index:3;pointer-events:none}
.dots i{width:6px;height:6px;border-radius:3px;background:rgba(255,255,255,.45);transition:width .2s,background .2s}
.dots i.on{width:18px;background:#fff}
.pane.info{background:var(--dark);color:#fff;overflow:hidden;margin-top:calc(env(safe-area-inset-top) + var(--bar) + 20px);height:calc(100% - env(safe-area-inset-top) - var(--bar) - 20px)}
.pane-scroll{height:100%;overflow-y:auto;overscroll-behavior:auto;padding:10px 42px 28px}
.pane.info h2{font-family:var(--display);font-weight:700;font-size:28px;letter-spacing:-.015em;line-height:1.05}
.pane.info .sub{color:var(--sage);font-size:14px;margin-top:4px}
.pie-wrap{display:flex;justify-content:center;margin:22px 0 14px}
.legend{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.legend li{display:flex;align-items:center;gap:10px}
.legend i{width:14px;height:14px;border-radius:4px;flex:none}
.legend b{display:block;font-size:17px}
.legend span{font-size:13px;color:var(--sage)}
.pane.info .big-btn{width:100%;margin:22px 0 0}
.pane.info .head-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pane.info h3{font-family:var(--display);font-weight:600;font-size:19px;margin:22px 0 8px}
.ing{list-style:none}
.ing li{padding:10px 0;border-bottom:1px solid #243a30;display:flex;gap:10px}
.ing .qty{min-width:68px;font-weight:700;color:var(--gold)}
.ing .ing-name{flex:1;min-width:0}
.allergy-warning{align-self:flex-start;padding:3px 7px;border:1px solid #E05B49;border-radius:999px;color:#ffb4a9;font-size:11px;font-weight:700;line-height:1.25}
.steps{list-style:none;counter-reset:s}
.steps li{counter-increment:s;display:flex;gap:12px;padding:10px 0;line-height:1.45}
.steps li::before{content:counter(s);flex:none;width:26px;height:26px;border-radius:50%;background:var(--coral);color:#fff;font-weight:700;display:grid;place-items:center;font-size:14px;margin-top:1px}
.steam path{fill:none;stroke:rgba(255,255,255,.4);stroke-width:5;stroke-linecap:round;animation:steam 3.4s ease-in-out infinite}
.steam path:nth-child(2){animation-delay:.9s}.steam path:nth-child(3){animation-delay:1.8s}
@keyframes steam{0%{opacity:0;transform:translateY(14px)}40%{opacity:1}100%{opacity:0;transform:translateY(-22px)}}

/* discover search/chips (used in overlay viewer header only now) */
.empty{padding:60px 30px;text-align:center;color:var(--mute);line-height:1.5}
.empty b{display:block;font-family:var(--display);font-weight:600;font-size:20px;color:var(--ink);margin-bottom:6px}

/* ---------- cookbooks ---------- */
.featured{margin:14px 22px 0;position:relative;aspect-ratio:16/10;border-radius:22px;overflow:hidden;background:var(--placeholder);display:block;width:calc(100% - 44px)}
.featured .poster{position:absolute;inset:0;height:100%;width:100%}
.featured::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,22,18,.1),rgba(14,22,18,.75))}
.featured .f-body{position:absolute;left:20px;right:20px;bottom:18px;z-index:1;color:#fff;text-align:left}
.featured .eyebrow{color:rgba(255,255,255,.85)}
.featured h3{font-family:var(--display);font-weight:700;font-size:30px;letter-spacing:-.015em;line-height:1.02;margin:8px 0 6px}
.featured small{color:rgba(255,255,255,.82);font-size:13px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0 22px 20px}
.tile{text-align:left;display:block;width:100%}
.tile .t-media{position:relative;aspect-ratio:1/1;border-radius:18px;overflow:hidden;background:var(--placeholder)}
.tile .poster{position:absolute;inset:0;height:100%;width:100%}
.tile.empty-t .t-media{background:repeating-linear-gradient(45deg,var(--stripe-a),var(--stripe-a) 10px,var(--stripe-b) 10px,var(--stripe-b) 20px)}
.tile b{display:block;font-family:var(--display);font-weight:600;font-size:17px;letter-spacing:-.01em;margin-top:10px}
.tile small{color:var(--mute);font-size:13px}

/* ---------- profile ---------- */
.p-head{padding:16px 22px 0}
.p-id{display:flex;align-items:center;gap:14px;margin-top:16px}
.avatar{width:62px;height:62px;border-radius:50%;background:var(--sage);color:var(--forest);display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:26px;flex:none;overflow:hidden}
.p-id .p-name{font-family:var(--display);font-weight:600;font-size:24px;letter-spacing:-.01em;line-height:1.05}
.p-id .p-handle{color:var(--mute);font-size:14px}
.edit-btn{margin-left:auto;padding:9px 18px;border-radius:999px;border:1.5px solid var(--ink);font-weight:700;font-size:14px;align-self:center}
.p-stats{display:grid;grid-template-columns:repeat(3,1fr);background:var(--card);border:1px solid var(--line);border-radius:20px;margin:18px 22px 0;padding:16px 0}
.p-stats div{text-align:center;position:relative}
.p-stats div+div::before{content:'';position:absolute;left:0;top:14%;bottom:14%;width:1px;background:var(--line)}
.p-stats b{display:block;font-family:var(--display);font-weight:600;font-size:26px;letter-spacing:-.01em;color:var(--forest-text)}
.p-stats span{color:var(--mute);font-size:13px;margin-top:2px;display:block}
.bio{padding:16px 22px 0;font-size:15px;line-height:1.45}
.pref-list{padding:4px 22px 0}
.pref-list .pref{display:flex;align-items:center;gap:12px;width:100%;padding:16px 2px;border-bottom:1px solid var(--line);text-align:left;font-size:16px;font-weight:600}
.pref-group{border-bottom:1px solid var(--line)}
.pref-group summary{display:flex;align-items:center;gap:12px;padding:16px 2px;cursor:pointer;list-style:none;font-size:16px;font-weight:600}
.pref-group summary::-webkit-details-marker{display:none}
.pref-group summary::after{content:'';width:8px;height:8px;margin-left:4px;border-right:1.5px solid var(--mute);border-bottom:1.5px solid var(--mute);transform:rotate(45deg) translateY(-2px);flex:none}
.pref-group[open] summary::after{transform:rotate(225deg) translate(-2px,-1px)}
.pref-summary{min-width:0;max-width:55%;margin-left:auto;overflow:hidden;color:var(--mute);font-size:13px;font-weight:500;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.pref-options{display:grid;gap:2px;padding:0 0 12px 2px}
.pref-options label{display:flex;align-items:center;gap:10px;padding:8px 0;color:var(--ink);font-size:14px;cursor:pointer}
.pref-options input{width:18px;height:18px;margin:0;accent-color:var(--forest)}
.pref-list .pref .chev{margin-left:auto;display:inline-grid;place-items:center}
.pref-list .pref .chev svg{width:18px;height:18px;fill:none;stroke:var(--mute);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ptabs{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--paper);position:sticky;top:0;z-index:2;margin-top:22px}
.ptabs button{height:48px;display:grid;place-items:center;position:relative;color:var(--mute)}
.ptabs svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ptabs button[aria-selected="true"]{color:var(--coral)}
.ptabs button[aria-selected="true"]::after{content:'';position:absolute;left:28%;right:28%;bottom:-1px;height:3px;border-radius:2px;background:var(--coral)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:5px}
.grid3 button{position:relative;aspect-ratio:3/4;border-radius:12px;overflow:hidden;background:var(--placeholder)}
.grid3 button .poster{position:absolute;inset:0;height:100%}
.grid3 button small{position:absolute;left:7px;bottom:7px;right:7px;color:#fff;font-size:12px;font-weight:700;text-align:left;line-height:1.15;text-shadow:0 1px 6px #0009}
.note-row{display:flex;gap:12px;align-items:center;padding:12px 22px;border-bottom:1px solid var(--line)}
.note-row .thumb{width:52px;height:52px;border-radius:12px}
.note-row b{display:block;font-family:var(--display);font-weight:600;font-size:17px}
.note-row small{color:var(--mute)}
.note-row .f{width:32px;height:32px;margin-left:auto;fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round}

/* upload */
.up{padding:18px 22px}
.drop{display:block;border:2.5px dashed var(--drop-border);border-radius:22px;padding:34px 20px;text-align:center;cursor:pointer;background:var(--card)}
.drop:hover,.drop.over{border-color:var(--forest-text);background:var(--drop-hover)}
.drop b{display:block;font-family:var(--display);font-weight:600;font-size:21px;margin-bottom:6px}
.drop span{color:var(--mute);font-size:14px}
.drop input{display:none}
.file-line{margin-top:12px;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:14px;color:var(--mute)}
.file-line b{color:var(--ink);word-break:break-all}
.small-link{text-decoration:underline;font-weight:600;color:var(--forest-text);font-size:13px}
.post-caption{display:block;margin:20px 0;color:var(--ink);font-size:14px;font-weight:700}
.post-caption textarea{display:block;width:100%;min-height:96px;margin:8px 0 5px;padding:12px;border:1.5px solid var(--line);border-radius:14px;background:var(--card);font:inherit;font-size:15px;resize:vertical}
.post-caption textarea:focus{outline:2px solid var(--forest);outline-offset:2px}
.post-caption span{display:block;color:var(--mute);font-size:12px;font-weight:400;line-height:1.4}
.stages{list-style:none;margin-top:20px}
.stages li{display:flex;gap:12px;align-items:center;padding:9px 0;color:var(--idle);font-weight:500}
.stages li i{width:20px;height:20px;border-radius:50%;border:2px solid var(--idle-ring);flex:none;display:grid;place-items:center}
.stages li.run{color:var(--ink);font-weight:700}
.stages li.run i{border-color:var(--ink);border-top-color:transparent;animation:spin .8s linear infinite}
.stages li.done{color:var(--ink)}
.stages li.done i{background:var(--forest);border-color:var(--forest)}
.stages li.done i::after{content:'';width:8px;height:4px;border-left:2px solid var(--sage);border-bottom:2px solid var(--sage);transform:rotate(-45deg) translate(1px,-1px)}
@keyframes spin{to{transform:rotate(360deg)}}
.note{margin-top:14px;font-size:13px;color:var(--mute);line-height:1.4;padding:10px 12px;background:var(--paper-2);border-radius:12px}
.note.err{background:var(--err-bg);color:var(--err-ink)}
.result{margin-top:18px;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:16px}
.result h3{font-family:var(--display);font-weight:600;font-size:23px;letter-spacing:-.01em}
.result p{color:var(--mute);margin-top:4px;font-size:14px}
.result .row{display:flex;gap:8px;margin-top:14px}
.result .row .big-btn{margin:0;width:auto;flex:1;padding:13px 8px;font-size:15px}

/* shared buttons */
.big-btn{display:block;width:100%;padding:16px;border-radius:16px;background:var(--forest);color:#fff;font-weight:700;font-size:16px;text-align:center}
.big-btn.alt{background:var(--coral)}
.chip{font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--sage-soft);color:var(--forest-2)}

/* detail (cart checklist, made meter) reused in sheets/overlay */
.detail-head{padding:calc(env(safe-area-inset-top) + 16px) 18px 6px;display:flex;align-items:center;gap:10px}
.detail-head h2{flex:1;font-family:var(--display);font-weight:600;font-size:24px;letter-spacing:-.015em;line-height:1.1}
.rule{margin:12px 22px;border:0;border-top:2px dashed var(--line)}
.checklist{list-style:none;padding:4px 22px}
.checklist li{border-bottom:1px solid var(--line)}
.checklist label{display:flex;align-items:center;gap:14px;padding:14px 0;font-size:17px;cursor:pointer}
.checklist input{appearance:none;width:26px;height:26px;border:2px solid var(--ink);border-radius:8px;display:grid;place-items:center;flex:none;cursor:pointer}
.checklist input:checked{background:var(--forest);border-color:var(--forest)}
.checklist input:checked::after{content:'';width:12px;height:7px;border-left:3px solid var(--sage);border-bottom:3px solid var(--sage);transform:rotate(-45deg) translate(1px,-1px)}
.checklist input:checked+span{color:var(--struck);text-decoration:line-through}
.checklist .qty{font-weight:700;margin-right:6px}
.progress{margin:18px 22px 6px;height:10px;border-radius:5px;background:var(--line);overflow:hidden}
.progress i{display:block;height:100%;background:var(--forest);border-radius:5px;transition:width .25s}
.progress-note{padding:0 22px;color:var(--mute);font-size:14px}

/* sheet and toast */
.sheet-wrap{position:absolute;inset:0;z-index:20;display:flex;align-items:flex-end}
.scrim{position:absolute;inset:0;background:rgba(14,22,18,.55);animation:fade .2s}
.sheet{position:relative;width:100%;max-height:82%;overflow-y:auto;background:var(--paper);border-radius:28px 28px 0 0;padding:10px 20px calc(env(safe-area-inset-bottom) + 22px);animation:rise .28s cubic-bezier(.2,.8,.2,1)}
.grab{width:42px;height:5px;border-radius:3px;background:var(--grab);margin:0 auto 14px}
.sheet h3{font-family:var(--display);font-weight:600;font-size:23px;letter-spacing:-.01em;margin-bottom:12px}
.sheet .opt{display:flex;align-items:center;gap:12px;width:100%;padding:12px 4px;border-bottom:1px solid var(--line);text-align:left;font-weight:600;font-size:16px}
.sheet .opt .thumb{width:46px;height:46px;border-radius:12px}
.sheet .opt .o-t{flex:1;min-width:0}
.sheet .opt small{display:block;color:var(--mute);font-weight:500;font-size:13px}
.sheet .opt .add-btn{width:34px;height:34px;border-radius:50%;background:var(--forest);color:#fff;font-size:22px;line-height:1;display:grid;place-items:center;flex:none}
.sheet .tick{width:26px;height:26px;border-radius:8px;border:2px solid var(--ink);display:grid;place-items:center;flex:none}
.sheet .tick.on{background:var(--forest);border-color:var(--forest)}
.sheet .tick.on::after{content:'';width:11px;height:6px;border-left:3px solid var(--sage);border-bottom:3px solid var(--sage);transform:rotate(-45deg) translate(1px,-1px)}
.sheet input[type=text]{color:var(--ink);width:100%;padding:14px;border-radius:14px;border:1.5px solid var(--ink);font:inherit;font-size:16px;background:var(--card)}
.sheet .row2{display:flex;gap:10px;margin-top:12px}
.sheet .row2 .big-btn{margin:0;width:auto;flex:1}
.cmt{padding:10px 0;border-bottom:1px solid var(--line);line-height:1.4}
.cmt b{margin-right:6px}
.goal-row{display:flex;align-items:center;justify-content:center;gap:20px;margin:10px 0}
.goal-row b{font-family:var(--display);font-weight:600;font-size:42px;letter-spacing:-.02em;min-width:140px;text-align:center}
.goal-row button{width:52px;height:52px;border-radius:50%;background:var(--forest);color:#fff;font-size:26px}
.seg{display:flex;gap:8px;margin-bottom:10px}
.seg button{flex:1;padding:12px 4px;border-radius:14px;border:1.5px solid var(--ink);font-weight:700;font-size:14px}
.seg button[aria-pressed="true"]{background:var(--coral);color:#fff;border-color:var(--coral)}
.rate{margin:24px 0 0}
.rate h3{font-family:var(--display);font-weight:600;font-size:20px;margin-bottom:12px}
.faces{display:flex;gap:12px}
.face{flex:1;aspect-ratio:1;max-width:84px;border-radius:50%;border:2px solid var(--ink);display:grid;place-items:center;background:var(--card);transition:transform .15s,background .15s}
.face svg{width:60%;height:60%;fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round}
.face[aria-pressed="true"]{background:var(--coral);transform:scale(1.08)}
.face[aria-pressed="true"] svg{stroke:#fff}
.meter{margin:20px 0 0}
.meter-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.meter-top b{font-family:var(--display);font-weight:600;font-size:26px;letter-spacing:-.02em}
.meter-top small{color:var(--mute);font-size:14px}
.bar{height:24px;border-radius:12px;background:var(--line);overflow:hidden;position:relative}
.bar i{position:absolute;inset:0 auto 0 0;border-radius:12px;background:var(--sage)}
.bar.soon i{background:var(--gold)} .bar.urgent i{background:var(--coral)}
.range{width:100%;appearance:none;height:24px;border-radius:12px;background:var(--line);outline-offset:4px}
.range::-webkit-slider-thumb{appearance:none;width:32px;height:32px;border-radius:50%;background:var(--forest);border:4px solid var(--coral);cursor:grab}
.range::-moz-range-thumb{width:24px;height:24px;border-radius:50%;background:var(--forest);border:4px solid var(--coral)}
.back-fab{position:absolute;z-index:4;top:calc(env(safe-area-inset-top) + 14px);left:14px;width:42px;height:42px;border-radius:50%;background:rgba(14,22,18,.55);backdrop-filter:blur(8px);display:grid;place-items:center}
.back-fab svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.viewer-title{position:absolute;z-index:4;top:calc(env(safe-area-inset-top) + 20px);left:68px;right:16px;color:#fff;font-family:var(--display);font-weight:600;font-size:22px}
#viewer .dots{top:calc(env(safe-area-inset-top) + 68px)}
#viewer .pane.info{margin-top:calc(env(safe-area-inset-top) + 84px);height:calc(100% - env(safe-area-inset-top) - 84px)}
@keyframes fade{from{opacity:0}}
@keyframes rise{from{transform:translateY(40px);opacity:0}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* toast */
.toast{position:absolute;left:50%;bottom:calc(var(--nav) + env(safe-area-inset-bottom) + 16px);transform:translate(-50%,16px);max-width:calc(100% - 40px);background:var(--ink);color:var(--paper);padding:11px 18px;border-radius:999px;font-weight:600;font-size:14px;line-height:1.3;text-align:center;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;z-index:30}
.toast.on{opacity:1;transform:translate(-50%,0)}

/* theme switch */
.pref-switch{display:flex;align-items:center;gap:12px;width:100%;padding:16px 2px;border-bottom:1px solid var(--line);text-align:left;font-size:16px;font-weight:600}
.pref-switch .ps-sub{margin-left:auto;margin-right:2px;color:var(--mute);font-size:13px;font-weight:500}
.switch{position:relative;flex:none;width:50px;height:30px;border-radius:15px;background:var(--idle-ring);transition:background .2s}
.switch::after{content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.3);transition:transform .2s}
.pref-switch[aria-checked="true"] .switch{background:var(--coral)}
.pref-switch[aria-checked="true"] .switch::after{transform:translateX(20px)}
.pref-switch .ps-sub{margin-left:auto}
.pref-switch .ps-lab{display:flex;flex-direction:column;gap:2px}

/* post tiles with delete */
.post-tile{position:relative;aspect-ratio:3/4}
.post-tile>.open{position:absolute;inset:0;width:100%;height:100%;border-radius:12px;overflow:hidden;background:var(--placeholder)}
.post-tile>.open .poster{position:absolute;inset:0;height:100%}
.post-tile>.open small{position:absolute;left:7px;bottom:7px;right:7px;color:#fff;font-size:12px;font-weight:700;text-align:left;line-height:1.15;text-shadow:0 1px 6px #0009}
.post-tile .del{position:absolute;top:6px;right:6px;z-index:2;width:34px;height:34px;border-radius:50%;background:rgba(14,22,18,.68);backdrop-filter:blur(6px);display:grid;place-items:center}
.post-tile .del svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.grid3 .post-tile{aspect-ratio:3/4;background:none;overflow:visible;border-radius:12px}
.danger-btn{display:block;width:100%;margin-top:12px;padding:15px;border-radius:16px;background:var(--coral);color:#fff;font-weight:700;font-size:16px}
.ghost-btn{display:block;width:100%;margin-top:10px;padding:15px;border-radius:16px;border:1.5px solid var(--line);font-weight:700;font-size:16px}
.sheet .sheet-note{color:var(--mute);line-height:1.45;margin-bottom:4px}

/* video name field */
.name-field{display:block;margin:20px 0 0;color:var(--ink);font-size:14px;font-weight:700}
.name-field input{display:block;width:100%;margin:8px 0 5px;padding:13px 14px;border:1.5px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);font:inherit;font-size:16px;font-weight:500}
.name-field input:focus{outline:2px solid var(--forest-text);outline-offset:2px}
.name-field span{display:block;color:var(--mute);font-size:12px;font-weight:400}
.result .name-field{margin-top:0}
.post-caption textarea{color:var(--ink)}

/* theme fixes */
.phone[data-tab="discover"] .appbar .round svg{stroke:#1B2620}

/* sound toggle on video posts */
#viewer .snd{top:calc(env(safe-area-inset-top) + 14px)}

.vid-note{position:absolute;z-index:3;top:calc(env(safe-area-inset-top) + var(--bar) + 30px);left:14px;right:64px;padding:10px 12px;border-radius:12px;background:rgba(14,22,18,.78);backdrop-filter:blur(6px);color:#fff;font-size:13px;line-height:1.35}
#viewer .vid-note{top:calc(env(safe-area-inset-top) + 66px)}

.fmt-hint{margin:10px 2px 0;color:var(--mute);font-size:13px}
.up .note.err{margin-top:12px}

/* sound button: always above overlays, easy to spot while muted */
.snd{position:absolute;z-index:6;top:calc(env(safe-area-inset-top) + var(--bar) + 30px);right:14px;height:40px;min-width:132px;padding:0 12px;border-radius:20px;background:rgba(14,22,18,.66);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;gap:7px;color:#fff;font-size:12.5px;font-weight:700;white-space:nowrap}
.snd svg{width:21px;height:21px;flex:none;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.viewer-title{pointer-events:none;right:70px}
.vid-note{pointer-events:none}

/* pantry sub-tabs, created recently, budget */
.meal-card .chip{flex:none;margin-left:auto}
.chip.warn{background:var(--err-bg);color:var(--err-ink)}
.soft-empty{margin:0 22px;padding:16px;border:1.5px dashed var(--line);border-radius:16px;color:var(--mute);font-size:14px;line-height:1.45}
.eaten-row{display:flex;align-items:center;gap:10px;margin-top:6px}
.eaten-row button{width:44px;height:44px;border-radius:50%;background:var(--forest);color:#fff;font-size:24px;line-height:1;flex:none}
.eaten-row input{width:72px;height:44px;border-radius:14px;border:1.5px solid var(--ink);background:var(--card);color:var(--ink);text-align:center;font:inherit;font-size:20px;font-weight:700}
.eaten-row span{color:var(--mute);font-size:14px}
.receipt-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:calc(100% - 44px);margin:16px 22px 0;padding:15px;border-radius:16px;background:var(--forest);color:#fff;font-weight:700;font-size:16px}
.receipt-btn svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.warn-banner{display:flex;gap:12px;align-items:flex-start;margin:14px 22px 0;padding:14px;border-radius:16px;background:var(--err-bg);color:var(--err-ink);border:1px solid var(--coral)}
.warn-banner svg{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
.warn-banner b{display:block;font-size:15px}
.warn-banner span{display:block;font-size:13.5px;line-height:1.4;margin-top:2px}
.budget-card{margin:14px 22px 0;padding:16px;border-radius:22px;background:var(--card);border:1px solid var(--line)}
.bc-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.bc-head .section-title{font-size:22px}
.bc-body{display:flex;align-items:center;gap:18px}
.bc-legend{list-style:none;display:grid;gap:14px;min-width:0}
.bc-legend li{display:flex;align-items:center;gap:10px}
.bc-legend i{width:14px;height:14px;border-radius:5px;flex:none}
.bc-legend b{display:block;font-family:var(--display);font-weight:600;font-size:21px;letter-spacing:-.01em;line-height:1.1}
.bc-legend span{color:var(--mute);font-size:13px}
.bc-key{display:inline-flex;align-items:center;gap:6px;color:var(--mute);font-size:12.5px;font-weight:600}
.bc-key i{width:10px;height:10px;border-radius:3px;margin-left:6px}
.budget-card svg{display:block;width:100%}
.cart-rows{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:0 22px}
.cart-row{display:flex;align-items:center;gap:12px;min-width:0;padding:10px;border-radius:18px;background:var(--card);border:1px solid var(--line)}
.cart-row .thumb{width:54px;height:54px;border-radius:12px;overflow:hidden;flex:none;background:var(--placeholder)}
.cr-main{flex:1;min-width:0}
.cr-main b{display:block;font-family:var(--display);font-weight:600;font-size:17px;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cr-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:6px}
.made-btn{padding:0 14px;height:34px;border-radius:999px;border:1.5px solid var(--ink);font-weight:700;font-size:13.5px}
.si-x{flex:none;width:34px;height:34px;color:var(--mute);font-size:22px;line-height:1}
.cat-head{display:flex;justify-content:space-between;align-items:baseline;margin:18px 22px 4px;font-family:var(--display);font-weight:600;font-size:19px}
.cat-head span{font-family:var(--body);font-size:13px;font-weight:600;color:var(--mute)}
.shop-list{list-style:none;margin:0 22px;border-top:1px solid var(--line)}
.shop-item{display:flex;align-items:center;border-bottom:1px solid var(--line)}
.shop-item label{flex:1;min-width:0;display:flex;align-items:center;gap:14px;padding:13px 0;cursor:pointer}
.shop-item input{appearance:none;width:26px;height:26px;border:2px solid var(--ink);border-radius:8px;display:grid;place-items:center;flex:none;cursor:pointer}
.shop-item input:checked{background:var(--forest);border-color:var(--forest)}
.shop-item input:checked::after{content:'';width:11px;height:6px;border-left:3px solid var(--sage);border-bottom:3px solid var(--sage);transform:rotate(-45deg) translate(1px,-1px)}
.si-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.si-name{font-size:16px;font-weight:600}
.si-sub{color:var(--mute);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.si-price{flex:none;font-weight:700;font-variant-numeric:tabular-nums}
.shop-item.done .si-name,.shop-item.done .si-price{color:var(--struck);text-decoration:line-through}
.shop-item.done .si-sub{opacity:.6}
.shop-item .si-x{margin-left:4px}

/* discover filters, log note */
.round{position:relative}
.fbadge{position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--coral);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;border:2px solid var(--paper)}
.f-group{margin-top:14px}
.f-group h4{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);margin-bottom:8px}
.fchips{display:flex;flex-wrap:wrap;gap:8px}
.fchip{padding:10px 15px;border-radius:999px;border:1.5px solid var(--line);background:var(--card);font-weight:600;font-size:14.5px}
.fchip[aria-pressed="true"]{background:var(--coral);color:#fff;border-color:var(--coral)}
.log-note{min-height:20px;margin-top:10px;text-align:center;color:var(--sage);font-size:14px;font-weight:600}

/* search, diet switch, cookbook editing */
.sdot{position:absolute;top:-2px;right:-2px;width:13px;height:13px;border-radius:50%;background:var(--coral);border:2px solid var(--paper)}
.sbar{display:flex;align-items:center;gap:10px;height:50px;padding:0 6px 0 14px;border-radius:14px;background:var(--card);border:1.5px solid var(--ink)}
.sbar>svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--mute);stroke-width:2;stroke-linecap:round}
.sbar input{flex:1;min-width:0;border:0;outline:0;background:none;color:var(--ink);font:inherit;font-size:16px;-webkit-appearance:none;appearance:none}
.sbar input::-webkit-search-cancel-button{display:none}
.sclear{visibility:hidden;width:38px;height:38px;color:var(--mute);font-size:22px;line-height:1}
#sres{margin-top:8px}
#sres .opt:last-of-type{border-bottom:0}
.s-head{margin:14px 0 2px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.pref-switch .ps-sublabel{display:block;margin-top:2px;color:var(--mute);font-size:13px;font-weight:500}
.tile-wrap{position:relative;min-width:0}
.feat-wrap{position:relative}
.tile-menu{position:absolute;z-index:2;top:8px;right:8px;width:36px;height:36px;border-radius:50%;background:rgba(14,22,18,.62);backdrop-filter:blur(6px);display:grid;place-items:center}
.feat-wrap .tile-menu{top:24px;right:34px}
.tile-menu svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ec-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.ec-row .thumb{width:44px;height:44px;border-radius:10px;overflow:hidden;flex:none;background:var(--placeholder)}
.ec-row span{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* upload result preview */
.res-ings{list-style:none;margin:12px 0 0;max-height:210px;overflow-y:auto;border-top:1px solid var(--line)}
.res-ings li{display:flex;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.res-ings .qty{min-width:76px;font-weight:700;color:var(--coral-ink)}
.warn-list{margin:6px 0 0 18px;font-weight:500}
.warn-list li{margin:2px 0}

/* swipe tabs: the side panels start lower than the video panel, so shift their tabs up by the same offset
   to keep all three tabs at one height. (centre = 44% of the full reel height) */
.pane.info .edge{top:calc(44% - .56 * (env(safe-area-inset-top) + var(--bar) + 20px))}
#viewer .pane.info .edge{top:calc(44% - .56 * (env(safe-area-inset-top) + 84px))}
