.lp-stage-backdrop{position:fixed;inset:0;z-index:2300;display:flex;justify-content:flex-end;background:rgba(15,23,42,.58);backdrop-filter:blur(5px)}
.lp-stage-backdrop[hidden]{display:none}
.lp-stage-modal{width:min(720px,100%);height:100%;display:flex;flex-direction:column;background:#f8fafc;color:#0f172a;box-shadow:-24px 0 70px rgba(15,23,42,.25);overflow:hidden}
.lp-stage-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px 18px;background:linear-gradient(135deg,#0f172a,#172554);color:#fff}
.lp-stage-header span{font-size:.74rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#93c5fd}
.lp-stage-header h2{margin:5px 0 4px;font-size:1.55rem;line-height:1.15}.lp-stage-header p{margin:0;color:#cbd5e1;font-size:.9rem}.lp-stage-header button{width:38px;height:38px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;font-size:1.55rem;line-height:1;cursor:pointer}
.lp-stage-timer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 18px;padding:13px 26px;background:#e0f2fe;border-bottom:1px solid #bae6fd}.lp-stage-timer span{font-size:.77rem;font-weight:800;color:#075985;text-transform:uppercase;letter-spacing:.06em}.lp-stage-timer strong{grid-row:1/3;grid-column:2;font-size:1.2rem;color:#0c4a6e}.lp-stage-timer small{color:#0369a1}
.lp-stage-body{flex:1;overflow:auto;padding:22px 26px}.lp-stage-intro{display:flex;flex-direction:column;gap:5px;margin-bottom:18px;padding:15px 16px;border:1px solid #dbeafe;border-radius:12px;background:#fff}.lp-stage-intro strong{font-size:1rem}.lp-stage-intro span{color:#64748b;font-size:.88rem;line-height:1.45}
.lp-stage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.lp-stage-field{display:flex;flex-direction:column;gap:6px}.lp-stage-field.full,.lp-stage-subgrid.full,.lp-stage-check.full,.lp-stage-next{grid-column:1/-1}.lp-stage-field>span,.lp-stage-next>span{font-size:.8rem;font-weight:800;color:#334155}.lp-stage-field b{color:#dc2626}.lp-stage-field input,.lp-stage-field textarea,.lp-stage-next select{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;padding:11px 12px;font:inherit}.lp-stage-field textarea{min-height:94px;resize:vertical}.lp-stage-field small,.lp-stage-next small{min-height:1em;color:#64748b;font-size:.75rem;line-height:1.35}.lp-stage-field input:focus,.lp-stage-field textarea:focus,.lp-stage-next select:focus{outline:3px solid rgba(59,130,246,.18);border-color:#3b82f6}
.lp-stage-check{display:flex;align-items:flex-start;gap:11px;padding:13px 14px;border:1px solid #cbd5e1;border-radius:11px;background:#fff}.lp-stage-check input{margin-top:3px;width:18px;height:18px}.lp-stage-check span{display:flex;flex-direction:column;gap:3px}.lp-stage-check small{color:#64748b;font-size:.78rem;line-height:1.4}.lp-stage-subgrid[hidden]{display:none}.lp-stage-next{display:flex;flex-direction:column;gap:6px;padding:15px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff}.lp-stage-next select{background:#fff}
.lp-stage-decision{display:grid;grid-template-columns:1fr auto;gap:4px 16px;margin-bottom:18px;padding:16px;border-radius:12px;border:1px solid}.lp-stage-decision span{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.lp-stage-decision strong{grid-row:1/3;grid-column:2;font-size:1.2rem}.lp-stage-decision small{font-weight:700}.lp-stage-decision.over{background:#fef2f2;border-color:#fecaca;color:#991b1b}.lp-stage-decision.within{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.lp-stage-inspection-frame{height:clamp(480px,68vh,820px);overflow:hidden;border:1px solid #cbd5e1;border-radius:14px;background:#fff}.lp-stage-inspection-frame iframe{display:block;width:100%;height:100%;border:0}.lp-stage-body>.lp-stage-next{margin-top:16px}.lp-stage-fallback{display:inline-flex;padding:11px 15px;border-radius:10px;background:#2563eb;color:#fff;text-decoration:none;font-weight:800}
.lp-stage-error{margin:0 26px 14px;padding:11px 13px;border:1px solid #fecaca;border-radius:10px;background:#fef2f2;color:#991b1b;font-size:.86rem;font-weight:700}.lp-stage-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 26px;border-top:1px solid #e2e8f0;background:#fff}.lp-stage-full-record{color:#2563eb;font-weight:800;text-decoration:none}.lp-stage-footer-actions{display:flex;gap:9px}.lp-stage-footer button{min-height:40px;padding:9px 14px;border-radius:10px;font-weight:800;cursor:pointer}.lp-stage-secondary{border:1px solid #cbd5e1;background:#fff;color:#334155}.lp-stage-primary{border:1px solid #1d4ed8;background:#2563eb;color:#fff}.lp-stage-footer button:disabled{opacity:.55;cursor:wait}
.recon-card-stage-action{border:0;background:transparent;color:#2563eb;font:inherit;font-weight:800;cursor:pointer;padding:0}.recon-card-full-record{font-size:.78rem;color:#64748b;text-decoration:none}.recon-table-vehicle-link.lp-stage-trigger{width:100%;border:0;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer;padding:0}.recon-table-stage-action{border:0;background:transparent;color:#2563eb;font-size:1.05rem;font-weight:900;cursor:pointer}.vehicle-workspace-page.embedded-inspection .vw-shell{display:none}.vehicle-workspace-page.embedded-inspection .vw-inspection-backdrop{background:#f8fafc}.vehicle-workspace-page.embedded-inspection .vw-inspection-drawer{width:100%;max-width:none;height:100%;border-radius:0}
@media(max-width:680px){.lp-stage-header{padding:20px 18px 15px}.lp-stage-timer{padding:12px 18px}.lp-stage-body{padding:17px 18px}.lp-stage-grid{grid-template-columns:1fr}.lp-stage-field.full,.lp-stage-subgrid.full,.lp-stage-check.full,.lp-stage-next{grid-column:auto}.lp-stage-footer{align-items:stretch;flex-direction:column;padding:13px 18px}.lp-stage-footer-actions{display:grid;grid-template-columns:1fr 1fr}.lp-stage-footer-actions .lp-stage-primary{grid-column:1/-1}.lp-stage-footer button{width:100%}.lp-stage-inspection-frame{height:72vh}}

.lp-stage-inspection-complete{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:28px;text-align:center;background:#f0fdf4;color:#166534}.lp-stage-inspection-complete>span{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#16a34a;color:#fff;font-size:1.65rem;font-weight:900}.lp-stage-inspection-complete strong{font-size:1.2rem}.lp-stage-inspection-complete small{max-width:420px;color:#3f6212;line-height:1.45}

/* Mobile hardening: full-height sheets, safe areas, no iOS form zoom, and reachable actions. */
.lp-stage-modal{height:100dvh;max-height:100dvh;min-width:0}
.lp-stage-body{min-width:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.lp-stage-field input,.lp-stage-field textarea,.lp-stage-next select{min-width:0}
@media(max-width:680px){
  .lp-stage-backdrop{align-items:stretch}
  .lp-stage-modal{width:100%;border-radius:0}
  .lp-stage-header{padding-top:calc(16px + env(safe-area-inset-top,0px))}
  .lp-stage-header button{width:44px;height:44px;flex:0 0 44px}
  .lp-stage-header h2{font-size:1.35rem}
  .lp-stage-timer{grid-template-columns:minmax(0,1fr) auto}
  .lp-stage-field input,.lp-stage-field textarea,.lp-stage-next select{min-height:48px;font-size:16px}
  .lp-stage-field textarea{min-height:112px}
  .lp-stage-check{min-height:48px}
  .lp-stage-check input{width:22px;height:22px;flex:0 0 22px}
  .lp-stage-footer{padding-bottom:calc(13px + env(safe-area-inset-bottom,0px))}
  .lp-stage-footer-actions button{min-height:48px}
  .lp-stage-inspection-frame{height:68dvh;min-height:420px}
  .lp-stage-decision{grid-template-columns:1fr}
  .lp-stage-decision strong{grid-row:auto;grid-column:auto}
}
@media(max-width:390px){
  .lp-stage-header p{font-size:.82rem}
  .lp-stage-timer small{font-size:.72rem}
  .lp-stage-body{padding-left:14px;padding-right:14px}
  .lp-stage-footer{padding-left:14px;padding-right:14px}
  .lp-stage-footer-actions{grid-template-columns:1fr}
  .lp-stage-footer-actions .lp-stage-primary{grid-column:auto}
  .lp-stage-inspection-frame{min-height:390px}
}

/* Stage workspace visual system and approval decision cockpit. */
.lp-stage-header-main{display:flex;align-items:center;gap:14px;min-width:0}
.lp-stage-title-wrap{min-width:0}
.lp-stage-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(255,255,255,.1);color:#bfdbfe;font-size:1.35rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}
.lp-stage-backdrop[data-stage="acquired"] .lp-stage-header{background:linear-gradient(135deg,#0f2d54,#174b85)}
.lp-stage-backdrop[data-stage="inspection"] .lp-stage-header{background:linear-gradient(135deg,#0f3b48,#0f6470)}
.lp-stage-backdrop[data-stage="approval"] .lp-stage-modal{width:min(820px,100%)}
.lp-stage-backdrop[data-stage="approval"] .lp-stage-header{background:radial-gradient(circle at 20% 0,rgba(96,165,250,.24),transparent 40%),linear-gradient(135deg,#111c36,#172554 58%,#1e3a8a)}
.lp-stage-backdrop[data-stage="approval"] .lp-stage-icon{color:#fef3c7;background:rgba(245,158,11,.14);border-color:rgba(251,191,36,.28)}
.lp-stage-backdrop[data-stage="sublet"] .lp-stage-header{background:linear-gradient(135deg,#12374a,#075985)}
.lp-stage-backdrop[data-stage="approval"] .lp-stage-body{background:linear-gradient(180deg,#eef4fb 0,#f8fafc 220px)}
.lp-stage-backdrop[data-stage="approval"] .lp-stage-primary{border-color:#15803d;background:linear-gradient(135deg,#16a34a,#15803d);box-shadow:0 8px 20px rgba(22,163,74,.22)}
.lp-approval-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;padding:22px 24px;border-radius:17px;background:radial-gradient(circle at 90% -20%,rgba(96,165,250,.35),transparent 42%),linear-gradient(135deg,#0f172a,#172554);color:#fff;box-shadow:0 16px 38px rgba(15,23,42,.16)}
.lp-approval-hero::after{content:"";position:absolute;right:-55px;bottom:-80px;width:190px;height:190px;border:1px solid rgba(255,255,255,.08);border-radius:50%}
.lp-approval-kicker{display:block;margin-bottom:7px;color:#93c5fd;font-size:.7rem;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.lp-approval-hero h3{margin:0;font-size:1.28rem;line-height:1.2;letter-spacing:-.02em}
.lp-approval-hero p{max-width:520px;margin:7px 0 0;color:#cbd5e1;font-size:.86rem;line-height:1.5}
.lp-approval-status{position:relative;z-index:1;min-width:134px;padding:13px 14px;border:1px solid;border-radius:13px;text-align:right;backdrop-filter:blur(8px)}
.lp-approval-status strong,.lp-approval-status span{display:block}.lp-approval-status strong{font-size:1rem}.lp-approval-status span{margin-top:3px;font-size:.68rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.lp-approval-status.over{border-color:rgba(252,165,165,.35);background:rgba(185,28,28,.23);color:#fecaca}.lp-approval-status.within{border-color:rgba(134,239,172,.34);background:rgba(22,163,74,.2);color:#bbf7d0}
.lp-approval-scoreboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:13px 0}
.lp-approval-scoreboard article{min-width:0;padding:13px 14px;border:1px solid #dbe5f1;border-radius:12px;background:rgba(255,255,255,.9);box-shadow:0 6px 16px rgba(15,23,42,.05)}
.lp-approval-scoreboard span{display:block;color:#64748b;font-size:.68rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.lp-approval-scoreboard strong{display:block;margin-top:6px;color:#172033;font-size:1.05rem;white-space:nowrap}.lp-approval-scoreboard strong.negative{color:#b91c1c}
.lp-approval-meter{margin-bottom:16px;padding:16px 17px;border:1px solid;border-radius:14px;background:#fff}
.lp-approval-meter.within{border-color:#bbf7d0}.lp-approval-meter.over{border-color:#fecaca}
.lp-approval-meter-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.lp-approval-meter-head span{display:block;color:#64748b;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.lp-approval-meter-head strong{display:block;margin-top:3px;color:#334155;font-size:.88rem}.lp-approval-meter-head>b{color:#0f172a;font-size:1.1rem}
.lp-approval-meter-track{position:relative;height:11px;margin-top:12px;overflow:visible;border-radius:999px;background:#e2e8f0}.lp-approval-meter-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#60a5fa);transition:width .25s ease}.lp-approval-meter.over .lp-approval-meter-track span{background:linear-gradient(90deg,#f59e0b,#ef4444)}.lp-approval-meter-track i{position:absolute;top:-4px;right:0;width:2px;height:19px;border-radius:2px;background:#334155}
.lp-approval-meter-labels{display:flex;justify-content:space-between;margin-top:7px;color:#64748b;font-size:.68rem}
.lp-approval-edit{overflow:hidden;border:1px solid #dbe5f1;border-radius:14px;background:#fff}
.lp-approval-edit>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.lp-approval-edit>header span,.lp-approval-edit>header strong{display:block}.lp-approval-edit>header span{color:#334155;font-size:.78rem;font-weight:850}.lp-approval-edit>header strong{margin-top:2px;color:#64748b;font-size:.7rem}.lp-approval-edit .lp-approval-live{padding:5px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.64rem;text-transform:uppercase;letter-spacing:.05em}
.lp-approval-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:15px}
.lp-approval-decisions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:0;border:0}.lp-approval-decisions legend{grid-column:1/-1;padding:0;color:#334155;font-size:.82rem;font-weight:850}
.lp-approval-decisions label{position:relative;cursor:pointer}.lp-approval-decisions input{position:absolute;opacity:0;pointer-events:none}.lp-approval-decisions label>span{height:100%;box-sizing:border-box;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:11px;padding:13px;border:1px solid #d7e1ed;border-radius:13px;background:#fff;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}.lp-approval-decisions label>span>i{grid-row:1/3;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#eef3f9;color:#475569;font-style:normal;font-weight:900}.lp-approval-decisions label>span>strong{align-self:end;color:#1e293b;font-size:.85rem}.lp-approval-decisions label>span>small{align-self:start;margin-top:3px;color:#64748b;font-size:.72rem;line-height:1.35}.lp-approval-decisions input:focus-visible+span{outline:3px solid rgba(37,99,235,.2);outline-offset:2px}.lp-approval-decisions input:checked+span{border-color:#60a5fa;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.1),0 8px 18px rgba(37,99,235,.08);transform:translateY(-1px)}.lp-approval-decisions input:checked+span>i{background:#2563eb;color:#fff}.lp-approval-decisions label:last-child input:checked+span{border-color:#fca5a5;background:#fef2f2}.lp-approval-decisions label:last-child input:checked+span>i{background:#dc2626}
@media(max-width:680px){
  .lp-stage-icon{width:42px;height:42px;flex-basis:42px;border-radius:12px}
  .lp-approval-hero{grid-template-columns:1fr;padding:17px}
  .lp-approval-status{min-width:0;text-align:left}
  .lp-approval-scoreboard{grid-template-columns:1fr 1fr}
  .lp-approval-edit-grid,.lp-approval-decisions{grid-template-columns:1fr}
  .lp-approval-decisions legend{grid-column:auto}
  .lp-approval-meter-head{align-items:flex-start}
}
@media(max-width:390px){
  .lp-stage-header-main{gap:10px}
  .lp-stage-icon{width:38px;height:38px;flex-basis:38px}
  .lp-approval-scoreboard{gap:7px}
  .lp-approval-scoreboard article{padding:11px}
  .lp-approval-scoreboard strong{font-size:.95rem}
}


/* Focused workspaces shared by every recon stage */
.lp-stage-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;margin-bottom:14px;padding:20px;border:1px solid #dbe5f0;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f1f5f9 100%);box-shadow:0 10px 26px rgba(15,23,42,.06)}
.lp-stage-hero>div:first-child>span{display:block;margin-bottom:6px;color:#2563eb;font-size:.68rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.lp-stage-hero h3{margin:0;color:#0f172a;font-size:1.24rem;line-height:1.2}.lp-stage-hero p{max-width:520px;margin:7px 0 0;color:#64748b;font-size:.84rem;line-height:1.5}
.lp-stage-hero-badge{min-width:132px;padding:12px 14px;border:1px solid #dbe5f0;border-radius:13px;background:#fff;text-align:right}.lp-stage-hero-badge strong,.lp-stage-hero-badge small{display:block}.lp-stage-hero-badge strong{font-size:.9rem}.lp-stage-hero-badge small{margin-top:3px;color:#64748b;font-size:.68rem}.lp-stage-hero-badge.good{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.lp-stage-hero-badge.soon{border-color:#fde68a;background:#fffbeb;color:#92400e}.lp-stage-hero-badge.late{border-color:#fecaca;background:#fef2f2;color:#991b1b}
.lp-stage-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:14px}.lp-stage-metrics article{min-width:0;padding:13px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}.lp-stage-metrics span,.lp-stage-metrics strong,.lp-stage-metrics small{display:block}.lp-stage-metrics span{color:#64748b;font-size:.67rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.lp-stage-metrics strong{overflow:hidden;margin-top:5px;color:#0f172a;font-size:1rem;text-overflow:ellipsis;text-transform:capitalize;white-space:nowrap}.lp-stage-metrics small{overflow:hidden;margin-top:3px;color:#94a3b8;font-size:.67rem;text-overflow:ellipsis;white-space:nowrap}
.lp-stage-panel{padding:18px;border:1px solid #dbe5f0;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.045)}
.lp-stage-field select{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;padding:11px 12px;font:inherit}.lp-stage-field select:focus{outline:3px solid rgba(59,130,246,.18);border-color:#3b82f6}
.lp-stage-readiness{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:14px 16px;border:1px solid #dbeafe;border-radius:14px;background:#eff6ff}.lp-stage-readiness>span{color:#1e40af;font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.lp-stage-readiness>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.lp-stage-readiness b{padding:6px 9px;border-radius:999px;background:#fff;color:#334155;font-size:.68rem}
.lp-stage-backdrop[data-stage="parts"] .lp-stage-header,.lp-stage-backdrop[data-stage="waiting-repair"] .lp-stage-header{background:linear-gradient(135deg,#172554,#1d4ed8)}
.lp-stage-backdrop[data-stage="in-repair"] .lp-stage-header{background:linear-gradient(135deg,#111827,#7c2d12)}
.lp-stage-backdrop[data-stage="sublet"] .lp-stage-header,.lp-stage-backdrop[data-stage="in-transit"] .lp-stage-header{background:linear-gradient(135deg,#0f172a,#075985)}
.lp-stage-backdrop[data-stage="detail"] .lp-stage-header{background:linear-gradient(135deg,#1e1b4b,#6d28d9)}
.lp-stage-backdrop[data-stage="photography"] .lp-stage-header{background:linear-gradient(135deg,#111827,#4338ca)}
.lp-stage-backdrop[data-stage="frontline"] .lp-stage-header{background:linear-gradient(135deg,#052e16,#15803d)}
.lp-stage-backdrop[data-stage="wholesale"] .lp-stage-header{background:linear-gradient(135deg,#1c1917,#78350f)}
@media(max-width:680px){
  .lp-stage-hero{grid-template-columns:1fr;padding:16px}.lp-stage-hero-badge{min-width:0;text-align:left}
  .lp-stage-metrics{grid-template-columns:1fr 1fr}.lp-stage-panel{padding:14px}
  .lp-stage-readiness{align-items:flex-start;flex-direction:column}.lp-stage-readiness>div{justify-content:flex-start}
}
@media(max-width:390px){
  .lp-stage-metrics{gap:7px}.lp-stage-metrics article{padding:10px}.lp-stage-metrics strong{font-size:.9rem}
}


.lp-stage-backdrop[data-stage="quote-needed"] .lp-stage-header{background:linear-gradient(135deg,#064e3b,#0f766e)}
