#site-loading{position:fixed;inset:0;z-index:10000;background:#fffaf3;display:flex;align-items:center;justify-content:center;gap:18px;font:18px Arial}
#site-save-status{position:fixed;bottom:8px;left:12px;z-index:90;background:#ecf5ee;color:#23543b;padding:7px 12px;border:1px solid #b9d2c2;border-radius:8px;font:12px Arial;max-width:95vw}
#site-save-status.error{background:#fff0ea;color:#9b3618}
.alfa-embedded #header,.alfa-embedded #footer,.alfa-embedded #mobile-nav,.alfa-embedded .demo-bar,.alfa-embedded .skip,.alfa-embedded .assistant-launcher,.alfa-embedded .assistant-mascot{display:none!important}
.alfa-embedded #main{padding-top:0!important}.alfa-embedded .admin-container{max-width:none;padding:24px!important}.alfa-embedded .admin-container>.crumb{display:none}
.alfa-embedded .admin-container h1{font-size:32px}.alfa-embedded .page-head{margin-bottom:22px}.alfa-embedded .admin-layout{grid-template-columns:190px minmax(0,1fr);gap:22px}.alfa-embedded .admin-nav a{padding:10px 12px;font-size:14px}.alfa-embedded .admin-nav{position:sticky;top:12px;align-self:start}.alfa-embedded .admin-container .panel{padding:20px}
.site-controls{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0;align-items:center}.site-controls input{flex:1;min-width:180px}.site-controls select{width:auto;max-width:220px}.site-controls button{white-space:nowrap}
.site-branch{padding:0!important;border:0!important;background:none!important;margin:0!important}.site-branch>summary{cursor:pointer;list-style:none}.site-branch>summary:before{content:'▸';color:#8d725c}.site-branch[open]>summary:before{content:'▾'}.site-branch .site-tree-row{margin-top:7px}
.site-product-pick label[hidden]{display:none}
.site-tree{display:grid;gap:8px}.site-tree-row{display:flex;gap:10px;align-items:center;border:1px solid #e5dfd7;border-radius:10px;padding:10px;background:#fff;margin-left:calc(var(--depth,0)*20px)}.site-tree-row>div{flex:1}.site-tree-row small{display:block;color:#7b7770}.site-tree-row button{font-size:13px;padding:8px 10px}.site-tree-row img{width:50px;height:50px;object-fit:contain;border-radius:6px}.site-tree-row[hidden]{display:none}
.site-products-table td img{width:48px;height:56px;object-fit:contain;float:left;margin-right:12px}.site-products-table td{vertical-align:middle}.site-products-table td button{margin:3px}.site-product-pick{max-height:270px;overflow:auto;border:1px solid #e6ded3;padding:12px;border-radius:8px}.site-product-pick label{display:flex;gap:8px;align-items:center;padding:8px}.site-product-pick input{width:auto}.site-gallery{display:flex;gap:10px;flex-wrap:wrap}.site-gallery figure{margin:0;border:1px solid #ddd;padding:8px;border-radius:8px}.site-gallery img{width:90px;height:100px;object-fit:contain}.site-gallery button{display:block;padding:4px 8px;font-size:12px}
.site-categories-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,230px));gap:14px;margin-bottom:28px}.site-category-card{border:1px solid #e5dfd7;border-radius:14px;background:#fff;overflow:hidden;text-decoration:none;color:inherit}.site-category-card img{width:100%;height:140px;object-fit:contain;background:#f7f5f1}.site-category-card b,.site-category-card small{display:block;padding:8px 12px}.site-category-card small{color:#777;padding-top:0}.site-editor-note{border-left:3px solid #bf7434;padding:12px;background:#fff8ed}
@media(max-width:850px){.alfa-embedded .admin-layout{grid-template-columns:1fr}.alfa-embedded .admin-nav{position:static;display:flex;overflow:auto;gap:5px}.alfa-embedded .admin-nav a{white-space:nowrap}.site-tree-row{flex-wrap:wrap;margin-left:calc(var(--depth)*10px)}}
.site-cover-empty{display:grid;place-items:center;text-align:center;background:#f5f4ee;color:#756f66;font-size:12px;min-height:60px;padding:8px}
.site-category-cover-editor{display:flex;gap:20px;align-items:center;margin:12px 0}.site-category-cover-editor>div:last-child{flex:1;min-width:0}.site-cover-preview{width:150px;height:170px;border:1px solid #dedbd3;border-radius:12px;overflow:hidden;background:#f7f5f0}.site-cover-preview img{display:block;width:100%;height:100%;object-fit:contain}.site-cover-preview .site-cover-empty{height:100%}
.site-display-panel{border:1px solid #d9e5de;border-radius:12px;padding:18px;margin:18px 0;background:#f6faf7}.site-display-panel h3{margin-top:0}.site-display-panel .site-controls{align-items:end}.site-display-panel .site-controls label{min-width:160px}.site-display-panel select{display:block;min-width:160px}.site-display-panel .site-categories-grid{margin-bottom:0}
#site-category-layout-preview{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:var(--category-width,190px);overflow-x:auto;padding-bottom:8px;max-width:100%}
.site-tree-row>.site-tree-actions{flex:0 0 auto;display:flex;gap:6px;align-items:center}.site-tree-row>.site-tree-label{min-width:80px}.site-tree-row .site-tree-cover{flex:0 0 52px;width:52px;height:60px;min-height:0;object-fit:contain;background:#f5f3ef;display:grid}.site-tree-number{color:#75887c;font-size:12px;min-width:16px}.site-tree-row .site-category-grip{cursor:grab;touch-action:none;user-select:none;font-size:25px;line-height:1;min-width:34px;padding:6px;color:#447160;background:#f0f6f2}.site-category-grip:active{cursor:grabbing}.site-category-grip:focus-visible{outline:2px solid #196951;outline-offset:2px}.site-drop-before{box-shadow:0 -4px #208467}.site-drop-after{box-shadow:0 4px #208467}.site-category-dragging{opacity:.6}.site-tree-row{transition:box-shadow .1s}
.site-category-art{display:block;aspect-ratio:1;background:#f7f5f1;overflow:hidden}.site-category-art img{display:block;width:100%;height:100%;object-fit:contain}.site-category-art .site-cover-empty{height:100%}
.category-coming-soon{cursor:default!important;transform:none!important;box-shadow:none!important}.category-coming-soon .atelier-category-art,.category-coming-soon .site-category-art{position:relative}.category-coming-soon .atelier-category-art>:not(.category-soon-badge),.category-coming-soon .site-category-art>:not(.category-soon-badge){opacity:.36;filter:grayscale(.65)}.category-coming-soon .atelier-category-copy h3,.category-coming-soon>b{color:#6c706b}
.category-soon-badge{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-block!important;padding:7px 12px!important;border-radius:30px;background:#303c36;color:#fff!important;font:700 13px/1.3 Arial,sans-serif;white-space:nowrap;box-shadow:0 2px 8px #0002}
.site-coming-soon-page{text-align:center;padding:70px 20px}.site-coming-soon-page>.category-soon-badge{position:static;transform:none}.site-coming-soon-page h1{margin-top:20px}
/* Saved market settings apply to customer grids and the same admin preview. */
[data-category-size="small"]{--category-width:140px;--category-phone:105px}
[data-category-size="medium"]{--category-width:190px;--category-phone:145px}
[data-category-size="large"]{--category-width:250px;--category-phone:210px}
.atelier-patterns .atelier-category-grid[data-category-size],.atelier-category-grid[data-category-size],.site-categories-grid[data-category-size],.market-category-grid[data-category-size]{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--category-width)),var(--category-width)));gap:14px;justify-content:start;direction:ltr}
[data-category-shape="square"]{--category-aspect:1}
[data-category-shape="portrait"]{--category-aspect:3 / 4}
[data-category-shape="square"]>.atelier-category,[data-category-shape="portrait"]>.atelier-category,[data-category-shape="square"]>.market-category,[data-category-shape="portrait"]>.market-category{border-radius:12px}
[data-category-shape="square"] .atelier-category-art,[data-category-shape="portrait"] .atelier-category-art,[data-category-shape="square"] .category-art,[data-category-shape="portrait"] .category-art,[data-category-shape="square"] .site-category-art,[data-category-shape="portrait"] .site-category-art{aspect-ratio:var(--category-aspect);height:auto;border-radius:8px;margin:6px 6px 0}
[data-category-shape] .site-category-art img{height:100%;object-fit:contain}
[data-category-size] .atelier-category-copy h3{font-size:16px;line-height:1.35;overflow-wrap:anywhere}
[data-category-shape] .site-category-card b{font-size:14px;overflow-wrap:anywhere}
@media(max-width:650px){.site-category-cover-editor{align-items:start;flex-direction:column}.site-tree-row>.site-tree-actions{flex-wrap:wrap;margin-left:38px;width:calc(100% - 38px)}.site-tree-row .site-tree-cover{width:42px;flex-basis:42px;height:50px}.site-display-panel{padding:12px}.site-display-panel .site-controls label{min-width:120px}.site-display-panel select{min-width:120px}.atelier-patterns .atelier-category-grid[data-category-size],.atelier-category-grid[data-category-size],.site-categories-grid[data-category-size],.market-category-grid[data-category-size]{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--category-phone)),1fr));gap:10px}}

