/* Approved mobile preview tokens, applied to live workflows. */
.mobile-page,
body[data-layout-mode="mobile"] {
  --blue:#1564e8;
  --ink:#142a43;
  --muted:#5b6e83;
  --line:#e1e8f0;
  --canvas:#f4f7fb;
  --white:#fff;
  --accent:var(--blue);
  --theme-text:var(--ink);
  --theme-border:var(--line);
  --theme-card:var(--white);
  --primary-color:var(--blue);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--canvas);
  color:var(--ink);
}
.mobile-page::before,.mobile-page::after,
body[data-layout-mode="mobile"]::before,body[data-layout-mode="mobile"]::after { display:none!important; }
.mobile-page *,body[data-layout-mode="mobile"] * { box-sizing:border-box; }
.mobile-page #app.mobile-app-shell { height:100dvh!important; display:flex; flex-direction:column; overflow:hidden; background:var(--canvas); font:15px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important; }
.mobile-page .mobile-app-header,
.mobile-redesign-header { display:flex; flex:none; align-items:center; justify-content:space-between; gap:12px; min-height:68px!important; padding:10px 20px!important; padding-top:max(10px,env(safe-area-inset-top))!important; background:var(--white)!important; color:var(--ink)!important; border:0; border-bottom:1px solid var(--line); box-shadow:none; position:relative; z-index:60; }
.mobile-redesign-header .mobile-brand { font-size:21px; font-weight:750; letter-spacing:-.7px; line-height:1.2; }
.mobile-redesign-header .mobile-role-name { margin-top:4px; font-size:12px; font-weight:500; color:var(--muted); line-height:1.3; }
.mobile-redesign-header .mobile-tools { position:relative; margin:0; }
.mobile-redesign-header .mobile-tools summary { display:grid; place-items:center; width:48px; height:48px; min-height:48px; padding:0; list-style:none; background:var(--account-avatar-background); color:var(--account-avatar-text); border:0; border-radius:50%; font-size:12px; font-weight:750; cursor:pointer; }
.mobile-redesign-header .mobile-tools summary::-webkit-details-marker { display:none; }
.mobile-redesign-header .mobile-tools .mobile-account-panel { position:absolute; inset-block-start:calc(100% + 12px); inset-inline-end:0; display:grid; gap:8px; min-width:220px; max-width:calc(100vw - 40px); padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--white); box-shadow:0 8px 24px #142a4314; text-align:start; color:var(--ink); }
.mobile-account-panel :is(strong,span) { overflow-wrap:anywhere; }
.mobile-account-panel>span { color:var(--muted); font-size:12px; }
.mobile-account-panel button { min-height:48px; padding:12px; border:1px solid var(--line); border-radius:9px; background:var(--white); color:var(--blue); font-family:inherit; font-size:14px; font-weight:600; line-height:1.35; }
.mobile-account-panel .app-header-account { margin-block-end:8px; }
.mobile-account-panel .app-header-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.mobile-account-panel .app-header-actions .text-button { min-height:44px; justify-content:flex-start; }
.mobile-redesign-header .mobile-tools summary:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.mobile-page .mobile-main-content { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:24px 20px 22px!important; background:var(--canvas)!important; color:var(--ink); scrollbar-width:thin; }
.mobile-page .mobile-main-content>:is(section,div) { max-width:860px; margin-left:auto; margin-right:auto; }
.mobile-page .mobile-main-content :is(.mobile-screen,.mobile-tech-workspace,.mobile-advisor-asr,.mobile-loaner-capture,.mobile-get-ready-workspace,.photographer-workspace) { padding:0; color:var(--ink); }
.mobile-page .mobile-main-content .mobile-tab-heading { position:static!important; inline-size:auto!important; block-size:auto!important; padding:0!important; margin:0 0 18px!important; overflow:visible!important; clip-path:none!important; white-space:normal!important; border:0!important; font-size:25px!important; letter-spacing:-.7px; line-height:1.2; color:var(--ink); font-weight:750; }
.mobile-page .mobile-page-description { margin:-6px 0 22px; color:var(--muted); font-size:13px; line-height:1.6; }
.mobile-page .mobile-main-content :is(.mobile-tech-card,.mobile-asr-card,.mobile-repair-card,.mobile-evidence-card,.mobile-phone-workorder-search,.mobile-phone-search-result,.appointment-card,.mobile-loaner-queue-item,.mobile-get-ready-vehicle,.mobile-get-ready-request,.photographer-vehicle-card,.mobile-response,.mobile-conversation-heading,.mobile-communication-thread) { background:var(--white)!important; color:var(--ink)!important; border:1px solid var(--line)!important; border-radius:12px!important; box-shadow:none!important; padding:16px!important; min-width:0; }
.mobile-page .mobile-main-content :is(.appointment-card,.mobile-repair-card,.mobile-evidence-card,.mobile-get-ready-vehicle,.photographer-vehicle-card) { width:100%; margin-bottom:12px!important; text-align:left; }
.mobile-page .mobile-main-content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) { min-width:0; width:100%; min-height:48px; padding:12px 14px; border:1px solid #cad8e9; border-radius:9px; background:var(--white); color:var(--ink); font:400 16px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; box-shadow:none; }
.mobile-page .mobile-main-content label { color:var(--muted); font-size:12px; line-height:1.5; }
.mobile-page .mobile-main-content :is(button,summary),.mobile-page dialog button { min-height:48px; font-family:inherit; touch-action:manipulation; }
.mobile-page .mobile-main-content button:where(:not(.photographer-vehicle-open,.appointment-card,.mobile-get-ready-request,.mobile-communication-thread)) { border-radius:9px; box-shadow:none; font-size:14px; font-weight:600; line-height:1.35; }
.mobile-page .mobile-main-content :is(.primary-button,.mobile-action-button-primary,.mobile-get-ready-primary,#mobile-communication-send,#mobile-workorder-phone-search-btn,.photographer-stage-actions button:not(:disabled)) { background:var(--blue)!important; border:1px solid var(--blue)!important; color:var(--white)!important; }
.mobile-page .mobile-main-content :is(.mobile-stage-tabs,.mobile-inventory-categories,.mobile-inventory-workflows) { display:flex; gap:4px; padding:4px; border:1px solid var(--line); border-radius:10px; background:var(--white); margin:0 0 18px; }
.mobile-page .mobile-main-content :is(.mobile-stage-tabs,.mobile-inventory-categories,.mobile-inventory-workflows) button { flex:1; min-width:0; min-height:44px; padding:9px 7px; border:0; background:transparent; border-radius:7px; color:#50647c; font-size:12px; font-weight:600; }
.mobile-page .mobile-main-content :is(.mobile-stage-tabs,.mobile-inventory-categories,.mobile-inventory-workflows) button[aria-pressed="true"] { background:var(--blue); color:var(--white); }
.mobile-page .mobile-inventory-filter-label { display:grid; gap:7px; margin:0 0 18px; }
.mobile-page .mobile-inventory-result-count { color:var(--muted); font-size:12px; margin:0 0 12px; }
.mobile-page .mobile-inventory-card-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; margin-bottom:12px; }
.mobile-page .mobile-inventory-stage { padding:4px 8px; background:#eaf2ff; color:var(--blue); border-radius:6px; font-weight:600; }
.mobile-page .mobile-get-ready-vehicle h3 { margin:0 0 6px; font-size:16px; }
.mobile-page .mobile-get-ready-vehicle p { margin:6px 0; color:var(--muted); font-size:13px; }
.mobile-page .mobile-main-content .mobile-get-ready-workspace { display:block; }
.mobile-page .mobile-get-ready-queue { margin:22px 0; }
.mobile-page .mobile-inventory-secondary-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.mobile-page .mobile-inventory-vehicles { display:block; }
.mobile-page .mobile-communication-view { gap:0; }
.mobile-page .mobile-conversation-heading h2 { color:var(--ink); }
.mobile-page .mobile-chat-message>div { border-color:var(--line); border-radius:12px; padding:16px; }
.mobile-page .mobile-conversation-composer { padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--white); }
.mobile-page .mobile-customer-workspace .bdc-msg-shell { border:1px solid var(--line); border-radius:12px; box-shadow:none; background:var(--white); }
.mobile-page .mobile-customer-workspace :is(.bdc-msg-rail-head,.bdc-msg-compose,.bdc-msg-pane-head) { background:var(--white); }
.mobile-page .mobile-main-content .photographer-heading h2 { font-size:25px; margin:0 0 8px; letter-spacing:-.7px; }
.mobile-page .mobile-app-shell .top-tabs { display:flex; flex:none; position:relative; z-index:50; align-items:stretch; justify-content:space-around!important; gap:2px; margin:0; padding:8px 8px max(12px,env(safe-area-inset-bottom))!important; min-height:0; border:0!important; border-top:1px solid var(--line)!important; background:var(--white); }
.mobile-page .mobile-app-shell .top-tabs .tab-btn { display:flex; align-items:center; justify-content:center; flex-direction:column; flex:1 1 0!important; min-width:0; min-height:50px!important; gap:5px!important; border:0!important; border-radius:8px; padding:5px 0!important; background:transparent!important; color:#64748b!important; font:500 10px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important; box-shadow:none; }
.mobile-page .mobile-app-shell .top-tabs .tab-btn.active { background:#f4f8ff!important; color:var(--blue)!important; font-weight:700!important; }
.mobile-page .mobile-app-shell .top-tabs .tab-btn[data-tab-id="communication"] { flex:1.45 1 0!important; }
.mobile-page .mobile-app-shell .top-tabs .tab-btn[data-tab-id="appointments"] { flex:1.25 1 0!important; }
.mobile-page .mobile-app-shell .mobile-nav-icon,.mobile-nav-icon { display:inline-flex!important; width:23px; height:23px; flex:none; }
.mobile-nav-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.mobile-page .tab-btn-label { white-space:nowrap; overflow-wrap:normal; }
.mobile-page .mobile-tab-unread { position:absolute; inset:1px 8px auto auto; padding:2px 5px; border-radius:10px; font-size:10px; background:var(--blue); color:var(--white); }
.mobile-page :is(button,a,input,select,textarea,summary):focus-visible,body[data-layout-mode="mobile"] :is(button,a,input,select,textarea,summary):focus-visible { outline:3px solid #92bcff; outline-offset:3px; }
.mobile-page button:disabled { opacity:.48; cursor:default; }
.mobile-page .auth-login-shell { display:grid; place-items:center; min-height:100dvh; padding:24px 20px; background:var(--canvas); }
.mobile-page .auth-login-card { width:100%; max-width:420px; padding:28px 24px; border:1px solid var(--line); border-radius:16px; background:var(--white); box-shadow:none; }
.mobile-page .auth-login-shell .brand-lockup { margin-bottom:24px; }
.mobile-page .auth-login-shell .field-grid { gap:18px; }
.mobile-page .auth-login-shell input { min-height:48px; padding:12px 14px; border:1px solid #cad8e9; border-radius:9px; font-size:16px; background:var(--white); color:var(--ink); }
.mobile-page .auth-login-shell .primary-button { min-height:48px; border:1px solid var(--blue); border-radius:9px; background:var(--blue); color:var(--white); box-shadow:none; }
@media(max-width:350px) {
  .mobile-page .mobile-main-content { padding:24px 16px 20px!important; }
  .mobile-page .mobile-inventory-workflows { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:820px) {
  body[data-layout-mode="mobile"] #app>.shell:not(.auth-shell) { display:flex; flex-direction:column; gap:0; padding:0 0 calc(86px + env(safe-area-inset-bottom)); min-height:100dvh; background:var(--canvas); }
  body[data-layout-mode="mobile"] .mobile-redesign-header { position:sticky; top:0; }
  body[data-layout-mode="mobile"] #app>.shell>main { min-width:0; padding:24px 20px!important; }
  body[data-layout-mode="mobile"] #app>.shell :is(.panel,.details-card,.inventory-grid-card,.repair-card) { background:var(--white); border:1px solid var(--line); border-radius:12px; box-shadow:none; }
  body[data-layout-mode="mobile"] .tab-bar.is-mobile { position:fixed; inset:auto 0 0; display:flex; flex-wrap:nowrap; align-items:stretch; justify-content:space-around; gap:2px; height:auto; min-height:0; margin:0; padding:8px 8px max(12px,env(safe-area-inset-bottom)); border:0; border-top:1px solid var(--line); border-radius:0; background:var(--white); z-index:100; overflow-x:auto; }
  body[data-layout-mode="mobile"] .tab-bar.is-mobile .tab-button { flex:1 0 0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-width:64px; min-height:50px; padding:5px; margin:0; border:0; border-radius:8px; box-shadow:none; background:transparent; color:#64748b; font-size:10px; line-height:1.2; }
  body[data-layout-mode="mobile"] .tab-bar.is-mobile.is-scrollable { justify-content:flex-start; scrollbar-width:none; }
  body[data-layout-mode="mobile"] .tab-bar.is-mobile.is-scrollable .tab-button { flex:0 0 90px; }
  body[data-layout-mode="mobile"] .tab-bar.is-mobile .tab-button.is-active { color:var(--blue); background:#f4f8ff; font-weight:700; }
  body[data-layout-mode="mobile"] .tab-bar.is-mobile .tab-alert-badge { position:absolute; top:0; right:8px; }
  body[data-layout-mode="mobile"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { min-height:48px; font-size:16px; border-radius:9px; }
  body[data-layout-mode="mobile"] :is(button,summary) { min-height:44px; }
  body[data-layout-mode="mobile"] .primary-button { background:var(--blue); color:var(--white); border-color:var(--blue); box-shadow:none; }
  #app>.auth-login-shell { min-height:100dvh; display:grid; place-items:center; padding:24px 20px; background:#f4f7fb; }
  #app>.auth-login-shell .auth-login-card { width:100%; max-width:420px; border:1px solid #e1e8f0; border-radius:16px; padding:28px 24px; background:#fff; box-shadow:none; }
  #app>.auth-login-shell :is(.auth-login-grid,.field-grid) { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
  #app>.auth-login-shell input { width:100%; min-height:48px; font-size:16px; border-radius:9px; }
  #app>.auth-login-shell .auth-login-actions button { width:100%; min-height:48px; background:#1564e8; border-radius:9px; }
}

.mobile-page .mobile-main-content .mobile-inventory-workflows button { padding:9px 3px; font-size:11px; }

@media(max-width:820px){
 body[data-layout-mode="mobile"] { margin:0; padding:0; }
 body[data-layout-mode="mobile"] #app,body[data-layout-mode="mobile"] #app>.shell { width:100%; max-width:none; margin:0; }
 body[data-layout-mode="mobile"] .tab-bar.is-mobile .tab-button::before,body[data-layout-mode="mobile"] .tab-bar.is-mobile .tab-button::after { display:none!important; content:none!important; }
 body[data-layout-mode="mobile"] .tab-bar.is-mobile .tab-button { min-height:50px!important; height:auto!important; padding:5px!important; border:0!important; font-size:10px!important; }
 body[data-layout-mode="mobile"] .tab-bar.is-mobile .tab-button>span:not(.tab-alert-badge) { font-size:10px; }
 body[data-layout-mode="mobile"] .parts-dashboard-shell { grid-template-columns:minmax(0,1fr); height:auto; min-height:0; }
 body[data-layout-mode="mobile"] .parts-live-queue { max-height:420px; }
 body[data-layout-mode="mobile"] .parts-pulled-ros { min-height:260px; }
}

@media(max-width:820px){body[data-layout-mode="mobile"] .tab-bar.is-mobile.is-scrollable .tab-button { flex:0 0 90px!important; min-width:90px!important; }}

.mobile-logo-crop { display:block; position:relative; width:144px; height:56px; overflow:hidden; }
.mobile-redesign-header .mobile-brand-logo { display:block; position:absolute; width:192px; height:auto; max-width:none; left:-18px; top:-18px; }
.mobile-page .mobile-inventory-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.mobile-page .mobile-main-content .mobile-inventory-heading .mobile-tab-heading { margin:0!important; }
.mobile-page .mobile-inventory-heading .mobile-inventory-secondary-actions { margin:0; }
.mobile-page .mobile-inventory-heading button { font-size:12px; padding:10px 12px; }
.mobile-page .mobile-inventory-heading+.mobile-page-description { margin:8px 0 18px; }
.mobile-page .mobile-inventory-search-label { font-size:0!important; gap:0; }
.mobile-page .mobile-get-ready-vehicle>button { color:var(--blue); width:100%; padding:12px 15px; }

.mobile-redesign-header .mobile-role-name { padding-left:7px; }

/* Product navigation identifies the tab; retain semantic page names without duplicating them visually. */
.mobile-page .mobile-main-content .mobile-tab-heading { position:absolute!important; inline-size:1px!important; block-size:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip-path:inset(50%)!important; white-space:nowrap!important; border:0!important; }
.mobile-page .mobile-page-description { display:none; }
.mobile-page .mobile-inventory-search-row { display:flex; align-items:start; gap:8px; }
.mobile-page .mobile-inventory-search-row>label { flex:1; min-width:0; }
.mobile-page .mobile-inventory-refresh { flex:0 0 48px; width:48px; padding:12px; min-height:48px; background:var(--white); color:var(--blue); border:1px solid #cad8e9; }
.mobile-inventory-refresh svg { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.mobile-page .photographer-heading:has([data-photo-refresh])>div,
.mobile-page .mobile-customer-workspace .bdc-msg-rail-head>h2,
.mobile-page .mobile-customer-workspace .dashboard-header,
.mobile-page .mobile-customer-workspace .sc-intro { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip-path:inset(50%)!important; white-space:nowrap!important; margin:0!important; padding:0!important; }
@media(max-width:820px){
 body[data-layout-mode="mobile"] .tab-bar.is-mobile:not(.is-scrollable) .tab-button { flex:1 1 0!important; min-width:64px!important; width:auto!important; }
 body[data-layout-mode="mobile"] .tab-bar.is-mobile .tab-button { display:flex!important; align-items:center!important; justify-content:center!important; flex-direction:column!important; }
 body[data-layout-mode="mobile"] .tab-bar.is-mobile .tab-button>.mobile-nav-icon { position:static!important; width:23px!important; height:23px!important; }
 body[data-layout-mode="mobile"] .tab-bar.is-mobile .mobile-nav-icon+span { position:static!important; max-width:100%; min-width:0; }
 body[data-layout-mode="mobile"] #app>.shell .panel-head>div:first-child>:is(h1,h2,.eyebrow),
 body[data-layout-mode="mobile"] #app>.shell>.dashboard-header>:is(h1,h2,p) { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip-path:inset(50%)!important; margin:0!important; padding:0!important; }

}

.mobile-page .mobile-daily-appointments { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; font-size:13px; color:var(--muted); }
.mobile-page .mobile-daily-appointments button { display:grid; place-items:center; flex:none; width:48px; border:1px solid var(--line); background:var(--white); color:var(--blue); padding:12px; }
.mobile-daily-appointments svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.mobile-page .mobile-appointment-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.mobile-page .appointment-card p { color:var(--muted); margin:8px 0; font-size:14px; }
.mobile-page .mobile-walkaround-assignment { display:block; color:var(--muted); font-size:12px; margin:8px 0; }
.mobile-page .mobile-walkaround-action { display:block; margin-top:16px; padding:12px 15px; border-radius:9px; background:var(--blue); color:var(--white); text-align:center; font-size:14px; font-weight:600; }

.mobile-page #cancel-transfer-btn { background:var(--white)!important; color:var(--blue)!important; border:1px solid var(--line)!important; }

.mobile-page .mobile-dispatch-actions { display:flex; align-items:stretch; gap:10px; margin-bottom:12px; }
.mobile-page .mobile-dispatch-actions [data-locate-next] { flex:1; min-width:0; margin:0; }
.mobile-page .mobile-dispatch-refresh { display:grid; place-items:center; flex:0 0 48px; width:48px; min-height:48px; margin:0; padding:12px; background:var(--white); color:var(--blue); border:1px solid #cad8e9; }
.mobile-dispatch-refresh svg { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.mobile-page .mobile-next-job .mobile-tech-card { margin-bottom:12px; }

.mobile-clock-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.mobile-clock-actions button{min-width:0;min-height:48px}.mobile-clock-time{display:block;font-size:28px;font-variant-numeric:tabular-nums;font-weight:700;color:var(--ink,#142a43)}.mobile-working-clock{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #e1e8f0}.mobile-line-clock{padding-top:12px}.mobile-line-clock h3{font-size:14px}.mobile-line-clock .mobile-clock-time{font-size:22px}.mobile-line-clock [role=status]{font-size:12px;overflow-wrap:anywhere}

body.mobile-page .mobile-tech-workspace .mobile-clock-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body.mobile-page .mobile-tech-workspace .mobile-clock-actions button{width:100%;margin:0;min-height:48px}

.operation-suggestions[hidden]{display:none!important}.operation-suggestions{margin:6px 0 12px;border:1px solid #d4e1f1;border-radius:10px;background:#fff;max-height:240px;overflow-y:auto;overscroll-behavior:contain}.operation-suggestions [role=option]{display:flex;flex-direction:column;gap:3px;min-height:48px;padding:10px 12px;box-sizing:border-box;cursor:pointer;border-bottom:1px solid #e1e8f0;color:#142a43;overflow-wrap:anywhere}.operation-suggestions [role=option]:last-child{border-bottom:0}.operation-suggestions [role=option]:hover,.operation-suggestions [aria-selected=true]{background:#e9f1ff}.operation-suggestions [role=option] span{font-size:12px;color:#5b6e83}.operation-suggestions p{padding:10px 12px;margin:0;font-size:13px;color:#5b6e83}

body.mobile-page #mobile-asr-create[hidden],body.mobile-page #mobile-asr-open[hidden],body.mobile-page #mobile-asr-add-repair[hidden]{display:none!important}

.mobile-page :is(.mobile-walkaround-confirmations,.mobile-walkaround-ready) :is(#start-picture-walkaround-btn,#start-walkaround-btn,.mobile-walkaround-back){width:100%;min-width:0;box-sizing:border-box;align-self:stretch;justify-self:stretch}
.mobile-page .mobile-walkaround-back{width:100%;box-sizing:border-box;margin-top:16px}
