/* Mobile app navigation, shared overflow guards, and homepage polish. */
.sg-bottom-nav,.sg-menu-trigger{display:none}
.side-icon{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;flex:0 0 21px;line-height:1}.side-icon svg{display:block;width:20px;height:20px;overflow:visible}.notification-bell>svg{width:18px;height:18px;flex:none}.account-circle>svg{width:21px;height:21px}.category-icon svg,.sg-bottom-nav svg{display:block;flex:none}
#home{font-family:Inter,Segoe UI,Arial,sans-serif}#home button{font-family:inherit}.material-symbols-outlined{display:inline-flex;align-items:center;justify-content:center;flex:none;width:1.2em;height:1.2em}.material-symbols-outlined svg{width:100%;height:100%}.sg-header-inner button{font-family:inherit}
.sg-home-header{position:fixed;inset:0 0 auto;z-index:45;background:#ffffffed;border-bottom:1px solid #e5eaf3;backdrop-filter:blur(20px);box-shadow:0 4px 24px #172b4d06}
.sg-header-inner{max-width:1440px;height:88px;margin:auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.sg-home-brand{display:flex;flex-direction:column;flex-shrink:0;gap:1px;text-decoration:none}.sg-home-brand img{width:148px;height:46px;object-fit:contain}.sg-home-brand span{font:600 8px/1.4 Inter,Arial,sans-serif;letter-spacing:1.8px;color:#78859d}
.sg-header-inner nav{display:flex;align-items:center;gap:7px}.sg-header-inner nav a{padding:10px 13px;border-radius:10px;font-size:13px;font-weight:600;text-decoration:none;color:#54627b;white-space:nowrap}.sg-header-inner nav a:hover,.sg-header-inner nav .active{background:#edf2ff;color:#2754ce}
.sg-header-actions{display:flex;align-items:center;gap:20px;font-size:13px;font-weight:600;white-space:nowrap}.sg-signin{color:#35435b;text-decoration:none}.sg-join{display:flex;align-items:center;gap:16px;padding:12px 18px;border-radius:12px;color:white!important;background:#2451cd;box-shadow:0 5px 16px #2451cd26;text-decoration:none}
#home main{padding-top:88px}#home .sg-account-bar{display:none}
.sg-home-blog{max-width:1280px;padding:64px 32px;margin:auto;font-family:Inter,Arial,sans-serif}.sg-blog-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.sg-blog-heading p{font-size:10px;font-weight:700;letter-spacing:2px;color:#365cca;margin:0 0 10px}.sg-blog-heading h2{font-size:32px;line-height:1.2;font-weight:700;letter-spacing:-1px;margin:0 0 12px;color:#172b4d}.sg-blog-heading span{color:#738198;font-size:14px}.sg-home-blog a{color:#2854c6;text-decoration:none;font-size:13px;font-weight:600}.sg-blog-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;color:#697990}.sg-blog-card{padding:22px;border:1px solid #e0e7f1;border-radius:20px;background:#fff;box-shadow:0 8px 24px #142d5905}.sg-blog-art{height:125px;display:grid;place-items:center;background:linear-gradient(130deg,#e8eeff,#f4f6fc);border-radius:12px;margin-bottom:22px;color:#5472c7}.sg-blog-art svg{width:50px;height:50px}.sg-blog-card:nth-child(2) .sg-blog-art{background:#eaf3ee;color:#4a856b}.sg-blog-card:nth-child(3) .sg-blog-art{background:#f9efe1;color:#b38a4a}.sg-blog-card small{font-size:9px;font-weight:700;letter-spacing:1.6px}.sg-blog-card h3{margin:10px 0}.sg-blog-card h3 a{font-size:20px;line-height:1.35;color:#213956}.sg-blog-card p{font-size:13px;line-height:1.7;margin-bottom:20px}
.category-icon{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;background:#edf2fc;border-radius:10px;color:#5b72a0}.category-icon svg{width:21px;height:21px}.category-filter{gap:10px!important}.category-filter.selected .category-icon{background:#dfe8ff;color:#3059cc}
#sg-menu-sheet{width:min(480px,calc(100% - 24px));max-height:80dvh;border:0;border-radius:22px;padding:24px;color:#1d3354;box-sizing:border-box;background:white}#sg-menu-sheet:not([open]){display:none}#sg-menu-sheet::backdrop{background:#14264280;backdrop-filter:blur(4px)}.sg-sheet-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.sg-sheet-heading button{background:#edf2fc;border:0;border-radius:50%;padding:10px;color:#254474}.sg-sheet-heading svg{width:20px;height:20px}#sg-menu-sheet nav{display:flex;align-items:stretch;flex-direction:column;gap:0}#sg-menu-sheet nav a{display:block;padding:14px 0;border-bottom:1px solid #eaf0f7;text-decoration:none;color:#435775;font:500 14px/1.4 Inter,Arial,sans-serif}
.payment-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:22px 0}.payment-options button{padding:13px 6px;border:1px solid #dbe4f2;border-radius:12px;background:#f4f7fc!important;color:#4a607e;font-size:12px}.payment-options button[aria-pressed=true]{background:#e9efff!important;border-color:#486dd8;color:#254cbb}.payment-detail{padding:18px;background:#f7f9fd;border:1px solid #e0e7f2;border-radius:14px;margin-bottom:20px}.payment-detail p{overflow-wrap:anywhere}.payment-detail .payment-qr{max-width:230px}.payment-copy{margin:10px 0}.payment-detail[hidden]{display:none}
.blog-post,.blog-grid article,.chat-bubble,.admin-workspace,.market-results,.contact-layout>*{min-width:0;overflow-wrap:anywhere}.table-wrap{max-width:100%}
@media(max-width:1150px){.sg-header-inner{gap:16px;padding:0 22px}.sg-header-inner nav{gap:0}.sg-header-inner nav a{padding:9px;font-size:12px}.sg-header-actions{gap:12px}.sg-home-brand span{display:none}}
@media(max-width:1100px){.admin-mode>header nav>a{display:none}.admin-mode>header nav{gap:8px}}
@media(max-width:900px){.sg-header-inner nav{display:none}.sg-menu-trigger{display:inline-flex;align-items:center;justify-content:center;border:0;background:#edf2fc;color:#375582;border-radius:10px;padding:10px}.sg-menu-trigger svg{width:22px;height:22px}}
@media(max-width:760px){
 html{scroll-padding-top:85px}body{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;max-width:100%;overflow-wrap:anywhere}*,*::before,*::after{box-sizing:border-box}img,video,iframe{max-width:100%}input,select,textarea{min-width:0;font-size:16px!important}button,a.button{min-height:42px}
 .sg-bottom-nav{position:fixed;inset:auto 0 0;z-index:48;height:calc(70px + env(safe-area-inset-bottom,0px));padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;background:#fffffffa;border-top:1px solid #e0e7f2;box-shadow:0 -8px 26px #1d34500a;backdrop-filter:blur(16px)}
 .sg-bottom-nav a,.sg-bottom-nav button{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:5px 2px;border:0;border-radius:12px;background:transparent!important;color:#8490a5;font:600 10px/1.2 Inter,Arial,sans-serif;text-decoration:none;min-width:0}.sg-bottom-nav svg{width:23px;height:23px}.sg-bottom-nav a[aria-current=page]{background:#eef3ff!important;color:#2d59c9}.sg-bottom-nav a:hover,.sg-bottom-nav button:hover{color:#2d59c9}
 .sg-header-inner{height:72px;padding:0 16px;gap:12px}.sg-home-brand img{width:118px;height:42px}.sg-header-actions{gap:9px}.sg-signin{display:none}.sg-join{font-size:11px;padding:10px 12px;gap:6px}.sg-header-actions>.sg-menu-trigger{display:none}#home main{padding-top:72px}#home main>div{min-width:0}#home h1{font-size:clamp(30px,8vw,44px);line-height:1.15}#home h2{overflow-wrap:normal}#home section{max-width:100%}
 body:not(#home)>header{position:sticky;top:0;z-index:42;height:70px;min-height:70px;padding:10px 16px;gap:12px;background:#fffffff5;backdrop-filter:blur(16px);margin-left:0}.brand-logo{width:116px!important;height:42px!important}body:not(#home)>header>nav>a{display:none!important}body:not(#home)>header>nav{gap:6px}body:not(#home)>header .market-nav{display:none}.market-header-actions>.button{display:none}.mobile-market-menu{display:none}.market-header-actions{margin-left:auto}.admin-mode>header .admin-menu-toggle{display:none}.notification-bell{font-size:11px;padding:8px}.admin-sidebar{height:100dvh;padding-bottom:28px}.admin-workspace{margin-left:0;padding:22px 16px 30px}.admin-mode .workspace-heading{gap:14px}.workspace-heading h1{font-size:26px}.workspace-heading,.member-welcome{flex-wrap:wrap}.member-welcome{padding:22px}.member-welcome h2{font-size:23px}.admin-mode>footer{margin-left:0}
 body:not(#home) main{max-width:100%;min-width:0}.marketplace-mode main{padding:20px 16px 34px}.market-hero{padding:24px!important;gap:15px}.market-hero h1{font-size:29px!important;line-height:1.15}.market-hero-note{display:none}.hero-tags{flex-wrap:wrap;gap:8px;font-size:10px}.market-search{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:10px;gap:8px}.market-search .search-main{min-width:0}.market-search input{width:100%;min-width:0}.market-search select[name=category]{display:none}.market-search>button{padding:10px;font-size:11px}.market-layout{display:block!important}.market-filters{display:block!important;width:100%;padding:16px!important;margin-bottom:22px;position:static}.market-filters .supplier-invite{display:none}#category-filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:visible!important}.market-filters .category-filter{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:10px 3px!important;white-space:normal!important;text-align:center;min-width:0;border:1px solid transparent;border-radius:12px;font-size:10px!important;line-height:1.4;color:#60718c}.category-icon{width:43px;height:43px;border-radius:14px}.category-icon svg{width:24px;height:24px}.category-filter.selected{border-color:#d2dfff;background:#eef3ff!important}.category-filter>span:last-child{max-width:100%;overflow-wrap:normal}.market-results-heading{flex-wrap:wrap;gap:12px}.market-sort{width:100%;display:flex;align-items:center;gap:12px}.market-sort select{flex:1}.market-results .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-body{padding:12px!important}.product-body h3{font-size:15px;line-height:1.35}.product-body .description{display:none}.product-body .price{font-size:20px}.product-visual,.product-image,.product-visual .placeholder{height:150px!important}.product-verified{font-size:8px!important;padding:4px!important}.product-supplier{font-size:10px}.product-moq{flex-wrap:wrap;font-size:10px}.product-request{width:100%;font-size:11px;padding:10px 5px}.market-help{flex-wrap:wrap;padding:22px}.market-footer-grid{grid-template-columns:1fr 1fr!important;gap:20px}.market-footer-grid .footer-intro{grid-column:1/-1}.market-footer-bottom{flex-wrap:wrap}#market-pagination{flex-wrap:wrap}#market-pagination>div{display:flex;flex-wrap:wrap;gap:5px}#market-pagination button{padding:8px 10px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat strong{font-size:22px!important}.stat{min-width:0}.admin-grid,.plans,.chat-layout,.contact-layout,.guest-product-layout,form .two{grid-template-columns:minmax(0,1fr)!important}.panel{min-width:0}.table-wrap{overflow-x:auto;overscroll-behavior-x:contain}.table-wrap table{min-width:560px}.chat-bubble p{overflow-wrap:anywhere}.chat-list button{flex-direction:column;align-items:flex-start}.account-mode .auth>.panel{padding:24px 18px}.auth-story{padding:22px}.auth-story h2{font-size:24px}.account-mode main{padding:18px 14px}.account-mode .auth{margin:0}.blog-grid{grid-template-columns:1fr}.blog-post h1{font-size:28px}.blog-content{font-size:15px}.sg-home-blog{padding:38px 18px}.sg-blog-heading{align-items:flex-start;flex-direction:column;gap:18px}.sg-blog-heading h2{font-size:28px}.sg-blog-cards{grid-template-columns:1fr}.sg-blog-art{height:110px}.sg-blog-card{padding:20px}
 dialog{max-height:calc(100dvh - 28px);width:calc(100% - 24px);padding:24px 18px}#sg-menu-sheet{margin:auto auto calc(82px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 110px)}#notice{left:14px;right:14px;top:78px;max-width:none;z-index:70}.payment-options{gap:6px}.payment-options button{font-size:11px}.payment-detail{padding:14px}
}
@media(max-width:359px){.market-results .grid{grid-template-columns:1fr}.sg-header-inner{padding:0 12px}.sg-home-brand img{width:104px}.sg-join{padding:9px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Floating mobile dock with clear touch targets and a restrained active pill. */
#sg-menu-sheet .sg-menu-eyebrow{display:block;font-size:9px;letter-spacing:1.7px;color:#7790b1;margin-bottom:6px}#sg-menu-sheet .sg-sheet-heading strong{display:block;font-size:23px;letter-spacing:-.6px}#sg-menu-sheet .sg-menu-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:14px;background:#edf2ff;color:#365cd2}#sg-menu-sheet .sg-menu-icon svg{width:21px;height:21px}#sg-menu-sheet nav a,#sg-menu-sheet .sg-menu-workspace{display:flex;align-items:center;gap:12px;text-decoration:none}#sg-menu-sheet nav a>span:nth-child(2),#sg-menu-sheet .sg-menu-workspace>span:nth-child(2){flex:1;min-width:0}#sg-menu-sheet strong{font-size:13px;line-height:1.4}#sg-menu-sheet small{display:block;font-size:10px;line-height:1.5;color:#7b8ba3;margin-top:3px}#sg-menu-sheet .sg-menu-arrow svg,#sg-menu-sheet .sg-menu-workspace>svg{width:17px;height:17px;flex:none}#sg-menu-sheet .sg-menu-workspace{padding:17px;margin:18px 0;border-radius:18px;background:linear-gradient(125deg,#244dbe,#526fe0);color:white;box-shadow:0 8px 24px #244dbe25}#sg-menu-sheet .sg-menu-workspace small{color:#e1e8ff}#sg-menu-sheet .sg-menu-workspace .sg-menu-icon{background:#ffffff24;color:white}#sg-menu-sheet .sg-menu-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:18px;margin-top:12px;border-top:1px solid #e8edf5}#sg-menu-sheet .sg-menu-foot a{font-size:11px;color:#677b98;text-decoration:none}#sg-menu-sheet a:focus-visible,#sg-menu-sheet button:focus-visible{outline:3px solid #e3a949;outline-offset:2px}
@media(max-width:760px){
 body{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
 .sg-bottom-nav{inset:auto 12px calc(12px + env(safe-area-inset-bottom,0px));height:72px;padding:7px;gap:3px;border:1px solid #e2e8f4;border-radius:24px;background:#ffffffed;box-shadow:0 12px 38px #16336124,0 2px 8px #16336108;backdrop-filter:blur(24px)}
 .sg-bottom-nav a,.sg-bottom-nav button{position:relative;min-height:56px;border-radius:17px;gap:5px;color:#8290a7;font-size:10px;font-weight:600;transition:background .18s,color .18s,transform .18s}
 .sg-bottom-nav svg{width:22px;height:22px;stroke-width:1.8}
 .sg-bottom-nav a[aria-current=page]{color:#3155c6;background:linear-gradient(145deg,#edf2ff,#e5ecff)!important;box-shadow:inset 0 0 0 1px #dce5ff}
 .sg-bottom-nav a[aria-current=page] svg{stroke-width:2}
 .sg-bottom-nav a:active,.sg-bottom-nav button:active{transform:scale(.95)}
 .menu-open .sg-bottom-nav .sg-menu-trigger{background:#edf2ff!important;color:#3155c6}
 #sg-menu-sheet{border:1px solid #e1e8f5;border-radius:26px;padding:25px;margin-bottom:calc(100px + env(safe-area-inset-bottom,0px));box-shadow:0 20px 80px #10224435}
 .sg-sheet-heading{padding-bottom:16px;border-bottom:1px solid #edf1f7;color:#243b60;font-size:18px}
 #sg-menu-sheet nav{gap:4px}#sg-menu-sheet nav a{padding:14px 12px;border:0;border-radius:12px;background:#f7f9fd;color:#4a607f}
 #sg-menu-sheet nav a:hover,#sg-menu-sheet nav a[aria-current=page]{background:#eaf0ff;color:#3155c6}
 #sg-menu-sheet{inset:0 auto 0 0;margin:0;width:min(360px,calc(100vw - 24px));height:100dvh;max-height:100dvh;border-radius:0 28px 28px 0;padding:24px 18px calc(24px + env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(180deg,#f5f8ff,#fff 38%)}#sg-menu-sheet::backdrop{background:#0b173b80;backdrop-filter:blur(5px)}#sg-menu-sheet nav a{background:white;padding:10px 6px;min-height:64px}#sg-menu-sheet nav a:nth-child(3n+2) .sg-menu-icon{background:#e9f7f1;color:#258267}#sg-menu-sheet nav a:nth-child(3n) .sg-menu-icon{background:#fff4e6;color:#ac7830}#sg-menu-sheet .sg-sheet-heading button{background:white;border:1px solid #e2e9f6;box-shadow:0 3px 9px #21395508;border-radius:12px}
 .admin-sidebar{border-radius:0 24px 24px 0;background:linear-gradient(165deg,#14243f,#0e192d);border-right:1px solid #ffffff12;box-shadow:12px 0 48px #0b193a35}
 .admin-sidebar .side-links{gap:6px}.admin-sidebar .side-links button{min-height:44px;border-radius:12px}
 .admin-sidebar .side-links button.active{background:linear-gradient(110deg,#355adb,#5067e9);box-shadow:0 5px 18px #07112f40}
 .admin-mode.menu-open .admin-scrim{backdrop-filter:blur(3px)}
}