.material-stock-field[hidden]{display:none!important}.material-variant-row{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;align-items:start}.material-option-mode{width:100%}

button.site-category-delete{color:#ac2c2c;border:1px solid #e8bcbc;background:#fff8f7}button.site-category-delete:hover{background:#fcebea}button.site-category-delete.confirm{background:#b52f2f;color:#fff;border-color:#b52f2f}button.site-category-delete:disabled{opacity:.5;cursor:not-allowed}.site-category-delete-summary{padding:14px;border:1px solid #e7ded4;border-radius:10px;background:#faf7f3}.site-category-delete-summary p{margin:8px 0 0}.site-category-delete-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px}.site-tree-actions{flex-wrap:wrap}
.site-category-delete-modes{border:0;padding:0;margin:20px 0 12px;min-width:0}.site-category-delete-modes legend{font-weight:600;margin-bottom:10px}.site-category-delete-modes label,.site-category-delete-consent{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #e7ded4;border-radius:10px;cursor:pointer;margin:8px 0}.site-category-delete-modes label:has(input:checked){background:#f8f2f0;border-color:#bb8177}.site-category-delete-modes input,.site-category-delete-consent input{width:18px;height:18px;flex:0 0 18px;margin:3px 0 0;accent-color:#ac2c2c}.site-category-delete-consent{background:#fff8f7;color:#822b29}[data-delete-contents][hidden],[data-delete-move][hidden]{display:none}
#site-category-delete p{margin:10px 0;font-size:14px;line-height:1.5}#site-category-delete .site-category-delete-summary p{margin:6px 0 0;font-size:13px}#site-category-delete .site-category-delete-modes{margin:14px 0 8px}#site-category-delete .site-category-delete-modes legend{margin-bottom:6px}#site-category-delete .site-category-delete-modes label{padding:10px 12px;margin:6px 0;min-height:44px}#site-category-delete .site-category-delete-actions{margin-top:14px}

.product-bulk-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:14px;margin:16px 0;background:#f4f5f2;border:1px solid #dddeda;border-radius:12px}.product-bulk-tools strong{margin-right:10px;min-width:110px}.product-bulk-tools button{padding:10px 14px}.product-controls-table input[type=checkbox]{width:20px;height:20px;accent-color:#196951;cursor:pointer}.product-controls-table th:first-child,.product-controls-table td:first-child{width:48px;min-width:48px;padding:14px}.product-controls-table tr.product-selected{background:#edf5f1}.product-controls-table .product-status{min-width:105px;padding:10px;border-radius:9px;background:#f5f3ef;color:#685d4a}.product-controls-table .product-status.is-active{background:#e8f4ed;color:#176449;border-color:#b6d8c6}.product-row-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:190px}.product-row-actions button,.product-row-actions .btn{padding:9px 12px;font-size:13px}.product-danger{color:#ac2c2c!important;background:#fff7f5!important;border-color:#e7bdb6!important}.product-danger:hover{background:#fbe7e3!important}.product-action-list{max-height:280px;overflow:auto;border:1px solid #e7e1d9;border-radius:10px;padding:0;list-style:none}.product-action-list li{padding:12px 16px;border-bottom:1px solid #e7e1d9}.product-action-list li:last-child{border-bottom:0}.product-action-list small{display:block;margin-top:5px;color:#777}.product-controls-table small{overflow-wrap:anywhere}#site-product-action-error{color:#a32424}#site-product-search label{display:grid;gap:4px;font-size:13px}#site-product-search{align-items:end}#site-product-search>input{min-height:44px}
@media(max-width:900px){.product-controls-table{min-width:880px}.product-bulk-tools strong{flex-basis:100%}.product-bulk-tools button{font-size:13px;padding:8px 10px}}

/* The Moda entrance uses the same saved display settings as management. */
.moda-category-grid[data-category-size]{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--category-width)),var(--category-width)));gap:14px;justify-content:start}
[data-category-shape="square"] .moda-category-photo,[data-category-shape="portrait"] .moda-category-photo{aspect-ratio:var(--category-aspect);height:auto}
[data-category-cover-drop]{padding:16px;border:2px dashed #93bcb2;border-radius:12px}
[data-category-cover-drop].is-dragover{background:#dcefe8;border-color:#096550}
.site-category-product-list{padding:16px;margin:0 12px 16px;background:#f4f8f6;border-radius:12px}
.site-category-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;max-height:620px;overflow:auto}
.site-category-product-grid article{display:flex;flex-direction:column;gap:6px;padding:10px;background:white;border:1px solid #dfebe5;border-radius:10px}
.site-category-product-grid img{width:100%;height:150px;object-fit:contain}.site-category-product-grid b{font-size:13px}
@media(max-width:650px){.moda-category-grid[data-category-size]{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--category-phone)),1fr));gap:10px}}
/* Refined product controls and smaller navigation. */

