:root{--pwa-green:#176b45;--pwa-green-2:#2e8b5d;--pwa-ink:#10251b;--pwa-muted:#64756c;--pwa-surface:#fff;--pwa-line:#dfe9e3;--pwa-nav-height:76px}
.pwa-app-header,.pwa-bottom-nav,.pwa-install-button,.pwa-install-sheet,.pwa-update-toast,.pwa-launch-splash{display:none}
.pwa-launch-splash{position:fixed;z-index:30000;inset:0;flex-direction:column;align-items:center;justify-content:center;gap:.55rem;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:linear-gradient(160deg,#f8fcf9 0%,#e8f6ed 100%);color:#123d2a;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease}
.pwa-launch-splash img{width:clamp(112px,28vw,164px);height:clamp(112px,28vw,164px);object-fit:contain;filter:drop-shadow(0 16px 30px rgba(23,107,69,.18))}
.pwa-launch-splash strong{font-size:1.65rem;letter-spacing:-.03em}.pwa-launch-splash span{color:#527062;font-size:.9rem;font-weight:650}
html.pwa-standalone.pwa-booting .pwa-launch-splash{display:flex;opacity:1;visibility:visible;pointer-events:auto}
html.pwa-standalone.pwa-ready .pwa-launch-splash{display:flex;opacity:0;visibility:hidden;pointer-events:none}
.pwa-install-button{align-items:center;gap:.4rem;min-height:40px;padding:.5rem .75rem;border:1px solid #b8dfca;border-radius:999px;background:#effaf4;color:#125c3d;font:inherit;font-weight:800;cursor:pointer}
.pwa-install-button[data-visible="true"]{display:inline-flex}
.pwa-install-sheet{position:fixed;inset:0;z-index:16000;align-items:flex-end;justify-content:center;padding:1rem;background:rgba(7,22,15,.62)}
.pwa-install-sheet.is-open{display:flex}.pwa-install-sheet__card{width:min(520px,100%);border-radius:24px;background:#fff;padding:1.25rem;box-shadow:0 28px 80px rgba(0,0,0,.28)}
.pwa-install-sheet__head{display:flex;align-items:center;gap:.75rem}.pwa-install-sheet__head img{width:54px;height:54px;object-fit:contain}.pwa-install-sheet__head h2{margin:0;flex:1}
.pwa-install-sheet__close{width:44px;height:44px;border:0;border-radius:50%;background:#eef3f0;color:#33483d;font-size:1.25rem;cursor:pointer}
.pwa-install-sheet__steps{margin:1rem 0;padding-left:1.3rem;color:#42564b;line-height:1.65}.pwa-install-sheet__actions{display:flex;gap:.7rem;justify-content:flex-end}
.pwa-sheet-btn{min-height:46px;border:0;border-radius:999px;padding:.7rem 1.1rem;font-weight:800;cursor:pointer}.pwa-sheet-btn--primary{background:var(--pwa-green);color:#fff}.pwa-sheet-btn--quiet{background:#eef3f0;color:#284538}
.pwa-update-toast{position:fixed;left:50%;bottom:1rem;z-index:17000;transform:translateX(-50%);align-items:center;gap:.7rem;width:min(92vw,520px);padding:.75rem .9rem;border-radius:14px;background:#10251b;color:#fff;box-shadow:0 16px 44px rgba(0,0,0,.28)}
.pwa-update-toast.is-visible{display:flex}.pwa-update-toast button{margin-left:auto;border:0;border-radius:999px;padding:.55rem .8rem;background:#5dd397;color:#07351f;font-weight:900;cursor:pointer}

@media (display-mode:standalone){
 html{background:#f5f8f6}.pwa-app-header,.pwa-bottom-nav{display:flex}
 body{min-height:100dvh;background:#f5f8f6;padding-bottom:calc(var(--pwa-nav-height) + env(safe-area-inset-bottom));overscroll-behavior-y:none}
 body>.header,body>.footer,.instant-sell-mobile-fab,#help-widget-icon,#help-widget-popup{display:none!important}
 #main-content{min-height:calc(100dvh - 62px - var(--pwa-nav-height));padding-bottom:1rem}
}
html.pwa-standalone{background:#f5f8f6}
html.pwa-standalone a,html.pwa-standalone button{touch-action:manipulation;-webkit-tap-highlight-color:rgba(23,107,69,.14)}
html.pwa-standalone .pwa-app-header,html.pwa-standalone .pwa-bottom-nav{display:flex}
html.pwa-standalone body{min-height:100dvh;background:#f5f8f6;padding-bottom:calc(var(--pwa-nav-height) + env(safe-area-inset-bottom));overscroll-behavior-y:none}
html.pwa-standalone body::after{content:"";position:fixed;z-index:20050;top:env(safe-area-inset-top);left:0;width:100%;height:3px;background:linear-gradient(90deg,#176b45,#5dd397,#176b45);background-size:180% 100%;transform:scaleX(0);transform-origin:left;opacity:0;pointer-events:none}
html.pwa-standalone body.pwa-navigating::after{opacity:1;transform:scaleX(.82);animation:pwa-route-progress 1.1s ease-in-out infinite}
html.pwa-standalone body>.header,html.pwa-standalone body>.footer,html.pwa-standalone .instant-sell-mobile-fab,html.pwa-standalone #help-widget-icon,html.pwa-standalone #help-widget-popup{display:none!important}
html.pwa-standalone #main-content{min-height:calc(100dvh - 62px - var(--pwa-nav-height));padding-bottom:1rem}
.pwa-app-header{position:sticky;top:0;z-index:11800;min-height:calc(62px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(.85rem,env(safe-area-inset-right)) 0 max(.85rem,env(safe-area-inset-left));align-items:center;gap:.7rem;background:rgba(255,255,255,.95);border-bottom:1px solid var(--pwa-line);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.pwa-app-header__brand{display:flex;align-items:center;gap:.55rem;color:var(--pwa-ink);text-decoration:none;font-size:1.05rem;font-weight:900}.pwa-app-header__brand img{width:38px;height:38px;object-fit:contain}.pwa-app-header__spacer{flex:1}
.pwa-app-header__action{position:relative;width:46px;height:46px;display:grid;place-items:center;border:0;border-radius:50%;background:#eef5f1;color:#174b34;text-decoration:none;font-size:1.05rem;cursor:pointer}
.pwa-app-header__avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;border:2px solid #47a874}
.pwa-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:11900;height:calc(var(--pwa-nav-height) + env(safe-area-inset-bottom));padding:6px max(6px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px,env(safe-area-inset-left));align-items:flex-end;justify-content:space-around;background:rgba(255,255,255,.97);border-top:1px solid var(--pwa-line);box-shadow:0 -12px 32px rgba(17,67,43,.09);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.pwa-bottom-nav__item{min-width:56px;min-height:58px;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:transparent;color:#66786e;text-decoration:none;font-size:.67rem;font-weight:750;cursor:pointer}
.pwa-bottom-nav__item i{font-size:1.15rem}.pwa-bottom-nav__item.is-active{color:var(--pwa-green)}.pwa-bottom-nav__item:focus-visible,.pwa-app-header__action:focus-visible{outline:3px solid #80d5a9;outline-offset:2px}
.pwa-bottom-nav__sell{position:relative;top:-12px;flex:0 0 70px}.pwa-bottom-nav__sell-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:20px;background:linear-gradient(145deg,#1c9c63,#0f6943);color:#fff;font-size:1.25rem;box-shadow:0 10px 24px rgba(23,107,69,.32);border:4px solid #fff}.pwa-bottom-nav__sell span:last-child{color:#145d3d;font-size:.68rem;font-weight:900}
body.instant-sell-ui-open .pwa-bottom-nav,body.perseed-call-window-open .pwa-bottom-nav,body.marketplace-modal-open .pwa-bottom-nav,body.pwa-overlay-open .pwa-bottom-nav{transform:translateY(120%);pointer-events:none}
body.instant-sell-ui-open .pwa-app-header,body.perseed-call-window-open .pwa-app-header,body.marketplace-modal-open .pwa-app-header,body.pwa-overlay-open .pwa-app-header{display:none!important}
html.pwa-standalone .marketplace-product-modal{z-index:13000}
html.pwa-standalone .marketplace-product-modal__close{z-index:6;width:46px;height:46px;border:2px solid rgba(23,107,69,.2);background:#fff;color:#173e2b;font-size:1.35rem;font-weight:900;box-shadow:0 10px 30px rgba(15,23,42,.22)}
html.pwa-standalone .instant-sell-modal{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);align-items:stretch}
html.pwa-standalone .instant-sell-panel{width:100%;max-height:100dvh;height:100%;border-radius:0}
html.pwa-standalone .instant-sell-head{padding:calc(.9rem + env(safe-area-inset-top)) 1rem .9rem;background:#fff}
html.pwa-standalone .instant-sell-body{padding:1rem max(1rem,env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left))}
@media(max-width:640px){
 html.pwa-standalone .marketplace-product-modal{padding:0;align-items:stretch}
 html.pwa-standalone .marketplace-product-modal__dialog{width:100%;height:100dvh;max-height:100dvh;padding:calc(4.4rem + env(safe-area-inset-top)) max(.95rem,env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) max(.95rem,env(safe-area-inset-left));border:0;border-radius:0;overscroll-behavior:contain}
 html.pwa-standalone .marketplace-product-modal__close{position:fixed;top:calc(.65rem + env(safe-area-inset-top));right:max(.65rem,env(safe-area-inset-right));width:48px;height:48px}
}
@media(max-width:420px){.pwa-bottom-nav__item{min-width:48px}.pwa-bottom-nav__item span{font-size:.62rem}.pwa-app-header{padding-left:.65rem;padding-right:.65rem}}
@keyframes pwa-route-progress{0%{transform:scaleX(.08);background-position:100% 0}55%{transform:scaleX(.72)}100%{transform:scaleX(.94);background-position:0 0}}
@media(prefers-reduced-motion:reduce){.pwa-bottom-nav,.pwa-install-sheet,.pwa-launch-splash{transition:none!important}.pwa-bottom-nav__sell-icon{box-shadow:none}}
