/* Shared small-screen layer. Desktop layouts retain their own rules. */
@media(max-width:767px){
 html{-webkit-text-size-adjust:100%;scroll-padding-top:78px}body{min-width:0}*,*::before,*::after{box-sizing:border-box}img,video,canvas{max-width:100%}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}input,select,textarea{font-size:16px!important;max-width:100%}button,[role=button]{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:2px solid var(--accent,#37634e);outline-offset:3px}
 .app-content{margin-left:0;padding:0 16px;min-width:0}.app-topbar{height:64px;gap:8px}.breadcrumb{min-width:0;flex:1;overflow:hidden;white-space:nowrap}.breadcrumb>span:last-child{overflow:hidden;text-overflow:ellipsis}.top-tools{gap:4px;flex:none}.mobile-toggle,.appearance-button{min-width:44px;min-height:44px}.current-language{font-size:12px}.app-sidebar{width:min(290px,85vw);height:100dvh;overflow-y:auto;padding:24px 16px max(24px,env(safe-area-inset-bottom));overscroll-behavior:contain}.app-sidebar .side-link{min-height:46px;font-size:15px}.sidebar-bottom{margin-top:24px}.mobile-menu-open{overflow:hidden}
 .catalog-heading{padding:18px 0;gap:16px}.catalog-heading h1{font-size:27px;line-height:1.35}.catalog-heading p{font-size:14px;line-height:1.7}.search-box{width:100%;min-height:46px}.search-box input{width:100%;min-width:0}.catalog-toolbar{margin-bottom:14px}.brand-tabs{gap:20px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}.brand-tab{font-size:14px;min-height:46px;flex-shrink:0}.series-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:10px;scrollbar-width:thin}.series-tab{flex:none;min-height:40px;white-space:nowrap;font-size:13px}.catalog-tools{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:8px 0}.stock-filter{min-height:44px;font-size:13px}#sort-products{min-height:44px;max-width:155px;font-size:14px!important}
 .product-grid{gap:14px}.product-card.product-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto auto;gap:0 12px;padding:18px;border-radius:12px;min-width:0}.product-row .product-top{grid-column:1/-1;grid-row:1;margin-bottom:14px;align-items:flex-start}.product-row .brand-mark{width:38px;height:38px;flex:none}.product-row .card-status{flex-direction:column;gap:6px;align-items:flex-end;min-width:0}.product-row .card-status .product-facts{font-size:11px;gap:5px 9px;justify-content:flex-end}.product-row h2{grid-column:1;grid-row:2;font-size:20px;line-height:1.45;margin:0 0 5px;overflow-wrap:anywhere}.product-row .product-subtitle{grid-column:1;grid-row:3;font-size:13px;line-height:1.7}.product-row .product-bottom{grid-column:2;grid-row:2/4;display:flex;flex-direction:column;gap:10px;align-items:flex-end;padding:0;margin:0;border:0;position:static}.product-row .product-price{font-size:26px;line-height:1.35;white-space:nowrap;overflow-wrap:normal}.product-row .product-price small{font-size:12px;display:inline;margin-left:3px}.product-row .detail-button{width:100%;min-width:92px;min-height:42px;padding:9px 18px;font-size:14px}.product-row .card-full-description{grid-column:1/-1;grid-row:4;border:0;border-top:1px solid var(--border);padding:14px 0 0;margin:15px 0 0;min-width:0}.product-row .catalog-description p,.product-row .catalog-description .detail-intro,.product-row .catalog-description li{display:block;font-size:14px;line-height:1.85;margin:0 0 9px}.product-row .catalog-description p:last-child{margin-bottom:0}.product-row .catalog-description strong{font-weight:600}.product-row .catalog-description a{overflow-wrap:anywhere}.results-count{font-size:12px}
 .commerce-page,.service-page,.checkout-page,.detail-page,.legacy-content .commerce-page{width:100%;max-width:none;margin:0;padding:18px 0 32px}.commerce-heading,.service-heading,.checkout-heading{display:block;margin:8px 0 22px}.commerce-heading h1,.service-heading h1,.checkout-heading h1,.detail-hero h1{font-size:27px;line-height:1.4;letter-spacing:-.02em;overflow-wrap:anywhere}.commerce-heading p,.service-heading p,.checkout-heading p{font-size:14px;line-height:1.8}.back-link{min-height:44px;font-size:13px;max-width:100%;overflow-wrap:anywhere}
 .commerce-split,.checkout-layout,.checkout-inputs,.detail-layout,.contact-grid,.guide-card-grid,.preparation-grid,.article-layout,.guide-layout{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:18px}.form-panel,.result-panel,.checkout-fields,.checkout-summary,.contact-card,.guide-card,.purchase-panel{min-width:0;padding:20px;border-radius:12px}.form-panel form{gap:18px}.form-panel label,.checkout-inputs label{font-size:14px;line-height:1.6}.form-panel input,.checkout-inputs input,.noir-login-form input{width:100%;min-height:48px}.form-panel small,.checkout-inputs small{font-size:12px;line-height:1.7}.solid-action,.secondary-action,.outline-action,.copy-action{min-height:44px;white-space:normal;text-align:center;font-size:14px}.form-panel form>button{width:100%}.commerce-split aside p{font-size:14px;line-height:1.8}.checkout-summary{position:static;top:auto}.checkout-product{display:flex;flex-wrap:wrap;gap:12px}.checkout-product>div{flex:1;min-width:170px}.checkout-product h2{font-size:19px;line-height:1.5}.checkout-product .delivery-tag{margin-left:50px}.checkout-section h2{font-size:18px}.checkout-quantity{gap:12px;flex-wrap:wrap}.quantity-control button{width:44px;height:44px;min-width:44px}.quantity-control input{width:48px;min-height:44px}.checkout-total strong{font-size:30px}.checkout-progress{font-size:12px;line-height:1.8;gap:5px}.checkout-submit{width:100%;min-height:48px}.checkout-terms,.selected-payment{font-size:13px;line-height:1.8}.checkout-summary-links{gap:16px;flex-wrap:wrap}.checkout-summary-links a{min-height:40px;display:inline-flex;align-items:center}
 .detail-hero,.detail-body,.purchase-panel{grid-column:1!important;grid-row:auto!important;min-width:0}.purchase-panel{position:static}.detail-section-links{flex-wrap:wrap;gap:8px}.detail-copy-section h2{font-size:21px}.detail-copy-block p,.detail-copy-block li{font-size:15px;line-height:1.85}.purchase-price{font-size:32px}.purchase-button{min-height:48px}
 .legacy-content .noir-login-stage,.noir-login-stage{display:block!important;min-height:0;height:auto;border-radius:14px}.noir-login-hero-panel,.noir-login-art-panel{display:none!important}.legacy-content .noir-login-page,.noir-login-page{padding:12px 0 30px;min-height:0}.legacy-content .noir-login-card,.noir-login-card{width:100%;max-width:none;min-height:0;padding:24px 20px;border-radius:14px}.noir-login-card-head h2{font-size:26px;line-height:1.4}.noir-login-card-head p{font-size:14px;line-height:1.7}.noir-login-field>span{font-size:14px}.noir-login-input-wrap{min-width:0}.noir-login-submit,.noir-login-code-button{width:100%;min-height:48px;font-size:15px}.auth-modes{gap:8px}.auth-modes button{font-size:13px;min-height:44px}.noir-login-register{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}.noir-login-register a{min-height:44px;display:inline-flex;align-items:center}.auth-message{overflow-wrap:anywhere}.account-toolbar{gap:10px;align-items:flex-start}#account-email{overflow-wrap:anywhere;max-width:100%}.account-toolbar>button{margin-left:auto}.account-order-head h2{font-size:18px;line-height:1.6}.claim-order label{min-width:0;flex-basis:100%}.account-order .payment-panel{padding:16px}.account-link summary{font-size:14px;line-height:1.7;padding:8px 0}
 .facai-payment-dialog{width:calc(100vw - 24px);max-width:460px;max-height:calc(100dvh - 24px);padding:20px;overscroll-behavior:contain;border-radius:16px}.pay-heading h2{font-size:21px;line-height:1.4}.pay-close{flex:none;min-width:44px;min-height:44px}.pay-total{padding:20px 0}.pay-total strong{font-size:32px}.pay-methods{gap:7px}.pay-method{padding:12px 5px;min-width:0}.pay-method strong{font-size:13px;white-space:normal}.pay-method small{font-size:11px}.pay-notice,.pay-selection p{font-size:13px}.pay-qr canvas{max-width:100%;height:auto;aspect-ratio:1}.pay-actions{display:grid;grid-template-columns:1fr}.pay-actions>*{width:100%;margin:0}.delivery-card{grid-template-columns:minmax(0,1fr);padding:16px}.delivery-card>div{grid-column:1;grid-row:auto;flex-wrap:wrap;margin-top:8px}.delivery-card>div>*{flex:1;min-height:44px}.delivery-card code{font-size:15px;overflow-wrap:anywhere}.payment-panel{padding:18px}.payment-panel select{width:100%;margin:8px 0}
 .contact-card h2{font-size:26px;overflow-wrap:anywhere}.contact-card p,.contact-explainer p,.service-faq p{font-size:14px;line-height:1.85}.contact-actions{display:flex;flex-wrap:wrap;gap:10px}.contact-actions>*{flex:1;min-width:120px}.contact-card small{font-size:12px;line-height:1.75}.preparation-grid{gap:14px}.help-strip{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:20px}.guide-card h2{font-size:20px}.guide-card p{font-size:14px;line-height:1.8}.guide-tags{flex-wrap:wrap}.guide-toc{position:static;width:100%;max-width:none}.guide-body{min-width:0}.guide-body h1,.article-page h1{font-size:27px;line-height:1.45}.guide-body h2{font-size:21px;line-height:1.5}.guide-body p,.guide-body li{font-size:15px;line-height:1.9}.guide-body img{height:auto}.guide-body table{display:block;max-width:100%;overflow-x:auto}.guide-body pre{white-space:pre-wrap;overflow-wrap:anywhere}.service-faq summary{font-size:15px;min-height:48px;line-height:1.7}.app-footer{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px 0 max(24px,env(safe-area-inset-bottom))}.app-footer p{max-width:100%;font-size:12px;line-height:1.8}.app-footer .footer-brand{align-self:flex-end}
 .facai-welcome{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:14px}.welcome-scroll{padding:24px 20px 18px}.welcome-header h2{font-size:25px}.welcome-important{margin:18px 0;padding:12px 14px}.welcome-important p{font-size:15px}.welcome-products dl>div{grid-template-columns:75px minmax(0,1fr)}.welcome-actions{padding:14px 20px max(14px,env(safe-area-inset-bottom));flex-wrap:wrap}.welcome-actions button{min-height:44px}.welcome-close{min-width:44px;min-height:44px}#settings-dialog{width:calc(100vw - 32px);max-width:420px;max-height:85dvh;overflow:auto}#replica-notice{max-width:calc(100vw - 32px);overflow-wrap:anywhere;font-size:13px}
 .admin-workbench main{padding:18px 14px 0}.admin-workbench .site-header{overflow-y:auto;overscroll-behavior:contain}.admin-workbench .page-heading{gap:12px;flex-wrap:wrap}.admin-workbench .page-heading h1{font-size:25px}.admin-workbench .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.admin-workbench table{min-width:640px}.admin-workbench .table-filters input,.admin-workbench .table-filters select{min-height:44px}.admin-workbench .table-filters select{flex:1;max-width:100%}.admin-workbench .date-filter{display:grid;grid-template-columns:1fr 1fr;width:100%}.admin-workbench .date-filter button{grid-column:1/-1;min-height:44px}.admin-workbench .quick-ranges button{min-height:40px}.admin-workbench .kpis strong{font-size:23px;overflow-wrap:anywhere}.admin-workbench .kpis small{font-size:11px}.admin-workbench .pager{gap:8px;flex-wrap:wrap}.admin-workbench dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 28px);padding:20px}.admin-workbench .stack-form input,.admin-workbench .stack-form select{min-height:46px}.admin-auth-main{padding:28px 16px}.admin-auth-card{padding:24px 20px}.admin-auth-card input{min-height:48px}.demo-layout{grid-template-columns:minmax(0,1fr)!important}.demo-page{padding:20px 16px}
}
@media(max-width:359px){.product-card.product-row{padding:14px;column-gap:8px}.product-row h2{font-size:18px}.product-row .product-price{font-size:23px}.product-row .detail-button{min-width:80px;padding-inline:12px}.card-status .delivery-tag{font-size:10px}.pay-method strong{font-size:12px}.noir-login-card{padding:20px 16px}.admin-workbench .kpis{padding:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}
