:root{--ink:#17372f;--text:#273d35;--muted:#77857e;--paper:#f5f6f3;--line:#e4e9e3;--green:#1c4b3d;--accent:#efb847;--danger:#b64331;--radius:18px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #e4ac33;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:none;border-color:#658f7b;box-shadow:0 0 0 3px #1c4b3d0d}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.5px;font-weight:650}h2{font-size:20px;font-weight:650}h3{font-size:16px;font-weight:600}img{max-width:100%;display:block}svg{display:block}.icon{width:21px;height:21px;flex:none}.muted{color:var(--muted)}.small{font-size:13px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:16px}.section{margin-top:32px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:32px 0 22px}.page-title .muted{font-size:14px}.wrap{max-width:1200px;margin:0 auto;padding:0 32px}.content{min-height:calc(100vh - 170px);padding-bottom:70px}.topbar{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30;height:84px}.topbar-inner{height:100%;display:flex;align-items:center;gap:32px}.brand{display:flex;align-items:center;gap:12px;flex:none}.brand-mark{height:39px;width:39px;display:grid;place-items:center;background:var(--ink);color:var(--accent);border-radius:12px}.brand-mark svg{width:25px;height:25px}.brand-name{font-size:20px;font-weight:750;letter-spacing:0;white-space:nowrap}.brand-sub{font-size:12px;color:var(--muted);border-left:1px solid var(--line);padding-left:12px;letter-spacing:1px}.desktop-nav{display:flex;gap:30px;align-self:stretch;align-items:center}.desktop-nav a{height:100%;display:flex;align-items:center;position:relative;color:#6c7871;font-size:14px}.desktop-nav a.active{color:var(--ink);font-weight:650}.desktop-nav a.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--ink);border-radius:3px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:18px}.icon-btn{display:flex;align-items:center;justify-content:center;border:1px solid transparent;background:none;min-height:44px;min-width:44px;padding:10px;border-radius:12px;gap:7px}.icon-btn:hover{background:var(--paper)}.cart-shortcut{position:relative}.count{font-size:10px;position:absolute;top:3px;right:1px;background:var(--accent);color:var(--ink);border-radius:20px;min-width:17px;height:17px;display:grid;place-items:center}.account-btn{font-size:13px;color:var(--ink);display:flex;align-items:center;gap:8px}.avatar{height:31px;width:31px;border-radius:50%;background:#edf2ee;display:grid;place-items:center;font-size:12px;font-weight:650}.mobile-nav{display:none}.btn{min-height:44px;border-radius:10px;padding:11px 17px;border:1px solid var(--line);background:white;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:var(--text);font-size:14px;font-weight:550}.btn:hover{background:#f4f7f3}.btn-primary{color:white;background:var(--green);border-color:var(--green)}.btn-primary:hover{background:#143b2f}.btn-accent{color:var(--ink);background:var(--accent);border-color:var(--accent)}.btn-accent:hover{background:#e7ad35}.btn-ghost{background:transparent;border-color:transparent;color:var(--muted)}.btn-danger{color:var(--danger);border-color:#e6c8c1}.btn-wide{width:100%}.price-switch{border:1px solid #c3d3c6;background:#eef4ed;font-size:12px;border-radius:9px;min-height:44px;padding:8px 12px;color:var(--ink)}.searchbar{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);border-radius:12px;padding:0 15px;height:50px;min-width:240px;flex:1;max-width:460px}.searchbar .icon{color:var(--muted)}.searchbar input{width:100%;height:100%;border:0;background:none;box-shadow:none;font-size:14px;outline:none}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.input,select,textarea{width:100%;border:1px solid #dce4dc;min-height:44px;padding:11px 12px;background:white;color:var(--text);border-radius:9px;font-size:14px}.field{display:flex;flex-direction:column;gap:8px;font-size:13px}.field>label,.field>span{font-weight:550;color:#4c6256}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .full{grid-column:1/-1}.field textarea{min-height:90px;resize:vertical}.field-error{color:var(--danger);font-size:13px;line-height:1.6}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.chip{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;background:none;border:1px solid transparent;border-radius:9px;color:#778278;font-size:13px;white-space:nowrap}.chip.active{background:var(--green);color:white}.chip:not(.active):hover{background:#e9eee7}.filter-select{width:auto;min-width:125px;background:none}.catalog-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;margin-top:30px}.catalog-sidebar{display:flex;flex-direction:column;gap:22px}.sidebar-panel{background:white;border:1px solid var(--line);border-radius:14px;padding:18px}.sidebar-panel h3{font-size:13px;margin-bottom:14px}.sidebar-panel .chip{display:flex;justify-content:space-between;width:100%;padding:10px 12px}.sidebar-foot{padding:0 6px;color:var(--muted);font-size:12px;line-height:1.8}.grid-heading{margin-bottom:17px;display:flex;align-items:center;justify-content:space-between;gap:12px}.grid-heading h2{font-size:17px}.grid-heading .muted{font-size:12px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.product-card{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:transform .2s,border-color .2s;position:relative}.product-card:hover{transform:translateY(-3px);border-color:#bfcfc0}.product-image{background:#f0f1ed;aspect-ratio:1.15;position:relative;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.product-card:hover img{transform:scale(1.03)}.product-tag{position:absolute;top:12px;left:12px;background:#ffffffd9;border-radius:5px;color:#456353;padding:4px 7px;font-size:10px;letter-spacing:.5px}.product-info{padding:17px 16px 16px}.product-shop{font-size:11px;color:#8a958c;margin-bottom:7px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.product-name{font-size:15px;font-weight:550;line-height:1.55;min-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-meta{font-size:11px;color:var(--muted);margin-top:7px;min-height:16px}.product-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:16px;gap:5px}.price{color:#254d38;font-weight:700;font-size:21px;letter-spacing:-.5px}.price small{font-size:11px;font-weight:400;color:#859184;letter-spacing:0;margin-left:4px}.product-add{width:34px;height:34px;border:1px solid #dfe8dc;display:grid;place-items:center;color:var(--ink);background:#f1f5ee;border-radius:50%;min-height:44px;min-width:44px}.product-add:hover{background:var(--accent);border-color:var(--accent)}.product-add .icon{width:18px;height:18px}.badge{display:inline-flex;align-items:center;gap:4px;border-radius:5px;background:#edf3e9;color:#56784f;padding:4px 7px;font-size:11px;white-space:nowrap}.badge.warn{background:#fff1d9;color:#a27a2b}.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.shop-card{background:white;border:1px solid var(--line);border-radius:16px;padding:24px;display:flex;align-items:center;gap:18px}.shop-logo{width:62px;height:62px;border-radius:14px;flex:none}.shop-text{flex:1;min-width:0}.shop-text h3{font-size:16px;line-height:1.5}.shop-text p{font-size:12px;color:var(--muted);margin-top:7px}.shop-text .row{margin-top:12px}.shop-arrow{color:#77937d}.card,.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px}.shop-hero{display:flex;align-items:center;gap:22px;background:#193f33;color:#fff;border-radius:20px;margin-top:28px;padding:32px 34px;position:relative;overflow:hidden}.shop-hero:after{content:"";position:absolute;width:300px;height:300px;border:1px solid #ffffff12;border-radius:50%;right:-70px;top:-135px}.shop-hero .shop-logo{width:80px;height:80px;border:1px solid #ffffff20}.shop-hero h1{font-size:27px}.shop-hero .muted{color:#b5c7bb;margin-top:10px;font-size:13px}.shop-hero-actions{margin-left:auto;display:flex;gap:8px;z-index:1}.shop-hero-actions .btn{border-color:#ffffff30;background:#ffffff0d;color:white}.shop-hero-actions .btn:hover{background:#ffffff18}.shop-search-row{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;margin:25px 0}.breadcrumb a:hover{color:var(--ink)}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:42px}.detail-picture{border-radius:18px;overflow:hidden;background:#eee;aspect-ratio:1}.detail-picture img{width:100%;height:100%;object-fit:cover}.detail-content{padding:15px 0;display:flex;flex-direction:column;align-items:stretch;gap:18px}.detail-content h1{font-size:29px;line-height:1.45}.detail-shop{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:7px}.detail-price-box{display:flex;align-items:center;justify-content:space-between;padding:20px;background:#eaf0e6;border-radius:12px}.detail-price-box .price{font-size:32px}.spec-row{display:flex;gap:8px;flex-wrap:wrap}.spec-button{min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:white;font-size:13px}.spec-button.active{border-color:var(--green);background:#f0f5ec;color:var(--ink)}.detail-label{font-size:12px;color:var(--muted);margin-bottom:10px}.detail-facts{display:grid;grid-template-columns:1fr 1fr;gap:13px;font-size:13px}.detail-facts span{color:var(--muted);margin-right:8px}.detail-actions{display:flex;gap:12px;margin-top:auto;padding-top:14px}.detail-actions .btn-primary{flex:1}.description{line-height:1.9;white-space:pre-wrap;color:#586b5e;font-size:14px;margin-top:15px}.qty-control{display:inline-flex;align-items:center;min-height:44px;border:1px solid var(--line);border-radius:9px;background:white;overflow:hidden;flex:none}.qty-control button{width:39px;height:42px;background:none;border:0;font-size:19px;color:var(--text)}.qty-control input{width:46px;border:0;text-align:center;background:none;padding:0;box-shadow:none;appearance:textfield;font-size:14px;height:42px}.qty-control input::-webkit-inner-spin-button{appearance:none}.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px}.cart-section{margin-bottom:22px}.cart-shop-label{display:flex;align-items:center;gap:8px;margin:8px 0 15px;font-size:14px;font-weight:600}.cart-shop-label .shop-logo{width:26px;height:26px;border-radius:6px}.cart-item{display:flex;align-items:flex-start;gap:16px;background:white;border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:12px}.cart-item input[type=checkbox]{margin-top:33px}.check{accent-color:var(--green);width:19px;height:19px;flex:none;cursor:pointer}.cart-image{width:90px;height:90px;border-radius:9px;object-fit:cover;flex:none}.cart-item-content{flex:1;min-width:0}.cart-item-content h3{font-size:14px;line-height:1.5;margin-bottom:7px}.cart-item-content .muted{font-size:12px}.cart-item-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:16px;gap:10px}.cart-item-bottom .price{font-size:17px}.cart-item-total{text-align:right}.cart-item-total .small{margin-top:4px}.cart-remove{font-size:12px;padding:8px;min-height:44px;background:none;border:0;color:var(--muted)}.delivery-panel{padding:17px 20px;display:flex;align-items:center;gap:12px;background:#edf1e9;border-radius:12px;flex-wrap:wrap;margin-bottom:8px;font-size:13px}.delivery-panel select{width:auto;flex:1;max-width:210px;font-size:13px;background:#ffffffb0}.delivery-panel input{width:140px;background:#ffffffb0}.summary-card{position:sticky;top:109px}.summary-card h2{font-size:18px;margin-bottom:22px}.summary-line{display:flex;justify-content:space-between;gap:15px;margin-bottom:15px;font-size:13px}.summary-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:20px;padding-top:20px;margin-bottom:24px;font-size:14px}.summary-total .price{font-size:24px}.summary-card details{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.summary-card summary{font-size:13px;cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between}.summary-card details .field{margin-top:14px}.summary-hint{margin-top:14px;font-size:12px;line-height:1.7;color:var(--muted)}.empty{padding:70px 20px;display:flex;align-items:center;flex-direction:column;gap:18px;text-align:center;color:var(--muted)}.empty .icon{width:44px;height:44px;color:#a0b3a1}.empty h2{font-size:18px;color:var(--ink)}.empty p{font-size:13px}.login-layout{max-width:430px;margin:64px auto}.login-card{padding:36px}.login-card h1{font-size:24px;margin-bottom:30px}.login-card .field{margin-bottom:20px}.login-card .btn{margin-top:12px}.error-box{background:#fff0ed;color:var(--danger);font-size:13px;padding:13px;border-radius:8px;line-height:1.6}.help{margin-top:16px;font-size:13px}.help summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.help p{padding:12px 0;line-height:1.8;color:var(--muted)}.history-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.quote-card{padding:24px}.quote-card-top{display:flex;justify-content:space-between;gap:12px}.quote-number{font-size:12px;letter-spacing:.4px;color:var(--muted);margin-top:8px}.quote-card .summary-total{margin-top:20px;padding-top:16px;margin-bottom:14px}.quote-card-actions{display:flex;gap:10px}.quote-card-actions .btn{flex:1}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:25px;overflow-x:auto}.tabs button{border:0;background:none;border-bottom:2px solid transparent;font-size:14px;min-height:48px;padding:10px 18px;color:var(--muted);white-space:nowrap}.tabs button.active{border-color:var(--green);color:var(--ink);font-weight:600}.admin-list{display:flex;flex-direction:column;gap:12px}.admin-row{display:flex;align-items:center;gap:15px;background:white;border:1px solid var(--line);border-radius:12px;padding:18px}.admin-row img{height:62px;width:62px;object-fit:cover;border-radius:10px}.admin-row .row{flex-wrap:wrap}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}.metric{border:1px solid var(--line);border-radius:14px;background:white;padding:20px}.metric .value,.metric strong{font-size:27px;font-weight:600;display:block;margin-top:10px}.metric .label{font-size:13px;color:var(--muted)}.admin-row .grow,.grow{flex:1;min-width:0}.admin-row .muted{font-size:12px;margin-top:7px}.modal-backdrop{position:fixed;inset:0;background:#10281f65;backdrop-filter:blur(4px);z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}.modal-card{background:#fff;border-radius:20px;width:100%;max-width:680px;max-height:90vh;overflow:auto;padding:28px;box-shadow:0 25px 100px #10291f33}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.modal-header h2{font-size:20px}.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:26px}.modal-card .form-grid{margin-bottom:16px}.modal-card .panel{padding:18px}.spec-sheet{max-width:490px}.spec-sheet-head{display:flex;gap:16px;align-items:center;margin-bottom:25px}.spec-sheet-head img{width:86px;height:86px;border-radius:10px}.spec-sheet-head h3{font-size:16px;margin-bottom:10px;line-height:1.5}.spec-sheet .qty-control{margin-top:25px}.spec-sheet .modal-actions .btn-primary{flex:1}.invoice{border:1px solid var(--line);padding:24px;border-radius:10px;margin-bottom:20px;font-size:13px}.invoice h2{font-size:18px;margin-bottom:7px}.invoice-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin:12px 0 20px;flex-wrap:wrap;gap:8px}.invoice-line{padding:14px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:8px}.invoice-line .muted{font-size:12px;margin-top:5px}.invoice-totals{padding-top:18px;display:flex;flex-direction:column;gap:12px}.invoice-totals .row{justify-content:space-between}.invoice-note{margin-top:18px;white-space:pre-wrap;font-size:12px;line-height:1.6;color:var(--muted)}.qr-modal{text-align:center;max-width:360px}.qr-modal img{margin:15px auto;width:225px;height:225px}.qr-modal .input{font-size:12px}.initial-loading{display:grid;place-items:center;min-height:60vh;color:var(--muted);font-size:14px}#toast{position:fixed;bottom:35px;left:50%;transform:translate(-50%,15px);padding:12px 20px;background:#17372f;color:white;border-radius:10px;font-size:13px;z-index:200;opacity:0;pointer-events:none;transition:all .2s;max-width:90%;line-height:1.6}#toast.show{opacity:1;transform:translate(-50%,0)}.footer{border-top:1px solid var(--line);padding:25px 0;color:#93a091;font-size:11px}.footer .row{justify-content:space-between}.footer-brand{letter-spacing:2px}.hidden{display:none!important}.desktop-only{display:initial}.mobile-only{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1300px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-image{aspect-ratio:1.2}}
@media(max-width:1000px){.topbar-inner{gap:25px}.desktop-nav{gap:20px}.brand-sub{display:none}.catalog-layout{grid-template-columns:180px minmax(0,1fr);gap:22px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cart-layout{grid-template-columns:minmax(0,1fr) 285px;gap:18px}.wrap{padding:0 24px}.detail-grid{gap:25px}.header-actions{gap:8px}}
@media(max-width:700px){:root{--radius:14px}.wrap{padding:0 18px}.topbar{display:none}.topbar-inner{gap:10px}.brand{gap:8px}.brand-mark{width:32px;height:32px;border-radius:9px}.brand-mark svg{width:22px;height:22px}.brand-name{font-size:16px;letter-spacing:0}.desktop-nav,.desktop-only{display:none}.mobile-only{display:initial}.header-actions{gap:1px}.account-btn>span:not(.avatar){display:none}.account-btn{padding:7px;min-width:44px}.header-actions .icon-btn{padding:8px}.header-actions .price-switch{font-size:11px;padding:8px;max-width:116px}.content{padding-bottom:100px}.page-title{margin:24px 0 18px}h1{font-size:23px}.page-title .muted{font-size:12px}.toolbar{gap:10px}.searchbar{max-width:none;min-width:0;width:100%;height:48px;border-radius:10px}.filter-select{min-width:0;flex:1;font-size:13px}.filters{flex-wrap:nowrap;overflow-x:auto;gap:3px;margin-top:16px;margin-right:-18px;padding-right:18px}.chip{padding:10px 14px;font-size:12px;flex:none}.catalog-layout{display:block;margin-top:22px}.catalog-sidebar{display:none}.grid-heading{margin-bottom:13px}.grid-heading h2{font-size:15px}.grid-heading .muted{font-size:11px}.product-grid{gap:12px}.product-card{border-radius:12px}.product-image{aspect-ratio:1.04}.product-info{padding:12px}.product-shop{font-size:10px;margin-bottom:5px}.product-name{font-size:13px}.product-meta{font-size:10px;margin-top:5px}.product-bottom{margin-top:10px}.price{font-size:18px}.price small{font-size:10px;margin-left:2px}.product-add{min-width:34px;min-height:44px;width:34px;height:44px;border-radius:9px;background:none;border:none}.product-add .icon{width:20px;height:20px}.product-tag{font-size:9px;top:9px;left:9px;padding:3px 5px}.shop-grid{grid-template-columns:1fr;gap:12px}.shop-card{padding:20px 16px;gap:14px;border-radius:13px}.shop-logo{width:53px;height:53px;border-radius:11px}.shop-text h3{font-size:15px}.shop-text p{font-size:11px}.shop-text .row{margin-top:9px;gap:7px}.shop-hero{margin-top:18px;padding:23px 18px;gap:13px;border-radius:15px;flex-wrap:wrap}.shop-hero .shop-logo{width:56px;height:56px}.shop-hero h1{font-size:19px;max-width:230px}.shop-hero .muted{font-size:11px;margin-top:8px}.shop-hero-actions{margin-left:0;width:100%;margin-top:3px}.shop-hero-actions .btn{font-size:12px;min-height:44px;padding:10px 12px;flex:1}.shop-search-row{display:block;margin-top:18px}.shop-search-row .row{margin-top:12px;justify-content:space-between}.detail-grid{display:flex;flex-direction:column;gap:10px}.detail-picture{border-radius:14px}.detail-content{gap:17px;padding:15px 0}.detail-content h1{font-size:23px}.detail-price-box{padding:16px}.detail-price-box .price{font-size:28px}.detail-actions{position:sticky;bottom:70px;z-index:10;background:#f5f6f3f5;padding:12px 0;backdrop-filter:blur(8px)}.detail-actions .btn{font-size:13px}.detail-facts{font-size:12px;gap:14px}.breadcrumb{font-size:12px;margin:18px 0}.cart-layout{display:block}.cart-item{padding:15px 12px;gap:10px}.cart-image{width:66px;height:66px}.cart-item input[type=checkbox]{margin-top:24px;width:18px;height:18px}.cart-item-content h3{font-size:13px}.cart-item-content .muted{font-size:11px}.cart-item-bottom{gap:5px;margin-top:10px;flex-wrap:wrap}.cart-item-bottom .price{font-size:16px}.cart-item-bottom .qty-control{min-height:44px}.cart-item-total .small{font-size:10px}.cart-remove{padding:6px 0;font-size:11px}.delivery-panel{padding:13px;font-size:12px;gap:8px}.delivery-panel select{font-size:12px;width:145px;flex:1;max-width:100%}.delivery-panel input{width:120px;flex:1}.summary-card{position:static;margin-top:22px;padding:20px}.summary-card h2{font-size:17px}.cart-submit-bar{position:fixed;bottom:70px;left:0;right:0;display:flex;align-items:center;justify-content:space-between;background:#fff;z-index:25;padding:12px 18px;border-top:1px solid var(--line);gap:15px}.cart-submit-bar .btn{min-width:170px}.cart-submit-bar .price{font-size:20px}.cart-submit-bar .small{font-size:11px;margin-bottom:4px}.cart-bottom-space{height:90px}.mobile-nav{display:flex;position:fixed;left:0;bottom:0;right:0;height:calc(66px + env(safe-area-inset-bottom));padding:5px 8px env(safe-area-inset-bottom);background:#fffffff8;border-top:1px solid var(--line);z-index:40;backdrop-filter:blur(12px);justify-content:space-around}.mobile-nav a{min-width:64px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;font-size:10px;color:#8b968d;position:relative}.mobile-nav a.active{color:var(--ink);font-weight:650}.mobile-nav .icon{width:22px;height:22px}.mobile-nav .count{top:5px;right:11px}.footer{display:none}.login-layout{margin:30px auto}.login-card{padding:27px 22px}.history-grid{grid-template-columns:1fr;gap:14px}.quote-card{padding:20px}.card,.panel{padding:20px}.tabs{margin-left:-18px;margin-right:-18px;padding:0 8px;margin-bottom:20px}.tabs button{padding:12px 13px;font-size:13px}.metric-grid{gap:8px}.metric{padding:13px 10px;border-radius:10px}.metric .label{font-size:11px}.metric .value,.metric strong{font-size:22px}.admin-row{padding:15px 12px;gap:11px;flex-wrap:wrap}.admin-row img{width:48px;height:48px}.admin-row h3{font-size:14px}.admin-row>.btn{margin-left:auto}.admin-row .muted{line-height:1.6}.form-grid{grid-template-columns:1fr;gap:17px}.form-grid .full{grid-column:auto}.modal-backdrop{padding:0;align-items:flex-end}.modal-card{border-radius:20px 20px 0 0;max-height:92dvh;padding:22px 20px calc(22px + env(safe-area-inset-bottom));max-width:none}.modal-header{margin-bottom:20px}.modal-actions{position:sticky;bottom:calc(-22px - env(safe-area-inset-bottom));padding:14px 0;background:white}.modal-actions .btn{flex:1}.modal-card .modal-actions{padding-bottom:calc(14px + env(safe-area-inset-bottom))}.modal-card.qr-modal{padding-bottom:32px}.modal-card .form-grid{grid-template-columns:1fr 1fr;gap:14px}.modal-card .form-grid .full{grid-column:1/-1}.invoice{padding:18px 14px}.invoice-meta{font-size:11px}.invoice-line{font-size:12px}.invoice-totals{font-size:12px}#toast{bottom:90px;white-space:normal;text-align:center}.qr-modal img{width:220px;height:220px}.empty{padding:60px 20px}.section{margin-top:25px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.admin-list{margin-top:20px}.admin-thumb{object-fit:cover}.sku-card{border:1px solid var(--line);border-radius:12px;padding:17px;background:#f7f9f5}.check-grid{padding:12px}.check-grid input{accent-color:var(--green);width:18px;height:18px}.form-error{color:var(--danger);font-size:13px;line-height:1.6}.toolbar>.input{max-width:420px;flex:1;min-width:140px}.toolbar>.page-title{margin:8px 0 18px}.modal-card>form.stack{margin-top:20px}.admin-row>.stack{gap:8px}.modal-card fieldset{border:1px solid var(--line);border-radius:10px;font-size:13px}
@media(max-width:700px){.product-add{width:44px;min-width:44px}.product-bottom .price small{display:block;margin-top:3px}.grid-heading h2{display:none}.quote-card-actions{flex-wrap:wrap}.quote-card-actions .btn{min-width:90px}.admin-root>.panel{padding:14px}.admin-list>.admin-row .row{gap:8px}.catalog-layout .product-bottom{gap:3px}}
.shop-hero-cover{position:absolute;right:0;top:0;width:44%;height:100%;object-fit:cover;opacity:.3;pointer-events:none}.shop-hero>.shop-logo,.shop-hero>div{position:relative;z-index:1}.detail-thumbs{display:flex;gap:10px;margin-top:12px;overflow:auto}.thumb{width:66px;height:66px;padding:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:white;flex:none}.thumb.active{border:2px solid var(--green)}.thumb img{width:100%;height:100%;object-fit:cover}.modal-card .form-grid .field input,.modal-card .form-grid .field select{min-width:0}
.modal-card>.toolbar{justify-content:space-between}.modal-card>form>.modal-actions{margin-top:12px}
.admin-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;min-width:0}.admin-image-card{min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}.admin-image-picture{aspect-ratio:1;background:var(--paper)}.admin-image-picture .admin-thumb{width:100%;height:100%;object-fit:cover;border-radius:0}.admin-image-actions{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:4px 6px}.admin-image-actions .btn{min-height:44px;padding:6px 4px;font-size:12px}.upload-status{overflow-wrap:anywhere}
@media(max-width:700px){.toolbar .searchbar{flex:1 0 100%;max-width:none}.cart-submit-bar,.detail-actions{bottom:calc(66px + env(safe-area-inset-bottom))}}

/* Location services: text and actions only, no map surfaces. */
.location-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0}.location-toolbar p{margin:0;flex:1;min-width:180px}.location-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.shop-location{margin-top:12px;min-width:0}.shop-location [data-distance]{display:block;overflow-wrap:anywhere}.shop-location .location-controls{margin-top:6px}.shop-location [data-nav-help]{margin-top:8px}.shop-location-panel{margin:18px 0}.shop-location-panel .location-toolbar{margin:0 0 14px}.shop-location-panel .shop-location{margin:0}.shop-text{min-width:0}.location-editor{border:1px solid var(--line,#dce4df);border-radius:12px;padding:18px;margin:12px 0}.location-editor legend{padding:0 8px;font-weight:600}.location-editor p{margin:0;overflow-wrap:anywhere}.location-candidate{background:var(--bg,#f7f9f7);border:1px solid var(--line,#dce4df);border-radius:10px;padding:12px;text-align:left;display:grid;gap:5px;width:100%;cursor:pointer;color:inherit;font:inherit;overflow-wrap:anywhere}.location-candidate:focus-visible{outline:2px solid #285c4b}.location-confirm{background:#f1f6f2;border:1px solid #bacfc0;border-radius:10px;padding:16px}.location-controls .btn{white-space:normal}.location-editor [data-location-message]:empty{display:none}
@media(max-width:600px){.location-toolbar{align-items:flex-start}.location-toolbar [data-position-status]{flex-basis:100%}.location-editor{padding:12px}.shop-card{align-items:flex-start}.shop-location .btn{padding:7px 9px;font-size:13px}.shop-location-panel{padding:16px}.location-confirm{padding:12px}}

[hidden]{display:none!important}

/* Cart editing uses one flow, with a second pane on each product. */
.cart-workflow{display:flex;flex-direction:column;gap:22px;max-width:940px;margin:0 auto}.cart-workflow .cart-section{margin-bottom:18px}.cart-workflow .panel>h2{margin-bottom:20px}.cart-workflow .summary-card{position:static;margin:0}.cart-product{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;margin-bottom:14px;touch-action:pan-y}.cart-product-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 18px;gap:24px}.cart-product-tabs button{min-height:44px;background:none;border:0;border-bottom:2px solid transparent;padding:11px 1px;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.cart-product-tabs button[aria-selected=true]{border-bottom-color:var(--green);color:var(--ink);font-weight:600}.definition-dot{width:5px;height:5px;background:var(--accent);border-radius:50%}.cart-product .cart-item{margin:0;border:0;border-radius:0}.definition-pane{padding:18px 20px 20px}.definition-mode{display:flex;align-items:center;gap:24px;margin-bottom:16px;font-size:13px}.definition-mode label{display:flex;align-items:center;gap:6px;min-height:36px}.definition-mode input{accent-color:var(--green);width:17px;height:17px}.definition-reference,.definition-totals{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;font-size:12px}.definition-reference{margin-bottom:14px;border-bottom:1px solid var(--line);color:var(--muted)}.definition-reference strong{font-weight:550}.definition-fields .input[readonly]{background:#f4f6f2;color:#647369}.definition-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.definition-fields .field{min-width:0}.definition-fields .field>span{font-size:12px}.definition-fields input{min-width:0}.definition-totals{margin-top:14px;border-top:1px solid var(--line)}.definition-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}.definition-extra{display:grid;grid-template-columns:1fr 1.5fr .7fr auto;gap:8px;align-items:center}.definition-extras{display:flex;flex-direction:column;gap:10px;margin-top:8px}.cart-delivery-group+ .cart-delivery-group{margin-top:16px}.cart-delivery-group h3{font-size:13px;margin-bottom:10px}.cart-delivery-group .delivery-panel{margin:0}.cart-preview-row{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.cart-customer .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cart-customer .field{min-width:0}.cart-customer input[readonly]{background:#f4f6f2}.cart-customer textarea{min-height:90px}.invoice-shop{display:flex;align-items:center;gap:12px}.invoice-shop .shop-logo{height:44px;width:44px;border-radius:9px;object-fit:contain}.invoice-line-image{grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px}.invoice-line-image>img{height:52px;width:52px;border-radius:8px;object-fit:contain;background:#f4f5f0}.invoice-line-image>strong{white-space:nowrap;font-weight:550}.invoice-customer{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.invoice-customer h3{font-size:13px;margin-bottom:14px}.invoice-customer .summary-line{align-items:flex-start;gap:16px}.invoice-customer .summary-line>span:last-child{max-width:72%;text-align:right;overflow-wrap:anywhere;white-space:pre-wrap}.quote-card{cursor:pointer}.quote-card:focus-visible{outline:2px solid var(--green)}.quote-card-top>div{flex:1;min-width:0}.quote-number{overflow-wrap:anywhere}.quote-card-meta{margin-top:16px}.quote-selection{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px;padding:16px}.quote-selection>span{font-size:12px;color:var(--muted);margin-right:auto}.quote-card-actions{display:flex;gap:10px;flex-wrap:wrap}.quote-card-actions .btn{flex:1;min-width:0}.contact-page-card{max-width:410px;margin:0 auto;text-align:center}.contact-identity{padding-top:10px}.contact-offer{color:var(--green);margin:12px 0;font-size:16px}.contact-caption{text-align:center;margin:10px 0 22px}.contact-page-card>.btn+.btn{margin-top:12px}.shared-pdf{display:flex;justify-content:flex-end;margin:-6px 0 28px}.sku-template-tools{display:grid;grid-template-columns:1fr auto 1fr auto;gap:8px;align-items:end}.sku-template-tools .input{min-width:0}.sku-template-tools .btn{font-size:12px;padding:10px}.admin-list .history-grid{width:100%}
@media(max-width:700px){.mobile-nav a{min-width:0;flex:1;font-size:9px}.mobile-nav{padding-left:3px;padding-right:3px}.mobile-nav .count{right:5px}.cart-workflow{gap:18px}.cart-workflow .panel{padding:18px}.cart-workflow .panel>h2{font-size:17px;margin-bottom:17px}.cart-product-tabs{padding:0 14px;gap:22px}.definition-pane{padding:14px}.definition-fields{gap:14px 10px}.definition-fields .input{padding:10px;font-size:13px}.definition-mode{gap:23px}.definition-extra{grid-template-columns:1fr 1fr}.definition-extra .btn{justify-self:end}.definition-reference{font-size:11px}.cart-customer .form-grid{gap:16px 12px}.cart-customer .full{grid-column:1/-1}.cart-customer .field>span{font-size:12px}.cart-customer input{font-size:13px;min-width:0}.invoice-line-image{grid-template-columns:42px minmax(0,1fr) auto;gap:8px}.invoice-line-image>img{width:42px;height:42px}.invoice-line-image>strong{font-size:12px}.quote-card-actions .btn{min-width:0;font-size:12px;padding:10px 9px}.quote-selection{gap:10px;padding:14px}.quote-card-top{gap:10px}.quote-card-top .badge{max-width:100px;overflow:hidden;text-overflow:ellipsis}.sku-template-tools{grid-template-columns:1fr auto}.sku-template-tools .field{min-width:0}.cart-preview-row .btn{flex:1}.cart-preview-row .desktop-only{display:none}.cart-submit-bar .btn{min-width:154px}.cart-submit-bar{gap:10px}}

[hidden]{display:none!important}
.contact-modal{max-width:390px}.contact-qr{display:block;width:100%;max-width:280px;height:auto;margin:24px auto;object-fit:contain}.contact-phone{display:block;text-align:center;font-size:26px;font-weight:600;padding:36px 0;letter-spacing:1px}.contact-trigger{white-space:nowrap}.promoter-profile{display:grid;grid-template-columns:1fr 2fr;gap:28px;align-items:center}.promoter-profile p{margin-top:10px}.promoter-share{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.promoter-share .field{flex:1;min-width:200px}.quote-editor{max-width:860px}.pricing-mode{display:flex;gap:28px;padding:16px 0;border-bottom:1px solid var(--line,#e2e8e4)}.pricing-mode label{display:flex;align-items:center;gap:8px;font-weight:600}.quote-quantity{max-width:110px}.quote-edit-totals{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 0;border-top:1px solid var(--line,#e2e8e4)}.quote-edit-totals strong{margin-left:8px}.quote-editor .pricing-system input{background:#f4f6f4;color:#67726b}.quote-editor .card{padding:18px}.delivery-panel input{max-width:160px}.delivery-panel .row{gap:8px}
@media(max-width:640px){.promoter-profile{grid-template-columns:1fr;gap:16px}.promoter-share{align-items:stretch}.promoter-share .field{flex-basis:100%}.contact-trigger{padding:8px 10px;font-size:12px}.quote-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-editor .card{padding:14px}.quote-editor .toolbar{align-items:flex-start}.delivery-panel{flex-wrap:wrap}.header-actions{gap:6px}.account-btn span:not(.avatar){display:none}.brand-sub{display:none}}

.cart-item-delivery{padding:0 20px 18px}.cart-item-delivery .delivery-panel{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}.cart-item-delivery .delivery-panel select{grid-column:2/-1;width:100%;max-width:none;min-width:0}.cart-item-delivery .delivery-panel>[data-delivery-fee]{grid-column:2/-1;width:100%;max-width:none}.cart-item-delivery .delivery-panel>.row{grid-column:2;min-width:0}.cart-item-delivery .delivery-panel>.row .input{width:100%;min-width:0;max-width:none}.cart-item-delivery [data-delivery-display]{grid-column:3;white-space:nowrap}.definition-fields .full{grid-column:1/-1}
@media(max-width:700px){.cart-item-delivery{padding:0 14px 14px}.cart-item-delivery .delivery-panel{padding:12px}.cart-item-delivery .delivery-panel select{min-width:0}}

.contact-account{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px;text-align:left}.contact-account-trigger{display:flex;align-items:center;gap:10px;min-height:44px;width:100%;border:0;background:none;padding:0;color:var(--ink);font:inherit;text-align:left;cursor:pointer;list-style:none}.contact-account-trigger::-webkit-details-marker{display:none}.contact-account-trigger .avatar,.contact-account-trigger .icon{flex:none}.contact-account-name{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600}.contact-account-trigger>.icon:last-child{width:18px;height:18px;color:var(--muted)}.contact-login[open] .contact-account-trigger>.icon:last-child{transform:rotate(90deg)}.contact-login-form{padding-top:20px;gap:18px}.contact-login-form .field{min-width:0}.contact-login-form .field-error:empty{display:none}

/* Whole-order definitions adjust the final total without changing item prices. */
.order-pricing{margin:14px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden;touch-action:pan-y}.order-price-basic,.order-definition{padding:16px}.order-pricing .cart-product-tabs{gap:22px;padding:0 16px}.order-pricing .definition-mode{margin-bottom:14px}.order-pricing .field-error:empty{display:none}.order-pricing .field-error{margin-top:12px}.order-pricing .input[aria-invalid=true]{border-color:var(--danger)}.order-pricing .definition-fields .input{min-width:0}.order-pricing .summary-line:last-child{margin-bottom:0}
@media(max-width:700px){.order-price-basic,.order-definition{padding:14px}.order-pricing .cart-product-tabs{padding:0 14px}}

/* Local pricing and shop-level delivery controls. */
.page-title:has(.price-switch){flex-wrap:wrap}.page-title .price-switch{margin-left:auto;flex:none}.pricing-toolbar{display:flex;justify-content:flex-end;margin:20px 0}.definition-mode{gap:16px;flex-wrap:wrap}.cart-group-delivery{padding:18px;background:#fff;border:1px solid var(--line);border-radius:14px;margin-top:12px}.cart-group-delivery .delivery-panel{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}.cart-group-delivery select{grid-column:2/-1;max-width:none;width:100%}.cart-group-delivery .delivery-fee-field{grid-column:2/-1}.cart-group-delivery .delivery-fee-field input{width:100%}.cart-group-delivery .delivery-panel>.row{grid-column:2;min-width:0}.cart-group-delivery .delivery-panel>.row input{width:100%;min-width:0}.cart-group-delivery [data-delivery-display]{grid-column:3;white-space:nowrap}.shop-delivery-settings{border:1px solid var(--line);padding:16px;border-radius:12px;margin:8px 0}.shop-delivery-option{display:grid;grid-template-columns:minmax(130px,1fr) 1fr;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.shop-delivery-option input[type=checkbox]{accent-color:var(--green);width:18px;height:18px}.cart-note-heading{display:flex;align-items:center;justify-content:space-between}.cart-note-heading .btn{min-height:36px;padding:6px 8px}.cart-customer textarea{min-height:140px;scroll-margin-bottom:190px}.note-editor{display:flex;flex-direction:column;gap:16px}.note-editor textarea{min-height:45dvh;resize:vertical;font-size:16px;line-height:1.7}.note-editor .modal-header{margin-bottom:0}.quote-seal-row{display:flex;justify-content:flex-end;margin-top:18px}.quote-seal{display:block;width:132px;height:132px;color:#be2529;flex:none}.quote-seal text{fill:currentColor;font-family:"PingFang SC","Microsoft YaHei",sans-serif}.quote-seal circle{stroke:currentColor;fill:none}
@media(max-width:700px){.cart-bottom-space{height:170px}.cart-input-active .cart-submit-bar{display:none}.cart-group-delivery{padding:14px}.shop-delivery-option{grid-template-columns:1fr 1fr}.shop-delivery-option .field{min-width:0}.page-title .price-switch{font-size:12px;min-height:38px;padding:7px 10px}.note-editor{height:min(88dvh,760px)}.note-editor textarea{flex:1;min-height:120px}.note-editor .modal-actions{margin-top:0;flex:none}.quote-seal{width:120px;height:120px}}

/* Role-specific document controls and inline editing stay within the phone viewport. */
.search-control{flex:1;min-width:0}.search-control .searchbar{width:100%;max-width:none}.search-recent{font-size:12px;color:var(--muted);margin-top:8px;max-width:100%}.search-recent summary{cursor:pointer;min-height:28px}.search-history-actions{display:flex;flex-wrap:wrap;gap:6px;padding:5px 0 10px}.search-history-actions .btn{max-width:100%;overflow-wrap:anywhere;white-space:normal;text-align:left;min-height:34px;padding:6px 10px;font-weight:400}.shop-card{position:relative;padding-bottom:48px}.shop-pin{position:absolute;right:14px;bottom:8px;min-height:34px;padding:5px 9px}.shop-pin[aria-pressed=true]{color:var(--green);background:#edf4ed}.merchant-delivery-hint{grid-column:1/-1;white-space:pre-wrap;line-height:1.7;color:var(--muted);font-size:13px;margin-top:8px}.resale-contact{margin-top:16px;font-size:13px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}.resale-contact .btn{margin-left:8px}.document-options .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.document-options .field{min-width:0}.document-options .row{min-height:44px;flex-wrap:wrap}.document-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.document-heading h3{font-size:17px}.document-type-stamp{border:2px solid #b32c32;color:#b32c32;padding:6px 12px;font-size:13px;white-space:nowrap;transform:rotate(-5deg);border-radius:3px}.quote-tools{margin:18px 0}.quote-filters{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.quote-filters select{width:auto;min-width:130px;flex:1}.quote-filters .btn{flex:none}.quote-result-count{margin:14px 0}.quote-card-meta{line-height:1.8;overflow-wrap:anywhere}.fulfillment-chooser{max-width:540px;margin:22px auto}.fulfillment-chooser h2{margin-bottom:18px}.fulfillment-chooser .btn{margin-top:12px}.image-save{display:inline-flex;align-items:center;justify-content:center;color:var(--green);min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;margin-top:8px}.detail-picture{display:block}.product-detail-images{display:flex;flex-direction:column;gap:22px;margin-top:22px}.product-detail-images figure{margin:0}.product-detail-images img{width:100%;height:auto;max-height:none;object-fit:contain}.cart-customer .cart-note{padding-bottom:12px}.cart-customer textarea{scroll-margin-bottom:240px;resize:vertical;line-height:1.6}.definition-mode{gap:12px}.definition-actions{padding-top:10px;padding-bottom:8px}.definition-actions .btn{min-width:88px}.definition-pane .field-error:empty{display:none}
@media(max-width:700px){.toolbar>.search-control{flex:1 0 100%;width:100%}.shop-search-row .search-control{flex:1 0 100%}.cart-bottom-space{height:calc(220px + env(safe-area-inset-bottom))}.document-options .form-grid{gap:16px 10px}.document-options .row{grid-column:1/-1}.document-heading{gap:10px}.document-type-stamp{padding:5px 7px;font-size:12px}.quote-filters{gap:8px}.quote-filters select{min-width:100px;font-size:13px}.definition-mode{gap:10px;font-size:12px}.fulfillment-chooser{margin:18px 0}}
@media(max-width:700px){.cart-bottom-space.mobile-only{display:block;height:calc(220px + env(safe-area-inset-bottom))}}
/* Keep every SKU's attributes and prices together after product basics. */
.product-projects,.product-description{border-top:1px solid var(--line,#dce2df);padding-top:24px;margin-top:8px;min-width:0}
.product-project-tools{min-width:0}
.product-project-tools>summary{cursor:pointer;font-size:14px;color:var(--muted);padding:4px 0}
.product-project-tools[open]>.stack{margin-top:16px}
.product-template-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.template-scope{grid-column:1/-1}
.project-settings{border:1px solid var(--line,#dce2df);border-radius:12px;padding:14px;min-width:0}
.project-settings summary{cursor:pointer;font-weight:600}
[data-project-settings]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.project-setting{display:flex;align-items:center;padding:8px 0;min-width:0}
.project-setting .row{gap:8px;white-space:nowrap;font-size:14px}
.project-setting input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:var(--green)}
.project-setting:has([data-project-label]){display:grid;grid-column:1/-1;grid-template-columns:70px minmax(0,1fr) minmax(60px,.6fr) auto;gap:10px;border-top:1px solid var(--line)}
.project-add{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr) auto;gap:10px;align-items:end}
.product-projects .sku-card{padding:16px;margin:0;min-width:0}
.sku-editor{gap:20px}
.sku-card .sku-heading{padding-bottom:12px;border-bottom:1px solid var(--line)}
.sku-card .sku-heading strong{font-size:15px;color:var(--ink)}
.sku-parameter-section{padding-top:16px;border-top:1px solid var(--line);min-width:0}
.sku-parameter-section h4{font-size:13px;font-weight:600;color:var(--ink);margin:0}
.sku-card .sku-identity{min-width:0}
.sku-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
.sku-code-field{grid-column:1/-1;min-width:0}
.sku-customizable-field{grid-column:1/-1}
.sku-card .field{min-width:0}
.sku-card .field>span{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.sku-card .input{font-size:16px;min-height:46px;padding:10px 12px}
.sku-card input::placeholder{font-size:12px}
.sku-card .input[readonly]{background:#edf2ee;color:var(--ink)}
.sku-price-card{border-top:1px solid var(--line);padding-top:16px;min-width:0}
.sku-price-card h4{margin:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.product-projects .form-grid,.product-prices .form-grid{min-width:0}
.product-projects input:not([type=checkbox]),.product-projects select,.product-prices input,.product-prices select{min-width:0;width:100%}
.detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.detail-facts>div{min-width:0;overflow-wrap:anywhere}
.shop-delivery-option:not(:has(.field)){grid-template-columns:minmax(0,1fr)}
@media(max-width:600px){
  .project-add{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .project-add button{grid-column:1/-1}
  .project-setting:has([data-project-label]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .project-setting [data-remove-project]{justify-self:end}
  .product-projects>.toolbar{align-items:center;gap:8px}
  .product-projects>.toolbar .btn{padding-inline:10px;white-space:nowrap}
}

/* Merchant and product publication review. */
.cart-spec-summary{overflow-wrap:anywhere;line-height:1.6}
.cart-item-bottom .qty-control{width:min(100%,200px)}
.cart-item-bottom .qty-control input{width:100px;min-width:0;flex:1}
@media(max-width:700px){.cart-item-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.cart-item-bottom .qty-control{grid-column:1/-1;grid-row:2;justify-self:start}.cart-item-bottom .cart-remove{grid-column:2;grid-row:1}.cart-item-bottom .price{grid-column:1;grid-row:1}}
@media(max-width:700px){.cart-submit-bar>div{min-width:0;flex:1}.cart-submit-bar>.btn{min-width:0;flex:0 0 48%;padding-inline:8px}.cart-submit-bar .price{font-size:clamp(14px,4.6vw,18px);overflow-wrap:anywhere;line-height:1.25}}
.review-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#a94f16;color:#fff;font-size:11px}.review-filters{display:flex;gap:16px;align-items:end;margin-bottom:18px;flex-wrap:wrap}.review-filters .field{width:180px}.review-filters>.muted{padding-bottom:12px}.review-reason{color:#a13728;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.review-status-pending{background:#fff0d3;color:#805100}.review-status-rejected{background:#fce8e4;color:#9b3022}.review-status-approved,.review-status-published{background:#e0f1e7;color:#07583b}.review-detail p{margin:4px 0;overflow-wrap:anywhere;white-space:pre-wrap}.review-detail .form-grid>div{min-width:0}.review-pictures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.review-pictures img{width:100%;height:120px;object-fit:contain;border:1px solid var(--line);border-radius:8px}.review-detail .card{overflow-wrap:anywhere}.admin-row>.row{flex-wrap:wrap;justify-content:flex-end}.admin-row .stack{overflow-wrap:anywhere}
@media(max-width:700px){.review-filters .field{width:150px}.review-pictures img{height:95px}.modal-actions{flex-wrap:wrap}.modal-actions>.btn{min-width:0}.review-detail .form-grid{grid-template-columns:1fr 1fr}.review-detail .card{padding:14px}.admin-row>.row .btn{padding:8px 10px;font-size:12px}}

@media(max-width:700px){.admin-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px}.admin-row>.admin-thumb{width:48px;height:48px;grid-column:1;grid-row:1}.admin-row>.stack{grid-column:2;grid-row:1}.admin-row>.row{grid-column:1/-1;grid-row:2;justify-content:flex-end}.admin-row:not(:has(>.admin-thumb))>.stack{grid-column:1/-1}}

/* Shop delivery is exclusive; cart fulfilment and fees follow the viewer's role. */
.delivery-fixed{grid-column:2/-1;min-width:0;overflow-wrap:anywhere;font-weight:550}
.cart-group-delivery .delivery-panel select{grid-column:2/-1;width:100%;max-width:none;min-width:0}
.cart-group-delivery .delivery-fee-field,.cart-group-delivery .delivery-distance-field{grid-column:2;min-width:0}
.cart-group-delivery .delivery-panel .field input{width:100%;max-width:none;min-width:0}
.cart-group-delivery [data-delivery-display]{grid-column:3;align-self:end;padding-bottom:12px}
.cart-item-bottom .price{min-width:0;overflow-wrap:anywhere}
.page-pricing-sticky{position:sticky;top:86px;z-index:20;background:var(--paper);padding:12px 0;border-bottom:1px solid var(--line)}
.pricing-toolbar{display:flex;justify-content:flex-end}
.price-label{font-size:12px;color:var(--muted);white-space:nowrap}
.shop-hero.sticky-shop-header{position:sticky;top:86px;z-index:20;flex-wrap:wrap}
.shop-hero-price{margin-left:auto;flex:none}
.shop-hero-actions{width:100%;margin-left:0;flex-wrap:wrap}
.shop-hero-price .price-switch{background:#ffffffeb}
.shop-hero-price .price-label{color:white}
.detail-picture img{object-fit:contain}
/* Plain images retain the browser/WeChat native long-press actions. */
.image-backdrop{padding:0;background:#111;backdrop-filter:none;align-items:center}
.image-viewer.modal-card{position:relative;width:100vw;max-width:none;height:100dvh;max-height:none;display:flex;justify-content:center;overflow:hidden;padding:0;border-radius:0;background:#111;box-shadow:none}
.image-viewer-close{position:absolute;z-index:1;top:calc(12px + env(safe-area-inset-top));left:12px;color:white;background:#2229;border-radius:50%}
.image-viewer-content{display:flex;justify-content:center;align-items:center;width:100%;height:100%;min-height:0;overflow:auto;touch-action:pan-x pan-y pinch-zoom}
.image-viewer-content img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;-webkit-user-select:auto;user-select:auto;-webkit-touch-callout:default}
@media(max-width:700px){
  .page-pricing-sticky,.shop-hero.sticky-shop-header{top:0}
  .page-pricing-sticky{margin-top:0;margin-bottom:16px;min-height:64px;flex-wrap:nowrap;gap:8px}
  .page-pricing-sticky h1{font-size:21px;min-width:0}
  .page-pricing-sticky .muted{font-size:11px;white-space:nowrap}
  .page-pricing-sticky .price-switch{margin-left:auto}
  .shop-hero.sticky-shop-header{gap:10px;padding:16px 12px}
  .sticky-shop-header>.shop-logo{width:42px;height:42px}
  .sticky-shop-header>div:has(h1){flex:1;min-width:0}
  .sticky-shop-header h1{font-size:17px;overflow-wrap:anywhere}
  .shop-hero-price .price-switch{font-size:11px;padding:8px;white-space:nowrap}
}

.shop-delivery-option input[type=radio]{accent-color:var(--green);width:18px;height:18px;flex:none}
.shop-delivery-option:not(:has(.field:not([hidden]))){grid-template-columns:minmax(0,1fr)}

/* Screenshot feedback: readable type, original DanGo logo and touch gallery. */
.small{font-size:14px}
.btn,.filter-select,.chip,.tabs button{font-size:15px}
.product-name{font-size:17px}
.product-meta,.product-shop{font-size:13px}
.definition-fields .field>span{font-size:14px}
.definition-fields .input{font-size:16px}
.system-definition-fields>.field:first-child{grid-column:1 / -1}
.custom-definition-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.custom-definition-fields>[data-definition-field=cost_price]{grid-area:1 / 1}
.custom-definition-fields>[data-definition-field=contract_price]{grid-area:1 / 2}
.custom-definition-fields>[data-definition-field=wholesale_price]{grid-area:2 / 1}
.custom-definition-fields>[data-definition-field=retail_price]{grid-area:2 / 2}
.custom-definition-fields>[data-definition-field=custom_price]{grid-area:3 / 1}
.custom-definition-fields>[data-definition-field=gross_profit]{grid-area:4 / 1}
.custom-definition-fields>[data-definition-field=gross_margin]{grid-area:4 / 2}
.merchant-custom-definition-fields>[data-definition-field=wholesale_price]{grid-area:1 / 1}
.merchant-custom-definition-fields>[data-definition-field=retail_price]{grid-area:1 / 2}
.merchant-custom-definition-fields>[data-definition-field=custom_price]{grid-area:2 / 1}
.merchant-custom-definition-fields>[data-definition-field=gross_profit]{grid-area:3 / 1}
.merchant-custom-definition-fields>[data-definition-field=gross_margin]{grid-area:3 / 2}
.contract-preview-note{margin:16px 0}
.admin-thumb{width:64px;height:64px}

.brand-logo{position:relative;display:block;width:224px;height:64px;overflow:hidden;flex:none;background:transparent}
.brand-logo img{position:absolute;width:124%;max-width:none;height:auto;left:-13%;top:50%;transform:translateY(-50%)}
.catalog-brand{line-height:1;margin:0}
.catalog-title{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;align-items:center}
.catalog-title h1{grid-column:1;grid-row:1}
/* Show only the wordmark (x=700..2000) from the original 2172px logo. */
.catalog-title .brand-logo{width:166px;height:48px}
.catalog-title .brand-logo img{width:167.077%;left:-53.846%;transform:translateY(-53.4%)}
.catalog-title>.price-switch,.catalog-title>.price-label{grid-column:2;grid-row:1;justify-self:end}
.detail-media{min-width:0}
.detail-thumbs{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:12px;padding:12px 0;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.detail-thumbs .thumb{width:88px;height:88px;flex:0 0 88px;scroll-snap-align:center}
.detail-picture{touch-action:pan-y pinch-zoom}
.invoice{font-size:16px;line-height:1.65}
.invoice h2{font-size:22px;overflow-wrap:anywhere}
.invoice-meta,.invoice-line .muted,.invoice-note{font-size:14px}
.invoice-shop .shop-logo{width:72px;height:72px;flex:none}
.invoice-shop>div{min-width:0}
.invoice-product-shop{margin:0 0 6px;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.invoice-line-image{grid-template-columns:100px minmax(0,1fr) auto;align-items:start;gap:16px}
.invoice-line-image>img{width:100px;height:100px}
.invoice-line-image>div{min-width:0;overflow-wrap:anywhere}
.invoice-line-image>strong{font-size:16px}
.invoice-customer h3{font-size:17px}
.invoice-totals{font-size:16px}
.order-definition .field-error:empty{display:none}
.cart-group-delivery[hidden]{display:none}
@media(max-width:700px){
  body{font-size:16px}
  .small,.page-title .muted,.product-shop,.product-meta,.badge,.search-recent,.price-label{font-size:13px}
  .btn,.filter-select,.chip,.tabs button,.cart-product-tabs button{font-size:15px}
  .btn,.input,.filter-select{min-height:46px}
  .input,.definition-fields .input,.cart-customer input,.detail-actions .btn{font-size:16px}
  .field>span,.definition-fields .field>span,.cart-customer .field>span{font-size:14px;line-height:1.5}
  .definition-mode{font-size:15px;gap:18px}
  .definition-fields{gap:16px 12px}
  .definition-pane{padding:16px}
  .product-name{font-size:16px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:48px}
  .product-meta{line-height:1.5;min-height:36px}
  .product-bottom .price{font-size:22px}
  .product-info{padding:14px 12px}
  .cart-image{width:84px;height:84px}
  .cart-item-content h3{font-size:17px}
  .cart-spec-summary,.summary-line,.summary-hint{font-size:14px}
  .cart-item-bottom .price{font-size:19px}
  .cart-submit-bar .price{font-size:22px}
  .cart-submit-bar .btn{font-size:16px}
  .cart-product-tabs{gap:22px}
  .cart-workflow .panel>h2{font-size:20px}
  .mobile-nav a{font-size:11px}
  .catalog-title.page-pricing-sticky{display:grid;gap:4px 10px;padding-block:8px;min-height:64px}
  .catalog-title .brand-logo{width:clamp(119px,36.37vw,156px);height:44px}
  .page-title .price-switch{font-size:14px;min-height:44px}
  .page-pricing-sticky .muted{font-size:13px}
  .admin-row{grid-template-columns:72px minmax(0,1fr);gap:14px}
  .admin-row>.admin-thumb{width:72px;height:72px}
  .admin-row strong{font-size:18px}
  .admin-row>.row .btn{font-size:15px;min-height:44px}
  .admin-row .muted{font-size:14px;line-height:1.6}
  .invoice{padding:18px 14px}
  .invoice h2{font-size:20px}
  .invoice-meta{font-size:13px;gap:6px}
  .invoice-shop .shop-logo{width:64px;height:64px}
  .invoice-line-image{grid-template-columns:88px minmax(0,1fr);gap:10px 12px;font-size:16px}
  .invoice-line-image>img{width:88px;height:88px;grid-column:1;grid-row:1}
  .invoice-line-image>div{grid-column:2;grid-row:1}
  .invoice-line-image>strong{grid-column:2;grid-row:2;justify-self:end;font-size:17px}
  .invoice-line .muted,.invoice-note{font-size:14px;line-height:1.65}
  .invoice-totals{font-size:16px}
  .invoice-customer .summary-line{font-size:15px}
  .detail-thumbs .thumb{width:80px;height:80px;flex-basis:80px}
}

/* Keep workbench controls readable when merchant promotion entries wrap. */
.admin-workbench-actions{flex-wrap:wrap;gap:8px}.admin-workbench-actions>.btn,.admin-workbench-actions>.icon-btn{flex:none;white-space:nowrap}


.catalog-toolbar:first-child{margin-top:24px}
#admin-root{padding-top:24px}

.admin-filters{align-items:flex-start}.admin-search-control{flex:1 1 260px;max-width:420px;min-width:0}.admin-search-control>.input{width:100%;min-width:0}.admin-filters>#admin-status-filter{width:180px;min-height:44px;flex:none}.admin-filters>#admin-add{flex:none}.admin-review-count{min-height:44px;display:flex;align-items:center}@media(max-width:700px){.admin-search-control{flex:1 0 100%;max-width:none}.admin-filters>#admin-status-filter{width:auto;flex:1 1 140px;min-width:0}}
.staff-editor.modal-card{display:flex;flex-direction:column;width:100%;max-width:640px;height:min(90dvh,820px);max-height:90dvh;overflow:hidden;padding:0;background:#fff}
.staff-member .row.between{align-items:flex-start}
.staff-member__main{min-width:0;flex:1;overflow-wrap:anywhere}
.staff-member .row.between>.row{flex:none}
.staff-editor [hidden]{display:none!important}
.staff-editor__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;border-bottom:1px solid var(--line);flex:none}
.staff-editor__header h2{font-size:19px;font-weight:650}
.staff-editor__form{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}
.staff-editor__body{flex:1;min-height:0;padding:20px 24px;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.staff-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
.staff-fields .field{min-width:0;margin:0;gap:6px;font-size:12px}
.staff-fields .field>span{color:var(--muted)}
.staff-fields .input{width:100%;min-width:0;max-width:100%;min-height:44px;height:44px;padding:10px 12px;font-size:16px}
.staff-fields__password{grid-column:1/-1}
.staff-grants{margin-top:22px;border:1px solid var(--line);border-radius:14px;overflow:hidden;min-width:0}
.staff-grants__heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 4px}
.staff-grants__heading h3{font-size:14px;font-weight:650}
.staff-grants__heading [data-grant-count]{color:var(--muted);font-size:12px;white-space:nowrap}
.staff-grants__controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px 8px}
.staff-grants__all,.staff-editor__enabled{display:flex;align-items:center;gap:9px;min-height:44px;font-size:14px;cursor:pointer}
.staff-grants input[type=checkbox],.staff-editor__enabled input{width:20px;height:20px;flex:none;accent-color:var(--green);margin:0}
.staff-grants__refresh{min-height:44px;padding:8px 0 8px 12px;background:none;border:0;color:var(--green);font-size:13px;font-weight:600;white-space:nowrap}
.staff-grants__search{display:flex;align-items:center;gap:8px;margin:0 12px 12px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:var(--paper);height:42px}
.staff-grants__search:focus-within{border-color:#658f7b;box-shadow:0 0 0 3px #1c4b3d0d}
.staff-grants__search .icon{width:17px;height:17px;color:var(--muted)}
.staff-grants__search input{width:100%;min-width:0;height:100%;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;font-size:16px}
.staff-grants__search input:focus{box-shadow:none}
.staff-grants__list{max-height:clamp(170px,26dvh,224px);overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;border-top:1px solid var(--line);scrollbar-gutter:stable}
.staff-grant-row{display:flex;align-items:center;gap:12px;min-height:62px;padding:11px 14px;border-bottom:1px solid var(--line);cursor:pointer}
.staff-grant-row:last-of-type{border-bottom:0}
.staff-grant-row:has(input:checked){background:#edf4ef}
.staff-grant-row>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.staff-grant-row strong{font-size:14px;font-weight:550;overflow-wrap:anywhere;line-height:1.5}
.staff-grant-row small{font-size:11px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.staff-grants__empty{padding:26px 14px;text-align:center;color:var(--muted);font-size:13px}
.staff-grants__error{padding:0 14px 12px;font-size:12px;color:var(--danger);line-height:1.5}
.staff-editor__error{margin-top:12px}
.staff-editor__footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:12px 24px;border-top:1px solid var(--line);background:#fff}
.staff-editor__footer .btn{min-width:112px;min-height:46px}
@media(max-width:700px){.staff-editor.modal-card{height:min(94dvh,860px);max-height:94dvh;border-radius:20px 20px 0 0}.staff-editor__header{padding:10px 18px}.staff-editor__header h2{font-size:18px}.staff-editor__body{padding:16px 18px}.staff-editor__footer{padding:10px 18px calc(10px + env(safe-area-inset-bottom))}.staff-grants{margin-top:18px}.staff-grants__list{max-height:min(28dvh,224px)}}

.staff-editor__body,.staff-grants__list{scrollbar-width:thin;scrollbar-color:#c3d1c8 transparent}
.staff-editor__body::-webkit-scrollbar,.staff-grants__list::-webkit-scrollbar{width:4px}
.staff-editor__body::-webkit-scrollbar-thumb,.staff-grants__list::-webkit-scrollbar-thumb{background:#c3d1c8;border-radius:4px}
.staff-editor__body::-webkit-scrollbar-button,.staff-grants__list::-webkit-scrollbar-button{display:none}
.merchant-workbench.panel{padding:0;background:transparent;border:0;border-radius:0}
.workbench-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 0 20px}
.workbench-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.workbench-title-row h1{font-size:26px;line-height:1.4;font-weight:650;letter-spacing:-.02em}
.workbench-account{display:none}
.workbench-tools{display:flex;align-items:center;gap:4px}
.workbench-tool{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 12px;background:transparent;border:0;border-radius:9px;color:var(--green);font-size:13px;font-weight:550;white-space:nowrap}
.workbench-tool .icon{width:18px;height:18px}
.workbench-tool:hover{background:#edf3ef}
.merchant-workbench #admin-tabs{gap:16px;margin:0 0 22px;padding:0;border-bottom:1px solid var(--line)}
.merchant-workbench #admin-tabs button{min-height:48px;padding:12px 8px;color:#586b61;font-size:14px}
.merchant-workbench #admin-tabs button.active{color:var(--green);border-bottom-color:var(--green)}
.merchant-workbench #admin-content.section{margin-top:0}
.staff-management__heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
.staff-management__heading h1{font-size:24px;line-height:1.4}
.staff-management__heading h2{font-size:19px;line-height:1.4;font-weight:650}
.staff-management__heading p{margin-top:5px;font-size:13px;color:#586b61;line-height:1.5}
.staff-management__add{flex:none;min-height:44px;padding:10px 14px;font-size:13px;gap:6px}
.staff-management__add .icon{width:16px;height:16px}
.staff-members{display:flex;flex-direction:column;gap:12px}
.staff-management .staff-member{padding:18px 18px 6px;border:1px solid var(--line);border-radius:14px;background:#fff}
.staff-member__header{display:flex;align-items:center;gap:12px;min-width:0;padding-bottom:14px}
.staff-member__avatar{display:flex;align-items:center;justify-content:center;flex:none;width:42px;height:42px;border-radius:11px;background:#edf3ef;color:var(--green);font-size:17px;font-weight:600}
.staff-member__identity{min-width:0;flex:1}
.staff-member__name{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.staff-member__name h3{font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.staff-member__identity p{margin-top:4px;color:#586b61;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.staff-member__state{padding:3px 7px;border-radius:5px;background:#edf3ef;color:var(--green);font-size:11px;line-height:1.4;white-space:nowrap}
.staff-member__state.is-inactive{color:#765e2a;background:#f7f0de}
.staff-member__footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:3px;min-height:48px}
.staff-member__grant{font-size:12px;color:#586b61;line-height:1.5}
.staff-member__grant strong{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.staff-member__actions{display:flex;gap:0;flex:none}
.staff-member__actions .btn{min-width:48px;min-height:44px;padding:8px 9px;border-color:transparent;background:transparent;font-size:13px;color:var(--green)}
.staff-member__actions .btn:hover{background:#edf3ef}
.staff-member__actions .btn-danger{color:var(--danger)}
.staff-member__actions .btn-danger:hover{background:#fbefec}
.staff-management__empty{padding:36px 20px;text-align:center;border:1px solid var(--line);border-radius:14px;background:#fff}
.staff-management__empty h3{font-size:16px}
.staff-management__empty p{margin-top:8px;font-size:13px;color:#586b61}
@media(max-width:700px){.workbench-header{display:block;padding-bottom:14px}.workbench-title-row{margin-bottom:16px}.workbench-title-row h1{font-size:22px}.workbench-account{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--green);color:#fff;font-size:18px;font-weight:600}.workbench-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:5px 2px;background:#edf3ef;border-radius:12px}.workbench-tool{flex-direction:column;gap:5px;min-width:0;min-height:58px;padding:7px 2px;font-size:12px}.workbench-tool .icon{width:19px;height:19px}.workbench-tool:hover{background:#e0eade}.merchant-workbench #admin-tabs{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;overflow:visible;margin:0 0 20px;background:var(--paper)}.merchant-workbench #admin-tabs button{min-width:0;min-height:46px;padding:10px 2px;font-size:14px}.merchant-workbench #admin-tabs .review-count{margin-left:2px;padding:2px 4px;font-size:10px}.staff-management__heading{gap:12px;margin-bottom:14px}.staff-management__heading h1{font-size:22px}.staff-management__heading h2{font-size:18px}.staff-management__heading p{font-size:12px}.staff-management__add{padding:10px 12px}.staff-management .staff-member{padding:16px 16px 5px}.staff-member__header{gap:10px;padding-bottom:13px}.staff-member__footer{gap:4px}.staff-member__name h3{font-size:15px}}

.merchant-workbench button:focus-visible,.staff-management button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.merchant-workbench #admin-tabs button:focus-visible{outline-offset:-4px}
.merchant-workbench ::selection,.staff-management ::selection{background:#d9eadf;color:var(--ink)}
.staff-management__loading{padding:24px 0;color:#586b61;font-size:13px}

/* Numbered product selection and independently granted prices. */
.staff-grant-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;cursor:default}
.staff-grant-product{display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;cursor:pointer}
.staff-grant-number{flex:none;min-width:18px;color:#586b61;font-size:12px;font-variant-numeric:tabular-nums}
.staff-grant-name{display:flex;flex-direction:column;gap:3px;min-width:0}
.staff-grant-prices{display:flex;gap:16px;align-items:center}
.staff-grant-prices label{display:flex;align-items:center;gap:7px;min-height:44px;font-size:12px;white-space:nowrap;cursor:pointer}
.staff-grant-prices label:has(input:disabled){color:var(--muted);cursor:default}
.staff-grants input[type=checkbox]:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:700px){.staff-grant-row{grid-template-columns:minmax(0,1fr);gap:0;padding:8px 12px}.staff-grant-prices{padding-left:30px;gap:24px}.staff-grant-product{gap:9px}.staff-grant-prices label{font-size:13px}}

.staff-grant-thumb{position:relative;display:grid;place-items:center;flex:none;width:52px;height:52px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff;color:#84958b}
.staff-grant-thumb svg{width:23px;height:23px}
.staff-grant-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}
.staff-grant-thumb img[hidden]{display:none}
@media(max-width:700px){.staff-grant-thumb{width:48px;height:48px}.staff-grant-product{padding:3px 0}.staff-grant-name{flex:1}}

.staff-grants__price-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 14px 8px}
.staff-grants__price-controls label{display:flex;align-items:center;gap:9px;min-height:44px;font-size:13px;color:var(--green);cursor:pointer}
.staff-grants__price-controls label:has(input:disabled){color:var(--muted);cursor:default}

@media(max-width:700px){.merchant-workbench #admin-tabs{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(78px,1.35fr)}.merchant-workbench #admin-tabs [data-tab="quotes"]{white-space:nowrap}}

/* Calm, compact product browsing and responsive action feedback. */
.product-card{box-shadow:0 2px 10px rgba(23,55,47,.035);border-color:#e1e9e2}
.product-card .product-image{background:#edf1eb}
.product-card .product-name{letter-spacing:.01em}
.product-add{transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.mobile-nav a{transition:color .16s ease}
@media(max-width:700px){
  .product-card .product-meta{min-height:20px;line-height:1.45}
  .product-card .product-bottom{margin-top:8px}
  .product-card .product-info{padding-bottom:13px}
  .mobile-nav a.active .icon{stroke-width:1.9}
}
@media(prefers-reduced-motion:no-preference){
  .modal-backdrop{animation:surface-fade .16s ease-out both}
  .modal-backdrop>.modal-card{animation:surface-arrive .18s ease-out both}
  .btn:active:not(:disabled),.product-add:active:not(:disabled){transform:scale(.98)}
  @keyframes surface-fade{from{opacity:0}to{opacity:1}}
  @keyframes surface-arrive{from{transform:translateY(8px)}to{transform:translateY(0)}}
}

@media(max-width:360px){
  .product-card .product-info{padding-left:10px;padding-right:10px}
  .product-card .product-bottom .price{font-size:17px;min-width:0}
  .product-card .product-add{flex:none;min-width:44px;width:44px}
}

.promoter-account{display:none}
@media(max-width:700px){
  #promoter-root .promoter-quotes-heading h2{display:block}
  .promoter-heading{gap:8px}
  .promoter-heading h1{flex:1;min-width:0;font-size:21px}
  .promoter-heading #promoter-refresh{flex:none;padding:9px 10px;font-size:12px}
  .promoter-account{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--green);color:#fff;font-size:17px;font-weight:600}
}

@media(max-width:700px){
  .mobile-nav .mobile-account{display:flex;flex:1;min-width:0;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:0;border:0;background:transparent;color:#8b968d;font-size:11px}
  .mobile-nav .mobile-account .icon{width:22px;height:22px}
}
