:root{
  --m79-navy:#102747;--m79-deep:#07172f;--m79-blue:#164bff;--m79-blue2:#3b6cff;
  --m79-ink:#171c25;--m79-muted:#667085;--m79-line:#dce4ef;--m79-soft:#f4f7fb;
  --m79-green:#168a55;--m79-amber:#b86600;--m79-red:#c92a2a;--m79-purple:#6e49d8;
  --m79-shadow:0 10px 30px rgba(16,39,71,.09);--m79-safe-bottom:env(safe-area-inset-bottom,0px)
}
.v79-mobile-appbar,.v79-bottom-nav,.v79-fab,.v79-quick-sheet,.v79-nav-overlay,.v79-offline{display:none}
@media(max-width:900px){
  html{background:#eef2f7;scroll-behavior:smooth}body.mobile-v3{background:#f5f7fb;color:var(--m79-ink);overflow-x:hidden;font-size:14px}
  body.mobile-v3 *{box-sizing:border-box}body.mobile-v3 a{-webkit-tap-highlight-color:transparent}
  body.mobile-v3 .app-shell{display:block;min-height:100dvh}
  body.mobile-v3 .main{margin-left:0!important;padding:78px 12px calc(94px + var(--m79-safe-bottom))!important;max-width:768px;min-height:100dvh;margin-inline:auto!important;overflow:visible}
  body.mobile-v3 .topbar{display:none!important}
  body.mobile-v3 .sidebar.v16-sidebar{display:block!important;position:fixed;left:0;top:0;bottom:0;width:min(332px,88vw);z-index:110;transform:translateX(-106%);transition:transform .22s ease;padding-top:78px;border-radius:0 24px 24px 0;box-shadow:24px 0 60px rgba(2,10,27,.28)}
  body.mobile-v3.nav-open .sidebar.v16-sidebar{transform:translateX(0)}
  body.mobile-v3 .sidebar .brand{position:absolute;top:10px;left:14px;right:14px;margin:0;min-height:54px}
  body.mobile-v3 .sidebar .brand img{width:48px;height:48px}
  body.mobile-v3 .v79-nav-overlay{display:block;position:fixed;inset:0;background:rgba(3,11,30,.52);z-index:105;backdrop-filter:blur(2px)}
  body.mobile-v3 .v79-nav-overlay[hidden]{display:none}
  .v79-mobile-appbar{display:flex;align-items:center;gap:9px;position:fixed;top:0;left:0;right:0;height:66px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));background:linear-gradient(135deg,#102747,#173b9b 70%,#164bff);color:#fff;z-index:100;box-shadow:0 6px 20px rgba(10,33,91,.25)}
  .v79-appbar-button{position:relative;width:42px;height:42px;flex:0 0 42px;border:1px solid rgba(255,255,255,.19);border-radius:13px;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;text-decoration:none;font-size:22px;font-weight:900;padding:0}
  .v79-appbar-logo{width:42px;height:42px;border-radius:50%;object-fit:contain;filter:drop-shadow(0 0 8px rgba(255,255,255,.16))}
  .v79-appbar-copy{min-width:0;flex:1}.v79-appbar-copy b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}.v79-appbar-copy small{display:block;color:#dce6ff;font-size:9px;text-transform:uppercase;letter-spacing:.08em;margin-top:2px}
  .v79-appbar-badge{position:absolute;right:-3px;top:-3px;min-width:18px;height:18px;border-radius:999px;background:#f04438;border:2px solid #173b9b;display:grid;place-items:center;font-size:8px}
  .v79-bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;height:72px;padding:6px 8px calc(5px + var(--m79-safe-bottom));background:rgba(255,255,255,.98);border-top:1px solid #d8e1ed;z-index:98;box-shadow:0 -8px 26px rgba(16,39,71,.08);justify-content:space-around}
  .v79-bottom-nav a{position:relative;flex:1;min-width:0;display:grid;place-items:center;align-content:center;gap:2px;color:#6f7b8f;text-decoration:none;font-size:10px;font-weight:850;border-radius:12px}
  .v79-bottom-nav a span{font-size:21px;line-height:23px}.v79-bottom-nav a b{font-size:10px}.v79-bottom-nav a.active{color:#143ec5;background:#eef3ff}.v79-bottom-nav a.active:before{content:"";position:absolute;top:-7px;width:28px;height:3px;background:#1748e8;border-radius:999px}
  .v79-fab{display:grid;position:fixed;right:16px;bottom:calc(84px + var(--m79-safe-bottom));width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#1644ea,#1e5fff);border:2px solid #fff;color:#fff;place-items:center;font-size:29px;z-index:99;box-shadow:0 12px 28px rgba(22,68,234,.34)}
  .v79-quick-sheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:125;background:#fff;border-radius:24px 24px 0 0;padding:8px 16px calc(22px + var(--m79-safe-bottom));box-shadow:0 -22px 60px rgba(3,11,30,.28);max-height:78dvh;overflow:auto}
  .v79-quick-sheet[hidden]{display:none}.v79-sheet-handle{width:48px;height:5px;border-radius:99px;background:#d8dee8;margin:2px auto 12px}.v79-quick-sheet header{display:flex;align-items:center;justify-content:space-between}.v79-quick-sheet h2{margin:0;font-size:20px}.v79-sheet-close{width:40px;height:40px;border:0;border-radius:12px;background:#eef2f7;font-size:24px}.v79-quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:12px}.v79-quick-grid a{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid var(--m79-line);border-radius:15px;text-decoration:none;color:#17315c;background:#fbfdff}.v79-quick-grid a span{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#eaf0ff;color:#1748e8;font-size:20px}
  .v79-offline{display:block;position:fixed;left:12px;right:12px;top:76px;z-index:130;background:#fff4df;border:1px solid #f0cf94;border-radius:13px;padding:10px 12px;color:#81510b;font-weight:800;box-shadow:var(--m79-shadow)}.v79-offline[hidden]{display:none}

  /* Shared page rhythm */
  body.mobile-v3 h1{font-size:25px;line-height:1.08;letter-spacing:-.035em}body.mobile-v3 h2{font-size:18px}body.mobile-v3 h3{font-size:15px}
  body.mobile-v3 .alert{border-radius:14px;margin:0 0 10px;padding:11px 12px;font-size:12px}
  body.mobile-v3 .card,body.mobile-v3 .v59-card,body.mobile-v3 .v60-card,body.mobile-v3 .v71-card,body.mobile-v3 .v75-panel{border-radius:18px!important;padding:13px!important;box-shadow:0 7px 22px rgba(16,39,71,.055)!important;margin-bottom:10px}
  body.mobile-v3 .hero-panel,body.mobile-v3 .v59-hero,body.mobile-v3 .v71-hero,body.mobile-v3 .v75-hero{border-radius:19px!important;padding:16px!important;display:block!important;margin-bottom:11px!important}
  body.mobile-v3 .hero-panel h2,body.mobile-v3 .v59-hero h2,body.mobile-v3 .v71-hero h1,body.mobile-v3 .v71-hero h2,body.mobile-v3 .v75-hero h1{font-size:23px!important}
  body.mobile-v3 .hero-actions,body.mobile-v3 .v59-actions,body.mobile-v3 .v71-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}
  body.mobile-v3 .btn,body.mobile-v3 button,body.mobile-v3 input[type=submit]{min-height:44px;border-radius:12px;font-weight:900}
  body.mobile-v3 input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.mobile-v3 select,body.mobile-v3 textarea{width:100%;min-height:44px;border-radius:12px;font-size:16px!important;padding:10px 11px!important}
  body.mobile-v3 textarea{min-height:90px}body.mobile-v3 label{gap:5px}
  body.mobile-v3 input[type=checkbox],body.mobile-v3 input[type=radio]{width:22px;height:22px;accent-color:var(--m79-blue)}
  body.mobile-v3 .form-row,body.mobile-v3 .form-grid,body.mobile-v3 .v71-form-grid,body.mobile-v3 .grid-2,body.mobile-v3 .grid-3,body.mobile-v3 .v71-grid,body.mobile-v3 .v71-grid-equal,body.mobile-v3 .v59-grid{grid-template-columns:1fr!important}
  body.mobile-v3 .v16-kpis,body.mobile-v3 .v71-kpis,body.mobile-v3 .v75-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.mobile-v3 .v16-kpi,body.mobile-v3 .v71-kpi,body.mobile-v3 .v75-kpi{min-height:92px!important;padding:11px!important;border-radius:16px!important}body.mobile-v3 .v16-kpi strong,body.mobile-v3 .v71-kpi b{font-size:24px!important}
  body.mobile-v3 .workflow-strip{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:7px;padding-bottom:4px}.workflow-strip a{min-width:145px;scroll-snap-align:start}
  body.mobile-v3 .v71-wrap,body.mobile-v3 .v59-wrap,body.mobile-v3 .v75-wrap{padding:0!important;max-width:none!important}
  body.mobile-v3 .tabs,body.mobile-v3 .v71-tabs,body.mobile-v3 .v75-tabs,body.mobile-v3 .v79-chip-row{display:flex;overflow-x:auto;flex-wrap:nowrap!important;gap:6px;padding-bottom:5px;scrollbar-width:none}.v71-tabs::-webkit-scrollbar,.v75-tabs::-webkit-scrollbar,.v79-chip-row::-webkit-scrollbar{display:none}
  body.mobile-v3 .tabs a,body.mobile-v3 .v71-tabs a,body.mobile-v3 .v75-tabs a,body.mobile-v3 .v79-chip-row a{white-space:nowrap;min-height:38px;display:flex;align-items:center;border-radius:999px!important}

  /* Mobile-designed Home / Work / More */
  .v79-mobile-hero{background:linear-gradient(135deg,#102747,#173fc7 72%,#2258ff);color:#fff;border-radius:20px;padding:16px;box-shadow:0 14px 32px rgba(18,55,173,.22);margin-bottom:12px}.v79-mobile-hero .eyebrow,.v79-page-intro .eyebrow{font-size:9px;text-transform:uppercase;letter-spacing:.13em;font-weight:950;margin:0 0 5px;color:#b9caff}.v79-mobile-hero h1{color:#fff;margin:0}.v79-mobile-hero>p{color:#dce6ff;margin:5px 0 12px}.v79-kpi-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.v79-kpi-strip a{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.17);border-radius:13px;padding:9px 4px;text-decoration:none;color:#fff;text-align:center}.v79-kpi-strip b{display:block;font-size:20px}.v79-kpi-strip span{font-size:8px;color:#eef3ff}
  .v79-section-head{display:flex;align-items:center;justify-content:space-between;margin:14px 2px 7px}.v79-section-head h2{margin:0;font-size:16px}.v79-section-head a{font-size:11px;font-weight:900;color:#1748e8;text-decoration:none}.v79-record-list{display:grid;gap:8px}.v79-record{display:grid;grid-template-columns:4px 1fr 18px;gap:9px;align-items:center;background:#fff;border:1px solid #dfe6f1;border-radius:16px;padding:11px;text-decoration:none;color:inherit;box-shadow:0 6px 18px rgba(16,39,71,.045)}.v79-record-bar{height:100%;min-height:50px;border-radius:99px;background:#1748e8}.v79-record.severity-critical .v79-record-bar{background:var(--m79-red)}.v79-record.severity-warning .v79-record-bar,.v79-record.severity-high .v79-record-bar{background:#e0a11b}.v79-record small{font-size:8px;color:#6d7890;text-transform:uppercase;font-weight:900}.v79-record h3{margin:2px 0}.v79-record p{margin:2px 0;color:#5f6d82;font-size:11px}.v79-record>b{font-size:25px;color:#1748e8}.v79-empty{text-align:center;padding:24px 12px;color:#667085;background:#fff;border:1px dashed #cbd5e1;border-radius:16px}
  .v79-page-intro{padding:3px 2px 8px}.v79-page-intro h1{margin:0}.v79-page-intro p{margin:5px 0;color:#667085}.v79-work-card{background:#fff;border:1px solid #dfe6f1;border-left:5px solid #1748e8;border-radius:16px;padding:12px;box-shadow:0 6px 18px rgba(16,39,71,.045)}.v79-work-card.severity-critical{border-left-color:var(--m79-red)}.v79-work-card.severity-warning,.v79-work-card.severity-high{border-left-color:#e0a11b}.v79-work-card header,.v79-work-card footer{display:flex;justify-content:space-between;align-items:center;gap:8px}.v79-work-card header span,.v79-work-card header b{font-size:9px;text-transform:uppercase}.v79-work-card header b{padding:4px 7px;border-radius:999px;background:#eef3ff;color:#1748e8}.v79-work-card h2{margin:8px 0 4px}.v79-work-card p{color:#59677d}.v79-work-card footer small{color:#667085}
  .v79-module-grid{display:grid;gap:8px}.v79-module-grid>a{display:grid;grid-template-columns:42px 1fr 18px;align-items:center;gap:10px;padding:11px;background:#fff;border:1px solid #dfe6f1;border-radius:16px;text-decoration:none;color:#1d2738}.v79-module-grid>a>span{width:42px;height:42px;border-radius:13px;background:#eaf0ff;color:#1748e8;display:grid;place-items:center;font-weight:950}.v79-module-grid b,.v79-module-grid small{display:block}.v79-module-grid small{color:#667085;font-size:10px;margin-top:2px}.v79-module-grid strong{font-size:22px;color:#1748e8}.v79-view-switch{background:#fff;border:1px solid #dfe6f1;border-radius:18px;padding:13px;margin-top:12px}.v79-view-switch h2{margin-top:0}.v79-view-switch>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}

  /* Convert standard desktop tables to accessible mobile record cards */
  body.mobile-v3 table.v79-mobile-table,body.mobile-v3 table.v79-mobile-table tbody,body.mobile-v3 table.v79-mobile-table tr,body.mobile-v3 table.v79-mobile-table td{display:block;width:100%}
  body.mobile-v3 table.v79-mobile-table thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
  body.mobile-v3 table.v79-mobile-table{border:0!important;background:transparent!important}.v79-mobile-table tr{background:#fff;border:1px solid #dce5ef;border-radius:15px;padding:9px 11px;margin:0 0 8px;box-shadow:0 5px 16px rgba(16,39,71,.04)}
  body.mobile-v3 .v79-mobile-table td{display:grid!important;grid-template-columns:minmax(105px,38%) 1fr;gap:8px;padding:7px 0!important;border-bottom:1px solid #edf1f6!important;text-align:left!important;overflow-wrap:anywhere}.v79-mobile-table td:last-child{border-bottom:0!important}.v79-mobile-table td:before{content:attr(data-label);font-size:9px;font-weight:950;text-transform:uppercase;color:#667085}.v79-mobile-table td[colspan]:before{display:none}.v79-mobile-table td[colspan]{display:block!important}
  body.mobile-v3 .table-wrap{overflow:visible!important}

  /* High-value workflow adaptations */
  body.mobile-v3 .calendar-grid,body.mobile-v3 .v65-calendar-grid,body.mobile-v3 .v66-calendar-grid{min-width:760px}.route-calendar .table-wrap,body.mobile-v3.route-calendar .v65-calendar-scroll{overflow-x:auto!important;scroll-snap-type:x proximity;padding-bottom:8px}
  body.mobile-v3 .v52-layout,body.mobile-v3 .v52-job-layout,body.mobile-v3 .v68-job-layout{grid-template-columns:1fr!important}.route-job_sheet .v52-mobile-shell{max-width:none!important}.route-job_sheet .v52-job-hero{border-radius:18px!important}.route-job_sheet .v52-sticky-actions,.route-job_sheet .v71-sticky-actions{bottom:72px!important;z-index:85;border-radius:16px 16px 0 0}
  body.mobile-v3 .v68-stock-grid,body.mobile-v3 .v68-overview-grid,body.mobile-v3 .v68-kpis{grid-template-columns:1fr 1fr!important}.route-stock .v68-stock-grid{grid-template-columns:1fr!important}
  body.mobile-v3 .v75-action-grid,body.mobile-v3 .v75-engineer-grid{grid-template-columns:1fr!important}
  body.mobile-v3 details summary{min-height:44px;display:flex;align-items:center}
  body.mobile-v3 .v63-recipient-grid,body.mobile-v3 .v74-staff-grid{grid-template-columns:1fr!important}
  .v79-cron-fields{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.v79-cron-fields span{background:#f4f7fb;border:1px solid #dce5ef;border-radius:10px;padding:7px 3px;text-align:center;font-size:9px}.v79-cron-fields b{display:block;font-size:14px}.v79-command{display:block;white-space:pre-wrap;overflow-wrap:anywhere;background:#07172f;color:#e8eeff;border-radius:12px;padding:10px;font-size:10px}

  /* Prevent horizontal overflow from historical modules */
  body.mobile-v3 img,body.mobile-v3 svg,body.mobile-v3 video,body.mobile-v3 canvas{max-width:100%}body.mobile-v3 pre,body.mobile-v3 code{max-width:100%;overflow:auto}body.mobile-v3 [style*="min-width"]{max-width:100%}
}
@media(max-width:420px){
  body.mobile-v3 .main{padding-left:9px!important;padding-right:9px!important}.v79-mobile-appbar{padding-left:9px;padding-right:9px}.v79-kpi-strip{grid-template-columns:repeat(2,1fr)}.v79-quick-grid{grid-template-columns:1fr}.v79-view-switch>div{grid-template-columns:1fr}.v79-appbar-logo{display:none}
  body.mobile-v3 .v16-kpis,body.mobile-v3 .v71-kpis,body.mobile-v3 .v75-kpis{grid-template-columns:1fr 1fr!important}
}
@media(min-width:901px){body.desktop-v3 .v79-mobile-appbar,body.desktop-v3 .v79-bottom-nav,body.desktop-v3 .v79-fab,body.desktop-v3 .v79-quick-sheet,body.desktop-v3 .v79-offline{display:none!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:900px){
  html.login-mobile body.login{background:linear-gradient(155deg,#07172f,#1236b7 54%,#f4f7fb 54%);min-height:100dvh;padding:20px 12px}
  html.login-mobile .login-wrap{min-height:calc(100dvh - 40px);align-items:center}
  html.login-mobile .login-card{width:min(100%,430px);border-radius:24px;padding:22px 18px;box-shadow:0 22px 60px rgba(3,11,30,.24)}
  html.login-mobile .login-card input{min-height:48px;border-radius:13px;font-size:16px}
  html.login-mobile .login-card button{min-height:50px;border-radius:14px}
  html.login-mobile .login-logo{width:120px;max-height:88px;object-fit:contain}
}
