/* TruckPacks V1.70 - phone version styles (see mobile.js). Everything here is scoped to
   html.is-mobile-device (set before first paint by the inline <head> script) except the small
   desktop "Send to Phone" dialog and the "Phone version" return button. */

/* ---------- desktop extras ---------- */
#mobileApp{display:none}
.tp-share-dialog .tp-share-text{color:var(--muted);font-size:16.5px;line-height:1.5;margin:12px 0}
.tp-share-link{width:100%;background:#0e0f12;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px;font:13px/1.35 ui-monospace,Menlo,monospace;resize:none;word-break:break-all}
.tp-share-actions{flex-wrap:wrap}.tp-share-actions .button{text-decoration:none;display:inline-flex;align-items:center}
.tp-share-note{margin-top:10px;color:var(--muted)}
.tp-back-to-mobile{position:fixed;left:12px;bottom:12px;z-index:70;border:1px solid var(--line);background:#1b1c1f;color:var(--text);border-radius:999px;padding:12px 16px;font-size:16px;font-weight:800;box-shadow:0 8px 30px rgba(0,0,0,.5)}

/* ---------- phone shell ---------- */
html.is-mobile-device{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html.is-mobile-device body{background:var(--bg);padding:0 0 calc(92px + env(safe-area-inset-bottom));min-height:100dvh;overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}
html.is-mobile-device body>header.site-header,html.is-mobile-device body>main.page-shell,html.is-mobile-device body>footer.site-footer,html.is-mobile-device #mobileGate{display:none!important}
html.is-mobile-device #mobileApp{display:block;font-size:15px;color:var(--text);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
html.is-mobile-device .footer-mantra{margin-top:10px}
#mobileApp button{font:inherit;color:inherit}
#mobileApp input,#mobileApp select{font-size:16px}

.m-top{display:flex;align-items:center;gap:8px;padding:calc(6px + env(safe-area-inset-top)) 8px 6px;background:#0d0e10;border-bottom:1px solid var(--line)}
.m-logo{width:34px;height:34px;object-fit:contain;flex:0 0 auto}
.m-steps{display:flex;gap:4px;flex:1;min-width:0}
.m-step{flex:1;min-width:0;border:1px solid var(--line);background:#16171a;border-radius:8px;padding:7px 2px;font-size:13.5px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.m-step b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#2a2b30;font-size:11px}
.m-step.on{background:var(--accent);border-color:var(--accent);color:#fff}.m-step.on b{background:rgba(0,0,0,.25)}
.m-top-actions{display:flex;gap:4px;margin-left:auto}
.m-icon{width:38px;height:38px;border-radius:9px;border:1px solid var(--line);background:#16171a;font-size:18px;font-weight:800;display:grid;place-items:center;padding:0;flex:0 0 auto}
.m-top-title{display:flex;flex-direction:column;min-width:0;flex:1}.m-top-title b{font-size:15px;letter-spacing:.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-top-title span{font-size:11.5px;color:var(--muted)}

.m-main{padding:10px 10px 0}
.m-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:10px}
.m-card-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}.m-card-head h3{font-size:17px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-num{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--accent);font-weight:900;font-size:14px}
.m-field{display:flex;flex-direction:column;gap:4px;margin-bottom:9px;min-width:0}
.m-field span{font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.m-field input,.m-field select{width:100%;min-width:0;background:#0e0f12;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px;height:44px}
.m-field input:focus,.m-field select:focus{outline:2px solid var(--accent);outline-offset:0;border-color:transparent}
.m-dims{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.m-dims2{grid-template-columns:1fr 1fr}
.m-micro{font-size:12.5px;color:var(--muted);line-height:1.45}
.m-pad{padding:0 4px 8px}
.m-warn{margin:-4px 0 10px;font-size:12.5px;font-weight:700;color:var(--warn);line-height:1.4}
.m-warn summary{font-weight:800;cursor:pointer}.m-warn p{margin-top:6px;line-height:1.45;color:var(--muted)}
.m-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:10px;border:1px solid var(--line);background:#1b1c1f;padding:12px 14px;font-weight:900;font-size:15px;min-height:46px;text-decoration:none;color:var(--text);letter-spacing:.02em}
.m-btn:disabled{opacity:.45}
.m-btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.m-btn-ghost{background:transparent}
.m-btn-danger{background:transparent;border-color:#7f1d1d;color:#fca5a5}
.m-wide{width:100%}
.m-row2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:6px}
.m-link{background:none;border:0;color:#93c5fd;text-decoration:underline;padding:4px;font-weight:700}
.m-link-danger{background:none;border:0;color:#fca5a5;text-decoration:underline;font-weight:700;padding:6px}
.m-empty{padding:26px 16px;text-align:center;color:var(--muted);line-height:1.6;border:1px dashed var(--line);border-radius:12px}
.m-error{border-color:#7f1d1d}
.m-hero{padding:14px 12px 16px;border:1px solid var(--line);border-radius:12px;margin-bottom:10px;background:linear-gradient(160deg,#1c1012,#121316 60%)}
.m-hero h1{font-size:23px;line-height:1.15;margin-bottom:6px}.m-hero p{color:var(--muted);line-height:1.5;margin-bottom:12px;font-size:14.5px}.m-hero p b{color:var(--text)}
.m-hero .m-btn{width:100%}
.m-foot{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(10,10,11,.96);border-top:1px solid var(--line);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.m-foot-note{display:block;text-align:center;font-size:11.5px;color:var(--muted);margin-top:5px}
.m-banner{display:flex;align-items:center;gap:6px;background:#172033;border:1px solid #2c3f63;color:#dbeafe;border-radius:10px;padding:6px 4px 6px 10px;margin-bottom:10px;font-size:12.5px;line-height:1.35}
.m-banner>span{flex:1}.m-banner button{border:0;background:transparent;font-size:20px;padding:4px 8px;color:#dbeafe}
.m-banner .m-banner-cta{font-size:13px;font-weight:900;background:#2563eb;border-radius:8px;padding:8px 10px}
.m-share-ico{display:inline-block;border:1px solid #93c5fd;border-radius:4px;padding:0 4px;font-size:11px}

/* ---------- case sheet ---------- */
.m-sheet-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;text-align:center}
.m-sheet-sum b{display:block;font-size:19px}.m-sheet-sum span{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.m-sheet-sum .m-bad b{color:var(--danger)}
.m-case-list{display:flex;flex-direction:column;gap:7px;padding-bottom:10px}
.m-case-card{display:flex;align-items:flex-start;gap:9px;width:100%;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:10px}
.m-case-card.m-invalid{border-color:#7f1d1d;background:#1a1012}
.m-cc-idx{flex:0 0 auto;min-width:22px;color:var(--muted);font-size:12px;font-weight:800;padding-top:2px}
.m-cc-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.m-cc-main b{font-size:15.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-cc-main em{font-style:normal;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-cc-dims{font-size:12.5px;color:#cbd5e1}.m-cc-miss{font-size:12px;color:#fca5a5;font-weight:700}
.m-loc{flex:0 0 auto;font-size:10.5px;font-weight:900;letter-spacing:.05em;border-radius:6px;padding:4px 6px;max-width:92px;text-align:center;line-height:1.2}
.m-loc-dock{background:#2a2b30;color:#e5e7eb}.m-loc-planner{background:#1e3a5f;color:#bfdbfe}.m-loc-truck{background:#14532d;color:#bbf7d0}
.m-form-actions{display:flex;gap:8px;margin-top:12px}.m-form-actions .m-btn{flex:1;padding:12px 6px}
.m-where{font-size:14px;color:#cbd5e1;background:#0e0f12;border:1px solid var(--line);border-radius:8px;padding:10px;margin-bottom:8px;line-height:1.45}

/* ---------- pack ---------- */
.m-packmain{padding:8px 8px 0}
.m-trucksel{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;color:var(--muted);font-weight:700;padding:0 2px 6px}
.m-colhead{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);text-align:center;background:rgba(10,10,11,.97);padding:6px 0;margin:0 -8px;border-bottom:1px solid #1f2024}
.m-colhead>div{min-width:0}.m-colhead b{display:block;font-size:12px;letter-spacing:.08em;white-space:nowrap}.m-colhead span{display:block;font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-colhead em{font-style:normal;color:#d9ff47;font-weight:800}
.m-hint{font-size:12.5px;color:var(--muted);text-align:center;padding:6px 6px 0;line-height:1.35}
.m-trucks{display:flex;justify-content:center;align-items:flex-start;padding-top:4px;padding-bottom:12px}
.m-col{display:flex;flex-direction:column;align-items:center}
.m-endlabel{font-size:10px;font-weight:900;letter-spacing:.12em;color:#8b8f97;padding:4px 0}
.m-gutter{position:relative;width:30px;flex:0 0 30px;margin-top:22px}
.m-truck{position:relative;isolation:isolate;z-index:0;background:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px),#131416;background-size:12px 12px;box-shadow:0 0 0 2px #65717c;border-radius:10px 10px 3px 3px;overflow:hidden;touch-action:manipulation;cursor:pointer}
.m-center{position:absolute;top:0;bottom:0;left:50%;border-left:1px dashed rgba(255,255,255,.08);pointer-events:none}
.m-band{position:absolute;left:0;right:0;border-top:2px solid;border-bottom:1px dashed rgba(255,255,255,.18);background:rgba(255,255,255,.015);pointer-events:none;z-index:1}
.m-band span{position:absolute;right:2px;top:1px;font-size:8.5px;font-weight:900;color:rgba(255,255,255,.55);letter-spacing:.04em;z-index:60}
.m-aband.m-locked{background:rgba(95,211,155,.05)}
.m-case{position:absolute;border:1px solid rgba(0,0,0,.7);border-radius:3px;color:#080b0e;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);padding:1px;transition:box-shadow .15s}
.m-cn{display:block;font-weight:950;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;position:relative;z-index:3;pointer-events:none}
.m-cn.m-vert{writing-mode:vertical-rl;transform:rotate(180deg);max-height:100%;max-width:none}
.m-case.m-stacked{outline:2px solid rgba(255,255,255,.8);outline-offset:-3px}
.m-lvl{position:absolute;right:1px;top:1px;font-size:7.5px;font-weight:900;background:rgba(0,0,0,.65);color:#fff;border-radius:3px;padding:0 2px;z-index:4;pointer-events:none}
.m-wh{position:absolute;z-index:2;pointer-events:none;background:rgba(8,11,14,.78)}
.m-wh::before,.m-wh::after{content:'';position:absolute;width:calc(var(--wz) * .9);height:calc(var(--wz) * .9);border-radius:50%;background:#111;border:1.5px solid #d9e2ea;box-sizing:border-box}
.m-wh-top{left:0;right:0;top:0;height:var(--wz)}.m-wh-bottom{left:0;right:0;bottom:0;height:var(--wz)}
.m-wh-left{top:0;bottom:0;left:0;width:var(--wz)}.m-wh-right{top:0;bottom:0;right:0;width:var(--wz)}
.m-wh-top::before,.m-wh-bottom::before{left:12%;top:5%}.m-wh-top::after,.m-wh-bottom::after{right:12%;top:5%}
.m-wh-left::before,.m-wh-right::before{top:12%;left:5%}.m-wh-left::after,.m-wh-right::after{bottom:12%;left:5%}
.m-wh-top-face{inset:0;background:transparent}.m-wh-top-face::before{left:3px;top:3px}.m-wh-top-face::after{right:3px;bottom:3px}
.m-case.m-sel{box-shadow:0 0 0 3px #d9ff47,0 0 18px 4px rgba(217,255,71,.65);z-index:50!important;animation:mPulse 1.1s ease-in-out infinite}
@keyframes mPulse{50%{box-shadow:0 0 0 3px #d9ff47,0 0 6px 1px rgba(217,255,71,.35)}}
.m-case.m-flash{animation:mFlash .9s ease-out}
@keyframes mFlash{0%{box-shadow:0 0 0 4px #fff,0 0 24px 8px rgba(255,255,255,.8)}100%{box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}}
.m-armed .m-truck{box-shadow:0 0 0 2px #d9ff47}
.m-armed .m-actual .m-case.m-onlocked:not(.m-sel){box-shadow:inset 0 0 0 2px rgba(217,255,71,.9)}
.m-lockedfloor::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(45deg,transparent 0 5px,rgba(0,0,0,.08) 5px 7px);pointer-events:none}
.m-sec{position:absolute;left:0;right:0;height:0;z-index:45;pointer-events:none}
.m-sec-strap{border-top:2px dashed #22d3ee}.m-sec-bar{border-top:4px solid #e5e7eb;margin-top:-2px}.m-sec-both{border-top:4px solid #e5e7eb;margin-top:-2px;box-shadow:0 3px 0 -1px #22d3ee}
.m-sec span{position:absolute;left:2px;top:1px;font-size:8px;font-weight:900;color:#fff;background:rgba(0,0,0,.75);border-radius:3px;padding:0 3px}
.m-rowsend{position:absolute;left:2px;width:26px;height:30px;border-radius:8px;border:2px solid;background:#1b1c1f;font-size:15px;font-weight:900;line-height:1;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.m-rowsend small{font-size:8.5px;color:var(--muted)}
.m-chal{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;padding:0 0 6px}
.m-chal-done{font-weight:900;color:#d9ff47;letter-spacing:.08em;font-size:14px}
.m-chip{font-size:11.5px;font-weight:800;border:1px solid var(--line);border-radius:999px;padding:4px 8px;background:#16171a;color:#cbd5e1}
.m-chip.ok{border-color:#166534;background:#0f2a1a;color:#bbf7d0}

/* bottom bar */
.m-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;background:rgba(13,14,16,.97);border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom));backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.m-bar-btns{display:flex;gap:5px}
.m-bar-btns>button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:54px;border-radius:10px;border:1px solid var(--line);background:#1b1c1f;font-size:19px;line-height:1;padding:0 2px}
.m-bar-btns>button span{font-size:10.5px;font-weight:800;letter-spacing:.03em;white-space:nowrap}
.m-bar-btns>button span i{font-style:normal;background:var(--accent);color:#fff;border-radius:999px;padding:0 5px;margin-left:2px}
.m-bar-btns>button:disabled{opacity:.35}
.m-bar-btns>button.m-lockbtn:not(:disabled){background:#14532d;border-color:#16a34a}
.m-bar-btns>button.m-has{border-color:#6b7280}
.m-bar-sel{background:rgba(24,26,8,.98);border-top:2px solid #d9ff47}
.m-selinfo{padding:0 4px 6px;line-height:1.25}.m-selinfo b{font-size:14.5px;color:#d9ff47}.m-selinfo span{font-size:12px;color:#cbd5e1}.m-selinfo small{display:block;font-size:11.5px;color:var(--muted)}
.m-bar-btns>button.m-x{background:#2a1215;border-color:#7f1d1d}
.m-finish{position:fixed;left:10px;right:10px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:41;border:0;border-radius:12px;background:#16a34a;color:#fff;font-weight:900;font-size:17px;padding:14px;box-shadow:0 10px 30px rgba(0,0,0,.6);animation:mPulse2 1.4s infinite}
@keyframes mPulse2{50%{transform:scale(1.02)}}

/* dock drawer */
.m-dock{position:fixed;left:0;right:0;bottom:calc(67px + env(safe-area-inset-bottom));z-index:39;max-height:52dvh;display:flex;flex-direction:column;background:#101114;border-top:2px solid #6b7280;border-radius:14px 14px 0 0;box-shadow:0 -12px 40px rgba(0,0,0,.6);padding:8px 10px 10px}
.m-dock-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.m-dock-head b{font-size:13.5px;letter-spacing:.08em}
.m-dock-list{display:flex;flex-wrap:wrap;gap:6px;overflow-y:auto;padding:6px 2px 4px;align-content:flex-start}
.m-docktile{border:1px solid rgba(0,0,0,.7);border-radius:4px;background:#8b919a;color:#0b0d10;display:flex;align-items:center;justify-content:center;padding:2px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.m-docktile span{font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.m-docktile.m-sel{box-shadow:0 0 0 3px #d9ff47}

/* bottom sheets */
.m-sheet-back{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:80}
.m-sheet{position:fixed;left:0;right:0;bottom:0;z-index:81;background:#15161a;border-top:1px solid var(--line);border-radius:16px 16px 0 0;max-height:88dvh;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -20px 60px rgba(0,0,0,.6)}
.m-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--line)}.m-sheet-head b{font-size:16px}
.m-sheet-body{overflow-y:auto;padding:12px;-webkit-overflow-scrolling:touch}
.m-menu-item{display:block;width:100%;text-align:left;background:#1b1c1f;border:1px solid var(--line);border-radius:10px;padding:13px 12px;margin-bottom:7px;font-weight:800;font-size:15px;color:var(--text);text-decoration:none}
.m-menu-item small{display:block;font-weight:600;color:var(--muted);font-size:12px;margin-top:2px}
.m-menu-item.on{border-color:var(--accent)}
.m-legal{text-align:center;margin-top:8px}.m-legal a{color:var(--muted)}
.m-how{padding-left:20px;line-height:1.5;font-size:14.5px;display:grid;gap:8px;margin:0 0 12px}.m-how b{color:#fff}
.m-rowcard{border:1px solid var(--line);border-radius:11px;padding:10px;margin-bottom:8px;display:flex;flex-direction:column;gap:6px;background:#1b1c1f}
.m-rowcard.m-working{border-color:#16a34a}
.m-rowcard>span{font-size:13px;color:var(--muted)}
.m-rowbtns{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.m-rowbtns button{border:1px solid var(--line);background:#101114;border-radius:9px;padding:11px 6px;font-weight:900;font-size:13px}
.m-rowbtns .m-ghost{color:#fca5a5;border-color:#7f1d1d}
.m-chips{display:flex;flex-wrap:wrap;gap:6px}

/* loader mode */
.m-top-load{position:sticky;top:0;z-index:30}
.m-load-prog{font-weight:900;font-size:14px;color:#d9ff47;padding:0 6px}
.m-progress{height:6px;border-radius:99px;background:#26272c;overflow:hidden;margin-bottom:10px}.m-progress i{display:block;height:100%;background:#d9ff47}
.m-load-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:10px}
.m-eyebrow{font-size:12px;font-weight:900;letter-spacing:.12em;color:var(--accent)}
.m-load-card h2{font-size:26px;margin:4px 0 2px;line-height:1.1}
.m-load-desc{color:var(--muted);font-size:15px;margin-bottom:6px}
.m-load-facts{margin:8px 0 0;padding-left:18px;display:grid;gap:5px;font-size:14.5px;line-height:1.4}.m-load-facts b{color:#d9ff47}
.m-load-sec{border-color:#22d3ee}.m-load-done{text-align:center}.m-big{font-size:54px}
.m-load-truck{display:flex;flex-direction:column;align-items:center;padding-bottom:12px}
.m-case.m-cur{box-shadow:0 0 0 3px #fff,0 0 20px 6px rgba(217,255,71,.8);z-index:60!important}
.m-case.m-future{border:1px dashed rgba(255,255,255,.25);box-shadow:none;color:transparent}
.m-case.m-future .m-wh,.m-case.m-future .m-lvl{display:none}
.m-load-bar{display:flex;gap:8px}.m-load-bar .m-btn{flex:1}.m-load-bar .m-btn-primary{flex:2}

/* ---------- desktop dialogs and toast, re-fit for a phone ---------- */
html.is-mobile-device .toast{left:10px;right:10px;top:calc(8px + env(safe-area-inset-top));bottom:auto;pointer-events:none;font-size:14.5px;text-align:center;z-index:200;box-shadow:0 10px 30px rgba(0,0,0,.6)}
html.is-mobile-device dialog{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 24px);overflow:auto;margin:auto;font-size:15px}
html.is-mobile-device dialog .dialog-card{padding:14px}
html.is-mobile-device dialog h2{font-size:21px}html.is-mobile-device dialog h3{font-size:18px}
html.is-mobile-device dialog p,html.is-mobile-device dialog li{font-size:14.5px;line-height:1.45}
html.is-mobile-device dialog .eyebrow{font-size:12px}
html.is-mobile-device dialog .dialog-actions{flex-wrap:wrap;justify-content:stretch}
html.is-mobile-device dialog .dialog-actions .button{flex:1 1 auto;font-size:14.5px;padding:11px 10px}
html.is-mobile-device dialog .button{font-size:14.5px}
html.is-mobile-device dialog .dialog-x{font-size:28px;min-width:40px;min-height:40px}
html.is-mobile-device dialog input,html.is-mobile-device dialog select,html.is-mobile-device dialog textarea{font-size:16px}
html.is-mobile-device .pack-case-edit-dialog .pack-edit-layout,html.is-mobile-device .pack-case-edit-dialog .pack-edit-grid{display:block!important}
html.is-mobile-device .case-import-dialog table{font-size:12.5px}
html.is-mobile-device .case-import-dialog .case-import-review-wrap,html.is-mobile-device .case-import-dialog .table-wrap{overflow-x:auto}
html.is-mobile-device .pack-row-view-hub{display:grid!important;grid-template-columns:repeat(2,1fr);gap:6px;width:100%}
html.is-mobile-device .row-view-arrow{width:auto!important;height:auto!important;min-height:42px;border-radius:10px!important;font-size:12.5px!important;padding:8px 6px!important;position:static!important;transform:none!important}
html.is-mobile-device .toast.show{pointer-events:auto}

/* V1.71: How it works + FAQ (#siteInfo) - under the Setup screen on phones, under the app on desktop. */
html.is-mobile-device body:not(.m-on-setup) #siteInfo{display:none}
html.is-mobile-device #siteInfo{padding:6px 10px 10px;margin:0}
html.is-mobile-device #siteInfo .lp-section{margin:14px 0}
html.is-mobile-device #siteInfo h2{font-size:21px}html.is-mobile-device #siteInfo h3{font-size:16px}
html.is-mobile-device #siteInfo p,html.is-mobile-device #siteInfo li,html.is-mobile-device #siteInfo summary{font-size:14.5px;line-height:1.5}
html.is-mobile-device #siteInfo .lp-more-grid{grid-template-columns:1fr}
.m-trust{list-style:none;padding:0;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:5px}
.m-trust li{font-size:11.5px;font-weight:800;border:1px solid #2f3a2f;background:#132016;color:#bbf7d0;border-radius:999px;padding:4px 8px}
.m-trust li::before{content:'✓ '}
.m-hero .m-steps-line{font-size:13.5px}
.site-info{margin-top:24px}
.footer-domain{color:inherit;text-decoration:none;font-weight:700}
@media(min-width:1000px){#siteInfo .lp-steps{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* V1.73: flashing "Try the demo" bar at the top of Setup - blinks between solid lime and dark */
.m-demo-bar{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;padding:11px 12px;margin-bottom:10px;border-radius:12px;border:2px solid #d9ff47;background:#d9ff47;color:#111;font-weight:900;font-size:15.5px;letter-spacing:-.1px;text-align:center;text-decoration:none;line-height:1.2;white-space:nowrap;animation:mDemoFlash 2.6s ease-in-out infinite}
.m-demo-bar span{font-size:19px}
.m-demo-bar:active{transform:scale(.98)}
@media (max-width:370px){.m-demo-bar{font-size:14.5px;gap:6px;padding:10px 10px;white-space:normal}}
/* V1.75: slow, smooth glow instead of a hard blink */
@keyframes mDemoFlash{0%,100%{background:#c9ef3c;color:#111;box-shadow:0 0 0 0 rgba(217,255,71,0),0 0 6px 0 rgba(217,255,71,.25)}50%{background:#e4ff6e;color:#111;box-shadow:0 0 0 5px rgba(217,255,71,.18),0 0 22px 6px rgba(217,255,71,.45)}}
.m-colhead.m-stuck{padding-top:calc(6px + env(safe-area-inset-top))}
#mobileApp .m-instr-bar{font-family:inherit;font-weight:900;font-size:13px;min-height:36px;padding:7px 12px;border-radius:9px;width:fit-content;min-width:62%;margin:2px auto 8px;letter-spacing:.06em}
#mobileApp .m-instr-bar span{font-size:15px}
html.is-mobile-device .challenge-intro-dialog .dialog-card{max-height:calc(100dvh - 24px)}

/* V1.76: popups stay inside the iPhone safe area (the status bar / notch swallowed taps on the close X
   when TruckPacks runs from the home screen), and the header with the X stays visible while scrolling. */
html.is-mobile-device dialog{top:env(safe-area-inset-top);bottom:env(safe-area-inset-bottom);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)}
html.is-mobile-device .challenge-intro-dialog .dialog-card{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)}
html.is-mobile-device dialog .dialog-head{position:sticky;top:0;z-index:5;background:#15161a;margin:-14px -14px 8px;padding:14px 14px 6px}
html.is-mobile-device dialog .dialog-x{min-width:48px;min-height:48px;font-size:32px;color:#fff;position:relative;z-index:6}

/* V1.77: Case Editor view buttons - compact, symmetric 2x2, full label always fits */
html.is-mobile-device .pack-row-view .row-view-arrow{font-size:11.5px!important;letter-spacing:0;white-space:normal;padding:4px!important;min-height:40px!important}

/* V1.79: INSTRUCTIONS | ACTUAL PACK ROW EDITOR side by side (the red one sits over the Actual truck) */
#mobileApp .m-topbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:2px 0 8px}
#mobileApp .m-topbtns .m-instr-bar{width:100%;min-width:0;margin:0;font-size:12.5px;letter-spacing:.03em;padding:6px 6px}
#mobileApp .m-rowed-btn{min-height:36px;border-radius:9px;border:2px solid #ff5a64;background:#d61f2c;color:#fff;font:inherit;font-weight:900;font-size:11.5px;letter-spacing:.02em;line-height:1.15;padding:5px 6px;cursor:pointer}
#mobileApp .m-rowed-btn:active{transform:scale(.98)}
/* row picker popup on a phone */
html.is-mobile-device .row-pick-dialog .rp-row{min-height:48px}

/* V1.80: row buttons right behind the current row in the phone Actual truck */
#mobileApp .m-truckwrap{position:relative}
#mobileApp .m-rowact-pos{position:absolute;left:4px;right:4px;z-index:6}
#mobileApp .tp-rowact{min-width:0}
#mobileApp .tp-rowact button{font-size:11px;padding:7px 4px;white-space:normal;line-height:1.15}
#mobileApp .tp-rowact .tp-ra-lock{font-size:12.5px;padding:10px 4px}
#mobileApp .tp-rowact .tp-ra-trio{grid-template-columns:1fr}
#mobileApp .tp-rowact button{font-weight:900}

/* V1.82: room to scroll the row buttons into view when they are pushed below the truck */
#mobileApp .m-packmain{padding-bottom:190px}
#mobileApp .m-rowact-pos{transition:top .08s linear}
/* V1.90: column titles "... OVERHEAD VIEW" wrap onto two lines instead of being cut off */
#mobileApp .m-colhead b{white-space:normal;line-height:1.2;letter-spacing:.06em;padding:0 2px}
/* V1.94: phone road-case look (shares .road-case from styles.css; rail/cap sizes scale with the truck) */
#mobileApp .m-case.road-case{border:1px solid rgba(0,0,0,.6);border-radius:2px;box-shadow:none;background:var(--rc-bg);color:var(--rc-text)}
#mobileApp .m-case.road-case.m-stacked{outline:0;box-shadow:0 3px 6px rgba(0,0,0,.8)}
#mobileApp .m-case.road-case.m-sel{box-shadow:0 0 0 2px #000,0 0 0 5px #fff,0 0 18px 6px rgba(217,255,71,.7)}
#mobileApp .m-case.road-case.m-cur{box-shadow:0 0 0 2px #000,0 0 0 5px #fff,0 0 20px 6px rgba(217,255,71,.8)}
#mobileApp .m-armed .m-actual .m-case.road-case.m-onlocked:not(.m-sel){box-shadow:inset 0 0 0 2px rgba(217,255,71,.9)}
#mobileApp .road-case .m-wh::before,#mobileApp .road-case .m-wh::after{background:#2457c5;border-color:#dfe3e7}
#mobileApp .m-docktile.road-case{border:1px solid rgba(0,0,0,.6);border-radius:2px;box-shadow:none;background:var(--rc-bg);color:var(--rc-text)}
#mobileApp .m-docktile.road-case.m-sel{box-shadow:0 0 0 2px #000,0 0 0 5px #fff}
#mobileApp .m-cc-swatch{flex:0 0 auto;width:26px;height:18px;border-radius:2px;margin-top:2px}
#mobileApp .m-colors{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@keyframes mRcPulse{50%{box-shadow:0 0 0 2px #000,0 0 0 5px #fff,0 0 6px 1px rgba(217,255,71,.35)}}
#mobileApp .m-case.road-case.m-sel{animation:mRcPulse 1.1s ease-in-out infinite}
/* V1.95: phone case number never cut off */
#mobileApp .m-cn{text-overflow:clip;max-width:none;letter-spacing:0}
/* V1.98: case photos on the phone */
#mobileApp .m-cc-photo{flex:0 0 auto;width:40px;height:30px;object-fit:contain;background:#fff;border-radius:4px;border:1px solid var(--line);margin-top:2px}
#mobileApp .m-load-photo{display:block;width:100%;max-height:34vh;object-fit:contain;border-radius:10px;background:#000;margin:8px 0}
#mobileApp .case-photo-block .button{min-height:40px}
/* V2.08: phone - the 4" caster strip on the wheel end shows the truck floor, with the blue wheels in it */
#mobileApp .road-case .m-wh{background:#101215}
