/* Shared readability and responsive refinements; merchant palettes remain independent. */
:root{--glass-blue:#273e32;--glass-muted:#53616a;--glass-surface:#fff;--glass-shadow:0 2px 12px #172a3208;--accent:#273e32;--on-accent:#fff}
body:not(:has(#storefront.active)){background:#f7f9f6!important;background-image:none!important;color:#172a32}
body:not(:has(#storefront.active)) :is(.panel,.stat,.buyer-panel){background:#fff!important;backdrop-filter:none!important;box-shadow:0 2px 12px #172a3208!important;border-color:#dce3df!important}
body:not(:has(#storefront.active)) :is(.top,header){box-shadow:none!important}
body:not(:has(#storefront.active)) :is(.btn.blue,button.primary,.close){background:#273e32!important;color:#fff!important;border-color:#273e32!important;box-shadow:none!important}
body:not(:has(#storefront.active)) button{box-shadow:none!important}
#app .tabs button.active,#app .slots button.active{background:#273e32;color:#fff}
#dashboard .side button.active{background:#e5efdc!important;color:#273e32!important;border-color:#c9d9bc!important}
body .glass-select .glass-select-trigger:not(:disabled),body .glass-select .glass-select-trigger:not(:disabled):hover,body .backdrop .glass-select .glass-select-trigger:not(:disabled):hover{background:#fff!important;color:#304965!important;-webkit-text-fill-color:#304965!important;border-color:#bdcbc2!important}
body .glass-select-option:hover,body .glass-select-option[aria-selected=true]{background:#e5efdc!important;color:#273e32!important}
#dayCalendar label:has(#calendarService:empty){display:none}
body>header #cabinet{background:#273e32;color:#fff}
body button:disabled,body .btn:disabled,body .glass-select-trigger:disabled{background:#e5ecf3!important;color:#4b5e70!important;-webkit-text-fill-color:#4b5e70!important;border-color:#c6d1dd!important;opacity:1!important;box-shadow:none!important;cursor:not-allowed}
input::placeholder,textarea::placeholder{color:#627487!important;opacity:1!important}
#dashboard .page-head p{color:#53616a!important}#dashboard .theme-choice small{color:#526477!important}
body:has(.workspace .templates) .intro p:not(.eyebrow){color:#53616a!important}
body:has(.workspace .templates) .wallet{background:#172a32!important;color:#fff!important}
body:has(.workspace .templates) .wallet span,body:has(.workspace .templates) .wallet strong{color:#fff!important;-webkit-text-fill-color:#fff!important}
body:has(.workspace .templates) .wallet button:not(:disabled){background:#d8ff67!important;color:#172a32!important}
body:has(.workspace .templates) .wallet #buy:disabled{background:#e5ecf3!important;color:#4b5e70!important;-webkit-text-fill-color:#4b5e70!important}
button,a.button,.btn,summary{word-break:normal;overflow-wrap:normal}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #587b46;outline-offset:3px}
.cart-item-copy{min-width:0}.cart-item-details{margin-top:10px;border:1px solid #d8e1e8;border-radius:12px;padding:10px 12px}.cart-item-details summary{font-size:14px;font-weight:600;cursor:pointer}.cart-item-details[open]>div{margin-top:12px;line-height:1.6;font-size:14px}
#cartDialog .cart-item-head{grid-template-columns:72px minmax(0,1fr);align-items:start}#cartDialog .cart-item-photo{width:72px;height:72px;object-fit:contain}#cartDialog .dactions{position:sticky;bottom:-24px;padding:16px 0 6px;background:#f7f9fc;z-index:2;border-top:1px solid #dce3ec}
.ui-loading{height:100px;display:grid;place-items:center}.ui-loading:after{content:'';height:28px;width:28px;border:3px solid #dce3df;border-top-color:#273e32;border-radius:50%;animation:ui-spin .7s linear infinite}@keyframes ui-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.ui-loading:after{animation:none}}
@media(max-width:650px){
 #app>.tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:8px;padding:4px 2px 10px;scrollbar-width:thin;overscroll-behavior-x:contain}
 #app>.tabs button{flex:0 0 auto!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;min-height:44px;padding:12px 16px}
 .top{gap:8px!important;padding:12px!important;border-radius:18px!important}.top .modes{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:6px!important;width:100%}
 .top .modes>*{flex:0 0 auto!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;min-height:40px!important;padding:10px 12px!important;font-size:13px!important}
 .top #mestoWorkspaceLink{display:none!important}body:has(#dashboard.active) .top .modes button[data-screen="dashboard"]{display:none!important}
 .launch-access{padding:12px!important;gap:4px 10px!important;margin-bottom:14px!important}.launch-access b{font-size:15px!important}.launch-access p{font-size:13px!important}.launch-access a{padding:10px 12px!important;min-height:40px}
 #cartDialog .dactions{bottom:-18px}#cartDialog .bundle-review{padding:16px!important}.cart-item-copy b{font-size:16px}.cart-item-details summary{min-height:24px}
}

body:has(#storefront.active.themed) :is(#cartDialog,#productDialog,#bundleChooser,#checkoutDialog) :is(.btn:not(.light),.close){background:var(--active-store-accent,#172a32)!important;color:var(--active-store-text,#fff)!important;border-color:var(--active-store-accent,#172a32)!important;box-shadow:none!important}

/* Product management: stable numeric columns, clear photos, secondary actions. */
#products .page-head{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch!important}#products .page-head>div:first-child{grid-column:1/-1}#products .page-head>button{width:100%;margin:0;white-space:normal;line-height:1.35}
#productsTable .product-cell{gap:12px;line-height:1.45;min-width:180px}
#productsTable .product-cell>div{font-size:14px;overflow-wrap:anywhere}
#productsTable .product-photo-button{display:block;flex:0 0 64px;width:64px;height:64px;padding:0!important;border:1px solid #e0e6e2!important;border-radius:10px;background:#f5f7f4!important;box-shadow:none!important;overflow:hidden}
#productsTable .product-photo-button .thumb{display:block;width:64px;height:64px;object-fit:contain;margin:0;border-radius:0}
#productsTable .stock,#productsTable td:nth-child(3),#productsTable td:nth-child(4){white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;font-variant-numeric:tabular-nums}
#productsTable .stock{gap:3px;line-height:1.3}
#productsTable .server-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:center;min-width:205px}#productsTable .server-actions>.icon-btn{width:100%}
#productsTable .server-actions .icon-btn{background:#f2f5f1!important;color:#273e32!important;border-color:#dce4d9!important;box-shadow:none!important;min-height:34px!important;font-weight:600}
#productsTable .product-more{position:relative}
#productsTable .product-more summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center}
#productsTable .product-more summary::-webkit-details-marker{display:none}
#productsTable .product-more-menu{position:absolute;z-index:20;right:0;top:calc(100% + 5px);min-width:190px;padding:6px;background:#fff;border:1px solid #dce4d9;border-radius:12px;box-shadow:0 8px 24px #172a3218;display:grid;gap:4px}
#productsTable .product-more-menu .icon-btn{text-align:left!important;width:100%;justify-content:flex-start}
@media(min-width:801px){#products:has(#productsTable) .table{overflow:visible}#products table:has(#productsTable){table-layout:auto}#productsTable td{padding:14px 10px!important}#productsTable .category-cell{min-width:110px;max-width:160px}#productsTable .category-cell select{min-width:105px}}
@media(max-width:800px){#products .page-head{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#products .page-head>button{font-size:13px;min-height:44px;padding:10px!important}#productsTable .product-cell{min-width:0}#productsTable .server-actions{min-width:0;display:grid!important;grid-template-columns:1fr 1fr}#productsTable .server-actions .icon-btn{width:100%;min-height:44px!important}#productsTable .product-more-menu{width:210px}#productsTable .product-more-menu .icon-btn{min-height:44px!important}}

/* Order filters and actions use the same restrained treatment as products. */
#orders .filters{display:flex;flex-wrap:wrap;gap:8px}#orders .filters button{min-height:38px!important;padding:8px 14px!important;background:#f2f5f1!important;color:#273e32!important;border:1px solid #dce4d9!important;border-radius:10px!important;box-shadow:none!important;font-weight:600}#orders .filters button.active{background:#dcebcf!important;border-color:#a9ca8f!important;color:#203b29!important}
#ordersTable .server-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}#ordersTable .server-actions button{min-height:34px!important;padding:7px 10px!important;background:#f2f5f1!important;color:#273e32!important;border:1px solid #dce4d9!important;border-radius:9px!important;box-shadow:none!important;font-size:12px!important;font-weight:600;line-height:1.25;white-space:nowrap}#ordersTable .server-actions button:hover{background:#e3ebe0!important}#ordersTable .server-actions [data-cancel-order]{color:#a23642!important;background:#fff4f5!important;border-color:#efd6da!important}#ordersTable .server-actions [data-next]:not([data-cancel-order]):not([data-back]){background:#dcebcf!important;border-color:#bfd5ad!important}#ordersTable td:nth-child(4),#ordersTable .status{white-space:nowrap}
@media(max-width:800px){#ordersTable .server-actions button{min-height:44px!important;font-size:13px!important;white-space:normal}}
