/* Scope changes only. All Style layout, typography, colours, tray and canvas CSS
   come directly from the original prototype. */
#nav{gap:1px;padding:3px 8px}
#nav,#phone > .top > :is(#refBtn,#pBtn){
 background:linear-gradient(155deg,rgba(255,255,255,.43),rgba(255,255,255,.13) 60%,rgba(255,255,255,.23));
 backdrop-filter:blur(15px) saturate(190%);
 -webkit-backdrop-filter:blur(15px) saturate(190%);
 border-color:rgba(255,255,255,.66);
 box-shadow:0 4px 14px rgba(0,0,0,.10),inset 0 1px 1px rgba(255,255,255,.68)
}
#phone > .top > :is(#refBtn,#pBtn){
 width:36px;height:36px;align-self:center;color:var(--ink);
 border-color:rgba(25,25,25,.065);
 box-shadow:0 2px 6px rgba(0,0,0,.045),inset 0 1px 1px rgba(255,255,255,.72)
}
#phone > .top > :is(#refBtn,#pBtn) > svg{width:17px;height:17px}
#nav button{width:44px;height:44px}
#nav svg{width:26px;height:26px}
#nav [data-k="edit"].on svg{fill:currentColor}
#tray .tray-art{inset:3px 0;width:auto;height:auto;overflow:hidden}
#tray .ti:focus-visible{outline:2px solid currentColor;outline-offset:-2px;border-radius:5px}
#tray .tclr{width:32px;height:40px}
#scr-discover,#scr-me,#dtop,#meisland,.own,.fol,.hrt,[data-act="pfollow"],[data-act="heart"],[data-act="share"],[data-act="bshare"],[data-act="togpub"],[data-act="addphoto"],[data-act="addclothes"],.qseg [data-v="yours"]{display:none!important}
#scr-edit.mvp-saved{padding:25px 16px 110px;background:#fafaf8}
.mvp-saved .lib-top h1{font-size:24px;font-weight:500;letter-spacing:-.6px;margin:0}
.mvp-saved .lib-top>span{font-size:11px;color:var(--mute)}
.mvp-saved .lib-photo>.saved-tryon{inset:4% 3%}
.mvp-saved .lib-info{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mvp-saved .lib-info>div{min-width:0;flex:1}
.mvp-saved .lib-info>div>span{display:block;font-size:11px;color:var(--mute);margin-top:5px}
.mvp-saved .lib-info>button{width:28px;height:32px;border:0;background:none;padding:7px;color:var(--mute)}
.mvp-saved .lib-empty{text-align:center;padding:80px 12px;color:var(--mute);font-size:13px;line-height:1.7}
.mvp-saved .lib-empty .pill{margin-top:20px}
.mvp-saved .lib-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}

/* Details product cards use one continuous gradient behind image and caption. */
#stage .tile.z3{background:linear-gradient(130deg,#e0e0e0 0%,#e8e7e8 53%,#f2f2f2 100%)!important}
#stage .tile.z3 .g{bottom:58px}
#stage .tile.z3 .lb{left:10px;right:10px;bottom:0;height:56px;background:transparent}
#stage .tile.z3 .lt{line-height:1.25;gap:2px}
#stage .tile.z3 .lt span{font-size:11px;color:#555}
#stage .tile > .mvp-grid-brand{
 position:absolute;z-index:2;left:8px;bottom:8px;max-width:calc(100% - 16px);
 padding:4px 7px;border-radius:999px;
 background:rgba(248,247,245,.84);backdrop-filter:blur(12px);
 color:#302e2b;font-size:10px;font-weight:400;line-height:1.2;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none
}

/* Shared fade below the Style and Saved headers. */
#phone{--mvp-header-fade:48px}
#phone > .top{
 flex-wrap:nowrap;
 background:#fff!important;
 backdrop-filter:none;
 -webkit-backdrop-filter:none;
 column-gap:5px;
 padding:10px 12px 8px
}
#phone > .top::after,.mvp-saved-header::after{
 content:"";
 position:absolute;top:100%;left:0;right:0;height:var(--mvp-header-fade);
 background:linear-gradient(to bottom,#fff,rgba(255,255,255,.94) 15%,rgba(255,255,255,.78) 30%,
  rgba(255,255,255,.5) 50%,rgba(255,255,255,.22) 70%,rgba(255,255,255,.06) 85%,transparent);
 pointer-events:none
}
#phone > #canvas{background:#fff}
#phone > .top > #row{
 gap:clamp(10px,3.4vw,14px);padding-right:10px;
 -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 10px),transparent);
 mask-image:linear-gradient(to right,#000 calc(100% - 10px),transparent)
}
#phone > .top #row > .opt{padding-inline:0;color:#777;font-size:14px;font-weight:500}
#phone > .top #row > .opt.sel{background:none;color:#141414;font-weight:650}
.top #row .mvp-filter-current{
 flex:none;height:32px;gap:5px;padding:0;background:#fff;color:#141414;
 border:0;backdrop-filter:none;font-size:14px;font-weight:650
}
.top #row .mvp-filter-current svg{width:10px;height:10px}
.top #row .mvp-filter-current:first-child{position:sticky;left:0;z-index:2}
.top #row .mvp-garment-filter{width:34px;height:36px;color:var(--ink)}
.top #row .mvp-filter-glyph{display:grid;place-items:center}
.top #row .mvp-filter-glyph svg{width:15px;height:15px}

