/* Mobile browser hardening: 320px+, iOS safe areas, touch targets and dense admin views. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-bottom:calc(74px + env(safe-area-inset-bottom))}
@media(max-width:760px){
  .access-console-nav{grid-template-columns:1fr;margin-bottom:12px}.access-console-nav a{min-height:54px;padding:9px 12px}.customer-access-identity{align-items:flex-start;margin:-5px 8px 14px;padding:12px}.customer-access-identity>div>span{width:40px;height:40px}.customer-access-identity>.status{flex:0 0 auto;font-size:10px}.catalog-default-card{grid-template-columns:1fr;padding:12px;border-radius:18px}.catalog-default-copy{padding:6px}.catalog-default-copy h2{font-size:20px}.catalog-access-stats{grid-template-columns:auto 1fr auto 1fr}.catalog-admin-request{grid-template-columns:1fr;padding:14px}.catalog-request-history{grid-template-columns:auto 1fr}.catalog-request-history small{grid-column:2}.order-detail-premium{width:calc(100% - 20px)}.order-hero{min-height:138px;padding:20px 18px;border-radius:22px;align-items:flex-start;flex-direction:column}.order-hero h1{font-size:28px}.order-number{font-size:10px;letter-spacing:.04em}.order-status-pill{min-height:30px;padding-inline:11px;font-size:11px}.order-overview{grid-template-columns:1fr 1fr;margin:-10px 8px 0;border-radius:14px}.order-overview>div{padding:10px 11px}.order-overview>div:first-child{grid-column:1/-1}.order-overview b{font-size:13px}.order-detail-actions{grid-template-columns:1fr;margin:12px 0;gap:7px}.order-detail-actions .button{min-height:42px}.order-detail-grid{grid-template-columns:1fr;gap:10px}.order-products-panel,.order-shipping-panel{padding:14px}.order-shipping-panel{position:static}.order-detail-line{grid-template-columns:1fr;gap:8px;padding:13px 0}.order-line-copy h3{font-size:14px}.order-line-quantities{grid-template-columns:1fr 1fr}.order-line-quantities span{display:flex;align-items:center;justify-content:space-between;padding:7px 9px}.order-products-panel .section-heading h2{font-size:19px}
  body{overflow-x:hidden}
  .page-main{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
  .site-header .header-row{gap:5px;min-height:62px}
  .header-row>.brand{margin-right:auto}
  .site-header .brand{gap:7px;font-size:14px}
  .site-header .brand img{width:40px;height:38px;border-radius:11px}
  .site-header .brand small{gap:0;font-size:7px;letter-spacing:.08em}
  .header-search{position:static;display:block}
  .header-search>summary{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--chili-dark);cursor:pointer;list-style:none}
  .header-search>summary::-webkit-details-marker{display:none}
  .header-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .header-search>form{position:absolute;z-index:95;top:calc(100% + 1px);right:12px;left:12px;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:7px;padding:10px;border:1px solid var(--line);border-radius:0 0 16px 16px;background:rgba(255,254,251,.98);box-shadow:0 18px 38px rgba(83,43,15,.18)}
  .header-search:not([open])>form{display:none}
  .header-search input{min-height:44px;padding-block:8px}
  .header-search form button{display:grid;place-items:center;min-height:44px;border:0;border-radius:11px;background:linear-gradient(135deg,var(--chili),#f67d08);color:#fff;cursor:pointer}
  .menu-button{min-height:38px;padding-inline:10px;font-size:12px}
  .primary-nav{max-height:calc(100dvh - 118px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  input,select,textarea{font-size:16px}
  .button,.menu-button,.primary-nav a,.footer-nav a{min-height:44px}
  .product-copy,.product-buy,.cart-line>*,.order-card>div,.detail-grid>*,.inquiry-head>*{min-width:0}
  .order-card strong,.inquiry-head h2,.inquiry-head p,.inquiry-message{overflow-wrap:anywhere}
  .inquiry-head{flex-direction:column;gap:4px}
  .inquiry-head time{align-self:flex-start}
  .print-sheet{width:calc(100% - 16px);margin:12px auto;padding:18px;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
  .print-sheet table{min-width:640px}
  .print-sheet>header{min-width:640px}
  .document-recipient,.document-total,.document-checks{min-width:640px}
  .section{padding-block:20px}
  .page-heading{margin-bottom:12px;padding:22px 18px;border-radius:20px}
  .page-heading h1{margin-block:4px;font-size:30px}
  .page-heading>p:last-child{margin:7px 0 0;font-size:12px;line-height:1.6}
  .catalog-filter{display:none}
  .category-tabs{position:relative;display:flex;flex-wrap:wrap;align-content:flex-start;gap:7px;max-height:87px;margin:0 0 10px;padding:6px 0;overflow:hidden;scrollbar-width:none;transition:max-height .2s ease}
  .category-tabs.has-overflow{padding-right:88px}
  .category-tabs::-webkit-scrollbar{display:none}
  .category-tabs a{min-height:34px;padding:0 12px;font-size:11px}
  .category-tabs .category-more{position:absolute;right:0;bottom:6px;display:none;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border:1px solid #efc39f;border-radius:999px;background:#fff7ed;color:var(--chili-dark);font-size:11px;font-weight:900;white-space:nowrap;cursor:pointer;box-shadow:-12px 0 16px 7px var(--rice)}
  .category-tabs.has-overflow .category-more{display:inline-flex}
  .category-tabs.is-expanded{max-height:none;padding-right:0}
  .category-tabs.is-expanded .category-more{position:static;box-shadow:none}
  .catalog-count{margin:8px 2px 12px;font-size:11px}
  .catalog-count strong{font-size:17px}
  .product-list{gap:10px}
  .product-row{grid-template-columns:88px minmax(0,1fr)}
  .product-thumb{width:88px;min-height:136px}
  .product-copy{padding:10px 10px 3px}
  .product-copy h2{margin:5px 0;font-size:14px}
  .product-buy{padding:3px 10px 10px}
  .price{font-size:19px}
  .quick-add{gap:4px;min-width:0}
  .quick-add button[data-qty],.quick-add input{min-width:34px;width:34px;height:40px;min-height:40px}
  .quick-add .add-button{min-width:0;height:40px;min-height:40px;padding-inline:5px;font-size:0}
  .quick-add .add-button span{font-size:14px}
}
@media(max-width:430px){
  .customer-category-grid{grid-template-columns:1fr;max-height:340px;padding:8px}
  .catalog-access-stats{grid-template-columns:auto 1fr}.catalog-admin-request form>div{display:grid;grid-template-columns:1fr 1fr}.catalog-admin-request .button{width:100%}
  .admin-nav-group,.admin-nav-actions{grid-template-columns:1fr}
  .admin-toolbar{display:grid;grid-template-columns:1fr}
  .admin-toolbar .button{width:100%}
  .order-card{flex-direction:column;gap:10px}
  .order-card>div:last-child{text-align:left;align-items:flex-start}
  .settings-current dl>div{grid-template-columns:1fr;gap:3px}
  .print-actions{display:grid;grid-template-columns:1fr 1fr;position:sticky;left:0}
}
@media(max-width:350px){
  .brand{gap:7px;font-size:14px}.brand img{width:44px;height:auto}.brand small{display:none}
  .menu-button{padding-inline:12px}
  .hero-grid{padding:30px 18px}.hero h1{font-size:32px}
  .product-row{grid-template-columns:80px minmax(0,1fr)}.product-thumb{width:80px}
  .product-copy,.product-buy{padding-inline:10px}
  .quick-add button[data-qty],.quick-add input{min-width:34px;width:34px}
  .quick-add .add-button{min-width:0;padding-inline:5px}
  .bottom-nav a{font-size:9px}
}
