#loaner-section{max-width:1150px;margin:auto}.loaner-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:20px 0}.loaner-toolbar label{min-width:180px}.loaner-form{display:grid;gap:18px;max-width:780px;margin:24px 0;padding:24px;border:1px solid #38352d;border-radius:14px}.loaner-form label{display:grid;gap:7px}.loaner-form input,.loaner-form select,.loaner-form textarea,.loaner-toolbar input,.loaner-toolbar select{box-sizing:border-box;width:100%;min-height:46px;padding:10px;border:1px solid #615b4c;border-radius:7px;background:#131313;color:#fff;font:inherit}.loaner-form textarea{min-height:95px}.loaner-form .loaner-check,.loaner-check{display:flex;align-items:start;gap:10px}.loaner-check input{width:22px;min-height:22px;flex-shrink:0}.loaner-record-list,.loaner-evidence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:22px 0}.loaner-card{border:1px solid #38352d;border-radius:12px;padding:18px;background:#111;overflow:hidden}.loaner-card h3,.loaner-card h4{margin-top:0}.loaner-card button{margin-top:14px}.loaner-card input{max-width:100%}.loaner-alert{color:#f9b48d}.loaner-photo{display:block;width:100%;max-height:300px;object-fit:contain;background:#222;margin:8px 0}.loaner-calendar{overflow-x:auto}.loaner-week{display:grid;grid-template-columns:repeat(7,minmax(135px,1fr));border:1px solid #38352d;border-radius:10px;overflow:hidden;min-width:945px}.loaner-day{padding:10px;border-right:1px solid #38352d;min-height:130px}.loaner-day h4{font-size:13px;color:#cbb878}.loaner-calendar-item{display:block;text-align:left;padding:9px;border-radius:5px;background:#29271f;color:#f8f5ed;font-size:12px;margin:7px 0;width:100%;white-space:normal}.loaner-camera{position:relative;max-width:780px;aspect-ratio:4/3;background:#161616;overflow:hidden;border-radius:14px}.loaner-live{width:100%;height:100%;object-fit:contain}.loaner-outline{position:absolute;inset:15% 8%;border:2px dashed #d3c18c;border-radius:25%;pointer-events:none;display:flex;justify-content:center;align-items:end}.loaner-outline span{background:#000a;padding:8px;font-size:12px;margin-bottom:10px}.loaner-ghost{position:absolute;inset:0;margin:0;max-height:none;width:100%;height:100%;object-fit:contain;opacity:.35;pointer-events:none}.loaner-terms{border:1px solid #494332;padding:16px}.loaner-terms pre,.loaner-print pre{white-space:pre-wrap;font:inherit;line-height:1.65}.loaner-signature{max-width:640px;margin:20px 0}.loaner-signature canvas{width:100%;background:white;touch-action:none;border-radius:8px}.loaner-signed-image{width:320px;max-width:100%;background:white}.loaner-print{padding:24px;border:1px solid #555;max-width:900px}.loaner-print .detail{overflow-wrap:anywhere}@media(max-width:600px){.loaner-form{padding:14px}.loaner-toolbar button{flex:1}.loaner-evidence-grid{grid-template-columns:1fr}.loaner-camera{aspect-ratio:3/4}.loaner-outline{inset:25% 5%}}@media print{body *{visibility:hidden}#loaner-content .loaner-print,#loaner-content .loaner-print *{visibility:visible;color:#111!important;background:white!important}.loaner-print{position:absolute;left:0;top:0;width:100%;border:0;font-size:11px}.loaner-print pre{font-size:10px}.loaner-print img{max-height:90px;object-fit:contain}}

