:root{--green:#167452;--dark:#202a37;--muted:#667180;--line:#e2e6eb;--tint:#eaf6f0;--sidebar:#f5f6f8;--red:#c32636;font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--dark);background:white;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{padding:10px 17px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--dark);cursor:pointer;white-space:nowrap}button:hover{background:#f3f6f5}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible{outline:3px solid #65b997;outline-offset:2px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#0f5d40}.danger{color:var(--red);border-color:#f4ccd0;background:#fffafa}.icon{font-size:26px;padding:0 8px;border:0;background:transparent}.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}aside{background:var(--sidebar);padding:28px 22px;display:flex;flex-direction:column;border-right:1px solid #edf0f2} .brand{display:flex;align-items:center;gap:12px;white-space:nowrap;margin:0 6px 36px}.brand strong{font-size:29px;letter-spacing:-1px;color:#0d5142}.brand span{font-size:15px;color:var(--muted);border-left:1px solid #bcc4ca;padding-left:12px}nav{display:flex;flex-direction:column;gap:8px}nav button{display:flex;align-items:center;gap:16px;font-size:16px;border:0;background:transparent;text-align:left;padding:14px 16px}nav button.active{background:#dcf1e7;color:var(--green);font-weight:650}.navicon{width:22px;display:inline-flex}.navicon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.aside-foot{margin-top:auto;padding-top:60px;display:grid;gap:12px}.aside-foot p{margin:0 12px;color:var(--muted)}main{padding:34px 38px;min-width:0}header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:25px}h1{font-size:30px;line-height:1.3;margin:0 0 8px;letter-spacing:-.5px}h2{font-size:21px;margin:0}p{line-height:1.6}.subtitle{color:var(--muted);font-size:15px;margin:0}.notice{padding:14px 18px;background:var(--tint);color:#28614d;border-radius:6px;line-height:1.65;margin-bottom:20px}.notice.warn{background:#fff6e6;color:#8c601d}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:20px 0 16px;color:var(--muted)}.toolbar input{width:360px}.table-wrap{border:1px solid var(--line);border-radius:7px;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;background:#f5f6f8;font-weight:600;padding:17px 18px;white-space:nowrap}td{padding:20px 18px;border-top:1px solid var(--line);line-height:1.6}td:first-child{font-weight:600}td.actions{white-space:nowrap}td.actions button{padding:7px 11px;margin:3px}.price{font-variant-numeric:tabular-nums;white-space:nowrap}.badge{display:inline-block;background:#e1f4e9;color:#18734f;padding:3px 12px;border-radius:20px;font-size:12px;white-space:nowrap}.badge.off{background:#f0f1f3;color:#737d86}.footnote{text-align:right;color:var(--muted);font-size:12px;margin:16px 0}.empty{text-align:center;color:var(--muted);padding:48px 18px}input,select,textarea{border:1px solid #cfd6de;border-radius:6px;padding:11px 12px;background:white;color:var(--dark);width:100%;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #8bc7ae;outline-offset:1px}textarea{min-height:150px;resize:vertical}label{display:block;font-weight:550;margin-bottom:8px}.field{margin:18px 0}.hint{font-size:12px;color:var(--muted);margin:8px 0}dialog{border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 50px #17232b26;width:min(560px,calc(100% - 32px));padding:26px}dialog::backdrop{background:#1b293c55}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog-foot{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.dialog-foot button{min-width:90px}#modal-error{color:var(--red)}#toast{display:none;position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#233b31;color:white;padding:12px 22px;border-radius:8px;max-width:90vw;z-index:10}.login,.checkout{max-width:520px;margin:8vh auto;padding:32px;border:1px solid var(--line);border-radius:10px}.login .brand,.checkout .brand{margin-bottom:30px}.login h1,.checkout h1{font-size:25px}.login button.primary{width:100%}.error{color:var(--red)}.checkout .amount{font-size:36px;font-weight:650;margin:20px 0}.checkout button{margin-right:8px;margin-bottom:10px}.delivery{white-space:pre-wrap;word-break:break-word;background:#f6f8f7;padding:18px;border:1px solid var(--line);border-radius:6px;font:14px/1.8 system-ui;max-height:450px;overflow:auto}.qr{display:block;width:240px;max-width:100%;margin:15px auto}.stock-select{max-width:360px}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.desktop-only{display:block}.login a{color:var(--green)}
[hidden]{display:none!important}
.package-devices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0;padding:12px;border:1px solid var(--line);border-radius:8px;min-width:0}.package-devices legend{padding:0 6px;font-weight:550}.package-devices label{display:flex;align-items:center;gap:10px;min-height:48px;margin:0;padding:10px;border:1px solid var(--line);border-radius:6px;font-weight:400;cursor:pointer;overflow-wrap:anywhere}.package-devices input{width:22px;height:22px;min-height:22px;flex:none;accent-color:var(--green)}.package-devices label:has(input:checked){background:var(--tint);border-color:var(--green)}
.checkout button{min-height:44px}
.order-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}.order-tabs button{min-height:44px;white-space:normal}
.full-width{width:100%}.document-list{display:grid;gap:10px;margin:18px 0}.document-download{display:flex;flex-direction:column;gap:5px;min-height:56px;padding:14px 16px;border:1px solid var(--line);border-radius:6px;color:var(--green);text-decoration:none;overflow-wrap:anywhere}.document-download:hover{background:var(--tint)}.document-download span{font-size:12px;color:var(--muted)}
.quantity-control{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:10px}.quantity-control button{min-height:48px;padding:0;font-size:24px;touch-action:manipulation}.quantity-control input{text-align:center;font-size:18px;font-variant-numeric:tabular-nums}.order-total{display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-top:1px solid var(--line)}.order-total strong{font-size:24px;color:var(--green)}.payment-link{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:6px;text-decoration:none;min-height:48px}.checkout-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.checkout-actions button{margin:0}.hint,.subtitle,h1,td{overflow-wrap:anywhere}
@media(min-width:1200px){.shell{grid-template-columns:294px minmax(0,1fr)}aside{padding:44px 22px}.brand{margin:0 15px 48px}.brand strong{font-size:34px}.brand span{font-size:17px}nav button{font-size:18px;padding:15px 20px}main{padding:70px 40px}h1{font-size:36px}.subtitle{font-size:18px}header{margin-bottom:32px}header>button{font-size:16px;padding:14px 22px}.notice{font-size:16px;padding:15px 20px;margin-bottom:28px}.toolbar{margin:28px 0 18px;font-size:15px}.toolbar input{width:416px;padding:15px;font-size:15px}table{font-size:16px}th{padding:20px}td{padding:22px 20px}td.actions button{padding:10px 14px}.badge{font-size:14px}.footnote{font-size:14px;margin-top:22px}.aside-foot button{align-self:flex-start}}
@media(max-width:1050px){.shell{grid-template-columns:205px minmax(0,1fr)}aside{padding:24px 14px}.brand{gap:8px}.brand strong{font-size:26px}.brand span{font-size:13px;padding-left:8px}main{padding:28px 22px}td,th{padding:15px 12px}.toolbar input{width:280px}}
@media(max-width:700px){
  .shell{display:block;min-height:100dvh;background:#f6f8f7}
  aside{position:sticky;top:0;z-index:3;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top));border-right:0;border-bottom:1px solid var(--line);background:white;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
  aside .brand{margin:0;gap:8px}aside .brand strong{font-size:23px}aside .brand span{font-size:12px;padding-left:8px}
  nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white;box-shadow:0 -3px 12px #1b3b2b06}
  nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:56px;padding:6px 0;font-size:11px;line-height:1.4;border-radius:8px;white-space:nowrap}
  .navicon{width:22px}.navicon svg{width:22px;height:22px}
  .aside-foot{margin:0;padding:0;display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0}.aside-foot p{font-size:11px;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.aside-foot button{min-width:44px;min-height:44px;padding:8px;font-size:12px}
  main{padding:24px 16px calc(104px + env(safe-area-inset-bottom))}header{display:block;margin-bottom:20px}h1{font-size:26px}.subtitle{font-size:14px;line-height:1.7}header>button{margin-top:16px;width:100%;font-size:15px}
  button{min-height:44px;touch-action:manipulation}input,select,textarea{font-size:16px;min-height:48px}textarea{min-height:144px}
  .notice{font-size:13px;padding:13px 14px}.toolbar{font-size:12px;gap:12px;align-items:center}.toolbar input{width:0;flex:1}.toolbar span{white-space:nowrap}
  .mobile-list{border:0;overflow:visible;background:transparent}.mobile-list thead{display:none}.mobile-list table,.mobile-list tr,.mobile-list td{display:block}.mobile-list tbody{display:grid;gap:12px}
  .mobile-list tr{padding:16px;border:1px solid var(--line);border-radius:10px;position:relative;background:white;min-width:0}.mobile-list td{border:0;padding:4px 0;font-size:14px;min-width:0}.mobile-list td:first-child{font-size:16px;padding-bottom:8px;overflow-wrap:anywhere}.mobile-list .has-price td:first-child{padding-right:100px}.mobile-list td.price{font-size:15px}.mobile-list td.featured-price{position:absolute;right:16px;top:16px;font-size:18px;font-weight:650;color:var(--green)}
  .mobile-list td[data-label]::before{content:attr(data-label)" · ";color:var(--muted);font-weight:400}.mobile-list td.featured-price::before{content:none}.mobile-list td.actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:12px;padding:0;white-space:normal}.mobile-list td.actions button{flex:1;min-width:0;padding:10px 12px;font-size:14px;margin:0;white-space:normal}.mobile-list .hint{font-size:12px}
  .footnote{text-align:left;font-size:12px;line-height:1.7}.login{margin:24px 16px;padding:24px}.login .brand{margin-left:0;margin-bottom:24px}.login h1{font-size:25px}.checkout{max-width:560px;margin:0 auto;padding:28px 20px calc(112px + env(safe-area-inset-bottom));border:0;border-radius:0;min-height:100dvh}.checkout .brand{margin:0 0 30px}.checkout h1{font-size:26px}.checkout .hint{font-size:13px}.checkout .amount{font-size:40px}.checkout button{font-size:14px}.checkout-actions{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:560px;margin:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white;z-index:4;gap:10px}.checkout-actions button{flex:1;min-height:48px;white-space:normal}.checkout-actions .primary{flex:2}.payment-link{width:100%;margin:12px 0}.delivery{font-size:15px;line-height:1.8;max-height:none}.two{grid-template-columns:1fr;gap:0}
  dialog{width:100%;max-width:560px;max-height:calc(100dvh - 24px);margin:auto auto 0;padding:20px 20px max(20px,env(safe-area-inset-bottom));border-radius:16px 16px 0 0;overflow-y:auto}.dialog-head{margin-bottom:16px}.dialog-head .icon{min-width:44px;min-height:44px}.dialog-foot{position:sticky;bottom:-1px;background:white;padding:14px 0 0;gap:12px}.dialog-foot button{flex:1;min-height:48px;font-size:16px}.field{margin:18px 0}.desktop-only{display:none}#toast{bottom:calc(88px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 32px);font-size:14px;line-height:1.6}
}
@media(max-width:360px){aside{padding-left:12px;padding-right:12px}aside .brand span{display:none}.aside-foot p{max-width:110px}.mobile-list tr{padding:14px}.mobile-list td.featured-price{right:14px;top:14px;font-size:17px}.checkout{padding-left:16px;padding-right:16px}}
.catalog{max-width:1120px;margin:0 auto;padding:36px 24px}.catalog-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:36px}.catalog-top .brand{margin:0}.catalog-actions{display:flex;flex-wrap:wrap;gap:10px}.catalog-actions button{min-height:48px}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.catalog-card{display:flex;flex-direction:column;align-items:stretch;padding:24px;border:1px solid var(--line);border-radius:10px;min-width:0}.catalog-card h2{font-size:22px;overflow-wrap:anywhere}.catalog-card .hint{margin-top:10px}.catalog-price{font-size:29px;font-weight:650;color:var(--green);font-variant-numeric:tabular-nums;margin:20px 0 8px}.catalog-stock{color:var(--muted);margin:0 0 20px}.catalog-card button{min-height:48px;width:100%;margin-top:auto}.catalog-card button:disabled{cursor:not-allowed}.catalog-foot{margin-top:24px}
@media(max-width:900px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.catalog{padding:24px 16px calc(28px + env(safe-area-inset-bottom))}.catalog-top{display:block;margin-bottom:28px}.catalog-top .brand{margin-bottom:22px}.catalog-actions button{flex:1;white-space:normal}.catalog-grid{grid-template-columns:1fr;gap:14px}.catalog-card{padding:20px}.catalog-card h2{font-size:21px}.catalog-price{font-size:28px;margin-top:16px}.catalog-foot{font-size:13px}}
.catalog-public .catalog-top{justify-content:flex-end;margin-bottom:24px}.catalog-login{display:flex;justify-content:center;margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}.catalog-login button{min-height:48px;min-width:120px}
.catalog-category{margin:24px 0}.catalog-category>h2{margin-bottom:16px}.catalog-card h3{font-size:22px;margin:0;overflow-wrap:anywhere}.lookup-order{padding:16px 0;border-top:1px solid var(--line)}.lookup-order h2{font-size:18px}.lookup-order p{overflow-wrap:anywhere}.group-item{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:16px;padding:16px 0;border-top:1px solid var(--line)}.group-check{display:flex;align-items:center;gap:12px;min-height:48px;margin:0}.group-check input{width:22px;min-height:22px;height:22px;flex:none}
@media(max-width:700px){nav button{white-space:normal}.group-item{grid-template-columns:1fr;gap:8px}.catalog-card h3{font-size:21px}}
dialog.bulk-prices{width:min(720px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow-y:auto}.bulk-price-row{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:24px;align-items:center;padding:16px 0;border-top:1px solid var(--line)}.bulk-price-row>label{margin:0;overflow-wrap:anywhere}.bulk-price-row>label .hint{display:block;font-weight:400;margin-bottom:0}.bulk-price-row input{min-height:46px;font-variant-numeric:tabular-nums}.bulk-prices .dialog-foot{position:sticky;bottom:-1px;background:white;padding-top:14px}
@media(max-width:700px){dialog.bulk-prices{width:100%;max-height:calc(100dvh - 24px)}.bulk-price-row{grid-template-columns:minmax(0,1fr) 128px;gap:14px}.bulk-price-row input{font-size:16px}}
.profit-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.profit-summary>div{padding:18px;border:1px solid var(--line);border-radius:8px;background:white}.profit-summary span{display:block;color:var(--muted);font-size:13px}.profit-summary strong{display:block;margin-top:8px;font-size:24px;color:var(--green);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.payout-amount{color:var(--green);font-size:24px}.payout-confirm{margin:20px 0;white-space:normal}.payout-confirm input{accent-color:var(--green)}
@media(max-width:700px){.profit-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profit-summary>div{padding:14px}.profit-summary strong{font-size:23px}}
.catalog-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:var(--muted);margin:8px 0 0}.catalog-card .catalog-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.catalog-retail{color:var(--muted);font-size:12px;margin:0 0 14px;overflow-wrap:anywhere}.agent-card .catalog-price{margin-bottom:6px}.agent-card button+button{margin-top:8px}.management-filters{display:grid;grid-template-columns:minmax(160px,2fr) repeat(2,minmax(120px,1fr));gap:12px;align-items:end;margin:22px 0 16px}.management-filters label{font-size:13px}.management-count{color:var(--muted);font-size:13px;margin:12px 0}.stock-source{font-size:12px;color:var(--muted);line-height:1.6}.stock-summary{display:flex;gap:16px;flex-wrap:wrap;margin:14px 0}.stock-summary strong{font-size:22px;color:var(--green)}.product-documents{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:6px}.product-documents p{margin:0 0 8px}
@media(max-width:700px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catalog-card{padding:14px 12px;border-radius:8px}.catalog-card h3{font-size:16px;line-height:1.4}.catalog-card .hint,.catalog-description{font-size:12px;line-height:1.55}.catalog-price{font-size:23px;line-height:1.25;margin:14px 0 10px}.catalog-card button{min-height:44px;padding:10px 7px;font-size:13px;line-height:1.35;white-space:normal}.management-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.management-filters>div:first-child{grid-column:1/-1}.shell nav{grid-auto-columns:minmax(64px,1fr);overflow-x:auto}.shell nav button{min-width:64px}.product-documents label{font-size:13px}}

/* Login follows all storefront content, including short mobile catalogs. */
.catalog-public,.catalog-group{display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
.catalog-login{position:static;margin-top:auto;padding:32px 0 max(12px,env(safe-area-inset-bottom));border-top:0}
.catalog-login button{min-width:0;min-height:44px;border-color:transparent;background:transparent;color:var(--muted);font-size:12px}

/* Shared admin navigation is external to comply with the production style-src policy. */

.admin-primary,.admin-secondary{display:flex;gap:8px}
.admin-primary a,.admin-secondary a{display:flex;align-items:center;gap:16px;min-height:48px;text-decoration:none;color:#202a37;border-radius:6px;background:transparent;padding:14px 16px;font:16px/1.5 system-ui,"Microsoft YaHei",sans-serif;white-space:nowrap}
.admin-primary a{background:#167452;color:#fff;border-radius:8px}.admin-primary a:hover{background:#126344}.admin-secondary a:hover{background:#edf2ef}
.admin-primary a[aria-current]{background:#0d5142;color:#fff;font-weight:650}.admin-secondary a[aria-current]{background:#167452;color:#fff;font-weight:650}
.admin-primary .navicon{width:22px;display:inline-flex;flex-shrink:0}
.admin-primary svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.admin-primary a:focus-visible,.admin-secondary a:focus-visible{outline:3px solid #65b997;outline-offset:2px}
.admin-sidebar{background:#f5f6f8;padding:28px 22px;display:flex;flex-direction:column;border-right:1px solid #edf0f2}
.admin-sidebar .brand{display:flex;align-items:center;gap:12px;white-space:nowrap;margin:0 6px 36px;font:14px system-ui,"Microsoft YaHei",sans-serif}
.admin-sidebar .brand strong{font-size:29px;letter-spacing:-1px;color:#0d5142}
.admin-sidebar .brand span{font-size:15px;color:#667180;border-left:1px solid #bcc4ca;padding-left:12px;margin:0}
.admin-sidebar .aside-foot{margin-top:auto;padding-top:60px;display:grid;gap:12px}
.admin-sidebar .aside-foot p{margin:0 12px;color:#667180;font-size:14px;font-weight:400}
.admin-sidebar .aside-foot button{display:block;min-height:40px;padding:10px 17px;border:1px solid #e2e6eb;border-radius:6px;background:white;color:#202a37;cursor:pointer;font:14px system-ui,"Microsoft YaHei",sans-serif}
.shell nav.admin-primary,body.portal-admin .admin-primary{position:static;display:flex;flex-direction:column;flex-wrap:nowrap;width:auto;border:0;box-shadow:none;overflow:visible;margin:0;padding:0;background:transparent}
.shell nav.admin-secondary,body.portal-admin #workspace>nav{position:static;display:flex;width:auto;flex-direction:row;flex-wrap:wrap;gap:8px;margin:0 0 24px;padding:0 0 16px;border:0;border-bottom:1px solid #e2e6eb;box-shadow:none;overflow:visible;background:transparent}
.admin-secondary{flex-wrap:wrap}
.admin-secondary a{gap:0;min-height:44px;font-size:14px;padding:10px 14px}
body.portal-admin>header{display:none}
body.portal-admin>.admin-sidebar{position:fixed;inset:0 auto 0 0;width:236px;z-index:25;overflow-y:auto}
body.portal-admin>main:has(#workspace){max-width:none;margin:0 0 0 236px;padding:34px 38px;background:white;min-height:100dvh}
body.portal-admin #workspace>nav{display:block}
body.portal-admin #workspace>nav #navmore{display:none!important}
body.portal-admin #message{bottom:16px}
body.portal-admin{background:white;font-family:system-ui,"Microsoft YaHei",sans-serif}
@media(min-width:1200px){.admin-sidebar{padding:44px 22px}.admin-sidebar .brand{margin:0 15px 48px}.admin-sidebar .brand strong{font-size:34px}.admin-sidebar .brand span{font-size:17px}.admin-primary a{font-size:18px;padding:15px 20px}body.portal-admin>.admin-sidebar{width:294px}body.portal-admin>main:has(#workspace){margin-left:294px;padding:70px 40px}}
@media(min-width:701px) and (max-width:1050px){.admin-sidebar{padding:24px 14px}.admin-sidebar .brand{gap:8px}.admin-sidebar .brand strong{font-size:26px}.admin-sidebar .brand span{font-size:13px;padding-left:8px}body.portal-admin>.admin-sidebar{width:205px}body.portal-admin>main:has(#workspace){margin-left:205px;padding:28px 22px}}
@media(max-width:700px){.shell aside.admin-sidebar,body.portal-admin>.admin-sidebar{position:static;width:auto;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-right:0;border-bottom:1px solid #e2e6eb;overflow:visible}.admin-sidebar .brand{margin:0;gap:8px}.admin-sidebar .brand strong{font-size:23px}.admin-sidebar .brand span{font-size:12px;padding-left:8px}.admin-sidebar .aside-foot{margin:0;padding:0;display:flex;gap:8px}.admin-sidebar .aside-foot p{display:none}.shell nav.admin-primary,body.portal-admin .admin-primary{order:3;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.admin-primary a{display:flex;flex-direction:column;gap:5px;padding:10px 2px;min-height:64px;font-size:12px}.admin-primary .navicon,.admin-primary svg{width:20px;height:20px}.admin-secondary{gap:4px}.admin-secondary a{font-size:13px;padding:10px}.shell nav.admin-secondary{display:flex}body.portal-admin>main:has(#workspace){margin:0;padding:24px 16px}body.portal-admin .deliveryaside{display:block}}
@media(max-width:360px){.admin-sidebar .brand span{display:none}}
.admin-container>.shell{height:100dvh;min-height:0;overflow:hidden}
.admin-container .admin-sidebar{overflow-y:auto}
.admin-container .admin-workspace{display:flex;flex-direction:column;padding-bottom:16px;min-width:0;min-height:0;overflow:hidden}
.admin-container .admin-secondary{flex-shrink:0}
#admin-pages{display:flex;flex:1;min-height:0}
.admin-frame{display:block;flex:1;width:100%;height:100%;min-height:0;border:0;background:#fff}
.admin-frame[hidden],#admin-status[hidden]{display:none}
.admin-frame:not([data-ready="1"]){visibility:hidden}
body.admin-embedded .shell>aside,body.admin-embedded .shell>main>.admin-secondary{display:none!important}
body.admin-embedded .shell{display:block;min-height:0}
body.admin-embedded .shell>main{margin:0;padding:0;min-height:0}
body.admin-embedded{background:white}
.bulk-price-row input{min-width:0;width:100%}
.poster-gallery{display:grid;gap:24px}.poster-page{min-width:0}.poster-page img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 180px);margin:auto;border:1px solid var(--line);border-radius:8px;-webkit-touch-callout:default;user-select:auto}.poster-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.poster-download{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;background:var(--green);color:#fff;border-radius:6px;text-decoration:none}.poster-actions button{min-height:44px}
@media(max-width:700px){.shell nav.admin-primary,body.portal-admin .admin-primary{grid-auto-flow:row;grid-auto-columns:auto}}
@media(max-width:700px){.admin-container>.shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.admin-container .admin-workspace{padding:16px 12px}.admin-container .admin-sidebar{overflow:visible}body.admin-embedded .shell>main{padding:0}.toolbar:has(#finance-start){align-items:end;flex-wrap:wrap}.toolbar:has(#finance-start)>div{min-width:0;flex:1}.toolbar input[type=date]{min-width:0;width:100%}.admin-delivery-flow>.shell{display:block;height:auto;min-height:100dvh;overflow:visible}.admin-delivery-flow .admin-workspace{display:block;overflow:visible}.admin-delivery-flow #admin-pages{display:block}.admin-delivery-flow .admin-sidebar{position:static}}

.technical-support{display:flex;flex-direction:column;align-items:center;gap:14px;margin:28px 0;padding:24px 16px;background:#f1f7f4;border:1px solid var(--line);border-radius:12px}.technical-support img{display:block;width:220px;max-width:100%;height:auto;border:8px solid #fff;border-radius:8px;box-sizing:content-box}.technical-support figcaption{font-size:18px;line-height:1.5;font-weight:650;color:var(--green)}

/* Shared compact density; retain readable text and touch targets. */
.shell>main{padding:20px 24px}
header{margin-bottom:14px}h1{font-size:28px;margin-bottom:6px}h2{font-size:19px}
.subtitle{font-size:14px}.notice{font-size:14px;padding:10px 12px;margin-bottom:12px}
.toolbar{gap:12px;margin:12px 0;font-size:14px}.toolbar input{padding:9px 12px}
table{font-size:14px}th{padding:9px 12px}td{padding:10px 12px;line-height:1.5}
td.actions button{padding:6px 10px;margin:2px}.badge{font-size:12px;padding:2px 8px}
.field{margin:12px 0}.hint{margin:5px 0}.footnote{margin:10px 0;font-size:12px}
.dialog-head{margin-bottom:14px}.dialog-foot{margin-top:16px}
.management-filters{margin:12px 0;gap:8px}.management-count,.stock-summary{margin:8px 0}
.profit-summary{gap:8px;margin-bottom:12px}.profit-summary>div{padding:10px 12px}
.profit-summary strong{margin-top:4px;font-size:22px}
.bulk-price-row,.group-item{padding:10px 0;gap:12px}
.order-tabs{gap:6px;margin-bottom:12px}.lookup-order{padding:10px 0}
.shell nav.admin-secondary,body.portal-admin #workspace>nav{gap:4px;margin-bottom:12px;padding-bottom:8px}
.admin-secondary a{padding:7px 10px}
@media(min-width:701px){
 .admin-sidebar{padding-top:24px}.admin-sidebar .brand{margin-bottom:24px}
 .admin-primary a{padding-top:10px;padding-bottom:10px}
 body.portal-admin>main:has(#workspace){padding:20px 24px}
}
@media(max-width:700px){
 .shell>main{padding:14px 12px calc(92px + env(safe-area-inset-bottom))}
 .admin-container .admin-workspace{padding:10px 10px}
 body.portal-admin>main:has(#workspace){padding:14px 12px}
 .shell aside.admin-sidebar,body.portal-admin>.admin-sidebar{padding:8px 12px;gap:6px}
 .admin-primary a{min-height:52px;padding:6px 2px;gap:3px}
 h1{font-size:23px}header{margin-bottom:12px}header>button{margin-top:10px}
 .notice{padding:9px 10px;font-size:13px}.toolbar{gap:8px}
 .mobile-list tbody{gap:8px}.mobile-list tr{padding:10px 12px}
 .mobile-list td{padding:2px 0;line-height:1.45}
 .mobile-list td:first-child{font-size:15px;padding-bottom:5px}
 .mobile-list td.featured-price{right:12px;top:10px;font-size:17px}
 .mobile-list td.actions{gap:6px;margin-top:6px}
 .mobile-list td.actions button{min-height:44px;padding:7px 10px}
 .profit-summary>div{padding:9px 10px}.field{margin:12px 0}
}
body.admin-embedded .shell>main{padding:0}

.product-cover{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#fff;border-radius:8px;margin:0 0 16px;border:1px solid var(--line)}
@media(max-width:700px){.product-cover{margin-bottom:12px;border-radius:6px}}

.overview-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px;align-items:start}
.overview-section{min-width:0;margin:12px 0}.overview-section h2{font-size:17px;margin-bottom:8px}
.overview-scroll{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:6px}
.overview-scroll .table-wrap{border:0;overflow:visible}
.overview-scroll th{position:sticky;top:0;z-index:1}
.finance-history{border-top:1px solid var(--line);padding-top:12px}
.independent-stock summary{cursor:pointer;min-height:44px;padding:10px 0}
@media(max-width:1100px){.overview-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
 .overview-section .mobile-list table{display:table;min-width:510px}
 .overview-section .mobile-list thead{display:table-header-group}
 .overview-section .mobile-list tbody{display:table-row-group}
 .overview-section .mobile-list tr{display:table-row;border:0;padding:0}
 .overview-section .mobile-list th,.overview-section .mobile-list td{display:table-cell;padding:7px 8px;font-size:13px;line-height:1.4;border-bottom:1px solid var(--line)}
 .overview-section .mobile-list td:first-child{font-size:13px;padding:7px 8px}
 .overview-section .mobile-list td::before{content:none}
 .overview-section .mobile-list td.actions{display:table-cell;white-space:nowrap}
 .overview-section .mobile-list td.actions button{min-width:90px;white-space:nowrap}
 .overview-scroll{max-height:280px}
 .profit-summary strong{font-size:20px}
 .shell nav.admin-primary,body.portal-admin .admin-primary{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:700px){
 .overview-section .mobile-list td.featured-price{position:static;font-size:13px;font-weight:600;color:var(--green)}
 .overview-section .mobile-list .has-price td:first-child{padding:7px 8px}
}

.resource-overview{margin:12px 0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.resource-overview>h2{font-size:15px;margin:8px 10px 3px}.resource-overview>.hint{margin:0 10px 6px;font-size:12px}
.resource-overview table{table-layout:fixed;font-size:13px}
.resource-overview th,.resource-overview td{padding:5px 10px;line-height:1.4}
.resource-overview th:first-child{width:44%;white-space:normal;overflow-wrap:anywhere}
.resource-overview tbody th{background:white;font-weight:400;border-top:1px solid var(--line)}
.resource-overview td,.resource-overview thead th:not(:first-child){text-align:right;white-space:nowrap}
.resource-overview tbody th .hint{display:inline;margin-left:8px;font-size:11px;white-space:nowrap}
.resource-overview td{color:var(--green);font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}
@media(max-width:700px){.resource-overview th,.resource-overview td{padding:5px 4px}.resource-overview thead th:not(:first-child){white-space:normal}.resource-overview td{font-size:13px;white-space:normal;overflow-wrap:anywhere}.resource-overview .hint{font-size:11px}.resource-overview th:first-child{width:36%}.resource-overview table{font-size:12px}}


.storefront-title{display:flex;align-items:center;gap:12px;padding:10px 12px;margin-bottom:12px;background:#edf7f3;border:1px solid #d6e9df;border-radius:8px;color:#126348;font-weight:600;min-width:0}.storefront-title span{flex:1;overflow-wrap:anywhere}.storefront-title button{flex:none;font-size:12px;padding:6px 10px}.catalog-top>.storefront-title{flex:1;margin:0}.catalog-top{flex-wrap:wrap}@media(max-width:700px){.catalog-top>.storefront-title{flex-basis:100%;order:2}.storefront-title{font-size:13px;padding:8px 10px}}

.unified-orders td{padding:8px;font-size:12px;vertical-align:top}.unified-orders .hint{font-size:11px;overflow-wrap:anywhere}.unified-orders td:nth-child(2){max-width:260px}.unified-orders td:nth-child(7){max-width:210px}

@media(max-width:700px){.unified-orders tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;padding:6px;margin-bottom:8px}.unified-orders td{min-width:0;max-width:none!important;padding:5px 7px!important}.unified-orders td:nth-child(-n+3){grid-column:1/-1}.unified-orders td:first-child{font-size:12px}.unified-orders td .hint{line-height:1.35}.unified-orders td:before{font-size:11px}}

.mobile-slogan{display:none}
@media(max-width:700px){.shell>aside{flex-wrap:wrap}.brand,.admin-sidebar .brand{display:none!important}.mobile-slogan{display:block;flex:0 0 100%;width:100%;min-width:0;margin:0 0 18px;padding:14px 16px;border-radius:12px;background:linear-gradient(115deg,#102d29,#12634b);color:#fff;line-height:1.5;box-shadow:0 5px 16px #102d2918}.mobile-slogan strong{display:block;font-size:clamp(18px,5vw,24px);font-weight:800;white-space:normal}.mobile-slogan strong+strong{color:#a5f3c6}.shell aside>.mobile-slogan,.admin-sidebar>.mobile-slogan{margin-bottom:0}.catalog-top>.mobile-slogan{margin-bottom:18px}}

@media(max-width:700px){.catalog-top>.slogan-duplicate{display:none}}

/* Approved compact mobile storefront; checkout details keep their existing layout. */
@media(max-width:700px){
.catalog{padding:12px 10px calc(20px + env(safe-area-inset-bottom))}
.catalog.catalog-public .catalog-top,.catalog.catalog-group .catalog-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:0;padding:4px 6px 4px 8px;border-radius:10px;background:linear-gradient(115deg,#102d29,#12634b)}
.catalog-top>.mobile-slogan{flex:1 1 auto;width:auto;min-width:0;margin:0;padding:0;background:none;border-radius:0;line-height:1.4;box-shadow:none;white-space:nowrap}
.catalog-top .mobile-slogan strong{display:inline;font-size:clamp(11px,3.6vw,14px);letter-spacing:-.25px;white-space:nowrap}
.catalog-top>.storefront-title{order:3;flex:0 0 100%}
.catalog-top .catalog-actions{order:2;flex:0 0 auto;justify-content:flex-end;gap:0}
.catalog-top .catalog-actions button{flex:0 0 auto;width:62px;min-width:62px;min-height:44px;padding:6px 2px;font-size:12px;border-color:#ffffff35;background:#ffffff14;color:#fff}
.catalog-category{margin:8px 0}
.catalog-category>h2{font-size:17px;line-height:1.4;margin:0 0 8px}
.catalog-grid{gap:8px}
.catalog-card{padding:8px;border-radius:8px}
.catalog-card .product-cover{margin:0 0 8px;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:5px}
.catalog-card h3{font-size:14px;line-height:1.35}
.catalog-card .catalog-description{display:none}
.catalog-price{font-size:22px;line-height:1.2;margin:8px 0}
.catalog-card button{min-height:44px;padding:8px 6px;font-size:13px}
.catalog-login{padding-top:16px}
}

/* Mobile management headers scroll with their content instead of reserving the viewport. */
@media(max-width:700px){
 .shell>aside{position:static}
 .admin-mobile-flow>.shell{display:block;height:auto;min-height:100dvh;overflow:visible}
 .admin-mobile-flow .admin-workspace,.admin-mobile-flow #admin-pages{display:block;overflow:visible}
 .admin-mobile-flow .admin-frame{height:auto}
}

/* Settlement rows remain in normal page flow on every screen. */
.agent-settlements .overview-scroll,.finance-history .overview-scroll{max-height:none;overflow-x:auto}
.agent-settlements .overview-scroll th,.finance-history .overview-scroll th{position:static}

/* The five operating priorities share one responsive row and retain normal flow. */
.operating-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.operating-metrics>div{min-width:0}
.operating-metrics strong{overflow-wrap:anywhere}
#order-search label{flex:1;min-width:0}
#order-search input{width:100%;min-width:0}
.bulk-price-row>div{min-width:0}
.bulk-price-row .group-check{white-space:normal}
[data-operation][hidden]{display:none}
.price-center .bulk-price-row{grid-template-columns:minmax(0,1fr) minmax(230px,1fr)}
.price-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.price-fields>.group-check{grid-column:1/-1}
.price-fields .group-check input[type=checkbox]{width:20px;min-height:20px}
@media(max-width:700px){.price-center .bulk-price-row{grid-template-columns:1fr;gap:8px}}
@media(max-width:700px){.operating-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.operating-metrics>div:last-child{grid-column:1/-1}#order-search{align-items:end}.bulk-price-row input:not([type=checkbox]){width:100%;min-width:0}}
