@import url('/fonts.css');
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang HK",sans-serif;color:#202b29;background:#f7f8fa;font-synthesis:none;--green:#173f35;--line:#e3e8e6;--muted:#74817d}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button,a{ -webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{background:white;color:inherit;border:1px solid var(--line);border-radius:8px;padding:10px 15px;font-size:14px}button:hover{background:#f0f4f2}button.primary,.primary{background:var(--green);color:#fff;border-color:var(--green)}button.primary:hover{background:#245747}button.ghost{border-color:transparent;background:transparent}.icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:33px 20px 24px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;margin:0 8px 40px}.mark{background:var(--green);color:white;width:40px;height:40px;display:grid;place-items:center;border-radius:11px;font-weight:800;font-size:21px}.brand strong{display:block;font-size:17px;letter-spacing:-.5px}.brand small{font-size:11px;letter-spacing:2.3px;color:var(--muted)}.nav-label{font-size:11px;letter-spacing:1.8px;color:#8a9591;margin:15px 14px 10px}.nav{display:flex;flex-direction:column;gap:5px}.nav button,.nav a{display:flex;align-items:center;gap:12px;border:0;background:none;text-align:left;padding:13px 14px;font-size:14px;border-radius:7px}.nav .active{color:var(--green);background:#eaf1ed;font-weight:600}.nav .count{margin-left:auto;color:#637a70;font-size:12px}.side-bottom{margin-top:auto}.mode-card{padding:15px;background:#f7f9f8;border:1px solid var(--line);border-radius:9px;margin-bottom:17px;font-size:13px;line-height:1.8;color:#65756e}.mode-card strong{color:#263f35;display:block}.avatar{width:32px;height:32px;border-radius:50%;background:#ebefed;display:grid;place-items:center;font-size:12px}.account{display:flex;gap:10px;align-items:center;font-size:13px;padding:0 8px}.account small{display:block;color:var(--muted);margin-top:3px}.main{min-width:0}.topbar{height:77px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:space-between;padding:0 40px;font-size:13px}.breadcrumb{color:var(--muted);display:flex;gap:13px;align-items:center}.breadcrumb b{font-weight:500;color:#33453c}.top-right{display:flex;align-items:center;gap:16px}.local-pill{border:1px solid #dde5e0;background:#f7faf8;color:#526c5d;border-radius:5px;padding:5px 8px;font-size:12px}.content{padding:36px 40px 50px;max-width:1600px;margin:auto}.eyebrow{font-size:11px;font-weight:600;letter-spacing:2.1px;color:#6e8278;margin-bottom:10px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}h1{font-size:30px;font-weight:600;letter-spacing:-1px;margin:0 0 10px}h2{font-size:22px;margin:0 0 8px}p{font-size:14px;line-height:1.75;color:var(--muted);margin:0}.heading p{font-size:14px}.heading .primary{display:flex;gap:9px;align-items:center}.collection-note{padding:18px 22px;border-radius:10px;background:#eef3f0;border:1px solid #dce7df;display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;gap:20px}.collection-note strong{font-size:14px;display:block;margin-bottom:5px}.collection-note p{font-size:13px;color:#6f8077}.collection-note .note-icon{padding:12px;background:white;border-radius:9px;color:#36614b}.note-copy{display:flex;align-items:center;gap:15px}.tiny{font-size:12px;color:var(--muted)}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto}.tabs button{border:0;background:none;border-radius:0;padding:0 1px 15px;white-space:nowrap;font-size:14px;color:#758179}.tabs button.active{border-bottom:2px solid var(--green);color:var(--green);font-weight:600}.tab-count{display:inline-block;font-size:11px;background:#edf0ee;padding:2px 6px;border-radius:4px;margin-left:7px}.toolbar{display:flex;gap:10px;margin-bottom:20px;align-items:center;flex-wrap:wrap}.search{display:flex;align-items:center;border:1px solid var(--line);background:white;border-radius:7px;padding:0 13px;gap:9px;min-width:240px;flex:1;max-width:450px;color:#87918b}.search input{border:0;min-width:0;width:100%;height:42px;background:transparent;font-size:14px}.search input:focus{outline:0}.search:focus-within{outline:2px solid #5b8370}.toolbar select{border:1px solid var(--line);height:43px;border-radius:7px;background:#fff;color:#53645b;padding:0 13px;font-size:13px}.toolbar .spacer{flex:1}.resultline{display:flex;align-items:center;justify-content:space-between;color:#7a867f;font-size:12px;margin:20px 0 16px}.resultline strong{color:#33483b;font-weight:600}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}.product{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;transition:box-shadow .2s,transform .2s}.product:hover{transform:translateY(-3px);box-shadow:0 12px 28px #163c3510}.photo{height:210px;background:#edf0f1;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.photo img{width:100%;height:100%;object-fit:contain;background:#f1f3f3}.photo-button{border:0;border-radius:0;padding:0;width:100%;display:block}.placeholder{display:flex;flex-direction:column;align-items:center;gap:11px;color:#95a39e}.placeholder .icon{width:35px;height:35px;stroke-width:1}.placeholder .num{font-size:56px;letter-spacing:-3px;font-weight:200;color:#bac5c0;line-height:1}.placeholder small{font-size:11px;letter-spacing:1px}.photo .code{position:absolute;top:14px;left:14px;font-size:10px;letter-spacing:.6px;color:#5b6f65;background:#ffffffd9;padding:5px 8px;border-radius:4px}.photo .demo{position:absolute;right:13px;top:14px;font-size:10px;color:#6a7972;background:#ffffffcf;border-radius:4px;padding:5px 7px}.product:nth-child(2n) .photo{background:#e9eef2}.product:nth-child(3n) .photo{background:#f0eee9}.product-body{padding:19px}.product-category{font-size:10px;color:#8b968f;letter-spacing:1.3px;margin-bottom:8px}.product h3{font-size:17px;font-weight:600;margin:0 0 16px;letter-spacing:-.25px}.detail-row{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;gap:12px;margin:9px 0}.detail-row span:first-child{color:#8a958f;white-space:nowrap}.detail-row span:last-child{text-align:right;color:#53665c}.product-footer{border-top:1px solid #edf0ed;margin-top:17px;padding-top:14px;display:flex;align-items:center;justify-content:space-between}.stock{font-size:12px;color:#4b6f59}.stock.zero{color:#9b7865}.stock b{font-size:17px;font-weight:600;margin-right:3px}.product-footer button{padding:7px 11px;font-size:12px;background:#f4f7f5;border-color:#e1e8e3;color:#315644}.footnote{margin:28px 0 0;font-size:12px;color:#8a9690;display:flex;align-items:center;gap:7px}.empty{grid-column:1/-1;background:#fff;border:1px dashed #d5ded8;padding:65px 20px;border-radius:10px;text-align:center}.empty h3{font-weight:500}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:9px;background:white}table{width:100%;border-collapse:collapse;font-size:14px;white-space:nowrap}th{text-align:left;background:#f3f6f4;font-size:12px;font-weight:500;color:#7b8a80;padding:14px 18px}td{padding:17px 18px;border-top:1px solid #edf0ee}td small{display:block;color:#8b968f;font-size:12px;margin-top:6px}.tag{display:inline-block;background:#edf3ef;color:#476c54;font-size:12px;padding:5px 8px;border-radius:5px}.tag.grey{background:#f0f0f0;color:#8b8b8b}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:9px;padding:22px}.stat span{font-size:13px;color:#809086}.stat strong{font-size:29px;font-weight:500;display:block;margin-top:10px}.panel{background:white;border:1px solid var(--line);padding:26px;border-radius:10px;max-width:850px}.panel+.panel{margin-top:20px}.panel h3{margin:0 0 13px;font-size:17px;font-weight:600}.field{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#64796b;margin-bottom:18px}.field input,.field select,.field textarea{width:100%;border:1px solid #dbe3de;background:white;padding:11px 12px;border-radius:6px;color:#2e4436;font-size:14px}.field textarea{resize:vertical;min-height:95px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.full{grid-column:1/-1}dialog{border:1px solid var(--line);border-radius:13px;padding:0;width:min(760px,calc(100vw - 32px));max-height:90vh;color:#273e30;box-shadow:0 24px 100px #11281c33}dialog::backdrop{background:#14251b66;backdrop-filter:blur(3px)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:20px;margin:0}.modal-body{padding:25px 26px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;padding-top:18px;border-top:1px solid var(--line);margin-top:20px}.modal-actions .danger{margin-right:auto;color:#985744}.gallery-main{height:310px;border-radius:7px;margin-bottom:10px}.gallery-main img{max-width:100%;height:100%;object-fit:contain}.thumbnails{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.thumbnails button{padding:0;width:60px;height:60px;overflow:hidden}.thumbnails img{width:100%;height:100%;object-fit:cover}.error{color:#ae3e39;font-size:13px;margin:12px 0;line-height:1.6}.info{padding:13px 16px;background:#f2f6f3;border:1px solid #e3ebe5;border-radius:6px;font-size:13px;color:#6a7c6e;line-height:1.7;margin-bottom:20px}.form-check{display:flex;align-items:center;gap:10px;font-size:14px}.form-check input{width:18px;height:18px;accent-color:var(--green)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#173f35;color:white;padding:13px 22px;border-radius:8px;font-size:14px;box-shadow:0 8px 30px #0002;display:none;z-index:99}.login{max-width:420px;margin:60px auto}.messages{display:flex;flex-direction:column;gap:14px;margin:20px 0;max-height:400px;overflow:auto}.message{background:#f0f5f1;padding:14px 18px;border-radius:8px;font-size:14px;line-height:1.8;white-space:pre-wrap}.message.user{background:#173f35;color:white;align-self:flex-end}.chat-form{display:flex;gap:10px}.chat-form input{flex:1;min-width:0;border:1px solid var(--line);padding:13px;border-radius:7px}.check-note{font-size:12px;line-height:1.8;color:#819186}.heading a{font-size:13px;color:#597963}.loading{text-align:center;padding:80px;color:#6d7c74}.status-select{max-width:130px;border:1px solid var(--line);padding:8px;background:white;border-radius:6px}.inquiry-note{white-space:normal;min-width:150px;max-width:240px;font-size:13px;color:#62756a}
@media(min-width:1500px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.photo{height:230px}}@media(max-width:1100px){.shell{grid-template-columns:190px 1fr}.sidebar{padding:28px 13px}.content{padding:28px 24px}.topbar{padding:0 24px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.shell{display:block}.sidebar{height:auto;position:static;padding:16px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0 0 15px}.nav{flex-direction:row;overflow:auto}.nav a,.nav button{white-space:nowrap;padding:10px 12px}.nav-label,.side-bottom{display:none}.topbar{height:55px;padding:0 18px}.top-right .tiny{display:none}.content{padding:25px 18px}.heading{align-items:flex-start;gap:12px}h1{font-size:26px}.heading .primary{font-size:12px;white-space:nowrap;padding:10px}.collection-note{padding:15px}.collection-note>.tiny{display:none}.note-icon{display:none}.tabs{gap:21px}.search{max-width:none;min-width:100%;width:100%}.toolbar select{flex:1;min-width:0;padding:0 7px}.toolbar .spacer{display:none}.grid{gap:12px}.photo{height:165px}.product-body{padding:13px}.product h3{font-size:15px}.detail-row{display:block;font-size:11px;line-height:1.8}.detail-row span:last-child{display:block;text-align:left}.product-footer{display:block}.product-footer button{margin-top:10px;width:100%}.product-category{font-size:9px;letter-spacing:.8px}.stats{gap:8px}.stat{padding:13px}.stat span{font-size:11px}.stat strong{font-size:24px}.form-grid{grid-template-columns:1fr}.modal-body{padding:20px}.modal-header{padding:18px 20px}.panel{padding:20px}.gallery-main{height:230px}.placeholder .num{font-size:44px}.photo .code{top:10px;left:10px}.photo .demo{right:10px;top:auto;bottom:10px}.breadcrumb{font-size:12px}.local-pill{font-size:10px}}
/* Keep the working catalogue visible above the fold. */
.collection-note{display:none}.content{padding-top:28px}.heading{margin-bottom:23px}.product-body .detail-row{font-size:13px}.product-category{font-size:12px}.product-footer button{font-size:13px}.product-footer .stock{font-size:13px}.brand small{font-size:10px;letter-spacing:1.7px}.brand strong{font-size:16px}.panel .tabs{flex-wrap:wrap;gap:10px;padding-bottom:18px;overflow:visible}
@media(max-width:700px){.product-body .detail-row{font-size:12px}.product-category{font-size:10px}.product-footer .stock{font-size:12px}}
.language-control{display:inline-flex;gap:2px;align-items:center;background:#f0f4f1;padding:3px;border:1px solid #dfe7e1;border-radius:7px;flex-shrink:0}.language-control button{font-size:14px;line-height:1.25;padding:6px 9px;border:0;background:transparent;color:#607468;border-radius:4px;white-space:nowrap}.language-control button[aria-pressed="true"]{background:#fff;color:#173f35;box-shadow:0 1px 3px #163c3518;font-weight:600}.modal-tools{display:flex;align-items:center;gap:9px}.modal-header{gap:12px}.top-right{gap:10px}
@media(max-width:700px){.topbar{height:auto;min-height:60px;gap:10px;flex-wrap:wrap;padding:12px 18px}.top-right .local-pill{display:none}.modal-header h2{font-size:17px}.modal-tools{gap:4px}.language-control button{padding:6px 8px}}
.photo-actions{display:flex;flex-wrap:wrap;gap:8px}.photo-actions button{min-height:44px}.photo-uploader video{display:block;width:100%;max-height:360px;background:#15271e;border-radius:8px;margin:12px 0}.pending-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pending-photos img{display:block;width:100%;height:120px;object-fit:contain;background:#eef3f0;border-radius:7px}.pending-photos button{width:100%;font-size:12px;padding:8px 4px}.mobile-upload{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--green);font-size:13px;white-space:nowrap;text-decoration:underline}.photo-uploader [hidden]{display:none}.field{min-width:0}
@media(max-width:700px){.modal-header{flex-wrap:wrap}.modal-tools{margin-left:auto}.modal-actions{flex-wrap:wrap}.field input,.field select,.field textarea{font-size:16px}.heading{flex-wrap:wrap}.top-right{flex-wrap:wrap}.resultline{gap:10px}.language-control button{min-height:38px}.pending-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.stats .stat{min-width:0}.stat span{overflow-wrap:anywhere}.product h3{overflow-wrap:anywhere}}

/* Reserve the underline so changing categories does not move the content below. */
.tabs button{border-bottom:2px solid transparent}

/* Category filters wrap instead of sharing an underline with a scroll track. */
.category-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.category-filters button{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;max-width:100%;padding:10px 14px;border:1px solid #dce5df;border-radius:24px;background:#fff;color:#53675b;font-size:14px;line-height:1.4;text-align:left;overflow-wrap:anywhere}
.category-filters button:hover{background:#eaf1ed;border-color:#9bb3a6}
.category-filters button.active{background:var(--green);border-color:var(--green);color:#fff;font-weight:600}
.category-filters .tab-count{flex-shrink:0;margin:0;min-width:22px;padding:2px 6px;text-align:center;border-radius:12px;background:#edf2ee;color:#607468;font-variant-numeric:tabular-nums}
.category-filters .active .tab-count{background:#ffffff24;color:#fff}
.category-filters button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:700px){
  .category-filters{gap:8px;margin-bottom:20px}
  .category-filters button{padding:10px 12px;font-size:14px}
  .toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;background:#edf2ef;border:1px solid #dfe7e1;border-radius:14px;margin-bottom:16px}
  .toolbar .search{grid-column:1/-1;min-width:0;width:100%;border-radius:9px}
  .toolbar .search input{height:46px;font-size:16px}
  .toolbar select{width:100%;min-width:0;height:46px;padding:0 10px;font-size:16px;border-radius:9px}
  .toolbar #sort{grid-column:1/-1}
  .resultline{flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin:16px 0}
  .heading{margin-bottom:20px}
  .heading .primary{min-height:44px}
}
@media(min-width:360px) and (max-width:700px){
  .category-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .category-filters button{padding:10px 8px;gap:4px;font-size:13px}
}
/* Keep navigation labels the same width when their selected state changes. */
.nav [data-view]{font-weight:600}

/* Admin workspace: consistent navigation and readable mobile product cards. */
.admin-shell .workspace-nav{gap:8px}
.admin-shell .workspace-nav button{min-height:44px;border:1px solid transparent;border-radius:12px}
.admin-shell .workspace-nav button.active{background:var(--green);color:#fff}
.admin-shell .workspace-nav .active .count{background:#ffffff24;color:#fff}
.admin-shell .workspace-nav .count{padding:2px 7px;border-radius:20px;background:#edf2ee;font-variant-numeric:tabular-nums}
.admin-shell .workspace-nav button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.admin-shell .stats{gap:0;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.admin-shell .stat{border:0;border-radius:0;background:transparent;min-width:0}
.admin-shell .stat+.stat{border-left:1px solid var(--line)}
.admin-shell .stat strong{color:var(--green);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.admin-shell .stat small{font-size:13px;font-weight:400;color:var(--muted)}
.admin-products .product-identity strong{font-weight:600}
.admin-products button{min-height:44px;color:var(--green);background:#edf3ef}
.mobile-cell-label,.edit-sku{display:none}
@media(max-width:700px){
  .admin-shell .sidebar{padding:16px 16px 12px}
  .admin-shell .brand{margin-bottom:14px}
  .admin-shell .workspace-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:6px}
  .admin-shell .workspace-nav button{min-width:0;justify-content:center;flex-wrap:wrap;gap:5px;padding:9px 6px;font-size:13px;white-space:normal;overflow-wrap:anywhere;background:#f1f5f3;border-color:#e1e9e4;line-height:1.4}
  .admin-shell .workspace-nav button.active{background:var(--green);border-color:var(--green)}
  .admin-shell .workspace-nav .icon{width:16px;height:16px}
  .admin-shell .workspace-nav .count{margin-left:0;font-size:10px;padding:2px 5px}
  .topbar{padding:10px 16px;min-height:0}
  .topbar .breadcrumb{width:100%}
  .admin-shell .breadcrumb{display:none}
  .topbar .top-right{width:100%;justify-content:space-between;gap:8px}
  .topbar .mobile-upload{display:inline-flex;align-items:center;min-height:44px;font-size:12px;margin-left:auto}
  .admin-shell .content{padding:20px 16px 32px}
  .admin-shell .heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;margin-bottom:18px;align-items:center}
  .admin-shell .heading>div{display:contents}
  .admin-shell .heading .eyebrow{grid-column:1/-1;margin:0;font-size:10px}
  .admin-shell .heading h1{grid-column:1;grid-row:2;margin:0;font-size:25px;overflow-wrap:anywhere}
  .admin-shell .heading p{grid-column:1/-1;grid-row:3;font-size:13px;line-height:1.65}
  .admin-shell .heading>.primary{grid-column:2;grid-row:2;max-width:150px;white-space:normal;justify-content:center;font-size:13px;border-radius:10px}
  .admin-shell .stats{margin-bottom:18px}
  .admin-shell .stat{padding:12px 10px}
  .admin-shell .stat span{display:block;font-size:11px;line-height:1.5}
  .admin-shell .stat strong{font-size:24px;line-height:1.25;margin-top:6px}
  .admin-shell .category-filters{margin-bottom:16px}
  .admin-shell .toolbar{padding:10px;gap:8px}
  .admin-shell .resultline{line-height:1.6}
  .admin-products{overflow:visible;border:0;background:transparent}
  .admin-products table,.admin-products tbody{display:block;width:100%;white-space:normal}
  .admin-products thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .admin-products tbody{display:grid;gap:12px}
  .admin-products tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
  .admin-products td{display:block;min-width:0;border:0;padding:0;overflow-wrap:anywhere;font-size:14px}
  .admin-products .product-identity{grid-column:1/-1;border-bottom:1px solid var(--line);padding-bottom:12px;font-size:16px;line-height:1.5}
  .admin-products .mobile-cell-label{display:block;margin-bottom:5px;color:var(--muted);font-size:11px}
  .admin-products .product-manage{grid-column:1/-1;padding-top:2px}
  .admin-products button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;text-align:left;min-height:44px;border-radius:9px}
  .admin-products .edit-sku{display:inline;font-size:12px;overflow-wrap:anywhere}
  .admin-shell .panel{border-radius:14px}
}

/* Share the employee gallery preview with the admin product list. */
.admin-products .product-preview{width:156px}
.admin-products .photo-button{display:block;padding:0;border:0;border-radius:9px;overflow:hidden;width:120px}
.admin-products .photo{height:120px;width:100%}
.admin-products .photo .code{top:6px;left:6px;max-width:calc(100% - 12px);overflow-wrap:anywhere;white-space:normal}
.admin-products .placeholder .num{font-size:30px}
.admin-products .placeholder{gap:5px}
@media(max-width:700px){
  .admin-products .product-preview{grid-column:1/-1;width:auto}
  .admin-products .photo-button{width:100%}
  .admin-products .photo{height:230px}
  .admin-products .placeholder .num{font-size:44px}
}

.mobile-upload .upload-label-mobile{display:none}
@media(max-width:700px){.mobile-upload .upload-label-desktop{display:none}.mobile-upload .upload-label-mobile{display:inline}}

/* Staff self-collection and account-attributed history. */
.product-footer{flex-wrap:wrap;gap:12px}
.sample-actions{display:flex;flex-wrap:wrap;gap:8px}
.sample-actions button{min-height:44px}
.sample-actions .primary{background:var(--green);color:#fff}
button:disabled{cursor:not-allowed;opacity:.55}
.collection-account{display:grid;gap:5px;overflow-wrap:anywhere;margin:12px 0}
.collection-account small{color:var(--muted)}
.collection-records{display:grid;gap:12px;margin-bottom:18px}
.collection-record{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow-wrap:anywhere}
.collection-record p{font-size:13px;color:var(--muted);line-height:1.6}
.collection-amount{display:flex;flex-direction:column;align-items:flex-end;gap:5px;text-align:right}
.collection-amount>strong{font-size:28px;color:var(--green)}
.collection-amount small{font-size:12px;color:var(--muted);max-width:160px}
@media(max-width:700px){.collection-record{gap:12px;padding:16px}.collection-amount small{max-width:96px}.sample-actions{width:100%}.sample-actions button{flex:1}.modal-actions{flex-wrap:wrap}}

/* The dialog heading receives initial focus without looking like a control. */
#modal-title:focus{outline:none}

.audit-table td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}.audit-table td:first-child{min-width:150px}.audit-table td:last-child{min-width:250px}.audit-details{margin-top:10px;font-size:12px;color:var(--muted)}.audit-details summary{cursor:pointer}.audit-details small{overflow-wrap:anywhere}

/* Keep product actions visible while the form and photo previews scroll. */
.product-dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:min(90vh,90dvh)}
.product-dialog .modal-header,.product-dialog>.modal-actions{flex:none}
.product-dialog .modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.product-dialog>.modal-actions{margin:0;padding:16px 26px max(16px,env(safe-area-inset-bottom));background:var(--surface,#fff)}
@media(max-width:700px){.product-dialog>.modal-actions{padding-inline:20px}}

/* Storage metrics and deliberate cleanup work on narrow admin screens. */
.storage-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.storage-stats .panel{margin:0;padding:22px}.storage-stats h2{font-size:14px;color:var(--muted);margin:0 0 14px}.storage-stats strong{font-size:26px}.storage-stats strong small{font-size:13px}.storage-stats p,.storage-detail p{line-height:1.7}.storage-stats small{line-height:1.6;color:var(--muted)}

.storage-quota{--quota-color:#23846b;--quota-soft:#edf7f3;border-color:#cfe6dd}
.storage-quota.quota-warning{--quota-color:#ad6a0c;--quota-soft:#fff7e8;border-color:#ebd4ae}
.storage-quota.quota-critical{--quota-color:#c04343;--quota-soft:#fff0ef;border-color:#eccbcb}
.storage-quota.quota-unknown{--quota-color:#7c8790;--quota-soft:#f1f3f5;border-color:var(--line)}
.quota-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.storage-stats .quota-heading h2{margin:0}
.quota-plan{border-radius:20px;background:var(--quota-soft);color:var(--quota-color);padding:4px 10px;font-size:12px;font-weight:700}
.quota-ring{position:relative;width:min(100%,208px);aspect-ratio:1;margin:18px auto}
.quota-ring svg{display:block;width:100%;height:100%;fill:none;stroke-width:15}
.quota-track{stroke:#e7eeeb}.quota-value{stroke:var(--quota-color)}
.quota-center{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;text-align:center}
.quota-center>span{max-width:calc(100% - 38px);font-size:13px;line-height:1.15;color:var(--muted)}
.storage-stats .quota-center strong{font-size:36px;line-height:1.1;letter-spacing:-1.5px;color:var(--quota-color);font-variant-numeric:tabular-nums}
.storage-stats .quota-center strong small{font-size:18px;color:inherit;margin-left:2px;letter-spacing:0}
.quota-center>small{font-size:12px}
.quota-legend{display:flex;justify-content:space-between;gap:12px;font-size:12px;flex-wrap:wrap}
.quota-legend>span{display:flex;align-items:center;gap:6px}.quota-legend b{font-variant-numeric:tabular-nums}
.quota-dot{width:8px;height:8px;border-radius:50%;background:var(--quota-color);flex:none}.quota-dot-used{background:#d7e2dc}
.storage-stats .quota-total{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);text-align:center}

.storage-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;margin:24px 0}.storage-filters .field{flex:1;min-width:180px}.storage-filters button{min-height:44px}
.storage-list{max-height:560px;overflow:auto;border:1px solid var(--line);border-radius:12px}.storage-row{display:flex;align-items:center;gap:14px;padding:16px;border-bottom:1px solid var(--line);cursor:pointer}.storage-row:last-child{border:0}.storage-row input{width:20px;height:20px;flex:none}.storage-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.storage-row small{display:block;margin-top:6px;color:var(--muted)}.storage-row>b{font-size:13px;white-space:nowrap}
.storage-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:22px}.storage-detail{overflow-wrap:anywhere}.storage-cleanup h2{font-size:20px}.storage-cleanup>p{line-height:1.7}
@media(max-width:800px){.storage-stats{grid-template-columns:1fr}.storage-stats .panel{padding:18px}.storage-row{gap:10px;padding:12px}.storage-actions button{width:100%}}

/* A compact overview keeps the cleanup workflow within reach. */
.storage-heading{margin-bottom:16px}.storage-heading button{flex:none}
.storage-stats{grid-template-columns:1.1fr 1fr;gap:12px;margin:16px 0 24px}
.storage-stats .panel{max-width:none;padding:18px 22px}.storage-stats h2{margin-bottom:8px}.storage-stats p{margin-top:4px}
.storage-stats .storage-quota{grid-row:span 2;display:grid;grid-template-columns:150px minmax(0,1fr);align-content:center;column-gap:20px}
.storage-quota .quota-heading{grid-column:1/-1;margin-bottom:8px}.storage-quota .quota-ring{grid-column:1;grid-row:2/4;width:150px;margin:0}
.storage-stats .quota-center strong{font-size:29px}.storage-quota .quota-legend{flex-direction:column;justify-content:center;gap:14px}.storage-quota .quota-total{text-align:left;align-self:start;margin:0}.storage-quota>.error{grid-column:1/-1}
.storage-cleanup,.storage-detail{max-width:none}.storage-cleanup{padding:24px}.storage-cleanup>p{max-width:72ch}
.storage-cleanup .storage-notice{font-size:12px;color:#856137;margin-top:8px}
.storage-filters{align-items:flex-start;padding:16px;background:#f7f9f8;border-radius:10px;margin:20px 0 16px;gap:16px}
.storage-filters .field{margin:0;min-width:0}.storage-filters small{font-size:11px;color:var(--muted)}.storage-filters button{align-self:center}
.storage-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:13px}.storage-list-toolbar .tiny{display:inline-block}
.storage-tag{background:#eef3f0;color:#486354;padding:3px 6px;border-radius:4px}.storage-row:has(input:checked){background:#f0f7f3}.storage-row:focus-within{outline:2px solid #527c65;outline-offset:-2px}.storage-row input{accent-color:var(--green)}
.storage-empty{text-align:center;background:#f8faf9;border-radius:10px;padding:28px 18px}.storage-empty>span{display:block;font-size:26px;color:#527c65;margin-bottom:8px}.storage-empty h3{margin-bottom:6px}.storage-empty button{margin-top:14px}
.storage-actions{padding-top:18px;border-top:1px solid var(--line);font-size:14px}.storage-actions #storage-preview{background:var(--green);border-color:var(--green);color:white;min-height:44px}
.storage-cleanup button:disabled{cursor:not-allowed}.storage-detail{margin-top:16px;padding:0;color:#576b61;font-size:13px}.storage-detail summary{padding:18px 22px;cursor:pointer}.storage-detail-body{padding:0 22px 20px}.storage-detail-body p+p{margin-top:10px}
@media(max-width:1050px){.storage-stats .storage-quota{display:block}.storage-quota .quota-ring{margin:8px auto}.storage-quota .quota-legend{flex-direction:row;gap:10px}.storage-quota .quota-total{margin-top:12px;text-align:center}}
@media(max-width:600px){.storage-heading{align-items:flex-start}.storage-heading h1{font-size:26px}.storage-heading p{font-size:13px}.storage-stats{grid-template-columns:1fr 1fr;gap:10px}.storage-stats .panel{padding:14px;min-width:0}.storage-stats .storage-quota{grid-column:1/-1;grid-row:auto;display:grid;grid-template-columns:130px minmax(0,1fr);column-gap:12px}.storage-quota .quota-ring{width:130px;margin:0}.storage-quota .quota-legend{flex-direction:column}.storage-quota .quota-total{margin:0;text-align:left}.storage-stats strong{font-size:22px}.storage-stats h2{font-size:13px}.storage-stats p,.storage-stats small{font-size:12px}.storage-cleanup{padding:18px 14px}.storage-filters{flex-direction:column;padding:14px}.storage-filters .field{width:100%}.storage-filters button{align-self:flex-start}.storage-list-toolbar{align-items:flex-start}.storage-list-toolbar button{flex:none}.storage-actions{gap:12px}.storage-detail summary{padding:16px}}

.collection-export-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.collection-export-actions button{white-space:nowrap}
@media(max-width:700px){.heading:has(.collection-export-actions){flex-direction:column}.collection-export-actions{justify-content:flex-start;width:100%}.collection-export-actions button{flex:1;padding:10px}}
@media(max-width:700px){.admin-shell .heading>.collection-export-actions{display:flex;grid-column:1/-1;grid-row:4;margin-top:6px}}

.category-list{display:flex;flex-wrap:wrap;gap:10px;padding-bottom:18px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.category-tag{display:inline-flex;align-items:center;gap:6px;padding:0 0 0 10px;max-width:100%;overflow-wrap:anywhere}
.category-delete{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;border:0;background:transparent;color:#65796c}
.category-delete:hover,.category-delete:focus-visible{background:#fbeae8;color:#ae3e39}
.user-delete,.inquiry-delete{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #dbe2dc;border-radius:8px;background:#fff;color:#65796c;cursor:pointer}
.user-delete:hover,.user-delete:focus-visible,.inquiry-delete:hover,.inquiry-delete:focus-visible{background:#fbeae8;border-color:#e9c5c1;color:#ae3e39}

/* A quiet editorial setting for the original collection artwork. */
.collection-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.95fr);align-items:center;gap:28px;padding:28px 36px;margin-bottom:28px;background:#faf7f3;border:1px solid #e9e3dc;border-radius:14px;overflow:hidden}
.collection-story-copy{min-width:0}.collection-kicker{display:block;color:#7d7168;font-size:10px;font-weight:600;letter-spacing:2.6px;margin-bottom:16px}
.collection-story h2{color:#23453b;font-size:clamp(22px,2.1vw,30px);font-weight:500;line-height:1.55;letter-spacing:.03em;margin:0 0 12px}
.collection-story p{font-size:13px;color:#746f68;max-width:32em;line-height:1.9}
.collection-signature{display:block;margin-top:22px;color:#82756b;font-size:9px;letter-spacing:1.8px;line-height:1.8}.collection-signature>span{margin:0 8px;color:#b5a598}
.collection-art{display:flex;align-items:center;justify-content:center;min-width:0}.collection-art img{display:block;width:100%;max-width:390px;height:auto;object-fit:contain}
.collection-story-end{margin-bottom:0}
.collection-story-end h2{margin-bottom:0}
.brand-entry{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);max-width:1080px;margin:32px auto;background:white;border:1px solid #e9e3dc;border-radius:16px;overflow:hidden}
.brand-entry .collection-story{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:30px;margin:0;padding:38px;border:0;border-radius:0}
.brand-entry .collection-art{order:-1}.brand-entry .collection-story h2{font-size:27px}.brand-entry .collection-signature{margin-top:20px}
.brand-entry .login{align-self:center;width:100%;max-width:420px;margin:0 auto;padding:38px;border:0;border-radius:0}.brand-entry .login form{margin-top:26px}.brand-entry .login form>.primary{width:100%;min-height:44px}
@media(max-width:1050px){.brand-entry{grid-template-columns:minmax(0,1fr) minmax(260px,1fr)}.brand-entry .collection-story,.brand-entry .login{padding:26px}.brand-entry .collection-story h2{font-size:23px}}
@media(max-width:700px){.collection-story{grid-template-columns:minmax(0,1fr) minmax(110px,.8fr);gap:12px;padding:22px 18px;margin-bottom:22px;border-radius:10px}.collection-kicker{font-size:8px;letter-spacing:1.8px;margin-bottom:10px}.collection-story h2{font-size:19px;line-height:1.6;margin-bottom:8px}.collection-story p{font-size:11px}.collection-signature{display:none}.brand-entry{display:block;margin:8px auto 24px;max-width:440px}.brand-entry .collection-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.8fr);gap:12px;padding:22px 18px}.brand-entry .collection-art{order:0}.brand-entry .collection-story h2{font-size:19px}.brand-entry .login{padding:26px 24px}.brand-entry .login form{margin-top:20px}}
@media(prefers-reduced-motion:no-preference){.collection-story{animation:collection-reveal .4s ease-out}@keyframes collection-reveal{from{opacity:0}to{opacity:1}}}

.category-order-hint{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 16px}
.category-tag{padding-left:0;transition:box-shadow .15s;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.category-drag{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px;border:0;background:transparent;color:inherit;font:inherit;cursor:inherit;touch-action:none;user-select:none;-webkit-user-select:none}
.category-drag:focus-visible{outline:2px solid #24634f;outline-offset:2px;border-radius:6px}
.category-tag.is-dragging{opacity:.3;cursor:grabbing}
.category-drag-ghost{position:fixed;z-index:100;pointer-events:none;box-shadow:0 10px 28px #173f3533,0 0 0 2px #24634f;opacity:.95;cursor:grabbing}
.category-delete{touch-action:manipulation;cursor:pointer}
.category-list[aria-busy="true"]{opacity:.65}
#category-order-status:not(:empty){margin-bottom:12px;font-size:13px}
@media(max-width:700px){.collection-story h2,.brand-entry .collection-story h2{font-size:17px;letter-spacing:0}.collection-story,.brand-entry .collection-story{grid-template-columns:minmax(0,1fr) 110px}}
@media(max-width:360px){.collection-story,.brand-entry .collection-story{grid-template-columns:minmax(0,1fr) 85px;padding:18px 14px;gap:10px}.collection-story h2,.brand-entry .collection-story h2{font-size:15px}}
.collection-story-end{margin-bottom:0}
.collection-story-end .collection-story-copy{display:grid;place-items:center;text-align:center}
.collection-story-end h2{font-size:clamp(30px,3vw,40px);font-weight:600;line-height:1.25;margin:0}
@media(max-width:700px){.collection-story-end h2{font-size:22px}}
@media(max-width:360px){.collection-story-end h2{font-size:20px}}
.category-tag.order-before{box-shadow:-4px 0 #24634f}
.category-tag.order-after{box-shadow:4px 0 #24634f}

/* Staff picked best sellers remain in their clothing category. */
.category-filters .featured-filter{border-color:#e6b9b9;color:#ac3030}
.category-filters .featured-filter:hover{background:#fff1f1;border-color:#ca7373}
.category-filters .featured-filter.active{background:#ad3434;border-color:#ad3434;color:#fff}
.category-filters .featured-filter>span:first-child{font-size:19px;line-height:1}
.product-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.product-title-row h3{min-width:0}
.featured-star{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:1px solid #e7caca;border-radius:50%;background:#fff;color:#ba3333;font-size:21px;line-height:1}
.featured-star:hover,.featured-star:focus-visible{background:#fff1f1;color:#b82f2f;border-color:#c86868}
.featured-star.is-featured{background:#fff1f1;color:#d12d2d;border-color:#d12d2d}
.admin-products .featured-star{display:inline-grid;width:44px;min-height:44px;margin-top:8px;padding:0;text-align:center}

/* Keep decoded thumbnail pixels visible while the full preview is loading. */
.gallery-main .photo-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#f1f3f3}
.gallery-main img.photo-pending{opacity:0}
.gallery-main .photo-progress{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);max-width:90%;font-size:12px;background:#fff;opacity:.95;z-index:1}
