.mobile-menu-toggle,.mobile-panel-toggle,.chat-mobile-back{display:none}
.mobile-bottom-nav{display:none}
@media(max-width:700px){body.mobile-public-app{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}.mobile-public-app .site-header .nav,.mobile-public-app .site-header .cart-button{display:none}.mobile-public-app .site-header{padding-top:max(12px,env(safe-area-inset-top,0px))}}
@media(max-width:700px){
  body.mobile-app-shell{--app-bottom:calc(68px + env(safe-area-inset-bottom,0px));padding-bottom:var(--app-bottom)}
  .mobile-app-shell .management-account,.mobile-app-shell .mobile-menu-toggle,.mobile-app-shell .management-header>.management-nav:not(.management-subnav){display:none!important}
  .mobile-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:150;border-top:1px solid #dce5df;background:#fff;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));box-shadow:0 -3px 16px #162f2310}
  .mobile-bottom-nav>a,.mobile-bottom-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;max-width:100%;height:56px;margin:0;padding:5px 2px;border:0;border-radius:6px;color:#63746d;background:transparent;font-size:11px;text-decoration:none;white-space:nowrap}
  .mobile-bottom-nav>a svg,.mobile-bottom-nav>button svg{width:22px;height:22px;flex-shrink:0}.mobile-bottom-nav>[aria-current]{color:#246b57;background:#e8f3ee}.mobile-bottom-nav>.management-profile{overflow:hidden;gap:3px}.mobile-bottom-nav .profile-avatar{width:26px;height:26px;min-width:26px;font-size:12px}.mobile-bottom-nav .management-profile>span:last-child{max-width:100%;font-size:10px;overflow:hidden;text-overflow:ellipsis}
  .mobile-app-shell .admin-header.management-header{padding-top:max(8px,env(safe-area-inset-top,0px))}.mobile-app-shell .management-header .management-subnav{order:4}.mobile-app-shell .management-header>a{margin-right:auto}
  .mobile-app-shell .admin-main{padding-bottom:20px}.mobile-app-shell .team-chat{height:calc(100dvh - var(--app-bottom) - 124px)!important;min-height:240px!important}.mobile-keyboard-open .mobile-bottom-nav{display:none}.mobile-keyboard-open{padding-bottom:0!important}.mobile-keyboard-open .team-chat{height:calc(100dvh - 124px)!important}
  .mobile-sections-sheet{align-self:end;position:fixed;inset:auto 0 0!important;width:100%!important;max-width:100%!important;margin:0!important;border-radius:12px 12px 0 0!important;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important}.mobile-section-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}.mobile-section-links a{padding:16px 12px;border:1px solid #e0e8e3;border-radius:6px;font-size:15px;min-height:52px}.mobile-section-links a[aria-current]{background:#e8f3ee;color:#246b57}.mobile-section-links [hidden]{display:none}
}
@media(max-width:700px){.site-header{gap:8px!important;align-items:center!important}.site-header .brand{flex:0 1 110px!important}.site-header .brand-logo{width:110px!important}.site-header .header-action{padding:10px 12px;font-size:13px}.site-header .cart-button{width:44px;height:44px;flex-shrink:0}.table-scroll:has(>table.order-editor-grid),.table-scroll:has(>table.warehouse-line-table.document-grid){overflow:visible;max-height:none}.order-header-actions button{flex:0 0 44px!important;width:44px!important}.mobile-menu-toggle svg,.chat-mobile-back svg{width:22px;height:22px}.store-search>div{gap:6px}.store-search button{flex-shrink:0;white-space:nowrap;padding:10px}.store-search input{width:100%;min-width:0}.object-team-list label{min-height:44px}}
@media(max-width:360px){.store-product-grid{grid-template-columns:minmax(0,1fr)!important}.store-product>img{height:160px}.management-account{max-width:calc(100% - 138px)}.management-profile>span:last-child{max-width:78px}}
@media(max-width:700px){
  html{scroll-padding-top:140px}body{min-width:0}*,*::before,*::after{box-sizing:border-box}input,select,textarea{font-size:16px!important;max-width:100%;min-width:0}button,.import-label{min-height:44px}input[type=checkbox]{min-height:0;width:20px;height:20px}a,button,label,h1,h2,h3,p,strong,small{overflow-wrap:anywhere}
  .admin-main{width:100%;padding:16px 12px 32px;min-width:0}.admin-main h1{font-size:24px}.admin-main h2{font-size:20px}.admin-toolbar{gap:12px;margin:12px 0}.admin-toolbar>div{gap:6px}.admin-layout,.admin-layout.product-browser{grid-template-columns:minmax(0,1fr)!important;gap:20px}.admin-layout>*{min-width:0}.admin-fields,.order-fullscreen #new-order-form .admin-fields{grid-template-columns:minmax(0,1fr)!important;gap:12px}.admin-editor{padding:16px 0 0;border-left:0}.admin-save{gap:8px}.admin-save button{flex:1 1 auto}.admin-product{padding:12px 0}.admin-product img{flex-shrink:0}.admin-photo-tools{flex-wrap:wrap}.admin-photo-tools input{flex-basis:100%}.admin-spec{grid-template-columns:minmax(0,1fr) 44px}.admin-spec input:first-child{grid-column:1/-1}
  .admin-header.management-header{padding:8px 12px;gap:8px;align-items:center}.management-header>a img{width:90px}.management-account{margin-left:auto;max-width:calc(100% - 150px)}.management-profile{padding:6px;max-width:180px;min-height:44px}.management-profile>span:last-child{max-width:100px;font-size:13px}.mobile-menu-toggle{display:block;order:2;width:44px;padding:0;font-size:22px;flex-shrink:0}.management-header>.management-nav:not(.management-subnav){display:none;order:3;flex-basis:100%;max-height:50dvh;overflow:auto;grid-template-columns:repeat(2,minmax(0,1fr))}.management-header.mobile-menu-open>.management-nav:not(.management-subnav){display:grid}.management-header .management-nav a{font-size:14px;padding:12px 10px;white-space:normal}.management-header .management-subnav{flex-wrap:nowrap;order:4;width:100%;padding:0;overflow-x:auto}.management-subnav a{white-space:nowrap!important;min-height:44px}.warehouse-header-actions{order:5!important;width:100%;display:flex;gap:8px;flex-wrap:wrap;margin:0!important}.warehouse-header-actions button{flex:1 1 auto;font-size:13px}.warehouse-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:10px;gap:6px}.warehouse-tabs button{flex-shrink:0}.document-actions{flex-wrap:wrap}.supplier-controls,.object-customer-controls{flex-wrap:wrap}.supplier-controls select,.object-customer-controls select{flex-basis:100%}
  dialog:not(.embedded-product-dialog){width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:16px;margin:auto}dialog.has-corner-close{padding-top:62px!important}dialog>button.dialog-corner-close{width:44px;min-width:44px;height:44px}.service-dialog .admin-save{top:-16px}.product-editor-dialog.order-fullscreen{width:100%!important;max-width:100%!important;padding:12px 0!important;max-height:none!important;margin:0}.order-fullscreen #new-order-form>.admin-save{position:static}.order-product-editor iframe{min-height:60dvh}.serial-scanner-dialog .serial-scan-box{min-width:0}.serial-scanner-dialog .serial-scan-list{max-height:45dvh}
  .table-scroll,.mobile-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.mobile-table-scroll>table{min-width:580px}.mobile-panel-toggle{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:8px;text-align:left}.mobile-folded>*:not(.mobile-panel-toggle){display:none!important}.mobile-foldable:not(.mobile-folded){max-height:60dvh;overflow:auto;border-bottom:1px solid #dce2e6;padding-bottom:12px}.category-tree-toggle{min-height:44px}
  #new-order-form table.order-editor-grid,.warehouse-line-table.document-grid{display:block;min-width:0!important;width:100%;table-layout:auto}.order-editor-grid>thead,.warehouse-line-table.document-grid>thead{display:none}.order-editor-grid>tbody,.warehouse-line-table.document-grid>tbody{display:grid;gap:12px}.order-editor-grid>tbody>tr,.warehouse-line-table.document-grid>tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #dce2e6;border-radius:6px;background:#fff;margin:0;overflow:hidden}.order-editor-grid>tbody>tr>td,.warehouse-line-table.document-grid>tbody>tr>td{display:block;width:auto!important;height:auto!important;min-width:0;padding:10px!important;white-space:normal;border-bottom:0}.order-editor-grid>tbody>tr>td::before,.warehouse-line-table.document-grid>tbody>tr>td::before{content:attr(data-mobile-label);display:block;font-size:12px;color:#66747c;margin-bottom:6px}.order-editor-grid>tbody>tr>td:nth-child(2),.warehouse-line-table.document-grid>tbody>tr>td:nth-child(2){grid-column:1/-1;grid-row:1;border-bottom:1px solid #e8edef}.order-editor-grid>tbody>tr>td:first-child,.warehouse-line-table.document-grid>tbody>tr>td:first-child{grid-column:1/-1;display:flex;align-items:center;gap:10px;background:#f6f8fa}.order-editor-grid>tbody>tr>td:first-child::before,.warehouse-line-table.document-grid>tbody>tr>td:first-child::before{display:none}.order-fullscreen #new-order-form table.order-editor-grid input[type=number],.warehouse-line-table.document-grid input[type=number]{height:44px!important;background:white!important;border:1px solid #c6d2d8!important;padding:8px}.order-fullscreen #new-order-form table.order-editor-grid td:nth-child(3) input{width:calc(100% - 34px)}.order-editor-grid tfoot,.warehouse-line-table.document-grid tfoot{display:block}.order-editor-grid tfoot tr,.warehouse-line-table.document-grid tfoot tr,.order-editor-grid tfoot td,.warehouse-line-table.document-grid tfoot td{display:block;width:100%;padding:8px 0}.order-entry-controls label{flex-basis:100%;min-width:0}.order-row-grip,.warehouse-row-grip{opacity:1!important;min-width:36px!important;min-height:44px!important}.order-editor-grid td button,.warehouse-line-table td button{min-height:44px!important}.document-name{white-space:normal!important}.document-name img{max-width:44px}.order-selection-bar{flex-wrap:wrap}
  .site-header{padding:12px 16px}.nav{gap:8px;justify-content:flex-start!important;overflow-x:auto;flex-wrap:nowrap!important}.nav a{white-space:nowrap;min-height:44px;display:flex;align-items:center}.store-main{padding:24px 12px}.store-layout{gap:16px}.store-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.store-product-wrapper{max-width:none}.store-product{padding:10px;height:100%}.store-product h3{font-size:14px}.store-product img{max-width:100%}.store-product-wrapper>button{width:100%;white-space:normal;padding:10px 5px}.store-search{flex-wrap:wrap}.store-search>*{min-width:0}.product-detail,.product-info{gap:20px}.product-summary h1{font-size:24px;overflow-wrap:anywhere}.product-actions,.hero-actions{flex-wrap:wrap}.spec-row{gap:12px;font-size:13px}.cart-dialog{padding:16px}.cart-row{min-width:0}.cart-row>*{min-width:0}.hero h1{font-size:40px}.hero-media{min-height:280px}.completed-project{padding:18px}.contact-item{min-width:0}.object-attachment-menu{max-width:calc(100vw - 40px);flex-wrap:wrap}.object-form.object-messenger{gap:6px}.object-chat-messages{max-height:55dvh}.object-messenger textarea{font-size:16px}
  body:has(.team-chat) .admin-main{padding:8px}.team-chat{display:block!important;height:calc(100dvh - 156px)!important;min-height:300px!important}.chat-directory{height:100%;border-right:0;padding:16px!important}.chat-directory h2{font-size:20px!important}.chat-person{padding:12px!important;gap:12px!important;min-height:64px}.chat-avatar{width:40px!important;height:40px!important}.chat-person strong{font-size:15px!important}.chat-person small{display:block!important}.chat-conversation{display:none!important;height:100%}.team-chat.chat-mobile-conversation .chat-directory{display:none}.team-chat.chat-mobile-conversation .chat-conversation{display:flex!important}.chat-mobile-back{display:inline-flex;align-items:center;justify-content:center;float:left;margin-right:10px;width:44px;height:44px;padding:0;font-size:24px}.chat-conversation>header{min-height:70px;padding:12px!important}#chat-compose{padding:10px!important;gap:8px!important;padding-bottom:max(10px,env(safe-area-inset-bottom))!important}#chat-text{order:0!important;flex-basis:auto!important;min-height:44px}#chat-compose button{width:40px!important;height:44px!important}#chat-compose{flex-wrap:nowrap!important}.chat-bubble{max-width:92%!important}#chat-messages{padding:12px!important}
}

/* Desktop navigation is already visible; only mobile needs a menu toggle. */
@media (min-width: 701px) {
  .management-header button.mobile-menu-toggle { display: none !important; }
}

@media (max-width:700px) {
  .mobile-bottom-nav > .management-profile {
    display:flex;flex-direction:column;justify-content:center;align-items:center;
    gap:2px;height:56px;min-height:56px;padding:2px;line-height:1.1;
  }
  .mobile-bottom-nav > .management-profile .profile-avatar {
    flex:0 0 22px;width:22px;height:22px;min-width:22px;
  }
  .mobile-bottom-nav > .management-profile .profile-caption {
    display:flex;flex-direction:column;align-items:center;gap:1px;
    width:100%;max-width:100%;min-width:0;text-align:center;
  }
  .mobile-bottom-nav .profile-caption > span {width:100%;font-size:10px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-bottom-nav .profile-caption .profile-position {width:100%;font-size:9px;line-height:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-bottom-nav .profile-position[hidden] {display:none}
}
