:root{--bench-bg:#061012;--bench-card:#0b181b;--bench-raised:#102429;--bench-line:#27535a;--bench-teal:#49d9df;--bench-ink:#effcfc;--bench-muted:#9cb8bc;--bench-amber:#ffc36d}
.customer-shell .code-request-panel{margin-top:20px;padding:18px;border:1px solid var(--bench-line);border-radius:18px;background:linear-gradient(145deg,#102126,#081517)}.customer-shell .code-request-panel h3{margin-top:0}.customer-shell .returned-code{display:grid;gap:12px;margin-top:16px;padding:18px;border:1px solid var(--bench-teal);border-radius:15px;background:#061012}.customer-shell .returned-code span{color:var(--bench-muted);font-size:13px}.customer-shell .returned-code code{display:block;padding:14px;border-radius:10px;background:#020707;color:#d7ffff;font:900 clamp(18px,4vw,28px) ui-monospace,monospace;letter-spacing:.06em;overflow-wrap:anywhere;user-select:all}.customer-shell .code-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.customer-shell .code-actions button{margin:0}.customer-shell .clock-advisory{margin:4px 0 0;padding:10px;border-left:3px solid var(--bench-amber);color:#f6d7a6;font-size:13px;line-height:1.45}
body:has(.customer-shell){background:radial-gradient(900px 520px at 90% -10%,#174f55,transparent 58%),linear-gradient(145deg,#030708,#071315 58%,#050b0d)}
.customer-shell{width:min(1480px,96vw);padding:22px 0 70px}.portal-brand{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 4px 18px;border-bottom:1px solid var(--bench-line)}.portal-brand .brand span{display:grid;gap:2px;color:var(--bench-ink);font-size:15px}.portal-brand .brand small{color:var(--bench-muted);font-size:10px;letter-spacing:.18em}.secure-state{padding:10px 14px;border:1px solid var(--bench-line);border-radius:999px;color:var(--bench-muted);font-size:11px;letter-spacing:.14em}.customer-shell>#uploadRoot{padding:0;background:transparent;border:0;box-shadow:none}.customer-shell .portal-home{display:grid;gap:16px}.customer-shell .customer-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;background:linear-gradient(145deg,#11252a,#0a171a);border:1px solid var(--bench-line);border-radius:20px}.customer-shell .customer-id{display:flex;align-items:center;gap:13px;min-width:0}.customer-shell .customer-logo{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:13px;background:linear-gradient(135deg,#42dbe2,#137880);color:#041114;font-weight:950;overflow:hidden}.customer-shell .customer-logo img{width:100%;height:100%;object-fit:cover}.customer-shell .customer-id strong,.customer-shell .customer-id span{display:block;overflow-wrap:anywhere}.customer-shell .customer-id span{color:var(--bench-muted);font-size:13px}.customer-shell .portal-tabs{display:flex;gap:7px;flex-wrap:wrap}.customer-shell .portal-tabs button{width:auto;margin:0;padding:10px 13px;background:#0b191c;border:1px solid var(--bench-line);color:var(--bench-muted)}.customer-shell .portal-tabs button.active{background:#153b40;border-color:var(--bench-teal);color:var(--bench-ink)}.customer-shell details#newFile{border:1px solid var(--bench-line);border-radius:20px;background:var(--bench-card);overflow:hidden}.customer-shell details#newFile>summary{padding:18px 20px;cursor:pointer;color:var(--bench-ink);font-size:20px;font-weight:900}.customer-shell #quickForm{display:grid;grid-template-columns:minmax(230px,.82fr) minmax(350px,1.35fr) minmax(260px,1fr);gap:14px;padding:0 18px 20px}.customer-shell .bench-section{min-width:0;padding:17px;border:1px solid #1e4147;border-radius:16px;background:#071416}.customer-shell .bench-section h3{margin:0 0 12px;font-size:13px;letter-spacing:.12em;color:var(--bench-teal)}.customer-shell .bench-vehicle{grid-column:1;grid-row:1/3}.customer-shell .bench-solutions{grid-column:2;grid-row:1/4}.customer-shell .bench-upload{grid-column:3;grid-row:1}.customer-shell .bench-dtc{grid-column:3;grid-row:2}.customer-shell .bench-notes{grid-column:3;grid-row:3}.customer-shell #quickForm>progress,.customer-shell #quickForm>#state{grid-column:1/-1}.customer-shell #quickForm>#send{grid-column:3;justify-self:stretch;background:linear-gradient(135deg,#4fe1e5,#20aab3);color:#041113}.customer-shell .bench-section label:first-of-type{margin-top:0}.customer-shell fieldset{padding:12px}.customer-shell .options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.customer-shell .chip{min-width:0;min-height:52px;padding:10px;overflow-wrap:anywhere}.customer-shell .dtc-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.customer-shell .dtc-tag{padding:5px 9px;border:1px solid #31858d;border-radius:999px;background:#0e3034;color:#c9fdff;font:800 12px ui-monospace,monospace}.customer-shell #fileHistory,.customer-shell #savedReceipt>.card,.customer-shell .profile-panel{margin-top:0;padding:20px;background:var(--bench-card);border:1px solid var(--bench-line);border-radius:20px}.customer-shell #fileHistory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.customer-shell #fileHistory h3,.customer-shell #fileHistory .fine{grid-column:1/-1}.customer-shell .history-item{min-width:0;overflow-wrap:anywhere}.customer-shell .receipt-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.42fr);gap:16px}.customer-shell .receipt-main{min-width:0}.customer-shell .request-ticket{padding:16px;border:1px solid #2f6870;border-radius:15px;background:#081416}.customer-shell .progress-track{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:16px 0}.customer-shell .progress-step{height:7px;border-radius:999px;background:#1e3a3e}.customer-shell .progress-step.done{background:var(--bench-teal);box-shadow:0 0 13px #49d9df66}.customer-shell .request-ref{color:var(--bench-muted);font:700 12px ui-monospace,monospace}.customer-shell .message{overflow-wrap:anywhere}.customer-shell .payment-card{padding:16px;border:1px solid #8b6534;border-radius:14px;background:#271b0d}.customer-shell .payment-card strong{color:var(--bench-amber)}.customer-shell .job-return{width:auto;margin:0 0 12px}.customer-shell .profile-panel{display:none}.customer-shell.portal-view-profile .profile-panel{display:block}.customer-shell.portal-view-profile #newFile,.customer-shell.portal-view-profile #fileHistory,.customer-shell.portal-view-profile #savedReceipt{display:none}.customer-shell.portal-view-messages #newFile,.customer-shell.portal-view-messages #fileHistory,.customer-shell.portal-view-payments #newFile,.customer-shell.portal-view-payments #fileHistory{display:none}.customer-shell.portal-view-workbench .receipt-messages,.customer-shell.portal-view-workbench .receipt-payments{display:none}.customer-shell.portal-view-messages .receipt-progress,.customer-shell.portal-view-messages .receipt-payments{display:none}.customer-shell.portal-view-payments .receipt-progress,.customer-shell.portal-view-payments .receipt-messages{display:none}.customer-shell.portal-view-messages #savedReceipt:empty::before,.customer-shell.portal-view-payments #savedReceipt:empty::before{content:'Open a file from its history first.';display:block;padding:20px;border:1px solid var(--bench-line);border-radius:16px;color:var(--bench-muted)}
@media(max-width:980px){.customer-shell #quickForm{grid-template-columns:1fr 1fr}.customer-shell .bench-vehicle{grid-column:1;grid-row:auto}.customer-shell .bench-upload{grid-column:2;grid-row:1}.customer-shell .bench-solutions,.customer-shell .bench-dtc,.customer-shell .bench-notes{grid-column:1/-1;grid-row:auto}.customer-shell #quickForm>#send{grid-column:1/-1}.customer-shell .receipt-shell{grid-template-columns:1fr}}
@media(max-width:620px){.customer-shell{width:100%;padding:12px 12px 80px}.portal-brand{align-items:flex-start}.secure-state{display:none}.customer-shell .customer-head{align-items:flex-start;flex-direction:column}.customer-shell .portal-tabs{display:grid;grid-template-columns:repeat(2,1fr);width:100%}.customer-shell .portal-tabs button{width:100%}.customer-shell #quickForm{display:block;padding:0 11px 14px}.customer-shell .bench-section{margin-bottom:11px}.customer-shell .bench-upload{order:-1}.customer-shell .options{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-shell #quickForm>#send{position:sticky;bottom:10px;width:100%;box-shadow:0 8px 30px #000}.customer-shell #fileHistory{grid-template-columns:1fr}.customer-shell .progress-track{gap:4px}.customer-shell .brand img{width:51px}.customer-shell .portal-brand .brand span{font-size:13px}}

/* The upload page inherits the narrower report .shell rule later in index.html.
   Keep the trade bench viewport-wide without changing the report layout. */
.shell.customer-shell{width:calc(100% - 32px);max-width:none;padding:18px 0 48px}
.customer-shell .portal-home>h2{display:none}
@media(min-width:621px){.customer-shell .portal-home>.notice{display:none}}
.customer-shell .chip{overflow-wrap:normal;word-break:normal;font-size:14px;line-height:1.25}
@media(min-width:1180px){.customer-shell #quickForm{grid-template-columns:minmax(250px,.7fr) minmax(480px,1.65fr) minmax(300px,.9fr)}}
@media(min-width:1360px){.customer-shell .options{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:620px){.shell.customer-shell{width:100%;padding:12px 12px 80px}}

/* Each visible segment names a real customer-facing job milestone. */
.customer-shell .progress-track{list-style:none;padding:0;align-items:start}
.customer-shell .progress-step,.customer-shell .progress-step.done{height:auto;min-width:0;background:none;box-shadow:none}
.customer-shell .progress-bar{display:block;height:7px;border-radius:999px;background:#1e3a3e}
.customer-shell .progress-step.done .progress-bar{background:var(--bench-teal);box-shadow:0 0 13px #49d9df66}
.customer-shell .progress-label{display:block;margin-top:8px;color:var(--bench-muted);font-size:12px;font-weight:700;line-height:1.2;text-align:center;overflow-wrap:anywhere}
.customer-shell .progress-step[aria-current="step"] .progress-label{color:var(--bench-ink)}
.customer-shell .progress-current{margin:0 0 16px;color:var(--bench-teal);font-size:14px;font-weight:800}
.customer-shell .job-return[hidden]{display:none}
@media(max-width:620px){.customer-shell .progress-label{font-size:10px}}

/* Customer appearance borrows the Boosted.BIN light palette. */
.portal-brand-actions{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.customer-shell .theme-toggle{width:auto;margin:0;padding:9px 14px;border:1px solid var(--bench-line);border-radius:999px;background:var(--bench-card);color:var(--bench-ink);font-size:13px;white-space:nowrap}
.customer-shell .theme-toggle:hover,.customer-shell .theme-toggle:focus-visible{border-color:var(--bench-teal);outline-color:var(--bench-teal)}
.customer-shell .profile-appearance{margin-top:24px;padding-top:18px;border-top:1px solid var(--bench-line)}
.customer-shell .profile-appearance h3{margin:0 0 8px}
.customer-shell .profile-appearance select{max-width:320px}
@media(max-width:620px){.portal-brand-actions{align-self:flex-start}.customer-shell .theme-toggle{padding:8px 11px;font-size:12px}}

html[data-trade-theme="light"]{color-scheme:light;--bench-bg:#edf4f3;--bench-card:#fff;--bench-raised:#f3faf9;--bench-line:rgba(26,72,74,.18);--bench-teal:#087e83;--bench-ink:#132728;--bench-muted:#647879;--bench-amber:#8b5617}
html[data-trade-theme="light"] body:has(.customer-shell){background:radial-gradient(900px 520px at 90% -10%,#cce9e7,transparent 58%),linear-gradient(145deg,#edf4f3,#f7fbfa 58%,#e8f2f0);color:var(--bench-ink)}
html[data-trade-theme="light"] .customer-shell .brand{color:var(--bench-teal)}
html[data-trade-theme="light"] .customer-shell .customer-head{background:linear-gradient(145deg,#fff,#f1faf8);box-shadow:0 16px 44px rgba(19,56,57,.07)}
html[data-trade-theme="light"] .customer-shell .portal-tabs button{background:#f3faf9;color:#304748}
html[data-trade-theme="light"] .customer-shell .portal-tabs button.active{background:#d9f1ef;color:#075d62}
html[data-trade-theme="light"] .customer-shell .bench-section,html[data-trade-theme="light"] .customer-shell .request-ticket,html[data-trade-theme="light"] .customer-shell .code-request-panel{background:#f5faf9;border-color:var(--bench-line)}
html[data-trade-theme="light"] .customer-shell .card,html[data-trade-theme="light"] .customer-shell #fileHistory,html[data-trade-theme="light"] .customer-shell #savedReceipt>.card,html[data-trade-theme="light"] .customer-shell .profile-panel{background:#fff;border-color:var(--bench-line);box-shadow:0 16px 44px rgba(19,56,57,.07)}
html[data-trade-theme="light"] .customer-shell input,html[data-trade-theme="light"] .customer-shell textarea,html[data-trade-theme="light"] .customer-shell select{background:#fff;color:#132728;border-color:rgba(26,72,74,.22)}
html[data-trade-theme="light"] .customer-shell .secondary,html[data-trade-theme="light"] .customer-shell .message,html[data-trade-theme="light"] .customer-shell .chip,html[data-trade-theme="light"] .customer-shell .notice{background:#eff8f7;color:#132728;border-color:var(--bench-line)}
html[data-trade-theme="light"] .customer-shell .message.customer,html[data-trade-theme="light"] .customer-shell .chip:has(input:checked){background:#daf1ee;border-color:#2eb4b9}
html[data-trade-theme="light"] .customer-shell .fine,html[data-trade-theme="light"] .customer-shell .lead,html[data-trade-theme="light"] .customer-shell .request-ref{color:#647879}
html[data-trade-theme="light"] .customer-shell fieldset,html[data-trade-theme="light"] .customer-shell .visit,html[data-trade-theme="light"] .customer-shell .overview-block{background:#f7fbfa;border-color:var(--bench-line)}
html[data-trade-theme="light"] .customer-shell .dtc-tag{background:#e0f3f1;color:#075d62;border-color:#71babc}
html[data-trade-theme="light"] .customer-shell .progress-bar{background:#d5e7e5}
html[data-trade-theme="light"] .customer-shell .progress-step.done .progress-bar{box-shadow:0 0 10px rgba(46,180,185,.25)}
html[data-trade-theme="light"] .customer-shell .payment-card{background:#fff5e6;border-color:#d7ac72;color:#513314}
html[data-trade-theme="light"] .customer-shell .payment-card strong{color:#8b5617}
html[data-trade-theme="light"] .customer-shell .returned-code{background:#edf7f6}
html[data-trade-theme="light"] .customer-shell .returned-code code{background:#fff;color:#075d62}
html[data-trade-theme="light"] .customer-shell .clock-advisory{color:#6e481d}
