
/* Paper and ink from the shop, with a restrained administration hierarchy. */
body.admin-focused:not(.public-mode){background:#f0eee8}
body.admin-focused:not(.public-mode) main{display:block;max-width:1180px;padding:24px 32px 70px}
body.admin-focused:not(.public-mode) .preview{display:none}
body.admin-focused.admin-preview-open:not(.public-mode) main{display:grid;grid-template-columns:350px minmax(0,1fr);gap:32px;max-width:1450px}
body.admin-focused.admin-preview-open:not(.public-mode) .preview{display:block;position:sticky;top:20px;align-self:start}
.admin-focused .workspace{display:block;padding-top:0;min-width:0}.admin-focused .workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-focused .workspace-heading h1{font-size:28px;margin:8px 0;flex:1;min-width:0}.admin-focused .workspace-heading .preview-toggle{float:none;margin:0;font-size:12px;flex:none}.admin-focused .workspace>.eyebrow{display:none}.admin-focused .workspace>#admin{grid-area:auto;min-width:0;width:100%}.admin-focused .workspace>.admin-subtabs{position:static;grid-area:auto;width:100%;max-width:none}
.workspace .savebar{margin:18px 0 24px;background:#e7e0d3;border-color:#d8cebd;box-shadow:none}.workspace .preview-toggle{margin-left:auto}
.workspace .admin-groups{display:flex;gap:8px;border-bottom:1px solid #d8d0c2;padding-bottom:12px;margin:0}.workspace .admin-groups button{background:transparent;border:0;border-radius:8px;padding:12px 24px;font-size:15px;color:#736652}.workspace .admin-groups button.active{background:#574535;color:#fff7e6}.workspace .admin-subtabs{display:block;padding:0;background:transparent;border-radius:0;margin:12px 0 22px}.workspace .admin-panel-group{display:flex;gap:6px;flex-wrap:wrap}.workspace .admin-subtabs button{flex:none;padding:9px 15px;background:transparent;color:#786a58;font-size:13px}.workspace .admin-subtabs button.active{background:#fffdf8;color:#5f442e;border:1px solid #d8c7b0;box-shadow:none}
.workspace .box{box-shadow:none;border-radius:14px;padding:24px;margin:16px 0}.workspace .box h2{font-size:19px}.workspace .box h3{font-size:17px}.workspace .muted,.workspace .note{line-height:1.8}.workspace input,.workspace textarea{max-width:100%}.workspace .permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}.workspace .permission-choice{display:flex;align-items:center;gap:8px;line-height:1.7}.workspace .permission-choice input{flex:none;width:18px;height:18px}.workspace .actions{gap:8px}
.copy-heading h2,.decor-heading h2{font-size:24px;margin:24px 0 8px}.copy-tools{background:#fffdf7;border:1px solid #e2d8c9;border-radius:14px;padding:18px}.copy-sections{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.copy-sections button{padding:9px 13px;font-size:12px;background:transparent;border:1px solid transparent}.copy-sections button.active{background:#ede3d1;color:#684830;border-color:#ddcab0}.workspace .copy-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.workspace .copy-field{font-size:13px;margin:12px 0 18px;min-width:0}.copy-field input{margin:10px 0 6px}.copy-field small{display:block;font-weight:400;color:#9a8a73;font-size:11px}.copy-scope{padding:0 4px}
.workspace .admin-fold{background:#fffdf9;border:1px solid #dfd5c5;border-radius:14px;margin:14px 0;overflow:hidden}.admin-fold>summary{cursor:pointer;padding:20px 24px;font-weight:600;font-size:16px;color:#5d4935;list-style:revert}.workspace .admin-fold>.box{border:0;margin:0;border-radius:0;padding-top:0}.admin-fold[open]>summary{border-bottom:1px solid #eee5d7;margin-bottom:18px}.admin-fold .entry{padding:16px 0}
#phone .cart-empty{display:flex;flex-direction:column;align-items:center;text-align:center;background:#fffaf0;border:1px solid #e3d6bd;border-radius:16px;padding:28px 16px;margin:20px 0 28px;gap:0}#phone .cart-empty strong{font-size:17px;line-height:1.7;overflow-wrap:anywhere}#phone .cart-empty p{font-size:13px;line-height:1.7;color:#8d7c64;margin:8px 0 18px;overflow-wrap:anywhere}#phone .cart-empty button{border-radius:30px;min-width:145px;min-height:44px;white-space:normal;overflow-wrap:anywhere}.empty-cart-symbol{font-size:32px;color:#9d896a;margin-bottom:14px}.cart-recommend-heading{text-align:center;color:#8d7c64;font-size:14px;font-weight:400;margin:24px 0 18px}.preview-image-error{display:flex;width:100%;height:100%;align-items:center;justify-content:center;font-size:12px;text-align:center;padding:15px;background:#eee4d2;color:#8b785f}
.workspace button:focus-visible,.admin-fold>summary:focus-visible{outline:2px solid #96764d;outline-offset:3px}
@media(max-width:1050px){body.admin-focused.admin-preview-open:not(.public-mode) main{display:block}.admin-focused.admin-preview-open .preview{position:static!important;margin:0 auto 30px;max-width:380px}}
@media(max-width:640px){body.admin-focused:not(.public-mode) main{padding:18px 14px 50px}.workspace .admin-groups{gap:0;justify-content:space-between}.workspace .admin-groups button{font-size:13px;padding:11px 10px}.workspace .copy-field-grid,.workspace .permission-grid{grid-template-columns:1fr}.workspace .box{padding:18px}.workspace .preview-toggle{margin-left:0}.admin-fold>summary{padding:18px}.workspace .admin-subtabs button{padding:9px 12px}.copy-tools{padding:14px}}

.workspace>.preview-toggle{float:right;margin-top:-44px;font-size:12px}.admin-form-fold{border-top:1px solid #e4dbcd;margin-top:16px;padding-top:16px}.admin-form-fold>summary{cursor:pointer;font-size:14px;color:#796049;padding:6px 0}.admin-form-fold[open]>summary{margin-bottom:12px}@media(max-width:640px){.workspace>.preview-toggle{float:none;margin:8px 0}}

.admin-focused .workspace>.admin-subtabs{border-right:0;border-left:0}.workspace-heading .preview-toggle{margin-left:auto}

.main-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px;margin-top:20px}.main-gallery-item{min-width:0;padding:14px;background:#fffaf1;border:1px solid #dfd3bf;border-radius:14px}.main-gallery-item>img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;background:#fff;border-radius:8px;margin-bottom:12px}.main-gallery-item .actions{gap:6px;flex-wrap:wrap;margin:12px 0}.main-gallery-item .actions button{padding:7px 10px}.main-gallery-item input[type=file]{width:100%;font-size:12px}
#variant-rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}#variant-rows>fieldset{margin:0!important;border:1px solid #dfd3bf;border-radius:14px;background:#fffaf1}#product-variants-editor{scroll-margin-top:24px}.editor-sections{flex-wrap:wrap}.editor-sections a{white-space:nowrap}
#product-cover-editor{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);gap:24px}#product-cover-editor>h2{grid-column:1/-1;margin-bottom:0}#product-home-image-editor{min-width:0}#product-detail-main-editor{min-width:0;margin-top:0;padding:0 0 0 24px;border-top:0;border-left:1px solid #dfcfb4}#product-cover-editor .assetpreview{max-width:100%}
@media(max-width:900px){#product-cover-editor{grid-template-columns:minmax(0,1fr)}#product-detail-main-editor{padding:20px 0 0;border-left:0;border-top:1px solid #dfcfb4}}
@media(max-width:600px){#variant-rows{grid-template-columns:minmax(0,1fr)}}
#phone .product-main-carousel{position:relative;width:100%;background:#fffaf0}#phone .product-main-track{display:flex;width:100%;aspect-ratio:3/4;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}#phone .product-main-track::-webkit-scrollbar{display:none}#phone .product-main-slide{flex:0 0 100%;height:100%;scroll-snap-align:start;scroll-snap-stop:always}#phone .product-main-slide img{display:block;width:100%;height:100%;object-fit:contain}#phone .product-main-count{position:absolute;right:12px;bottom:12px;padding:5px 12px;background:rgba(62,43,28,.66);border-radius:18px;color:#fff8ed;font-size:12px;pointer-events:none}#phone .main-slide-prev,#phone .main-slide-next{position:absolute;top:46%;padding:4px 10px;background:rgba(255,250,240,.85);border-radius:50%;font-size:20px}#phone .main-slide-prev{left:10px}#phone .main-slide-next{right:10px}
.logistics-region{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.logistics-help{margin-top:24px;border-top:1px solid #ded6c8;padding-top:16px}.logistics-help summary{cursor:pointer;padding:10px 0;min-height:24px}.logistics-carriers{display:flex;gap:10px 20px;flex-wrap:wrap;font-size:13px;color:#756855;margin:16px 0}@media(max-width:720px){.logistics-region{grid-template-columns:1fr;gap:8px}}

/* Align preview touch sizing with the native shopping page. */
body.public-mode .workspace{display:none}
#phone .product .price button,#phone .category-add,#phone .cart-stepper button{min-width:44px;min-height:44px}
#phone .cart-check,#phone .cart-all,#phone .cart-heading button{min-height:44px}


/* Consistent administration controls; retain permission and save flows. */
.workspace button{display:inline-flex;align-items:center;justify-content:center;line-height:1.5;text-align:center;font-weight:500;min-height:40px;white-space:normal}
.workspace .savebar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;padding:16px 20px;background:#fffaf0;border-radius:12px;border:1px solid #ddd1be}
.workspace .savebar>span{flex:1;min-width:160px;color:#6d5b48}
.workspace .savebar a{font-size:12px;color:#6d5b48}
.workspace .admin-groups button{min-height:44px}
.workspace .admin-subtabs button{border-radius:8px;min-height:40px}
.workspace .copy-field-grid input,.workspace form input,.workspace form select{min-height:44px}
.workspace .product-editor h3{font-weight:700}
.workspace .favorite-preview-row p,.workspace .note{overflow-wrap:break-word}
.workspace input:focus-visible,.workspace textarea:focus-visible,.workspace select:focus-visible{outline:2px solid #96764d;outline-offset:2px}
@media(max-width:640px){.workspace .savebar{padding:14px}.workspace .admin-groups{gap:4px}.workspace .admin-groups button{padding:12px 8px;font-size:13px}}

/* Keep the editing area visible without making controls smaller. */
.admin-focused:not(.public-mode) .top{padding:14px 32px;min-height:64px;box-sizing:border-box}
.admin-focused .workspace-heading h1{margin:0;font-size:26px;line-height:1.4}
.admin-focused .workspace>.muted{margin:8px 0 16px}
.workspace .savebar{margin:0 0 16px;padding:12px 16px}
.workspace .admin-groups{padding-bottom:8px}
.workspace .admin-subtabs{margin:8px 0 16px}
.workspace .editor-heading,.workspace .catalog-heading{margin:16px 0 12px}
.workspace .editor-sections{padding-bottom:12px}
.workspace .editor-sections a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;box-sizing:border-box;border-radius:8px}
@media(max-width:640px){.admin-focused:not(.public-mode) .top{padding:14px 16px}.admin-focused .workspace-heading h1{font-size:23px}.workspace .savebar{padding:12px}.workspace .editor-heading{gap:10px}}

.workspace .muted,.workspace .note,.workspace .copy-field small{color:#716252}
