/* Desktop keeps its dense workspace. Mobile gets a persistent thumb-level menu. */
.mobile-bottom-nav{display:none}.mobile-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(560px,100%);max-width:100%;max-height:min(85dvh,calc(var(--mobile-viewport-height,100dvh) - 20px));padding:0 16px calc(18px + env(safe-area-inset-bottom));border:1px solid #e0e7ed;border-radius:22px 22px 0 0;background:#fff;overflow:auto;overscroll-behavior:contain;box-shadow:0 -8px 50px #0b263c24}.mobile-sheet::backdrop{background:#10202f73;backdrop-filter:blur(2px)}.mobile-sheet-handle{width:40px;height:4px;border-radius:4px;background:#d8e0e6;margin:10px auto 5px}.mobile-sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:4px 0 12px}.mobile-sheet-heading h2{font-size:19px;margin:0}.mobile-sheet-heading .icon-btn{min-width:44px;min-height:44px;align-items:center;justify-content:center}.mobile-sheet-body{display:grid;gap:14px}.mobile-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mobile-action-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;min-height:144px;min-width:0;overflow-wrap:anywhere;border:1px solid #dce8ef;background:#f6fafc;border-radius:14px;padding:14px;text-align:left;font-size:14px;font-weight:600;line-height:1.4}.mobile-action-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#e8f4fc;color:#087ab8;flex:none}.mobile-action-icon>svg{width:22px;height:22px}.mobile-action-copy{display:grid;gap:5px;min-width:0}.mobile-action-copy>strong{font-size:14px;font-weight:650;line-height:1.3}.mobile-action-copy>small{display:block;font-size:12px;font-weight:400;line-height:1.4;color:#627582}.mobile-action-tile:hover,.mobile-section-link:hover{background:#eef8fe}.mobile-action-tile:active{background:#dff1fb}.mobile-empty{grid-column:1/-1;margin:0;color:var(--muted);padding:12px 0;line-height:1.5}.mobile-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}.mobile-section-link{display:flex;align-items:center;gap:10px;min-height:52px;width:100%;padding:10px 6px;text-align:left;border-radius:9px;font-size:14px;line-height:1.35}.mobile-section-link>span{flex:1}.mobile-section-link>svg:first-child{color:#417088}.mobile-section-link>svg:last-child{width:14px;color:#78909f}.mobile-section-link[aria-current=page]{background:#e8f6ff;color:#066caa;font-weight:650}.mobile-sheet-preferences{border-top:1px solid var(--line);padding-top:6px}
@media(max-width:800px){
 html{scroll-padding-bottom:calc(92px + env(safe-area-inset-bottom))}body.mobile-app-ready{--mobile-nav-height:70px}body.mobile-app-ready .workspace{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom))}body.mobile-app-ready .content{padding:16px 12px 24px;max-width:100%;overflow-wrap:anywhere}body.mobile-app-ready .content.order-list-content{padding:12px}body.mobile-app-ready .topbar{position:sticky;top:0;z-index:21;height:60px;gap:8px;padding:0 max(12px,env(safe-area-inset-left)) 0 max(12px,env(safe-area-inset-left));background:#ffffffed;backdrop-filter:blur(12px)}body.mobile-app-ready .breadcrumb{min-width:0;gap:4px}body.mobile-app-ready .breadcrumb>b{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.mobile-app-ready .breadcrumb>.mobile-menu,body.mobile-app-ready .breadcrumb>svg{display:none}body.mobile-app-ready .top-tools{gap:4px;flex:none}body.mobile-app-ready .top-tools>[data-action=profile-language],body.mobile-app-ready .top-tools>svg{display:none}body.mobile-app-ready .top-tools select{max-width:116px;min-height:44px;font-size:13px;padding:5px}body.mobile-app-ready .top-tools .profile{border:0;min-height:44px;min-width:44px;padding:5px}body.mobile-app-ready .sidebar{display:none}
 .mobile-bottom-nav{position:fixed;z-index:40;inset:auto 0 0;display:grid;grid-template-columns:repeat(var(--mobile-nav-columns,5),minmax(0,1fr));align-items:center;gap:2px;min-height:var(--mobile-nav-height,70px);padding:6px max(4px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));background:#ffffffed;backdrop-filter:blur(14px);border-top:1px solid #e0e8ee;box-shadow:0 -4px 20px #193f5010}.mobile-nav-item{position:relative;min-width:0;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 1px;border-radius:12px;color:#667984;font-size:11px;font-weight:600;line-height:1.2}.mobile-nav-item>svg{width:22px;height:22px}.mobile-nav-item>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-nav-item.active{color:#0675b7;background:#eff8fe}.mobile-nav-item.active>svg{stroke-width:2}.mobile-nav-item>b{position:absolute;right:10px;top:1px;min-width:18px;height:18px;padding:2px 4px;border:2px solid #fff;border-radius:9px;color:#fff;background:#0577b9;font-size:9px;line-height:10px;text-align:center}.mobile-nav-item>b[hidden]{display:none}.mobile-nav-create{justify-self:center;display:grid;place-items:center;width:52px;height:52px;min-height:52px;padding:0;border-radius:17px;background:var(--brand-gradient,linear-gradient(130deg,#21bed9,#0675c7));color:white;box-shadow:0 5px 12px #087dbd2a}.mobile-nav-create>svg{width:28px;height:28px;stroke-width:2}.mobile-nav-create:active{transform:scale(.97)}body.mobile-keyboard-open .mobile-bottom-nav{display:none}body.mobile-keyboard-open .workspace{padding-bottom:8px}
 body.mobile-app-ready .btn,body.mobile-app-ready .btn.small,body.mobile-app-ready .icon-btn,body.mobile-app-ready .tabs button,body.mobile-app-ready .settings-nav button{min-height:44px}body.mobile-app-ready .icon-btn{min-width:44px;align-items:center;justify-content:center}body.mobile-app-ready input:not([type=checkbox]):not([type=radio]):not([type=color]),body.mobile-app-ready select,body.mobile-app-ready textarea{min-height:44px;font-size:16px}body.mobile-app-ready .checks label,body.mobile-app-ready .assignment-check,body.mobile-app-ready .list-check{min-height:44px}body.mobile-app-ready input[type=checkbox],body.mobile-app-ready input[type=radio]{min-width:20px;min-height:20px;width:20px;height:20px;flex:none}body.mobile-app-ready .table-wrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}body.mobile-app-ready .toolbar{gap:10px}body.mobile-app-ready .page-head{gap:12px;margin-bottom:14px}body.mobile-app-ready .page-head h1{font-size:23px}body.mobile-app-ready .tabs{max-width:100%;overflow:auto;scrollbar-width:thin}body.mobile-app-ready .page-head>.actions{gap:8px}body.mobile-app-ready .modal-body .row{grid-template-columns:1fr}body.mobile-app-ready dialog:not(.mobile-sheet){max-height:calc(var(--mobile-viewport-height,100dvh) - 16px);width:calc(100% - 16px);max-width:100%;border-radius:16px}body.mobile-app-ready dialog.stock-product-drawer,body.mobile-app-ready dialog.assignment-drawer,body.mobile-app-ready dialog.freight-drawer{width:100%;max-height:var(--mobile-viewport-height,100dvh);border-radius:0;height:var(--mobile-viewport-height,100dvh)}body.mobile-app-ready .modal-head{padding:12px 14px;gap:8px}body.mobile-app-ready .modal-head h2{font-size:18px}body.mobile-app-ready .modal-body{padding:14px;gap:14px}body.mobile-app-ready .modal-foot{position:sticky;bottom:0;z-index:3;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#f7f9faf5;backdrop-filter:blur(8px)}body.mobile-app-ready .modal-foot .btn{min-height:46px;flex:1}body.mobile-app-ready .sku-layout{display:block;padding:16px}body.mobile-app-ready .sku-layout aside{border-left:0;border-top:1px solid var(--line);padding:16px 0 0;margin-top:16px}body.mobile-app-ready .sku-layout .detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}body.mobile-app-ready .sku-layout .detail-meta dd{overflow-wrap:anywhere}body.mobile-app-ready .freight-drawer .modal-body{max-height:calc(var(--mobile-viewport-height,100dvh) - 85px)}body.mobile-app-ready #toasts{left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom))}body.mobile-app-ready .toast{max-width:100%;padding:12px 15px}body.mobile-keyboard-open #toasts{bottom:12px}body.mobile-app-ready .task-inbox{max-width:calc(100% - 24px);right:12px;bottom:calc(82px + env(safe-area-inset-bottom))}
 body.mobile-simple .btn,body.mobile-simple .btn.small,body.mobile-simple .icon-btn,body.mobile-simple .tabs button,body.mobile-simple .settings-nav button{min-height:52px;font-size:15px}body.mobile-simple .icon-btn{min-width:52px}body.mobile-simple input:not([type=checkbox]):not([type=radio]):not([type=color]),body.mobile-simple select{min-height:52px}body.mobile-simple textarea{min-height:100px}body.mobile-simple .mobile-action-tile{min-height:160px;font-size:16px}body.mobile-simple .mobile-action-copy>strong{font-size:16px}body.mobile-simple .mobile-action-copy>small{font-size:13px}body.mobile-simple .mobile-section-grid{grid-template-columns:1fr}body.mobile-simple .mobile-section-link{min-height:58px;font-size:16px}body.mobile-simple .mobile-nav-item{font-size:12px;min-height:56px}body.mobile-simple .topbar .profile{min-height:48px}body.mobile-simple .metric{padding:16px;border-radius:14px}body.mobile-simple .metric strong{font-size:26px}body.mobile-simple .metric-foot{line-height:1.5}body.mobile-simple .page-head>div>p,body.mobile-simple .footnote{display:none}
}
@media(max-width:360px){.mobile-section-grid{grid-template-columns:1fr}.mobile-nav-item{font-size:10px}}
@media print{.mobile-bottom-nav,.mobile-sheet{display:none!important}body.mobile-app-ready .workspace{padding-bottom:0}}
@media(max-width:800px){body.mobile-app-ready .product-link,body.mobile-app-ready a.text-link,body.mobile-app-ready button.text-link{min-height:44px;display:inline-flex;align-items:center}body.mobile-app-ready .mobile-checkbox-hit{display:inline-flex;align-items:center;justify-content:center;width:44px;min-height:44px;margin:-8px}}
@media(min-width:801px){.mobile-checkbox-hit{display:contents}}