body .owner-purchase-bar,body .moda-purchase-bar{bottom:0;padding:7px max(12px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));box-shadow:0 -2px 12px #352f2809}
body .owner-purchase-bar .owner-buy-actions{grid-template-columns:minmax(78px,.7fr) minmax(0,1.5fr) minmax(65px,.65fr);gap:8px;max-width:760px}
body .owner-purchase-bar .owner-action-price .owner-product-price,body .moda-purchase-price strong{font-size:22px;line-height:1.1}
body .owner-purchase-bar .owner-action-price>span,body .moda-purchase-price>span{font-size:9px;line-height:1.25;margin-top:2px}
body .owner-purchase-bar .owner-buy-actions button,body .moda-purchase-inner button{min-height:44px;padding:6px 10px;font-size:12px;border-radius:7px}
body .owner-purchase-bar .owner-buy-actions .owner-team-button{background:#fffdf9;box-shadow:none;gap:4px;font-size:11px}
body .owner-purchase-bar .owner-team-icon{display:none}
body .owner-purchase-bar .owner-team-button>span{font-size:11px}
body .owner-purchase-bar .primary .icon,body .moda-purchase-bar .primary .icon{width:17px;height:17px}
body:has(.owner-purchase-bar,.moda-purchase-bar){padding-bottom:calc(76px + env(safe-area-inset-bottom))}
html:has(.owner-purchase-bar,.moda-purchase-bar){scroll-padding-bottom:calc(86px + env(safe-area-inset-bottom))}
body:has(.owner-purchase-bar,.moda-purchase-bar) #assistant-launcher.assistant-launcher,body:has(.owner-purchase-bar,.moda-purchase-bar) #toast{bottom:calc(76px + env(safe-area-inset-bottom))}
body.portal-preview .owner-product-info h1,body.portal-preview .moda-detail-info h1{font-size:clamp(21px,2vw,27px);line-height:1.2;margin:0 0 8px}
@media(max-width:760px){
 body #mobile-nav{height:calc(56px + env(safe-area-inset-bottom));padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
 body #mobile-nav a{font-size:10px;gap:3px;min-height:44px;min-width:44px;justify-content:center}
 body #mobile-nav a .icon{width:20px;height:20px;stroke-width:1.5}
 body.portal-preview .owner-product-info h1,body.portal-preview .moda-detail-info h1{font-size:22px}
}
body #modal.product-lightbox .product-lightbox-prev,body #modal.product-lightbox .product-lightbox-next{width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border-radius:50%;font-size:24px;line-height:1;background:#fffdf4e8;box-shadow:0 1px 5px #0001}
body #modal.product-lightbox .product-lightbox-stage{touch-action:pan-y pinch-zoom;cursor:grab}
body #modal.product-lightbox .product-lightbox-stage:active{cursor:grabbing}
body #modal.product-lightbox .product-lightbox-image{user-select:none;-webkit-user-drag:none}
@media(pointer:coarse){body #modal.product-lightbox .product-lightbox-prev,body #modal.product-lightbox .product-lightbox-next{width:44px;height:44px}}

/* Retain compact navigation beneath product purchase controls. */
@media(max-width:760px){
 body:has(.owner-purchase-bar,.moda-purchase-bar) #mobile-nav{display:flex;height:calc(52px + env(safe-area-inset-bottom));padding:2px 4px calc(2px + env(safe-area-inset-bottom))}
 body #mobile-nav a{font-size:9px;gap:2px;min-height:44px}
 body #mobile-nav a .icon{width:18px;height:18px;stroke-width:1.5}
 body .owner-purchase-bar,body .moda-purchase-bar{bottom:calc(52px + env(safe-area-inset-bottom));padding-bottom:7px}
 body:has(.owner-purchase-bar,.moda-purchase-bar){padding-bottom:calc(122px + env(safe-area-inset-bottom))}
 html:has(.owner-purchase-bar,.moda-purchase-bar){scroll-padding-bottom:calc(132px + env(safe-area-inset-bottom))}
 body:has(.owner-purchase-bar,.moda-purchase-bar) #assistant-launcher.assistant-launcher,body:has(.owner-purchase-bar,.moda-purchase-bar) #toast{bottom:calc(122px + env(safe-area-inset-bottom))}
}

/* Compact account presentation; preserve honest demo labels and existing actions. */
body.portal-preview #main>.container:has(>.account-entry){max-width:1040px;padding:24px 4% 36px}
body.portal-preview .container:has(>.account-entry)>.breadcrumbs{font-size:11px;line-height:1.4;margin-bottom:18px}
body.portal-preview .container:has(>.account-entry)>.page-head{gap:12px;margin-bottom:20px;align-items:center}
body.portal-preview .container:has(>.account-entry) .eyebrow{font-size:9px;line-height:1.4;letter-spacing:.14em;margin:0 0 7px}
body.portal-preview .container:has(>.account-entry) .page-head h1{font:400 28px/1.15 Georgia,'Times New Roman',serif;margin:0 0 8px;letter-spacing:-.02em}
body.portal-preview .container:has(>.account-entry) .page-head .muted{font-size:13px;line-height:1.5}
body.portal-preview .container:has(>.account-entry) .page-head>.btn{font-size:12px;min-height:40px;padding:9px 13px;border-radius:8px;white-space:nowrap}
body.portal-preview .container:has(>.account-entry)>.account-entry{padding:20px;margin:0 0 24px;border-radius:14px;gap:18px;background:#f6f3ed}
body.portal-preview .container:has(>.account-entry) h2{font-size:19px;line-height:1.3;margin:0 0 10px;font-weight:500}
body.portal-preview .account-entry p.muted{font-size:12px;line-height:1.5;margin:0 0 10px}
body.portal-preview .account-entry p.tiny{font-size:10px;line-height:1.5;margin:0;color:#817568}
body.portal-preview .account-entry-actions{flex-basis:250px;min-width:200px;gap:8px}
body.portal-preview .account-entry-actions button{min-height:44px;padding:10px 14px;font-size:12px;font-weight:500;border-radius:8px;box-shadow:none}
body.portal-preview .account-entry-actions .google-entry>span{font-size:18px}
body.portal-preview .container:has(>.account-entry)>.two-col{gap:20px}
body.portal-preview .container:has(>.account-entry)>.two-col .panel{padding:16px;border-radius:12px}
body.portal-preview .container:has(>.account-entry)>.two-col p,body.portal-preview .container:has(>.account-entry)>.two-col label{font-size:12px;line-height:1.5}
body.portal-preview .container:has(>.account-entry) .empty{padding:22px 16px;border-radius:12px}
body.portal-preview .container:has(>.account-entry) .empty h2{font-size:16px}
body.portal-preview .container:has(>.account-entry) .empty .btn{font-size:12px;min-height:40px;padding:9px 14px}
@media(max-width:760px){
 body.portal-preview .container:has(>.account-entry)>.page-head{align-items:flex-start;gap:12px}
 body.portal-preview .container:has(>.account-entry)>.account-entry{padding:16px;gap:16px}
 body.portal-preview .account-entry-actions{flex-basis:auto;min-width:0;display:grid;grid-template-columns:1fr 1fr}
 body.portal-preview .container:has(>.account-entry) .page-head h1{font-size:26px}
}
@media(max-width:420px){body.portal-preview .account-entry-actions{grid-template-columns:1fr}}

/* Simple BYARSLAN sign-in, before real authentication is connected. */
body.portal-preview #main>.container:has(>.account-signin){max-width:620px;padding:24px 22px 40px}
body.portal-preview .container:has(>.account-signin)>.page-head,body.portal-preview .container:has(>.account-signin)>.two-col{display:none}
body.portal-preview .container:has(>.account-signin)>.breadcrumbs{margin-bottom:22px;font-size:11px}
body.portal-preview .container>.account-entry.account-signin{display:block;background:transparent;border:0;box-shadow:none;padding:0;margin:0;border-radius:0}
body.portal-preview .account-signin h1{font:500 20px/1.3 'Segoe UI',Arial,sans-serif;letter-spacing:0;margin:0 0 26px}
body.portal-preview .account-signin .signin-google{width:100%;min-height:46px;border:1px solid #dedbd5;border-radius:7px;background:#fff;font-size:13px;font-weight:500;gap:12px;padding:11px 14px;box-shadow:none}
body.portal-preview .account-signin .signin-google>span{font-size:22px;color:#4285f4;font-weight:700}
body.portal-preview .account-signin .signin-divider{display:flex;align-items:center;justify-content:center;gap:10px;margin:24px 0;color:#81796d;font-size:12px}
body.portal-preview .account-signin .signin-divider:before,body.portal-preview .account-signin .signin-divider:after{content:'';width:54px;height:1px;background:#dedbd5}
body.portal-preview .account-signin form label{display:block;font-size:12px;font-weight:600;margin:0 0 7px}
body.portal-preview .account-signin form input{width:100%;height:46px;min-height:46px;padding:10px 12px;border:1px solid #dedbd5;border-radius:7px;background:#fff;font-size:16px;box-sizing:border-box}
body.portal-preview .account-signin form input:focus{outline:2px solid #1b5949;outline-offset:2px}
body.portal-preview .account-signin form>.primary{width:100%;min-height:46px;margin-top:20px;padding:11px 16px;border-radius:7px;border:1px solid #195747;background:#195747;color:#fff;font-size:14px;font-weight:600;box-shadow:none}
body.portal-preview .account-signin .signin-preview-note{font-size:11px;line-height:1.6;color:#82796b;margin:18px 0 0;text-align:center}
@media(max-width:420px){body.portal-preview #main>.container:has(>.account-signin){padding:20px 16px 30px}body.portal-preview .account-signin h1{font-size:19px}}

/* Brighter Google entry and a compact, read-only cart product preview. */
body .signin-google-mark{width:24px;height:24px;flex:0 0 24px;display:block}
body.portal-preview .account-signin .signin-google,body .cart-signin-invite .signin-google,body .cart-signin-choice .signin-google{display:flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:11px 16px;border:1px solid #cbd4df;border-radius:10px;background:#fff;color:#303640;font:600 14px/1.4 'Segoe UI',Arial,sans-serif;box-shadow:0 3px 10px #243b5310;transition:background .15s,border-color .15s,box-shadow .15s}
body .signin-google:hover{background:#f5f9ff!important;border-color:#8aafe6!important;box-shadow:0 4px 12px #4285f420!important}
body .signin-google:focus-visible,body .cart-product-open:focus-visible{outline:2px solid #4285f4;outline-offset:3px}
body.portal-preview .account-signin form>.primary{box-shadow:0 3px 9px #19574720}
body .cart-signin-invite{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin:0 0 18px;background:#f2f6f3;border:1px solid #dce7df;border-radius:12px;font-size:12px}
body .cart-signin-invite .signin-google{min-height:42px;font-size:12px;padding:8px 12px}
body .cart-signin-invite .signin-google-mark{width:20px;height:20px;flex-basis:20px}
body .cart-product-open{width:100%;text-align:left;border:0;border-radius:8px;background:transparent;padding:0;color:inherit;font:inherit;box-shadow:none;cursor:pointer}
body .cart-product-open:hover{background:#ffffff70}
body #modal:has(.cart-product-preview),body #modal:has(.cart-signin-choice){width:min(440px,calc(100vw - 28px));max-height:85dvh;overflow-y:auto;padding:22px;border-radius:16px}
body #modal:has(.cart-product-preview)>h2,body #modal:has(.cart-signin-choice)>h2{font-size:21px;padding-right:30px}
body .cart-product-preview .cart-preview-photo{display:block;width:100%;height:230px;object-fit:contain;background:#f4f1ea;border-radius:10px}
body .cart-product-preview h3{font-size:15px;line-height:1.4;margin:14px 0}
body .cart-product-preview dl{margin:0 0 18px}
body .cart-product-preview dl>div{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-bottom:1px solid #eee8df;font-size:13px}
body .cart-product-preview dt{color:#817568}body .cart-product-preview dd{margin:0;text-align:right}
body .cart-product-preview button{min-height:44px;font-size:13px}
body .cart-signin-choice>p{font-size:14px;line-height:1.6}
body .cart-signin-choice>button{width:100%;margin:12px 0 0;min-height:44px;font-size:13px}
body .cart-signin-choice .signin-preview-note{font-size:11px;color:#817568;line-height:1.6;margin-top:18px}
@media(max-width:480px){body .cart-signin-invite{align-items:stretch;flex-direction:column;gap:9px}body .cart-product-preview .cart-preview-photo{height:200px}}
@media(prefers-reduced-motion:reduce){body .signin-google{transition:none!important}}

body #modal:has(.customer-google-dialog){width:min(440px,calc(100vw - 28px));padding:24px;border-radius:16px}
body .customer-google-dialog p{font-size:13px;line-height:1.6}
body #customer-google-button{display:flex;justify-content:center;min-height:44px;margin:20px 0 12px}
body #customer-google-status{font-size:12px;color:#6b716e}
body .customer-account-page{max-width:620px;padding:24px 22px 40px}
body .customer-email{font-size:14px;overflow-wrap:anywhere}
body .customer-verified{color:#195747;font-size:13px;margin:16px 0}
body .customer-account-info{font-size:13px;line-height:1.6;background:#f2f6f3;border-radius:10px;padding:16px;margin:24px 0}
body .customer-account-info h2{font-size:20px}

/* Fill square and portrait frames, preserving image ratio with centered cropping. */
[data-category-shape]:is([data-category-shape="square"],[data-category-shape="portrait"]) :is(.moda-category-photo,.site-category-art,.atelier-category-art,.category-art){position:relative;overflow:hidden;aspect-ratio:var(--category-aspect);height:auto!important;min-height:0!important}
[data-category-shape]:is([data-category-shape="square"],[data-category-shape="portrait"]) :is(.moda-category-photo,.site-category-art,.atelier-category-art,.category-art) img{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center;padding:0!important;transform:none!important}
#site-category-layout-preview[data-mobile-columns]:not([data-mobile-columns="0"]){width:100%;max-width:430px;grid-template-columns:repeat(var(--mobile-category-columns),minmax(0,1fr));gap:8px}
#site-category-layout-preview[data-mobile-columns]:not([data-mobile-columns="0"])>*{min-width:0;width:auto}
#site-category-layout-preview[data-mobile-columns]:not([data-mobile-columns="0"]) .site-category-card b{font-size:11px;line-height:1.3;padding:5px;overflow-wrap:anywhere}
#site-category-layout-preview[data-mobile-columns]:not([data-mobile-columns="0"]) small{font-size:10px;padding:4px}
@media(max-width:650px){
 .atelier-patterns .atelier-category-grid[data-mobile-columns]:not([data-mobile-columns="0"]),.atelier-category-grid[data-mobile-columns]:not([data-mobile-columns="0"]),.site-categories-grid[data-mobile-columns]:not([data-mobile-columns="0"]),.market-category-grid[data-mobile-columns]:not([data-mobile-columns="0"]),.moda-category-grid[data-mobile-columns]:not([data-mobile-columns="0"]){grid-template-columns:repeat(var(--mobile-category-columns),minmax(0,1fr))!important;gap:8px!important}
 [data-mobile-columns]:not([data-mobile-columns="0"])>*{min-width:0;max-width:100%}
 [data-mobile-columns]:is([data-mobile-columns="4"],[data-mobile-columns="5"]) :is(.moda-category-name,.atelier-category-copy h3,.site-category-card b,.market-category h3){font-size:11px!important;line-height:1.3;overflow-wrap:anywhere}
}

/* The mobile preview is a row-flow grid, never a mix of explicit and implicit columns. */
#site-category-layout-preview{display:grid;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--category-width,160px)),1fr));width:100%;max-width:100%;overflow:visible;padding-bottom:0;align-items:start}
#site-category-layout-preview[data-mobile-columns]:not([data-mobile-columns="0"]){grid-auto-flow:row;grid-auto-columns:auto;width:100%;max-width:430px;grid-template-columns:repeat(var(--mobile-category-columns),minmax(0,1fr))}
#site-category-layout-preview>.site-category-card{min-width:0;max-width:100%;width:auto;box-sizing:border-box}
#site-category-layout-preview .site-category-art{display:block;width:100%;min-width:0}
.site-display-panel,#site-category-display{min-width:0;max-width:100%;box-sizing:border-box}
.site-display-panel p{white-space:normal;overflow-wrap:anywhere}
.site-display-panel .site-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.site-display-panel .site-controls label{flex:1 1 160px;min-width:0;max-width:240px}
.site-display-panel .site-controls select{width:100%;min-width:0;box-sizing:border-box}

/* Keep controls beside the bounded mobile preview rather than a tall empty panel. */
#site-category-display{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,430px);gap:12px 28px;align-items:start}
#site-category-display>.site-controls,#site-category-display>p{grid-column:1;min-width:0}
#site-category-display>.site-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
#site-category-display>.site-controls label{max-width:none}
#site-category-layout-preview{grid-column:2;grid-row:1/span 4;max-height:360px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding:4px;box-sizing:border-box}
@media(max-width:900px){#site-category-display{grid-template-columns:minmax(0,1fr)}#site-category-layout-preview{grid-column:1;grid-row:auto;justify-self:center}#site-category-display>.site-controls{grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr))}}

/* Automatic previews use the same mobile card size in both markets. */
#site-category-layout-preview[data-mobile-columns="0"]{max-width:430px;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--category-phone,145px)),1fr));gap:10px}
#site-category-display>#site-display-save-status:empty{display:none}

/* Compact quantity editing stays inside the product row. */
.inline-stock-column{min-width:155px;max-width:310px}.inline-stock-value{display:inline-flex;align-items:center;gap:10px;min-height:42px;padding:8px 12px;border:1px solid #b9d6cc;border-radius:9px;background:#edf6f2;color:#205c4b;font-weight:700;white-space:nowrap}.inline-stock-value span{font-size:16px}.inline-stock-value:hover{background:#dff0e8}.inline-stock-value:focus-visible{outline:3px solid #2c7eac;outline-offset:2px}.inline-stock-value:disabled{opacity:.65}.inline-stock-form{min-width:190px;max-width:290px;margin:0}.inline-stock-inputs{display:grid;gap:7px;max-height:220px;overflow:auto}.inline-stock-inputs label{display:grid;gap:4px;font-size:12px}.inline-stock-inputs input{width:100%;min-width:115px;max-width:190px;min-height:40px;padding:7px 9px;border:1px solid #b7c6bf;border-radius:7px;font-size:16px;box-sizing:border-box}.inline-stock-buttons{display:flex;gap:6px;margin-top:9px}.inline-stock-buttons button{min-height:38px;padding:7px 10px;font-size:13px}.inline-stock-message{white-space:normal;max-width:270px;font-size:12px;line-height:1.4;color:#a32d24;margin:6px 0 0}.inline-stock-message:empty{display:none}.inline-stock-note,.inline-stock-unlimited{font-size:12px;color:#6a736e}@media(max-width:760px){.inline-stock-column{min-width:155px}.inline-stock-form{min-width:180px}}
