/* Shared phone controls; desktop layout remains independent. */
:root{--lab-surface:#fff;--lab-text:#243044;--lab-muted:#768297;--lab-line:#dde5ef;--lab-accent:#285aff;--lab-active:#eff3ff;--lab-bottom-height:54px}
html[data-theme="dark"]{--lab-surface:#182333;--lab-text:#e9eef7;--lab-muted:#a0b0c6;--lab-line:#34455e;--lab-accent:#a8c5ff;--lab-active:#263b59}
.lab-mobile-nav{display:none}
.lab-product-link{display:none}
.lab-product-link[hidden]{display:none!important}
@media(max-width:760px){
 #lab-site-header .header-tools>.lab-badge,#lab-site-header .header-tools>.icon-link:not(.theme-toggle),#lab-site-header .lab-user-menu{display:none!important}
 #lab-site-header .theme-toggle{order:1;min-width:44px;min-height:44px;padding:10px!important}
 #lab-site-header .header-menu{order:2;display:block!important}
 #lab-site-header .header-tools{gap:4px!important}
 #lab-site-header .header-menu>summary{min-height:44px;padding:10px 4px 10px 8px!important;font-size:12px!important}
 #lab-site-header .header-menu>summary>span{display:inline!important}
 #lab-site-header .header-menu>summary svg{width:20px;height:20px}
 #lab-site-header .theme-toggle svg{width:20px;height:20px}
 body:has(#lab-mobile-nav){padding-bottom:calc(var(--lab-bottom-height) + env(safe-area-inset-bottom,0px))!important}
 .lab-mobile-nav{box-sizing:border-box;position:fixed;left:0;right:0;bottom:0;z-index:850;display:grid;grid-template-columns:repeat(var(--lab-nav-count,4),minmax(0,1fr));min-height:calc(var(--lab-bottom-height) + env(safe-area-inset-bottom,0px));padding:4px 10px calc(4px + env(safe-area-inset-bottom,0px));background:var(--lab-surface);border-top:1px solid var(--lab-line);box-shadow:0 -3px 18px #152c4b0a}
 .lab-mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;color:var(--lab-muted)!important;text-decoration:none!important;font:500 10px/1.2 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;border-radius:10px;background:transparent;border:0;box-shadow:none}
 .lab-nav-icon{position:relative;display:grid;place-items:center;width:40px;height:24px;border-radius:9px;transition:background .16s,color .16s}
 .lab-mobile-nav svg{width:20px;height:20px;display:block}
 .lab-mobile-nav a[aria-current="page"]{color:var(--lab-accent)!important;font-weight:650}
 .lab-mobile-nav a[aria-current="page"] .lab-nav-icon{background:var(--lab-active)}
 .lab-mobile-nav sup{position:absolute;right:-3px;top:-3px;min-width:14px;height:15px;padding:1px 3px;border-radius:9px;background:#285aff;color:white;font:10px/13px system-ui;text-align:center}
 .lab-mobile-nav a:active{background:var(--lab-active);translate:0 1px}
 .lab-mobile-nav a:focus-visible{outline:2px solid var(--lab-accent);outline-offset:-2px}
 body.lab-keyboard-open .lab-mobile-nav{display:none}
}
/* One contact entry, with the original chat backend and configured contact links. */
.lab-support-root.contact-support-root{position:fixed!important;left:auto!important;right:24px!important;top:auto!important;bottom:24px!important;width:auto!important;transform:none!important;z-index:860!important;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.lab-support-root .contact-support-widget{position:static!important;transform:none!important;width:auto!important}
#lab-support-trigger{position:relative;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 15px;border:1px solid var(--lab-line);border-radius:24px;background:var(--lab-surface);color:var(--lab-text);box-shadow:0 4px 16px #2034541a;font:550 13px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;cursor:pointer}
#lab-support-trigger svg{width:21px;height:21px}
#lab-support-trigger:hover{border-color:var(--lab-accent);color:var(--lab-accent);translate:0 -2px}
.lab-support-dot{position:absolute;right:4px;top:2px;width:8px;height:8px;border:2px solid var(--lab-surface);border-radius:50%;background:#f0525f;box-sizing:content-box}
.lab-support-dot[hidden]{display:none!important}
#lab-support-dialog{box-sizing:border-box;color:var(--lab-text)!important;background:var(--lab-surface)!important;border:1px solid var(--lab-line)!important;border-radius:16px!important;box-shadow:0 12px 42px #14233e29;font:14px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;padding:20px;width:calc(100% - 32px);max-width:520px;max-height:80dvh;overflow:auto}
#lab-support-dialog{pointer-events:auto}
.lab-dialog::backdrop{background:#07132366;pointer-events:auto}
.lab-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}
.lab-dialog-head h2{margin:0!important;font-size:18px!important;line-height:1.5;font-weight:650;color:var(--lab-text)!important;border:0!important;padding:0!important}
.lab-dialog-head button{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--lab-muted);font:26px/1 system-ui;cursor:pointer}
.lab-dialog-head button:hover{background:var(--lab-active)}
#lab-support-dialog{margin:0;right:24px;left:auto;top:auto;bottom:78px;width:300px;max-width:calc(100vw - 48px);max-height:min(80dvh,calc(100dvh - 94px));padding:18px}
.lab-contact-list{display:flex!important;flex-direction:column!important;gap:8px!important}
.lab-contact-item{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 12px;box-sizing:border-box;border:1px solid var(--lab-line);border-radius:10px;text-decoration:none!important;color:var(--lab-text)!important;background:var(--lab-surface)}
@media(min-width:761px) and (hover:hover) and (pointer:fine){.lab-contact-item:hover{background:var(--lab-active);border-color:var(--lab-accent)}}
.lab-contact-item:active{background:var(--lab-active);border-color:var(--lab-accent)}
.lab-contact-item:focus-visible{outline:2px solid var(--lab-accent);outline-offset:2px}
.lab-contact-item>span:nth-child(2){flex:1;min-width:0}
.lab-contact-item strong{display:block;font-size:14px;font-weight:600}
.lab-contact-item small{display:block;margin-top:3px;color:var(--lab-muted);font-size:11px;line-height:1.5}
.lab-contact-icon{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:10px;background:var(--lab-active);color:var(--lab-accent);font:600 12px/1 system-ui}
.lab-contact-icon svg{width:20px;height:20px}
.lab-contact-arrow{font-size:21px;color:var(--lab-muted)}
.lab-product-link{position:relative}
.lab-product-link .lab-support-dot{right:4px;top:0}
@media(max-width:760px){
 .lab-support-root.contact-support-root{right:14px!important;bottom:calc(var(--lab-bottom-height) + env(safe-area-inset-bottom,0px) + 14px)!important}
 #lab-support-trigger{justify-content:center;width:46px;height:46px;min-height:46px;padding:0;border-radius:50%}
 #lab-support-trigger>span{display:none}
 #lab-support-trigger svg{width:23px;height:23px}
 #lab-support-dialog{left:0;right:0;top:auto;bottom:0;width:100%;max-width:none;max-height:75dvh;border-radius:20px 20px 0 0!important;padding:18px 18px calc(20px + env(safe-area-inset-bottom,0px))}
 .lab-dialog-head h2{font-size:17px!important}
 .lab-dialog-open #lab-support-trigger,body.lab-keyboard-open #lab-support-trigger{visibility:hidden}
 .gstore-mall-support-unread-v1{bottom:calc(var(--lab-bottom-height) + env(safe-area-inset-bottom,0px) + 14px)!important}
}
@media(max-width:900px),(min-width:901px) and (max-width:1100px) and (orientation:portrait){body.gstore-product-page-mobile-drawer-v1 .lab-support-root #lab-support-trigger{display:none}body.gstore-product-page-mobile-drawer-v1 .gstore-mall-support-unread-v1{bottom:calc(64px + env(safe-area-inset-bottom,0px))!important}}
@media(prefers-reduced-motion:reduce){#lab-support-trigger:hover{translate:none}}
/* A single action bar on product pages, sharing the existing purchase drawer. */
@media(max-width:900px),(min-width:901px) and (max-width:1100px) and (orientation:portrait){
 body.gstore-product-page-mobile-drawer-v1.gstore-product-drawer-ready-v1 #gstoreProductPurchaseBarV1{bottom:var(--gstore-mobile-browser-bottom,0px)!important;grid-template-columns:36px 36px minmax(0,1fr) minmax(104px,120px)!important;gap:8px!important;width:min(100%,680px)!important;padding:5px 12px calc(5px + env(safe-area-inset-bottom,0px))!important;min-height:56px!important;background:var(--lab-surface)!important;border-color:var(--lab-line)!important;box-shadow:0 -3px 18px #152c4b0d!important;box-sizing:border-box}
 #gstoreProductPurchaseBarV1 .lab-product-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:0;color:var(--lab-muted)!important;background:transparent!important;border:0!important;border-radius:8px;font:500 10px/1.2 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;text-decoration:none!important;cursor:pointer;box-shadow:none}
 #gstoreProductPurchaseBarV1 .lab-product-link svg{width:20px;height:20px;display:block}
 #gstoreProductPurchaseBarV1 #gstoreProductPurchaseOpenV1{min-width:0!important;min-height:40px!important;max-width:240px!important;justify-self:end;width:100%!important;padding:4px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:9px!important;background:#285aff!important;color:#fff!important;font-size:13px!important;line-height:1.2!important;box-shadow:none!important;border:1px solid #285aff!important}
 #gstoreProductPurchaseBarV1 #gstoreProductPurchasePriceV1{display:block!important;min-width:0;justify-self:end;text-align:right;color:var(--lab-text)!important;font-size:clamp(15px,4.4vw,19px)!important;font-weight:700!important;line-height:1.2!important;white-space:nowrap}
 #gstoreProductPurchaseBarV1 #gstoreProductPurchasePriceV1 small{font-size:10px!important;font-weight:500!important;color:var(--lab-muted)!important;margin-left:3px}
 #gstoreProductPurchaseBarV1 button:focus-visible,#gstoreProductPurchaseBarV1 a:focus-visible{outline:2px solid var(--lab-accent);outline-offset:2px}
 body.gstore-product-page-mobile-drawer-v1.gstore-product-drawer-ready-v1{padding-bottom:calc(62px + env(safe-area-inset-bottom,0px))!important}
 body.gstore-product-page-mobile-drawer-v1.gstore-product-drawer-ready-v1 .container{padding-bottom:24px!important}
 body.lab-keyboard-open #gstoreProductPurchaseBarV1{display:none!important}
}

/* Shared storefront footer: one output and one style for every storefront page. */
.lab-site-footer{box-sizing:border-box;width:100%;margin-top:32px;padding:22px 16px 25px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-top:1px solid var(--lab-line);color:#a1a6af;font:400 9px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;letter-spacing:.5px;text-align:center}
.lab-site-footer nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:22px}
.lab-site-footer a{display:inline-block;color:inherit;text-decoration:none;font-size:13px;line-height:1.6;letter-spacing:0;font-weight:500}
.lab-site-footer a:focus-visible{outline:2px solid var(--lab-accent);outline-offset:4px;border-radius:3px}
html[data-theme="dark"] .lab-site-footer{color:#90a1b8}
html[data-theme="dark"] .lab-site-footer a{color:#c2cee0}
@media(hover:hover) and (pointer:fine){.lab-site-footer a:hover{color:var(--lab-accent)}}
@media(max-width:760px){.lab-site-footer{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}.lab-site-footer nav{gap:20px}.lab-site-footer a{font-size:12px}}