/* Order cards keep their full form, including submit actions, in the page flow. */
@media(max-width:800px){
 body.mobile-app-ready .order-workspace{min-width:0;--order-gap:12px}
 body.mobile-app-ready .order-top-grid{grid-template-columns:minmax(0,1fr);align-items:start}
 body.mobile-app-ready .order-top-grid>div{min-width:0}
 body.mobile-app-ready .order-activity>.panel{display:flex;flex-direction:column;height:auto;max-height:none}
 body.mobile-app-ready .order-activity .order-comment-feed{flex:none;min-height:0;max-height:240px;padding:8px 14px}
 body.mobile-app-ready .order-comment-empty{margin:14px 0;font-size:13px}
 body.mobile-app-ready .order-activity .order-comment-composer{display:block;height:auto;min-height:0;max-height:none;margin-top:0;padding:14px;border-left:0;border-top:1px solid var(--line)}
 body.mobile-app-ready .order-workspace #comment-form{display:grid;gap:10px;width:100%;min-width:0}
 body.mobile-app-ready .order-workspace #comment-form textarea{height:112px;min-height:112px;max-height:240px;font-size:16px;line-height:1.45;padding:10px 12px;resize:vertical}
 body.mobile-app-ready .order-workspace #comment-form .actions{display:flex;margin:0;min-width:0}
 body.mobile-app-ready .order-workspace #comment-form [data-action=comment]{width:100%;min-height:44px;font-size:14px;white-space:normal}
 body.mobile-app-ready .order-workspace #comment-form .form-error:empty{display:none}
 :root[data-theme] body.mobile-app-ready .order-workspace .panel-head{min-height:50px;padding:12px 14px;gap:10px}
 body.mobile-app-ready .order-workspace .panel-head h2{font-size:15px;line-height:1.3}
 body.mobile-app-ready .order-workspace .panel-body{padding:14px}
 body.mobile-app-ready .order-workspace .order-overview .order-overview-body{padding:14px}
 body.mobile-app-ready .order-toolbar{gap:8px;margin-bottom:12px}
 body.mobile-app-ready .order-toolbar h1{font-size:20px}
 body.mobile-app-ready .order-toolbar>.actions{flex-basis:100%;display:flex;gap:8px;margin:0}
 body.mobile-app-ready .order-toolbar>.actions>.btn{flex:1;white-space:normal;font-size:13px}
 body.mobile-app-ready .order-status{min-width:0;flex:1}
 body.mobile-app-ready .order-status select{min-height:44px}
 body.mobile-app-ready .order-workspace .summary-line{font-size:13px;line-height:1.45;padding:6px 0}
 body.mobile-app-ready .order-workspace .summary-line>span:first-child{min-width:0;overflow-wrap:anywhere}
 body.mobile-app-ready .order-finance-actions{display:flex;gap:8px;padding:12px 14px}
 body.mobile-app-ready .order-finance-actions>.btn{flex:1 1 140px;white-space:normal}
 body.mobile-app-ready .order-workspace .order-intake-editors{grid-template-columns:minmax(0,1fr);gap:14px}
 body.mobile-app-ready .order-workspace .order-intake-editors :is(input:not([type=checkbox]),textarea){height:auto;min-height:44px;font-size:16px;line-height:1.4;padding:10px 12px}
 body.mobile-app-ready .order-workspace .order-intake-editors textarea{min-height:96px}
 body.mobile-app-ready .order-workspace .order-intake-editors .repair-fault textarea{height:44px;min-height:44px;max-height:none}
 body.mobile-app-ready.mobile-simple .order-workspace .order-intake-editors .repair-fault textarea{height:52px;min-height:52px}
 body.mobile-app-ready .order-workspace .repair-equipment-checks{gap:6px 12px}
 body.mobile-app-ready .order-workspace .repair-equipment-checks label{font-size:13px;min-height:44px}
 body.mobile-app-ready .order-workspace .order-secondary{grid-template-columns:minmax(0,1fr)}
 body.mobile-app-ready .order-workspace :is(.order-contacts,.order-card-form) label,body.mobile-app-ready .order-workspace .detail-meta dt{font-size:12px}
 body.mobile-app-ready .order-workspace .detail-meta dd{font-size:14px}
 body.mobile-app-ready .order-workspace .order-overview-facts dd{font-size:13px}
 body.mobile-app-ready .order-workspace .order-composer-sku-control{flex-wrap:wrap}
 body.mobile-app-ready .order-workspace .order-composer-sku-control input{flex:1 1 180px}
 body.mobile-app-ready .order-workspace .order-composer-sku-control>.btn{min-height:44px}
 body.mobile-app-ready.mobile-simple .order-workspace :is(.btn,input:not([type=checkbox]):not([type=radio]),select){min-height:52px;font-size:16px}
 body.mobile-app-ready.mobile-simple .order-workspace #comment-form [data-action=comment]{min-height:52px;font-size:16px}
}