.loaner-lookup{border-bottom:1px solid var(--line,#b69a5d);padding-bottom:18px}.loaner-search-results{display:grid;gap:8px}.loaner-search-results button{text-align:left;white-space:normal;overflow-wrap:anywhere}.loaner-lookup select{max-width:100%}

.loaner-customer-mode>header,.loaner-customer-mode #view-shell>nav,.loaner-customer-mode footer,.loaner-customer-mode #loaner-section>.eyebrow,.loaner-customer-mode #loaner-section>h2{display:none!important}
.loaner-customer-mode #loaner-content{max-width:740px;margin:auto}.loaner-customer-logo{display:block;width:180px;margin:16px auto 24px}.loaner-term-text{white-space:pre-wrap;line-height:1.65;font-size:1.05rem;margin:20px 0}.loaner-customer-mode .loaner-check{padding:16px 0}.loaner-customer-mode #loaner-content>button{display:block;width:100%;margin-top:14px}.loaner-customer-mode #loaner-status:not(:empty){padding:14px;border:1px solid #c69c5a}.loaner-customer-mode .loaner-signature{margin-top:18px}

.loaner-customer-mode #loaner-content select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:48px;margin:12px 0;padding:10px;background:#131313;color:white;border:1px solid #615b4c;border-radius:7px;font:inherit}

.loaner-conflict{border:2px solid #e14c56;border-radius:10px;background:#3d1118;padding:18px;color:#fff}.loaner-conflict h4{color:#ffb5bb;margin-top:0}.loaner-conflict .loaner-check{margin:18px 0}.loaner-conflict button{margin:8px 8px 0 0}

#logs-link{margin-left:20px;white-space:nowrap}#logs-section{max-width:1000px;margin:auto}.loaner-audit-list{display:grid;gap:16px;margin-top:22px}.loaner-audit-change{border-top:1px solid #494332;margin-top:14px}.loaner-audit-change pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-height:320px;overflow:auto}.loaner-audit-change h4{overflow-wrap:anywhere}#logs-content>label{display:grid;gap:8px}

.loaner-manual-entry{margin:16px 0}.loaner-manual-entry>summary{cursor:pointer;list-style:none;display:inline-block;padding:12px 18px;border:1px solid #685b40;border-radius:5px;color:var(--gold);font-size:14px}.loaner-manual-entry>summary::-webkit-details-marker{display:none}.loaner-manual-entry[open]>summary{margin-bottom:12px}

.loaner-calendar-times{display:block;margin-top:.4rem;font-size:.78rem;line-height:1.45;font-weight:400}.loaner-archive{margin-top:1.25rem;border-top:1px solid var(--line,#665f48);padding-top:1rem}.loaner-archive>summary{cursor:pointer;padding:.75rem 0;font-weight:600}.loaner-archive>.loaner-record-list{margin-top:.75rem}

.loaner-timeline{min-width:980px;border:1px solid #38352d;border-radius:10px;overflow:hidden}.loaner-timeline-head{display:grid;grid-template-columns:repeat(7,1fr);background:#191815}.loaner-timeline-day{padding:10px;border-right:1px solid #38352d}.loaner-timeline-day h4{margin:0 0 8px;color:#cbb878;font-size:13px}.loaner-timeline-hours{position:relative;height:18px;font-size:11px;color:#aaa}.loaner-timeline-hours span{position:absolute}.loaner-timeline-hours span:nth-child(2){left:40%;transform:translateX(-50%)}.loaner-timeline-hours span:last-child{right:0}.loaner-timeline-row{padding:10px 0;border-top:1px solid #38352d}.loaner-timeline-label,.loaner-timeline-caption{margin:0 12px 8px;font-size:12px}.loaner-timeline-caption{margin-top:7px;margin-bottom:0;color:#bbb}.loaner-timeline-track{position:relative;height:42px;background:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / 7 - 1px),#4a4537 calc(100% / 7 - 1px),#4a4537 calc(100% / 7))}.loaner-timeline-bar{box-sizing:border-box;position:absolute;top:0;height:42px;min-width:3px;padding:8px 4px;border:1px solid #b49d5a;border-radius:6px;background:#615331;color:#fff;font-size:12px;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.loaner-timeline-bar.is-out{background:#28524c;border-color:#669f93}.loaner-record-list>h3,.loaner-record-list>.loaner-archive{grid-column:1/-1}

.loaner-color-legend{display:flex;flex-wrap:wrap;gap:12px 20px;margin:12px 0;font-size:13px}.loaner-color-key{display:inline-flex;align-items:center;gap:8px}.loaner-color-swatch{width:14px;height:14px;border-radius:4px;display:inline-block;flex-shrink:0}

/* Immersive guided capture stays outside transformed page containers. */
body.loaner-camera-mode{overflow:hidden!important;overscroll-behavior:none}
.loaner-capture-screen{position:fixed;inset:0;z-index:10000;background:#090b0c;color:#fff;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);box-sizing:border-box;overflow:hidden;overscroll-behavior:none}
.loaner-capture-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 16px;background:#131719}
.loaner-capture-header p{font:500 15px/1.2 sans-serif;margin:3px 0;color:#eee}.loaner-capture-header small{font:12px sans-serif;color:#cdbf90}
.loaner-capture-screen button{min-height:42px;margin:0;padding:8px 18px;font:600 14px sans-serif;touch-action:manipulation}
.loaner-capture-stage{position:relative;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
.loaner-capture-stage>.loaner-live,.loaner-capture-review{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}
.loaner-silhouette{position:absolute;width:80%;height:85%;fill:none;stroke:#fff4ce;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;opacity:.75;pointer-events:none;filter:drop-shadow(0 1px 2px #000)}
.loaner-capture-stage .loaner-ghost{position:absolute;width:100%;height:100%;inset:0;object-fit:contain;opacity:.35;pointer-events:none}
.loaner-capture-status{margin:0;padding:4px 14px;text-align:center;font:12px/1.3 sans-serif;color:#e8dfc7;min-height:16px}
.loaner-capture-actions{display:flex;justify-content:center;gap:12px;padding:6px 12px;background:#131719}
.loaner-capture-screen [hidden]{display:none!important}
.loaner-rotate{display:none}.loaner-capture-stage.reviewing>.loaner-silhouette,.loaner-capture-stage.reviewing>.loaner-ghost{display:none}
@media(pointer:coarse) and (orientation:portrait){.loaner-capture-actions{gap:6px;flex-wrap:wrap}.loaner-capture-screen button{padding:8px 12px}}

.loaner-capture-header>div:first-child{flex:1;min-width:0}
.loaner-camera-more{position:relative;flex:0 0 auto}
.loaner-camera-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:#c9c9c9;font:700 20px sans-serif}
.loaner-camera-more>summary::-webkit-details-marker{display:none}
.loaner-camera-more-panel{position:absolute;top:100%;right:0;z-index:5;min-width:205px;padding:8px;background:#202629;border:1px solid #596064;border-radius:8px;box-shadow:0 8px 24px #0008}
.loaner-camera-more-panel button{width:100%;white-space:nowrap}

.loaner-live-surface{position:fixed;inset:0;z-index:9999;background:#090b0c;pointer-events:none;overflow:hidden}
.loaner-capture-screen{background:transparent}
.loaner-capture-review{background:#090b0c}

.loaner-capture-save{font:12px/1.25 sans-serif!important;color:#e4c782!important;margin:2px 0!important}

/* Exterior photos are taken from the original stream; guides stay UI-only. */
.loaner-exterior-live{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.loaner-exterior-guide{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:center}
.loaner-exterior-guide .loaner-silhouette{position:static;transform:none;width:88%;height:88%;max-width:100%;max-height:100%}
.loaner-capture-actions a.secondary{color:inherit;padding:10px;text-decoration:underline}

.loaner-capture-screen[aria-label="Exterior video and photos"]{background:#090b0c}

/* Exterior test layout: navigation beside the view, shutter at lower right. */
.loaner-exterior-navigation{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px;z-index:2;max-width:145px}
.loaner-exterior-navigation button{padding:10px!important;font-size:12px!important;background:#202629}
.loaner-capture-screen[aria-label="Exterior video and photos"] .loaner-capture-actions{display:flex;align-items:stretch;justify-content:space-between;gap:12px}
.loaner-exterior-detail{margin-right:auto!important}
.loaner-exterior-shutter{min-width:180px;background:#e60028!important;color:white!important}
.loaner-exterior-finish{background:#202629!important;border:1px solid #73787b!important;color:white!important;font-size:12px!important}
@media(max-height:500px){.loaner-exterior-navigation{max-width:105px;gap:8px}.loaner-capture-screen[aria-label="Exterior video and photos"] .loaner-capture-header{padding:6px 12px}.loaner-capture-screen[aria-label="Exterior video and photos"] .loaner-capture-actions button{padding:8px 12px;font-size:12px;min-height:44px}.loaner-exterior-shutter{min-width:160px}}
.loaner-capture-screen[aria-label="Exterior video and photos"] .loaner-capture-stage{background:#000;--navigation-rail:150px}
.loaner-exterior-live{left:var(--navigation-rail);width:calc(100% - var(--navigation-rail))}
.loaner-exterior-guide{left:var(--navigation-rail);width:calc(100% - var(--navigation-rail))}
@media(max-height:500px){.loaner-capture-screen[aria-label="Exterior video and photos"] .loaner-capture-stage{--navigation-rail:120px}}

.loaner-inspection-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.loaner-inspection-menu button{width:100%;min-height:64px}.loaner-inspection-menu .detail{margin:12px 0 0}

/* Continuous walkthrough: full-height evidence frame, controls at the edges. */
.loaner-capture-screen.loaner-walkthrough{display:block;padding:0;background:#000;--walk-left:calc(env(safe-area-inset-left) + 8px);--walk-right:calc(env(safe-area-inset-right) + 8px);--walk-top:calc(env(safe-area-inset-top) + 8px);--walk-bottom:calc(env(safe-area-inset-bottom) + 8px);--walk-nav:80px;--walk-actions:112px}
.loaner-walkthrough .loaner-capture-stage{position:absolute;inset:0;--navigation-rail:0px!important}
.loaner-walkthrough .loaner-exterior-live{inset:0;width:100%;height:100%;object-fit:contain}
.loaner-walkthrough .loaner-exterior-guide{inset:0;width:100%;height:100%}
.loaner-walkthrough .loaner-capture-header{position:absolute;top:var(--walk-top);left:calc(var(--walk-left) + var(--walk-nav) + 8px);right:calc(var(--walk-right) + var(--walk-actions) + 8px);min-height:0;padding:6px 10px!important;border:0;border-radius:10px;background:#090d12b8;pointer-events:none}
.loaner-walkthrough .loaner-capture-header>div:first-child:before{display:none}
.loaner-walkthrough .loaner-capture-header small{font:500 11px/1.2 system-ui;color:#f0daab}
.loaner-walkthrough .loaner-capture-header p{font:600 14px/1.25 system-ui;margin:2px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.loaner-walkthrough button,.loaner-walkthrough summary{letter-spacing:0;text-transform:none;border-radius:10px;font:600 12px/1.2 system-ui;min-height:44px;white-space:normal}
.loaner-walkthrough .secondary{background:#10161ee6;border-color:#ffffff40;color:#fff}
.loaner-walkthrough .loaner-exterior-navigation{left:var(--walk-left);width:var(--walk-nav);max-width:none;gap:8px;z-index:2}
.loaner-walkthrough .loaner-exterior-navigation button{min-height:44px;padding:8px!important;background:#10161ee6}
.loaner-walkthrough .loaner-exterior-detail{position:absolute;left:var(--walk-left);bottom:var(--walk-bottom);width:var(--walk-nav);min-height:60px;padding:8px;z-index:2}
.loaner-walkthrough .loaner-walkthrough-exit,.loaner-walkthrough .loaner-walkthrough-mic{position:absolute;top:var(--walk-top);width:var(--walk-actions);padding:8px;z-index:4}
.loaner-walkthrough .loaner-walkthrough-exit{right:var(--walk-right)}
.loaner-walkthrough .loaner-walkthrough-mic{left:var(--walk-left);width:var(--walk-nav)}
.loaner-walkthrough .loaner-walkthrough-mic:disabled{opacity:.9}
.loaner-walkthrough .loaner-walkthrough-mic[aria-pressed=true]{color:#c0f0ce}
.loaner-capture-screen.loaner-walkthrough .loaner-capture-actions{position:absolute;right:var(--walk-right);bottom:var(--walk-bottom);width:var(--walk-actions);display:flex;flex-direction:column;gap:8px;padding:0;background:transparent;z-index:3}
.loaner-walkthrough .loaner-capture-actions button{width:100%;min-width:0;min-height:44px;padding:10px 8px;font-size:12px}
.loaner-capture-screen.loaner-walkthrough .loaner-capture-actions .primary{min-height:80px;font-size:15px;line-height:1.3;border:1px solid #ff5368;background:#df0024}
.loaner-walkthrough .loaner-walkthrough-hint{position:absolute;bottom:var(--walk-bottom);left:calc(var(--walk-left) + var(--walk-nav) + 8px);right:calc(var(--walk-right) + var(--walk-actions) + 8px);margin:0;padding:5px 9px;color:#fff;background:#090d12b8;border-radius:8px;font:12px/1.3 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.loaner-walkthrough-hint:empty{display:none}
.loaner-walkthrough-info{position:absolute;top:calc(var(--walk-top) + 52px);right:var(--walk-right);width:var(--walk-actions);z-index:5}
.loaner-walkthrough-info>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;background:#10161ee6;border:1px solid #ffffff40;color:#fff;padding:8px}
.loaner-walkthrough-info>summary::-webkit-details-marker{display:none}
.loaner-walkthrough-info-panel{position:absolute;right:calc(100% + 8px);top:0;width:min(340px,calc(100vw - var(--walk-left) - var(--walk-right) - var(--walk-nav) - var(--walk-actions) - 16px));max-height:calc(100dvh - var(--walk-top) - var(--walk-bottom) - 60px);overflow:auto;padding:14px;border:1px solid #ffffff50;border-radius:10px;background:#10161ef5;box-shadow:0 6px 25px #0009;font:13px/1.5 system-ui}
.loaner-walkthrough-info-panel .loaner-capture-status{padding:8px 0;text-align:left;white-space:normal;overflow-wrap:anywhere}
.loaner-walkthrough-info-panel small{display:block;font-size:11px;color:#cdbf90;margin-top:8px}
.loaner-walkthrough-info-panel button,.loaner-walkthrough-info-panel a{display:block;width:100%;margin-top:10px}
.loaner-walkthrough-info-panel .loaner-check{align-items:center;margin:12px 0}
.loaner-walkthrough-prep{position:absolute;left:calc(var(--walk-left) + var(--walk-nav) + 8px);right:calc(var(--walk-right) + var(--walk-actions) + 8px);top:50%;transform:translateY(-50%);max-height:calc(100% - 140px);overflow:auto;padding:16px 18px;border:1px solid #ffffff30;border-radius:12px;background:#10161eee;font:14px/1.5 system-ui;color:#eee}
.loaner-walkthrough-prep strong{font-size:16px;color:#fff}.loaner-walkthrough-prep p{margin:6px 0 0}
@media(max-height:340px) and (orientation:landscape){.loaner-walkthrough .loaner-exterior-navigation{gap:4px;top:47%}.loaner-walkthrough .loaner-exterior-detail{min-height:48px}.loaner-walkthrough-prep{padding:10px 14px;font-size:12px}.loaner-walkthrough .loaner-capture-header p{font-size:13px}}
@media(orientation:portrait){.loaner-capture-screen.loaner-walkthrough{--walk-nav:64px;--walk-actions:96px}.loaner-walkthrough .loaner-capture-header{left:var(--walk-left);right:calc(var(--walk-right) + var(--walk-actions) + 8px)}.loaner-walkthrough .loaner-walkthrough-mic{top:calc(var(--walk-top) + 68px)}.loaner-walkthrough-prep{left:var(--walk-left);right:var(--walk-right);top:40%}.loaner-walkthrough .loaner-walkthrough-hint{left:var(--walk-left);bottom:calc(var(--walk-bottom) + 96px)}.loaner-walkthrough-info-panel{width:calc(100vw - var(--walk-left) - var(--walk-right) - var(--walk-actions) - 8px)}}

/* Capture controls have their own rows. The evidence preview uses the full width. */
.loaner-capture-screen.loaner-walkthrough{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto minmax(90px,1fr) auto auto auto auto;gap:8px;padding:calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 8px) calc(env(safe-area-inset-bottom) + 8px) calc(env(safe-area-inset-left) + 8px);background:#080b10}
.loaner-walkthrough .loaner-capture-header{position:static;grid-column:1/-1;grid-row:2;padding:8px 10px!important;background:#17212e;pointer-events:auto;border-radius:8px}
.loaner-walkthrough .loaner-capture-header p{font-size:15px;-webkit-line-clamp:3}
.loaner-walkthrough .loaner-capture-stage{position:relative;inset:auto;grid-column:1/-1;grid-row:3;min-width:0;min-height:0;border-radius:8px;background:#000}
.loaner-walkthrough .loaner-exterior-live,.loaner-walkthrough .loaner-exterior-guide{left:0!important;width:100%!important}
.loaner-walkthrough .loaner-exterior-navigation{position:static;grid-row:5;grid-column:1/3;transform:none;width:auto;max-width:none;display:flex;flex-direction:row;gap:8px}
.loaner-walkthrough .loaner-exterior-navigation button{flex:1;min-width:0}
.loaner-walkthrough .loaner-exterior-detail{position:static;grid-row:5;grid-column:3;width:auto;min-height:44px;margin:0!important;padding:6px}
.loaner-walkthrough .loaner-walkthrough-exit,.loaner-walkthrough .loaner-walkthrough-mic{position:static;grid-row:1;width:auto;padding:8px}
.loaner-walkthrough .loaner-walkthrough-exit{grid-column:3}.loaner-walkthrough .loaner-walkthrough-mic{grid-column:2}
.loaner-walkthrough-info{position:relative;inset:auto;grid-row:1;grid-column:1;width:auto;z-index:5}
.loaner-walkthrough-info>summary{height:100%;box-sizing:border-box}
.loaner-walkthrough-info-panel{position:absolute;top:calc(100% + 8px);left:0;right:auto;width:min(350px,calc(100vw - 32px));max-height:calc(100dvh - 100px);box-sizing:border-box}
.loaner-walkthrough .loaner-walkthrough-hint{position:static;grid-row:4;grid-column:1/-1;white-space:normal;overflow-wrap:anywhere;max-height:92px;overflow:auto;margin:0;padding:6px 8px;font-size:13px;pointer-events:auto;background:#17212e}
.loaner-capture-screen.loaner-walkthrough .loaner-capture-actions{position:static;grid-row:6;grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:auto;gap:8px;padding:0;background:transparent}
.loaner-capture-screen.loaner-walkthrough .loaner-capture-actions button,.loaner-capture-screen.loaner-walkthrough .loaner-capture-actions .primary{width:100%;min-height:52px;padding:10px 8px;font-size:14px;line-height:1.25}
.loaner-capture-screen.loaner-walkthrough .loaner-capture-actions .loaner-exterior-finish{background:#e8cf93!important;color:#17130b!important;border-color:#e8cf93!important;font-size:14px!important}
.loaner-walkthrough-prep{inset:12px;top:12px;transform:none;max-height:calc(100% - 24px);padding:12px;font-size:13px;box-sizing:border-box}
.loaner-walkthrough>.access-help-capture-entry{position:static;grid-row:7;grid-column:1/-1;transform:none;width:100%;max-width:none;min-height:44px;box-sizing:border-box}
.loaner-section-restart{border-color:#a85858!important;color:#f0b2b2!important;margin-top:10px!important;min-height:44px!important}
@media(max-height:520px) and (orientation:landscape){.loaner-capture-screen.loaner-walkthrough{grid-template-columns:minmax(0,1fr) 105px 135px;grid-template-rows:auto auto minmax(70px,1fr) auto;gap:6px}.loaner-walkthrough .loaner-capture-stage{grid-column:1;grid-row:2/5}.loaner-walkthrough .loaner-capture-header{grid-row:1;grid-column:1}.loaner-walkthrough .loaner-capture-header p{-webkit-line-clamp:2;font-size:13px}.loaner-walkthrough-info{grid-row:1;grid-column:2}.loaner-walkthrough .loaner-walkthrough-exit{grid-row:1;grid-column:3}.loaner-walkthrough .loaner-walkthrough-mic{grid-row:2;grid-column:2}.loaner-walkthrough .loaner-exterior-navigation{grid-row:3;grid-column:2;flex-direction:column}.loaner-walkthrough .loaner-exterior-detail{grid-row:4;grid-column:2}.loaner-capture-screen.loaner-walkthrough .loaner-capture-actions{grid-row:2/4;grid-column:3;display:flex;flex-direction:column}.loaner-walkthrough .loaner-walkthrough-hint{grid-row:4;grid-column:3;max-height:76px;font-size:11px}.loaner-walkthrough>.access-help-capture-entry{grid-column:1;grid-row:5;min-height:36px}.loaner-walkthrough-info-panel{left:auto;right:0;width:min(350px,calc(100vw - 32px))}}

/* One saved job identity follows every inspection screen and camera session. */
.inspection-job-title{position:sticky;top:0;z-index:7;display:grid;gap:3px;min-width:0;box-sizing:border-box;margin:0 0 12px;padding:calc(9px + env(safe-area-inset-top)) 12px 9px;background:#151b20;border:1px solid #6b6044;border-radius:8px;color:#f4f2e9;line-height:1.3;text-align:left;isolation:isolate}
.inspection-job-reference{font:600 .86rem/1.3 Inter,system-ui,sans-serif;color:#e8d39c;overflow-wrap:anywhere}
.inspection-job-vehicle{font:600 1rem/1.3 Inter,system-ui,sans-serif;min-width:0;overflow-wrap:anywhere}
.inspection-job-phase{font:.78rem/1.35 Inter,system-ui,sans-serif;color:#d2d7d9;overflow-wrap:anywhere}
.inspection-job-title-embedded{position:static;margin:0 0 12px;padding:8px 10px;background:#192126;z-index:auto}
.inspection-job-view :is(button,input,textarea,select,summary,a){scroll-margin-top:calc(var(--inspection-job-header-height,110px) + 14px)}
.loaner-capture-screen>.inspection-job-title{grid-column:1/-1;grid-row:1;position:sticky;top:0;margin:0;padding:8px 10px;z-index:8}
.loaner-capture-screen.inspection-job-view:not(.loaner-walkthrough){grid-template-rows:auto auto minmax(90px,1fr) auto auto;overflow-y:auto}
.loaner-capture-screen.loaner-walkthrough.inspection-job-view{grid-template-rows:auto auto auto minmax(90px,1fr) auto auto auto auto;overflow-y:auto}
.loaner-walkthrough.inspection-job-view .loaner-capture-header{grid-row:3}
.loaner-walkthrough.inspection-job-view .loaner-capture-stage{grid-row:4}
.loaner-walkthrough.inspection-job-view .loaner-walkthrough-exit,.loaner-walkthrough.inspection-job-view .loaner-walkthrough-mic,.loaner-walkthrough.inspection-job-view .loaner-walkthrough-info{grid-row:2}
.loaner-walkthrough.inspection-job-view .loaner-walkthrough-hint{grid-row:5}
.loaner-walkthrough.inspection-job-view .loaner-exterior-navigation,.loaner-walkthrough.inspection-job-view .loaner-exterior-detail{grid-row:6}
.loaner-capture-screen.loaner-walkthrough.inspection-job-view .loaner-capture-actions{grid-row:7}
.loaner-walkthrough.inspection-job-view>.access-help-capture-entry{grid-row:8}
.loaner-walkthrough.inspection-job-view .loaner-walkthrough-info-panel{max-height:calc(100dvh - var(--inspection-job-header-height,110px) - 80px)}
@media(max-height:520px) and (orientation:landscape){.loaner-capture-screen.loaner-walkthrough.inspection-job-view{grid-template-rows:auto auto auto minmax(70px,1fr) auto auto}.loaner-walkthrough.inspection-job-view .loaner-capture-header,.loaner-walkthrough.inspection-job-view .loaner-walkthrough-info,.loaner-walkthrough.inspection-job-view .loaner-walkthrough-exit{grid-row:2}.loaner-walkthrough.inspection-job-view .loaner-capture-stage{grid-row:3/6}.loaner-walkthrough.inspection-job-view .loaner-walkthrough-mic{grid-row:3}.loaner-walkthrough.inspection-job-view .loaner-exterior-navigation{grid-row:4}.loaner-walkthrough.inspection-job-view .loaner-exterior-detail,.loaner-walkthrough.inspection-job-view .loaner-walkthrough-hint{grid-row:5}.loaner-capture-screen.loaner-walkthrough.inspection-job-view .loaner-capture-actions{grid-row:3/5}.loaner-walkthrough.inspection-job-view>.access-help-capture-entry{grid-row:6}}

.inspection-retained-attempt{overflow:visible}
.inspection-retained-attempt>.inspection-job-title-embedded{position:sticky;top:calc(var(--inspection-job-header-height,0px) + 8px);z-index:6;background:#283029}
.inspection-retained-attempt>.inspection-job-title-embedded .inspection-job-reference,.inspection-retained-attempt>.inspection-job-title-embedded .inspection-job-vehicle{display:none}

.customer-saved-search{margin-top:.75rem}.customer-saved-search>label{display:grid;gap:.5rem;font-weight:600}.customer-saved-search input{box-sizing:border-box;width:100%;min-height:48px;padding:.8rem;border:1px solid #706b5b;border-radius:7px;background:#151a1c;color:#fff;font:inherit;font-size:16px}.customer-saved-results{margin-top:1rem}.customer-history-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.customer-history-stage{min-width:0}.customer-source-summary button{white-space:normal;text-align:left;width:100%;min-height:48px}.customer-source-summary .detail{overflow-wrap:anywhere}.customer-evidence-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.customer-evidence-filters button{min-height:46px}.customer-evidence-filters button[aria-pressed=true]{border-color:#e4cb92;background:#363125}.customer-original-link{display:inline-block;padding:.65rem 0;min-height:24px;color:#f1db9f}.customer-original-image{display:block}.customer-evidence-card h4,.customer-evidence-card .detail{overflow-wrap:anywhere}.customer-saved-answers>summary,.customer-active-tickets>summary{min-height:44px;display:list-item;padding:.75rem 0;cursor:pointer}@media(max-width:620px){.customer-history-stages{grid-template-columns:1fr}.customer-saved-result{padding:14px}.customer-saved-search>button{width:100%}}

/* Shared, read-only inspection evidence browser. */
.customer-evidence-browser{max-width:1100px;margin-inline:auto}.customer-browser-intro{max-width:48rem;margin:0 0 1.5rem;color:#c7c3b9;line-height:1.7}.customer-evidence-browser>.customer-saved-search{padding:clamp(18px,3vw,32px);margin-top:0}.customer-evidence-browser .customer-saved-search>label{font-size:clamp(16px,2vw,20px);gap:.75rem}.customer-evidence-browser .customer-saved-search input{min-height:58px;font-size:18px;padding:1rem}.customer-evidence-browser .customer-saved-search>button{min-height:48px}.customer-evidence-browser .customer-saved-results{display:grid;gap:1rem;margin-top:1.5rem}.customer-evidence-browser .customer-saved-result{margin:0;display:grid;gap:.4rem}.customer-evidence-browser .customer-saved-result h3{font-family:inherit;font-size:1.05rem;line-height:1.5;margin:0}.customer-evidence-vehicle{margin:.3rem 0;font-size:1.1rem}.customer-evidence-vin{overflow-wrap:anywhere}.customer-evidence-browser .customer-saved-result button{justify-self:start;min-height:48px}.customer-evidence-browser .customer-operations-link{margin-top:1.5rem;min-height:48px}.customer-ro-gallery{padding:1.4rem 0;border-bottom:1px solid #39362f}.customer-ro-gallery h3{font-size:clamp(22px,3vw,30px);line-height:1.4}.customer-evidence-browser .customer-history-stages{gap:1.25rem;margin-top:1.5rem}.customer-evidence-browser .customer-history-stage{padding:1.25rem;background:#131413;border:1px solid #39362f;border-radius:8px}.customer-evidence-browser .customer-history-stage>h4{margin:0 0 1rem;font-size:1.15rem}.customer-evidence-browser .customer-source-summary button{min-height:54px}.customer-preserved-attempts{margin-top:1rem}.customer-preserved-attempts>summary{padding:.8rem 0;min-height:44px;cursor:pointer;color:#e4d5ad}.customer-source-status{border-left:3px solid #b39a61;padding:.5rem 1rem;color:#e4d5ad}.customer-media-section{margin:2rem 0}.customer-media-heading{font-size:1.5rem;padding-bottom:.75rem;border-bottom:1px solid #4a4437}.customer-media-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem}.customer-evidence-card{min-width:0;margin:0;padding:1rem}.customer-evidence-card h5{font-size:.95rem;line-height:1.5;margin:0}.customer-evidence-card video{width:100%;height:auto;max-height:65dvh;display:block;background:#050505}.customer-photo-open{display:block;width:100%;padding:0;border:1px solid #514a3b;border-radius:6px;background:#080908;color:#ead6aa;cursor:zoom-in;text-transform:none;letter-spacing:normal;overflow:hidden}.customer-photo-open .loaner-photo{display:block;width:100%;height:240px;object-fit:contain;margin:0;background:#080908}.customer-photo-expand{display:block;padding:.8rem;min-height:44px;box-sizing:border-box}.customer-photo-open:focus-visible,.customer-original-link:focus-visible{outline:3px solid #f3d99b;outline-offset:4px}.customer-photo-dialog{width:min(1100px,calc(100vw - 32px));max-width:1100px;max-height:calc(100dvh - 24px);box-sizing:border-box;padding:18px;overflow:auto}.customer-photo-dialog h3{font-family:inherit;font-size:1rem;line-height:1.5}.customer-photo-dialog>button{min-height:48px;position:sticky;top:0;z-index:1;background:#20201c}.customer-expanded-photo{display:block;width:100%;height:auto;max-height:75dvh;object-fit:contain;background:#050505}.customer-photo-dialog::backdrop{background:#000d}.customer-evidence-browser .customer-saved-answers{margin:2rem 0}.customer-evidence-browser .customer-original-link{min-height:44px;box-sizing:border-box;padding:.85rem 0}.customer-evidence-browser button{touch-action:manipulation}.customer-evidence-browser .customer-media-section>.detail{max-width:45rem}@media(max-width:620px){.customer-evidence-browser .customer-saved-search input{font-size:16px}.customer-evidence-browser .customer-saved-result button{justify-self:stretch;width:100%}.customer-evidence-browser .customer-history-stages{grid-template-columns:1fr}.customer-evidence-browser .customer-history-stage{padding:1rem}.customer-photo-dialog{padding:12px}.customer-media-grid{grid-template-columns:1fr}.customer-evidence-browser>.secondary{min-height:48px}}
.customer-media-navigation{display:flex;gap:.75rem;position:sticky;top:8px;z-index:4;padding:.7rem;background:#111e;border:1px solid #4a4437;border-radius:7px;margin:1.5rem 0}.customer-media-navigation button{flex:1;min-height:50px;font-size:14px}.customer-media-section{scroll-margin-top:100px}.customer-media-section:focus{outline:none}
/* Keep contextual Back separate from the explicit shop destination. */
.view-nav-destination{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap}.contextual-flow .view-nav{align-items:flex-start}.contextual-flow #back-home{flex:0 0 auto;font-size:14px;max-width:50%;line-height:1.4}.view-nav-destination #shop-controls-return{font-size:11px;letter-spacing:.2px;min-height:44px;padding:10px 14px;text-transform:none}.contextual-flow #back-home[aria-disabled=true]{opacity:.65;pointer-events:none}@media(max-width:650px){.contextual-flow .view-nav{gap:10px}.view-nav-destination{gap:6px;flex:1;flex-direction:column;align-items:flex-end}.view-nav-destination #shop-controls-return{font-size:10px;padding:9px 10px}.contextual-flow #back-home{max-width:48%}}

/* The unit summary persists while staff open a record, form or inspection. */
#loaner-unit-status{margin:18px 0 26px}.loaner-unit-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.loaner-unit-badge{min-width:0;border:1px solid #514a39;border-radius:10px;padding:12px;background:#12120f}.loaner-unit-tab{width:100%;min-height:44px;padding:6px 0;text-align:left;border:0;background:transparent;color:#f8f8f8;font:inherit;font-weight:600;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.loaner-unit-tab[aria-current=page]{color:var(--gold)}.loaner-unit-badge.is-available{border-top:3px solid #8fb49c}.loaner-unit-badge.is-out{border-top:3px solid var(--gold)}.loaner-unit-badge.is-unavailable{border-top:3px solid #bd8d78}.loaner-unit-borrower,.loaner-unit-service-vehicle,.loaner-unit-due,.loaner-unit-reason{font-size:12px;line-height:1.65;margin:8px 0;color:#c8c8c2;overflow-wrap:anywhere}.loaner-unit-borrower{color:#f0e8d5}.loaner-unit-due{font-variant-numeric:tabular-nums}.loaner-unit-current-status{font-size:18px;font-weight:600;color:var(--gold)}.loaner-unit-current-status.is-available{color:#a9c7b3}.loaner-unit-actions{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}.loaner-unit-actions button{white-space:normal;max-width:100%}.loaner-unit-ro-picker,.loaner-unit-other,.loaner-unit-reason-fields{display:grid;gap:12px;min-width:0;border:0;padding:0;margin:0}.loaner-unit-ro-choice{padding:12px;border-left:3px solid var(--gold);background:#1b1811}.loaner-unit-ro-choice:empty{display:none}.loaner-unit-ro-choice .detail{margin-bottom:0}.loaner-unit-form .loaner-search-results button{width:100%;overflow-wrap:anywhere;white-space:normal}.loaner-unit-form .detail{margin:0}.loaner-unit-form .primary{white-space:normal}.loaner-unit-pending{margin:18px 0}.loaner-unit-pending button{margin:8px 12px 0 0}.loaner-unit-legacy-review{padding:18px;border:1px solid #494332;border-radius:8px;margin:20px 0}.loaner-unit-legacy-review button{margin:0 0 12px}.loaner-unit-legacy-review summary{cursor:pointer;line-height:1.6}.loaner-customer-mode #loaner-unit-status{display:none!important}
@media(max-width:700px){.loaner-unit-strip{grid-template-columns:1fr;gap:8px}.loaner-unit-badge{padding:8px 12px}.loaner-unit-tab{min-height:38px}.loaner-unit-badge p{margin:3px 0;font-size:11px}.loaner-unit-actions{display:grid;grid-template-columns:1fr}.loaner-unit-actions button{width:100%}.loaner-unit-form{padding:14px}.loaner-unit-legacy-review{padding:14px}}
/* Imported Tesla billing is reviewed separately from vehicle handovers. */
.loaner-tesla-panel{min-width:0;margin:26px 0;padding:20px;border:1px solid #65563b;border-radius:10px;background:#11110e}.loaner-tesla-panel h4{margin:0 0 12px}.loaner-tesla-panel h5{margin:0 0 12px;font-size:16px}.loaner-tesla-panel p{overflow-wrap:anywhere}.loaner-tesla-panel .detail{margin:8px 0;min-height:0;line-height:1.65}.loaner-tesla-scope{font-size:12px;line-height:1.7;color:#d1bd92;padding-left:12px;border-left:3px solid var(--gold,#c6ac74)}.loaner-tesla-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.loaner-tesla-panel button,.loaner-tesla-link{white-space:normal;max-width:100%;min-height:44px;line-height:1.5}.loaner-tesla-link{display:inline-flex;align-items:center;padding:10px 12px;color:var(--gold,#c6ac74);border:1px solid #62563c;border-radius:5px;margin:8px 0;text-decoration:none;overflow-wrap:anywhere}.loaner-tesla-mapping,.loaner-tesla-review{min-width:0;padding:14px;border:1px solid #3d382e;border-radius:6px;margin:14px 0}.loaner-tesla-panel label{display:block;font-size:13px;line-height:1.7;margin:12px 0;min-width:0}.loaner-tesla-panel input:not([type=checkbox]),.loaner-tesla-panel select,.loaner-tesla-panel textarea{display:block;width:100%;min-width:0;max-width:100%;padding:12px;margin-top:6px;background:#0b0b0b;color:#eee;border:1px solid #71674f;border-radius:5px;font:400 16px/1.5 Inter,sans-serif}.loaner-tesla-panel input[type=checkbox]{width:20px;height:20px;vertical-align:middle;accent-color:var(--gold,#c6ac74);margin-right:10px}.loaner-tesla-panel textarea{min-height:90px;resize:vertical}.loaner-tesla-charge{min-width:0;padding:16px;border:1px solid #3f3b30;border-radius:7px;margin:16px 0;background:#0b0b0a}.loaner-tesla-match{font-size:13px;color:#ddc78d;line-height:1.7}.loaner-tesla-total{font-weight:600;color:#e5d3aa;line-height:1.6}.loaner-tesla-pending{margin:14px 0;padding:14px;border:1px solid #9a765b}.loaner-tesla-panel button{margin:5px 8px 5px 0}.loaner-customer-mode .loaner-tesla-panel{display:none!important}@media(max-width:650px){.loaner-tesla-panel{padding:14px}.loaner-tesla-panel .loaner-tesla-actions{display:grid;grid-template-columns:1fr}.loaner-tesla-panel .loaner-tesla-actions button{margin:0}.loaner-tesla-mapping,.loaner-tesla-review,.loaner-tesla-charge{padding:12px}.loaner-tesla-review button{display:block;width:100%;margin:10px 0 0}}
.loaner-tesla-ro-addition{margin-top:18px;padding-top:16px;border-top:1px solid #65563b;min-width:0}.loaner-tesla-ro-addition h5{color:#ead5a9}.loaner-tesla-ro-addition .primary{margin-top:12px}
.loaner-tesla-reimbursement{min-width:0;padding:16px;margin:16px 0;border:1px solid #76623e;border-radius:8px;background:#17140d}.loaner-tesla-reimbursement h5{color:#f0d7a1}.loaner-tesla-reimbursement .notice{margin:12px 0}@media(max-width:650px){.loaner-tesla-reimbursement{padding:12px}}
.loaner-tesla-alerts{margin:16px 0;padding:14px;border:1px solid #9c7652;border-radius:7px;background:#20180f}.loaner-tesla-alert{padding:12px 0;border-top:1px solid #55432c}.loaner-tesla-alert .loaner-tesla-link{margin-right:10px}
.loaner-tesla-pricing{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.loaner-tesla-pricing>div{min-width:0;border:1px solid #554b34;border-radius:5px;padding:10px}.loaner-tesla-pricing dt{font-size:12px;line-height:1.5;color:#c6baa1}.loaner-tesla-pricing dd{font-size:16px;line-height:1.6;margin:6px 0 0;color:#f1d9aa;overflow-wrap:anywhere}.loaner-tesla-authorization{font-size:13px;line-height:1.65;color:#e1cc96}.loaner-tesla-session-details{margin:12px 0;padding-left:20px}.loaner-tesla-session-detail{padding:8px 0;border-top:1px solid #4a402e;overflow-wrap:anywhere}.loaner-tesla-reimbursement h6{font-size:13px;line-height:1.5;margin:18px 0 8px}@media(max-width:650px){.loaner-tesla-pricing{grid-template-columns:1fr}.loaner-tesla-pricing>div{padding:8px 10px}}
/* Customer-facing retail view. Maintenance/accounting panels are not mounted here. */
.loaner-current-billing{margin:22px 0}.loaner-current-billing>button{min-height:48px;white-space:normal}.loaner-current-billing-dialog{box-sizing:border-box;width:min(680px,calc(100% - 32px));max-width:680px;max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:1px solid #78613d;border-radius:10px;background:#11110e;color:#eee}.loaner-current-billing-dialog::backdrop{background:#050505}.loaner-current-billing-dialog h3{font-size:28px;line-height:1.3;margin:0 0 24px;overflow-wrap:anywhere}.loaner-current-billing-label{font-size:14px;line-height:1.5;color:#d4c8af;margin:0 0 8px}.loaner-current-billing-amount{font-size:44px;font-weight:600;line-height:1.2;color:#f1d8a6;margin:0 0 12px;overflow-wrap:anywhere}.loaner-current-billing-updated{font-size:12px;line-height:1.6;color:#aaa394}.loaner-current-billing-dialog h4{font-size:15px;margin:26px 0 12px}.loaner-current-billing-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0 0 24px;font-size:13px;line-height:1.6}.loaner-current-billing-table th,.loaner-current-billing-table td{padding:12px 8px;border-bottom:1px solid #3e382b;text-align:left;vertical-align:top;overflow-wrap:anywhere}.loaner-current-billing-table th{font-size:12px;font-weight:500;color:#d4c8af}.loaner-current-billing-table .loaner-current-billing-date{width:41%;padding-left:0}.loaner-current-billing-table .loaner-current-billing-location{width:35%;color:#c8bdab}.loaner-current-billing-table .loaner-current-billing-price{width:24%;padding-right:0;text-align:right;white-space:normal;font-variant-numeric:tabular-nums}.loaner-current-billing-adjustments{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;margin:0 0 22px;font-size:13px;line-height:1.6;color:#c8bdab}.loaner-current-billing-adjustments dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.loaner-current-billing-unavailable{font-size:16px;line-height:1.7;margin:24px 0;color:#dfcfac}.loaner-current-billing-dialog button{min-height:44px;margin-top:16px;white-space:normal}.loaner-customer-mode .loaner-current-billing{display:none!important}@media(max-width:650px){.loaner-current-billing-dialog{padding:20px;max-height:calc(100dvh - 24px)}.loaner-current-billing-dialog h3{font-size:25px}.loaner-current-billing-amount{font-size:40px}}