/* A smaller two-view switch at the edge of the grid. */
#zrail{padding:2px;border-radius:10px}
#zrail button{width:28px;height:28px;border-radius:7px}
#zrail svg{width:12px;height:12px}


/* Product photos and details scroll independently of the bottom actions. */
#sheet:has(.mvp-product-body){
 height:70%;display:flex;flex-direction:column;overflow:hidden;
 padding:8px 12px calc(12px + env(safe-area-inset-bottom,0px))
}
#sheet:has(.mvp-product-body) > .grab{flex:none}
.mvp-product-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:8px}
.mvp-product-body .igal{height:clamp(185px,34dvh,420px);background:#eeedeb}
.mvp-product-body .igal .gs > img{width:100%;height:100%;object-fit:contain;display:block}
.mvp-product-body .igal .gs .tg2{inset:5%}
.mvp-product-body .ihead,.mvp-product-body .imeta{margin-inline:4px}
.mvp-product-actions.icta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:none;margin-top:8px}
.mvp-product-actions .main:not(.shop){background:none;color:var(--ink);border:1px solid rgba(0,0,0,.15)}
.mvp-product-actions .main svg{width:17px;height:17px}
.mvp-product-actions .main.shop{grid-column:1 / -1;height:49px}

/* Saved tabs and the five-photo collection fans. */
#scr-edit.mvp-saved{padding:0 0 112px;background:#fff}
.mvp-saved-header{
 position:sticky;top:0;z-index:12;display:grid;grid-template-columns:40px 1fr 40px;
 align-items:center;min-height:54px;padding:4px 12px;background:#fff;
 transition:transform .26s cubic-bezier(.24,.72,.24,1)
}
.mvp-saved-header.is-hidden:not(:has(:focus-visible)){transform:translateY(calc(-100% - var(--mvp-header-fade)));pointer-events:none}
.mvp-saved-avatar{display:block;width:38px;height:38px;border-radius:50%;object-fit:cover;object-position:center 38%}
.mvp-saved-header nav{display:flex;justify-content:center;gap:clamp(12px,5vw,23px)}
.mvp-saved-header nav button{border:0;background:none;padding:10px 0;color:#777;font:inherit;font-size:14px;font-weight:500}
.mvp-saved-header nav button[aria-pressed="true"]{color:#171513;font-weight:650}
.mvp-saved-menu{position:relative;justify-self:end}
.mvp-saved-menu summary{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;cursor:pointer;list-style:none}
.mvp-saved-menu summary::-webkit-details-marker{display:none}
.mvp-saved-menu[open] summary{background:#f4f4f3}
.mvp-saved-menu > div{position:absolute;top:calc(100% + 4px);right:0;width:max-content;padding:5px;background:#fff;border:1px solid #eee;border-radius:12px;box-shadow:0 6px 20px #211a1518}
.mvp-saved-menu button{display:block;width:100%;text-align:left;padding:9px 12px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;font-size:13px}
.mvp-saved-menu button:hover,.mvp-saved-menu button:focus-visible{background:#f4f4f3}
.mvp-saved > .lib-grid{margin:16px}
.mvp-collection-list{isolation:isolate;padding:48px 14px 6px;text-align:center}
.mvp-collection-list article{margin-bottom:63px}
.mvp-collection-fan{position:relative;display:block;width:100%;height:302px;border:0;background:none;touch-action:pan-y}
.mvp-collection-fan span{
 position:absolute;top:30.4px;left:50%;width:clamp(141.75px,46.305%,183.33px);height:238.14px;
 border-radius:4px;overflow:hidden;background:#ebe8e3;transform-origin:center;
 transform:translateX(-50%);box-shadow:0 6px 23px rgb(33 26 21 / calc(var(--card-shadow,0) * .68));
}
.mvp-collection-fan img,.mvp-collection-track img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.mvp-collection-list h2,.mvp-collection-detail h2{margin:8px 0 0;font-size:14px;font-weight:650}
.mvp-collection-list h2{margin-top:16px}
.mvp-collection-list p,.mvp-collection-track figcaption{margin:5px 0 0;color:#767676;font-size:12px}
.mvp-collection-detail{position:relative;padding-top:16px;text-align:center}
.mvp-collection-detail h2{padding:0 56px;margin-bottom:24px}
.mvp-collection-back{position:absolute;left:12px;top:10px;width:40px;height:40px;border:0;border-radius:50%;background:#f4f4f3;color:inherit}
.mvp-collection-back svg{width:18px;height:18px}
.mvp-collection-track{position:relative;display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.mvp-collection-track figure{flex:0 0 100%;margin:0;padding:0 11%;scroll-snap-align:start}
.mvp-collection-track img{height:auto;aspect-ratio:2/3;border-radius:5px;background:#ebe8e3}
.mvp-saved-items button{display:grid;gap:4px;border:0;padding:0 0 8px;background:none;text-align:left;color:inherit;font:inherit}
.mvp-saved-items button > span{display:block;aspect-ratio:1;overflow:hidden;background:#eeedeb;border-radius:5px}
.mvp-saved-items button img{display:block;width:100%;height:100%;object-fit:contain;padding:8%}
.mvp-saved-items button small{color:#646464}
#zrail{border-radius:15px}
#zrail button{border-radius:12px}
@media(prefers-reduced-motion:reduce){.mvp-saved-header{transition:none}}