.mobile-freight-search{display:grid;gap:7px;font-size:13px;color:var(--muted)}.mobile-freight-search input{width:100%;min-width:0}.mobile-freight-list{display:grid;gap:8px}.mobile-freight-choice{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;border:1px solid var(--line);border-radius:12px;padding:12px;text-align:left;background:#f6fafc}.mobile-freight-choice>span:nth-child(2){flex:1;display:grid;gap:5px;min-width:0}.mobile-freight-choice strong,.mobile-freight-choice small{overflow-wrap:anywhere}.mobile-freight-choice strong{font-size:15px;line-height:1.4}.mobile-freight-choice small{font-size:12px;color:var(--muted)}.mobile-freight-choice>svg{flex:none;width:16px}.mobile-freight-choice:hover{background:#eef8fe}.mobile-freight-choice:active{background:#dff1fb}

/* Phone workspace: a clear reading order, stable action areas and one scroll pane. */
@media screen and (max-width:800px){
 html:root[data-theme] body.mobile-app-ready{--mobile-nav-height:68px}
 html:root[data-theme] body.mobile-app-ready .content{padding:14px 12px 24px}
 html:root[data-theme] body.mobile-app-ready .topbar{height:58px;padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right));gap:8px}
 html:root[data-theme] body.mobile-app-ready .topbar .breadcrumb>b{font-size:16px;line-height:1.25}
 html:root[data-theme] body.mobile-app-ready .topbar .top-tools select{font-size:14px;max-width:130px}
 html:root[data-theme] body.mobile-app-ready .topbar .profile{width:44px;height:44px;padding:4px;border:0;background:transparent}
 html:root[data-theme] body.mobile-app-ready .topbar .profile .profile-name{display:none}
 html:root[data-theme] body.mobile-app-ready .page-head{align-items:flex-start;gap:12px;margin-bottom:16px}
 html:root[data-theme] body.mobile-app-ready .page-head h1{font-size:23px;line-height:1.25;letter-spacing:-.4px}
 html:root[data-theme] body.mobile-app-ready .page-head p{font-size:13px;line-height:1.5;margin-top:5px}
 html:root[data-theme] body.mobile-app-ready .page-head>.actions{width:100%;display:flex;flex-wrap:wrap;gap:8px}
 html:root[data-theme] body.mobile-app-ready .page-head>.actions>.btn{flex:1 1 132px;min-width:0;white-space:normal;line-height:1.3}
 html:root[data-theme] body.mobile-app-ready .panel{border-radius:14px}
 html:root[data-theme] body.mobile-app-ready .panel-head{padding:12px 14px;gap:10px;min-height:52px}
 html:root[data-theme] body.mobile-app-ready .panel-head h2{font-size:16px;line-height:1.3}
 html:root[data-theme] body.mobile-app-ready .panel-body{padding:14px}
 html:root[data-theme] body.mobile-app-ready .tabs{scroll-padding-inline:12px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 html:root[data-theme] body.mobile-app-ready .tabs>button{flex:none;min-height:44px;font-size:13px;white-space:nowrap;padding:10px 14px}
 html:root[data-theme] body.mobile-app-ready .inventory-section-header{display:flex;flex-wrap:wrap;gap:10px;padding-bottom:10px}
 html:root[data-theme] body.mobile-app-ready .inventory-section-header>.tabs{flex:1 0 100%;width:100%}
 html:root[data-theme] body.mobile-app-ready .inventory-section-header>.inventory-header-actions{padding:0;margin-left:auto;display:flex;flex-wrap:wrap;gap:8px}
 html:root[data-theme] body.mobile-app-ready .warehouse-selection{display:flex;gap:8px 10px;margin-bottom:14px;align-items:center}
 html:root[data-theme] body.mobile-app-ready .warehouse-selection>strong{font-size:16px;line-height:1.35}
 html:root[data-theme] body.mobile-app-ready .warehouse-selection>.actions{flex-basis:100%;display:flex;gap:8px;margin:0}
 html:root[data-theme] body.mobile-app-ready .warehouse-selection>.actions>.btn{flex:1;min-width:0;white-space:normal}
 html:root[data-theme] body.mobile-app-ready .warehouse-overview-search{display:grid;gap:8px;margin-bottom:12px}
 html:root[data-theme] body.mobile-app-ready .warehouse-overview-search label{width:100%}
 html:root[data-theme] body.mobile-app-ready .warehouse-tiles{grid-template-columns:minmax(0,1fr);gap:10px}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile{padding:14px;gap:12px;border-radius:14px}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile-name strong{font-size:16px}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile-total{font-size:28px;gap:8px}
 html:root[data-theme] body.mobile-app-ready .warehouse-tile-bottom{padding-top:10px;font-size:12px}
 /* Every modal uses its existing body as the scroll container. The submit row
    stays reachable while the camera/keyboard changes the usable viewport. */
 html:root[data-theme] body.mobile-app-ready #modal[open]{display:flex;flex-direction:column;overflow:hidden;width:calc(100% - 16px);max-width:620px;max-height:calc(var(--mobile-viewport-height,100dvh) - 16px);border-radius:18px}
 html:root[data-theme] body.mobile-app-ready #modal>form{display:flex;flex-direction:column;min-height:0;max-height:calc(var(--mobile-viewport-height,100dvh) - 16px)}
 html:root[data-theme] body.mobile-app-ready #modal>.modal-body,
 html:root[data-theme] body.mobile-app-ready #modal>form>.modal-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:12px;padding:14px;gap:14px}
 html:root[data-theme] body.mobile-app-ready #modal .modal-head{position:relative;top:auto;flex:none;padding:12px 14px;gap:12px;min-height:68px;box-sizing:border-box;background:var(--surface)}
 html:root[data-theme] body.mobile-app-ready #modal .modal-head h2{font-size:18px;line-height:1.3;min-width:0;overflow-wrap:anywhere}
 html:root[data-theme] body.mobile-app-ready #modal .modal-head>.icon-btn{width:44px;min-width:44px;height:44px;padding:10px}
 html:root[data-theme] body.mobile-app-ready #modal .modal-foot{position:relative;bottom:auto;flex:none;display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px max(12px,env(safe-area-inset-bottom));background:var(--surface);box-shadow:0 -3px 12px #132a4308}
 html:root[data-theme] body.mobile-app-ready #modal .modal-foot>.btn{flex:1 1 100px;min-width:0;min-height:46px;font-size:14px;line-height:1.35;white-space:normal;justify-content:center}
 html:root[data-theme] body.mobile-app-ready #modal .modal-foot>.btn[type=submit]{flex:2 1 150px}
 html:root[data-theme] body.mobile-app-ready #modal .modal-foot>.form-error{flex:1 0 100%;margin:0;max-height:96px;overflow:auto;font-size:13px;line-height:1.4}
 html:root[data-theme] body.mobile-app-ready #modal .modal-body>label,
 html:root[data-theme] body.mobile-app-ready #modal .modal-body .row>label{font-size:13px;line-height:1.4;gap:6px}
 html:root[data-theme] body.mobile-app-ready #modal .modal-body .row{grid-template-columns:minmax(0,1fr);gap:14px}
 html:root[data-theme] body.mobile-app-ready #modal :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px;min-height:44px;max-width:100%;box-sizing:border-box}
 html:root[data-theme] body.mobile-app-ready #modal :is(input:not([type=checkbox]):not([type=radio]),textarea):focus{scroll-margin-block:16px}
 html:root[data-theme] body.mobile-app-ready #modal textarea{line-height:1.45}
 html:root[data-theme] body.mobile-keyboard-open #modal[open]{position:fixed;top:calc(var(--mobile-viewport-top,0px) + 8px);bottom:auto;margin-block:0}
 html:root[data-theme] body.mobile-app-ready .mobile-sheet{background:var(--surface);border-color:var(--line)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-tile{background:var(--surface-2);border-color:var(--line);color:var(--text);min-height:128px;padding:12px;gap:10px}
 html:root[data-theme] body.mobile-app-ready .mobile-action-copy>small{color:var(--muted)}
 html:root[data-theme] body.mobile-app-ready .mobile-action-tile:active{background:var(--surface-selected)}
 html:root[data-theme] body.mobile-app-ready .mobile-section-link{color:var(--text);font-size:14px}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item{font-size:11px;min-height:52px}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item.active{background:var(--surface-selected);color:var(--accent)}
 html:root[data-theme] body.mobile-app-ready .mobile-nav-item:focus-visible,
 html:root[data-theme] body.mobile-app-ready .mobile-nav-create:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
 html:root[data-theme] body.mobile-app-ready .stock-scan-dialog .stock-scan-selection{padding:12px;border-radius:12px;background:var(--surface-2)}
 html:root[data-theme] body.mobile-app-ready .stock-scan-dialog .stock-scan-items{max-height:min(30dvh,240px);overscroll-behavior:contain}
 html:root[data-theme] body.mobile-app-ready .stock-scan-items>li{padding:10px 0;font-size:14px;gap:8px}
 html:root[data-theme] body.mobile-app-ready .stock-scan-items small{font-size:12px;line-height:1.4}
 html:root[data-theme] body.mobile-app-ready .stock-scan-items .icon-btn{min-width:44px;min-height:44px;width:44px;height:44px}
 html:root[data-theme] body.mobile-app-ready .stock-scan-dialog .stock-scan-status{font-size:13px;line-height:1.45}
 html:root[data-theme] body.mobile-app-ready .stock-scan-extra>summary{display:flex;align-items:center;min-height:44px;font-size:14px;color:var(--accent);list-style:revert}
 html:root[data-theme] body.mobile-app-ready :is(.remote-sku-options,.sku-autocomplete-options,.inventory-product-options){overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 html:root[data-theme] body.mobile-app-ready .remote-sku-options>.btn{padding:12px;min-height:56px;align-items:flex-start;flex-wrap:wrap;font-size:14px;line-height:1.4}
 html:root[data-theme] body.mobile-app-ready .remote-sku-options>.btn>span{flex-basis:100%;font-size:12px}
 html:root[data-theme] body.mobile-app-ready .lookup-pages>.btn{min-height:44px;padding:8px 12px}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-overview-columns{grid-template-columns:minmax(0,1fr)}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-comment-feed{max-height:300px;line-height:1.5}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-comment-body{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-composer-modes{min-height:48px;height:48px}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-composer-fields{gap:10px}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-composer-options button{min-height:56px;padding:12px;line-height:1.4}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-composer-options strong{font-size:14px}
 html:root[data-theme] body.mobile-app-ready .order-workspace .order-composer-options small{font-size:12px}
 html:root[data-theme] body.mobile-app-ready #main.content.order-overlay-content{inset:8px 8px calc(var(--mobile-nav-height,68px) + env(safe-area-inset-bottom) + 8px);padding:12px 12px 20px;scrollbar-gutter:auto;border-radius:16px}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-toolbar{top:-12px;margin:-12px -12px 12px;padding:12px 62px 12px 12px}
 html:root[data-theme] body.mobile-app-ready #main.order-overlay-content .order-overlay-close{top:10px;right:10px;width:44px;height:44px;min-width:44px}
 html:root[data-theme] body.mobile-app-ready.order-overlay-open .mobile-bottom-nav{z-index:72}
 html:root[data-theme] body.mobile-keyboard-open #main.content.order-overlay-content{top:calc(var(--mobile-viewport-top,0px) + 8px);bottom:auto;height:calc(var(--mobile-viewport-height,100dvh) - 16px);box-sizing:border-box}
 html:root[data-theme] body.mobile-app-ready :is(button,a,input,select,textarea){-webkit-tap-highlight-color:transparent}
 html:root[data-theme] body.mobile-app-ready :is(button,a){touch-action:manipulation}
 html:root[data-theme] body.mobile-app-ready .btn:active:not(:disabled){filter:brightness(.94)}
}
@media screen and (max-width:360px){
 html:root[data-theme] body.mobile-app-ready .topbar .top-tools select{max-width:112px;font-size:13px}
 html:root[data-theme] body.mobile-app-ready #modal .modal-foot>.btn{font-size:13px;padding-inline:10px}
 html:root[data-theme] body.mobile-app-ready .order-toolbar>.actions{flex-wrap:wrap}
}
@media screen and (prefers-reduced-motion:reduce){
 .mobile-nav-create:active{transform:none}
}

/* Serial editing needs the full phone width; the save action is a separate row. */
@media screen and (max-width:800px){
 html:root[data-theme] body.mobile-app-ready .sku-detail-dialog .detail-meta>div:has(#sku-serial-form){grid-column:1/-1;min-width:0}
 html:root[data-theme] body.mobile-app-ready .sku-detail-dialog .sku-serial-fields{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}
 html:root[data-theme] body.mobile-app-ready .sku-detail-dialog .sku-serial-fields>.mobile-scan-control{flex:1 0 100%;width:100%}
 html:root[data-theme] body.mobile-app-ready .sku-detail-dialog .sku-serial-fields>button[type=submit]{margin-left:auto;min-height:44px}
}
