.m-app,.m-nav{display:none}
@media screen{
 :root{--m-bg:#f3f6fa;--m-green:#176d65;--m-text:#1c3440;--m-muted:#71818d}
 body.mobile-shell{background:var(--m-bg);padding:0 0 calc(86px + env(safe-area-inset-bottom));color:var(--m-text)}
 .mobile-shell #portal-tools,.mobile-shell #workspace>.layout,.mobile-shell .pwa-launcher{display:none!important}
 .mobile-shell[data-appview=inventory] #workspace>.layout{display:block!important}
 .mobile-shell[data-appview=inventory] aside{display:none}
 .mobile-shell[data-appview=inventory] main{padding:0 16px 20px}
 .m-app:not([hidden]){display:block;min-height:calc(100dvh - 86px)}
 .m-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:15px;background:#fff;padding:calc(18px + env(safe-area-inset-top)) 20px 17px;border-bottom:1px solid #e9edf0}
 .mobile-shell .table-hint{display:none}
 .m-header small{display:block;font-size:10px;letter-spacing:1.6px;color:#7a8b91;font-weight:700}
 .m-header strong{display:block;font-size:19px;letter-spacing:-.3px;margin-top:5px;line-height:1.3}
 .m-header-refresh{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:10px;border:1px solid #e2eae5;border-radius:14px;background:#f7faf8}
 .m-app svg,.m-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
 .m-page{padding:20px 16px 24px}
 .m-page:empty{padding:0}
 .m-hero{border:0;border-radius:23px;background:linear-gradient(135deg,#1d796f,#164e4c);color:#fff;padding:23px 22px;box-shadow:0 8px 20px #175f591a}
 .m-hero>p{font-size:10px;letter-spacing:1.5px;color:#b9d9d2;font-weight:650;margin:0 0 10px}
 .m-hero h1{font-size:24px;line-height:1.25;margin:0 0 10px;max-width:260px;color:#fff;letter-spacing:-.6px}
 .m-hero>span{font-size:13px;color:#d2e7df;display:block}
 .m-create{display:flex;align-items:center;justify-content:center;gap:8px;background:#fff;border:0;border-radius:13px;color:#176d65;min-height:48px;margin-top:22px;padding:10px 17px;font-size:14px;font-weight:700;width:100%}
 .m-create svg{width:20px;height:20px}
 .m-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 27px}
 .m-stats button{border:1px solid #e2e9ed;border-radius:17px;background:#fff;min-width:0;padding:15px 6px;text-align:center;box-shadow:0 2px 5px #153e3b04}
 .m-stats strong{font-size:25px;line-height:1.1;display:block;color:#226e66}
 .m-stats span{display:block;font-size:11px;color:#7a8a91;margin-top:8px}
 .m-section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:23px 0 13px}
 .m-section-title h2{font-size:17px;letter-spacing:-.3px;margin:0}
 .m-text-button{border:0;background:none;font-size:11px;font-weight:600;padding:5px 0;min-height:30px;color:#287b70}
 .m-process-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 9px}
 .m-process-tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;border:0;background:#fff;border-radius:17px;padding:16px 6px 12px;min-height:109px;box-shadow:0 1px 6px #233e5010}
 .m-process-tile>span:last-child{font-size:11px;line-height:1.4;max-width:95px;font-weight:600;text-align:center}
 .m-tile-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#e7f3ed;color:#2c806d}
 .m-tile-icon.g2{background:#e9f0fe;color:#4c79bd}.m-tile-icon.g3{background:#fff3e2;color:#b78a41}.m-tile-icon.g4{background:#efecfa;color:#8b6eb9}.m-tile-icon.g5{background:#e9f4fa;color:#4d90aa}.m-tile-icon.g6{background:#e7f6ef;color:#218b66}.m-tile-icon.g7{background:#fbecee;color:#b47882}
 .m-records{display:grid;gap:11px}
 .m-record{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e0e8eb;border-radius:17px;padding:15px 16px;box-shadow:0 2px 6px #193b4910}
 .m-record-top{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:10px}
 .m-record-top small{font-size:9px;color:#8a9b9f;overflow-wrap:anywhere}
 .m-badge{display:inline-block;white-space:nowrap;background:#ebf4ee;color:#327657;border-radius:20px;padding:4px 8px;font-size:9px}
 .m-record strong{display:block;font-size:14px;line-height:1.4}.m-record p{font-size:12px;color:#70828b;margin:6px 0}.m-record>small{display:block;font-size:10px;color:#73848e}.m-record.late{border-color:#e1aaa2}.m-badge.late{background:#ffebe6;color:#b54f3d}
 .m-empty{text-align:center;color:#7a8e98;font-size:13px;padding:24px 15px;background:#fff;border:1px dashed #d4e0e5;border-radius:16px;margin:0}
 .m-page-title{font-size:25px;line-height:1.25;margin:2px 0 10px;letter-spacing:-.6px}.m-subtitle{font-size:13px;color:#71838e;margin:0 0 20px}
 .m-chips{display:flex;gap:7px;overflow:auto;padding:5px 0 12px;scrollbar-width:none}.m-chips button{white-space:nowrap;background:#fff;border:1px solid #dce5e8;border-radius:22px;padding:8px 13px;font-size:12px;min-height:39px}.m-chips button.active{background:#176d65;border-color:#176d65;color:#fff}
 .m-search{width:100%;margin:2px 0 17px;padding:12px 14px;background:#fff;border:1px solid #dae4e8;border-radius:13px;font-size:15px}
 .m-menu{background:#fff;border:1px solid #e2e9ec;border-radius:18px;overflow:hidden;margin:14px 0}.m-menu-row{width:100%;display:flex;align-items:center;gap:12px;background:#fff;border:0;border-bottom:1px solid #edf1f4;border-radius:0;text-align:left;padding:16px 14px;min-height:78px}.m-menu-row:last-child{border-bottom:0}.m-menu-icon{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;background:#eef5f1;color:#327d6f;border-radius:12px}.m-menu-row>span:nth-child(2){flex:1;min-width:0}.m-menu-row strong{display:block;font-size:14px;line-height:1.35}.m-menu-row small{display:block;font-size:10px;color:#8a9a9f;margin-top:5px}.m-menu-row>svg{width:18px;color:#a5b4b8}
 .m-back{display:flex;align-items:center;gap:6px;border:0;background:none;padding:0 0 12px;font-size:12px;color:#588579}.m-back svg{width:17px}
 .m-flow{display:flex;align-items:center;gap:6px;overflow:auto;padding:12px;border:1px solid #dfe8e3;border-radius:12px;background:#fff;margin:15px 0;font-size:10px}.m-flow>span{flex-shrink:0;max-width:125px;line-height:1.4}.m-flow-arrow{color:#84a59b}
 .m-guide{padding:12px 14px;background:#eaf2ee;border-radius:12px;margin:14px 0;font-size:12px;color:#41685f}.m-guide summary{font-weight:650;cursor:pointer}.m-guide strong{display:block;margin:16px 0 5px}.m-guide p{margin:6px 0}
 .m-profile{background:#fff;border:1px solid #e0e9e5;border-radius:21px;padding:25px 18px;text-align:center;margin-bottom:22px}.m-avatar{display:grid;place-items:center;width:67px;height:67px;background:#e2f0e8;color:#287764;border-radius:24px;font-size:23px;font-weight:700;margin:0 auto 15px}.m-profile h1{font-size:22px;margin:5px 0}.m-profile p{font-size:13px;color:#6c8681;margin:5px 0}.m-profile small{font-size:11px;color:#879791}
 .m-nav:not([hidden]){position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#fff;border-top:1px solid #e1e9ed;padding:9px 4px calc(9px + env(safe-area-inset-bottom));z-index:18;box-shadow:0 -4px 16px #24475206}
 .m-nav-item{position:relative;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;background:transparent;border:0;border-radius:12px;color:#92a0a8;padding:6px 1px;font-size:9px;min-height:55px;line-height:1.2}.m-nav-item svg{width:22px;height:22px}.m-nav-item.active{color:#176d65;font-weight:700}.m-nav-create svg{width:40px;height:40px;background:#176d65;color:#fff;border-radius:15px;padding:9px;margin-top:-15px;box-shadow:0 4px 10px #176d6530}.m-nav-create span{color:#2a6c61}.m-nav-badge{position:absolute;top:1px;left:calc(50% + 4px);font-size:8px;min-width:16px;padding:2px 4px;background:#d76b58;color:#fff;border:2px solid white;border-radius:15px}
 .m-toast{position:fixed;bottom:calc(92px + env(safe-area-inset-bottom));left:15px;right:15px;z-index:20;background:#fff1dc;color:#806240;border:1px solid #e6cba1;padding:11px 14px;border-radius:12px;font-size:12px}.m-toast[hidden]{display:none}
 .mobile-shell .pwa-status{bottom:calc(90px + env(safe-area-inset-bottom))}
 .mobile-shell #detail{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0 16px calc(20px + env(safe-area-inset-bottom));background:#f7faf8;overflow:auto}
 .mobile-shell .modal-head{position:sticky;top:0;background:#f7faf8;z-index:3;margin:0 -16px;padding:calc(15px + env(safe-area-inset-top)) 16px 13px;border-bottom:1px solid #e0e9e4}.mobile-shell .modal-head h2{font-size:20px;line-height:1.3}.mobile-shell .modal-head .eyebrow{font-size:9px;letter-spacing:.4px}.mobile-shell #close{border:1px solid #dce5df;border-radius:12px;background:#fff;min-width:42px;height:42px;padding:3px;font-size:24px}
 .mobile-shell #detail-body{padding-top:12px}.mobile-shell #detail-body .fields{display:grid;grid-template-columns:1fr;gap:13px}.mobile-shell #detail-body label{font-size:12px;color:#527267}.mobile-shell #detail-body input,.mobile-shell #detail-body select,.mobile-shell #detail-body textarea{font-size:16px;max-width:100%;border-radius:11px;min-height:44px}.mobile-shell #detail-body h3{font-size:16px}
 .mobile-shell .tablewrap{overflow:visible}.mobile-shell .m-form-table{display:block;min-width:0;width:100%;border:0}.mobile-shell .m-form-table thead{display:none}.mobile-shell .m-form-table tbody{display:grid;gap:13px}.mobile-shell .m-form-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;background:white;border:1px solid #dbe6df;border-radius:15px;padding:14px;min-width:0}.mobile-shell .m-form-table td{display:block;border:0;padding:0;min-width:0;font-size:14px}.mobile-shell .m-form-table td:first-child{grid-column:1/-1}.mobile-shell .m-form-table td::before{content:attr(data-label);display:block;color:#81958b;font-size:10px;line-height:1.3;margin-bottom:5px;text-align:left}.mobile-shell .m-form-table input,.mobile-shell .m-form-table select{min-width:0!important;width:100%;background:#f3f7f4;padding:9px;border:1px solid #e4ece7!important}.mobile-shell .m-form-table td.no-print{grid-column:1/-1;text-align:right}.mobile-shell .m-form-table td.no-print::before{display:none}.mobile-shell .m-form-table td.no-print button{min-height:35px;padding:5px 12px;color:#b56a5b;background:#fff6f1;border:0}
 .mobile-shell #detail-body .actions{display:flex;flex-wrap:wrap;gap:8px;padding:13px 0;background:#f7faf8}.mobile-shell #detail-body .actions button{flex:1 1 42%;min-height:45px;border-radius:12px;font-size:13px}.mobile-shell #detail-body .actions button.primary{flex-basis:100%}
 .mobile-shell #detail-body .upload-row{display:flex;flex-wrap:wrap}.mobile-shell #detail-body .upload-row input{width:100%;font-size:13px}.mobile-shell .history{padding-left:0}.mobile-shell .handoff-box{border-radius:13px;font-size:12px}
 .auth{min-height:100dvh;background:linear-gradient(165deg,#e0eee6,#f5f8f4 52%);padding:40px 18px 95px}.auth-card{width:100%;max-width:440px;padding:29px 25px;border:0;border-radius:25px;box-shadow:0 12px 45px #1c5c4c0e}.auth-card .brand{font-size:32px}.auth-card h1{font-size:27px;margin-top:27px}.auth-card input{border-radius:12px;min-height:49px;font-size:16px}.auth-card .primary{border-radius:13px;min-height:50px;font-size:16px}.auth-card .note{font-size:11px;border-radius:10px}.pwa-launcher button{font-size:12px}
}
@media screen{.mobile-shell #inventory-area .tablewrap{overflow:auto}}
@media print{.m-app,.m-nav{display:none!important}.mobile-shell #workspace>.layout{display:block!important}.mobile-shell #detail{position:static;height:auto;max-height:none;overflow:visible;inset:auto}.mobile-shell .m-form-table{display:table!important}.mobile-shell .m-form-table thead{display:table-header-group!important}.mobile-shell .m-form-table tbody{display:table-row-group!important}.mobile-shell .m-form-table tr{display:table-row!important;border:0}.mobile-shell .m-form-table td{display:table-cell!important}.mobile-shell .m-form-table td::before{display:none!important}}
