:root{--bg:#f4f7fb;--panel:#fff;--text:#182235;--muted:#69758a;--line:#e2e8f0;--blue:#1667d9;--blue2:#0b4ea8;--nav:#0e1b2f;--green:#167c4b;--shadow:0 14px 35px rgba(23,37,61,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text)}a{color:var(--blue);text-decoration:none}.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--nav);color:#dce7f7;padding:22px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 24px}.brand small,.sidebar-bottom small{display:block;color:#8291a9;margin-top:3px}.brand-mark{width:64px;height:64px;border-radius:20px;background:linear-gradient(145deg,#36a1ff,#0c4db1);display:grid;place-items:center;color:#fff;font-weight:900;font-size:30px;box-shadow:0 12px 30px rgba(29,108,226,.28)}.brand-mark.small{width:40px;height:40px;border-radius:12px;font-size:20px}.nav-item{display:flex;gap:12px;align-items:center;color:#aebbd0;padding:11px 12px;border-radius:10px;margin:2px 0;font-size:14px}.nav-item:hover,.nav-item.active{background:#172a46;color:#fff}.nav-item span{width:20px;text-align:center}.sidebar-bottom{margin-top:auto;border-top:1px solid #213652;padding:18px 10px 0;display:flex;justify-content:space-between;align-items:end}.sidebar-bottom a{color:#dce7f7}.content{padding:0 34px 28px;min-width:0}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:28px}.topbar>div:first-of-type{flex:1}.top-actions{display:flex;gap:10px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em;color:#71809a;text-transform:uppercase;margin-bottom:6px}.pill,.status{display:inline-flex;padding:6px 10px;border-radius:999px;background:#edf2f8;font-size:12px;font-weight:700;color:#526179}.status.ready{background:#e4f7ed;color:var(--green)}h1{font-size:34px;letter-spacing:-.03em;margin:0 0 8px}h2{font-size:20px;letter-spacing:-.015em;margin:0 0 8px}p{color:var(--muted);line-height:1.6}.hero{background:linear-gradient(115deg,#0f2442,#174f98);color:#fff;border-radius:22px;padding:30px 32px;display:flex;justify-content:space-between;align-items:center;box-shadow:var(--shadow);margin-bottom:20px}.hero h1{font-size:40px}.hero p,.hero .eyebrow{color:#cbdcf2}.btn{display:inline-flex;justify-content:center;align-items:center;padding:11px 16px;border-radius:10px;font-weight:750;border:0;cursor:pointer;font-size:14px}.btn.primary{background:var(--blue);color:#fff}.hero .btn.primary{background:#fff;color:#143865}.btn.secondary{background:#edf3fb;color:#1859aa}.btn.wide{width:100%}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat{background:var(--panel);padding:18px;border:1px solid var(--line);border-radius:16px;color:var(--text);box-shadow:0 5px 18px rgba(30,47,73,.035)}.stat span,.stat small{display:block;color:var(--muted);font-size:12px}.stat strong{display:block;font-size:30px;margin:8px 0}.stat small{color:var(--blue)}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:1.4fr 1fr}.panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 6px 24px rgba(24,42,67,.035)}.panel-head,.page-head,.repair-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.panel-head{padding-bottom:10px}.repair-row,.booking-row,.transaction,.notification{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 0;border-top:1px solid var(--line);color:var(--text)}.repair-row span,.booking-row span,.transaction span{display:block;font-size:12px;color:var(--muted);margin-top:4px}.club-card{background:linear-gradient(145deg,#f8fbff,#edf4ff)}.club-card h2{font-size:30px}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.quick a{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;color:var(--text);display:flex;align-items:center;gap:10px}.quick b{color:var(--blue);font-size:20px}.page-head{margin:8px 0 22px;align-items:center}.page-head p{margin:0}.stack{display:grid;gap:16px}.repair-card h2{font-size:24px;margin-top:6px}.mono{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;color:#71809a}.meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.meta-grid.two-col{grid-template-columns:repeat(2,1fr)}.meta-grid>div{background:#f7f9fc;border-radius:10px;padding:12px}.meta-grid span,.detail-list span{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}.timeline{margin-top:20px;border-top:1px solid var(--line);padding-top:12px}.timeline>div{display:grid;grid-template-columns:16px 76px 1fr;align-items:center;gap:8px;min-height:34px}.timeline>div>span{width:8px;height:8px;background:var(--blue);border-radius:50%}.timeline time{font-size:12px;color:var(--muted)}.timeline p{margin:0;font-size:13px;color:var(--text)}.card-actions{display:flex;gap:18px;padding-top:14px;border-top:1px solid var(--line);font-size:13px}.cards{display:grid;gap:16px}.cards.three{grid-template-columns:repeat(3,1fr)}.cards.two{grid-template-columns:repeat(2,1fr)}.device-icon,.warranty-badge{width:44px;height:44px;border-radius:12px;background:#edf4ff;color:var(--blue);display:grid;place-items:center;font-size:22px;margin-bottom:16px}.device-card .line{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:14px 0;margin-top:14px;font-size:13px}.warranty-card{display:flex;gap:16px}.warranty-badge{background:#e6f7ef;color:var(--green);flex:none}.table-panel{overflow:auto;padding:0}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:15px 18px;border-bottom:1px solid var(--line);font-size:13px}th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);background:#f8fafc}.booking-layout{grid-template-columns:1.3fr .9fr}.form label{display:block;font-size:12px;font-weight:700;margin:14px 0;color:#4c5b70}.form label>span{font-weight:400;color:var(--muted)}input,select,textarea{width:100%;margin-top:7px;border:1px solid #d7deea;border-radius:9px;padding:11px 12px;background:#fff;color:var(--text);font:inherit;font-size:14px}textarea{resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.notice,.alert{background:#eef5ff;border:1px solid #cfe0f7;border-radius:10px;padding:12px 14px;color:#345577;font-size:13px;margin:14px 0}.alert{margin:0 0 18px}.alert.danger{background:#fff1f1;border-color:#f1cccc;color:#8c3434}.club-hero{background:linear-gradient(120deg,#10264a,#174f98);color:#fff;display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.club-hero p,.club-hero .eyebrow{color:#ccdcef}.club-hero h2{font-size:42px}.digital-card{width:300px;min-height:175px;border-radius:18px;background:linear-gradient(140deg,#f9fbff,#dceaff);color:#163968;padding:20px;display:grid;grid-template-columns:1fr 70px;grid-template-rows:auto 1fr auto;box-shadow:0 14px 40px rgba(0,0,0,.18)}.digital-card>span{font-weight:900;letter-spacing:.12em}.digital-card>strong{grid-column:1;align-self:center}.digital-card>small{grid-column:1}.qr-placeholder{grid-column:2;grid-row:1/4;background:#fff;border:6px solid #fff;outline:2px dashed #17385f;display:grid;place-items:center;font-weight:900}.transaction .plus{color:var(--green)}.transaction .minus{color:#a34747}.detail-list>div{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line)}.detail-list span{margin:0}.toggle{display:flex!important;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);margin:0!important}.toggle small{display:block;color:var(--muted);font-weight:400;margin-top:3px}.toggle input{width:20px;height:20px;margin:0}.empty{padding:24px;text-align:center;color:var(--muted)}footer{text-align:center;color:#8b96a7;font-size:11px;padding:34px 0 8px}.menu{display:none;background:none;border:0;font-size:22px}.login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#173f74,#0c1728 58%)}.login-card{width:min(430px,calc(100vw - 32px));background:#fff;border-radius:24px;padding:36px;box-shadow:0 30px 90px rgba(0,0,0,.32);text-align:center}.login-card .brand-mark{margin:0 auto 20px}.login-card h1{font-size:36px}.secure-note{font-size:11px;color:#8290a4;margin-top:16px}.login-card .muted{margin-bottom:24px}.notification{display:block}.notification p{margin:4px 0}.notification small{color:#8a96a8}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:10;left:-270px;width:248px;transition:.2s}.nav-open .sidebar{left:0}.content{padding:0 18px 24px}.menu{display:block;margin-right:14px}.topbar{justify-content:flex-start}.top-actions{margin-left:auto}.stats{grid-template-columns:repeat(2,1fr)}.grid.two,.booking-layout,.cards.three,.cards.two{grid-template-columns:1fr}.quick{grid-template-columns:repeat(2,1fr)}.hero{padding:24px;display:block}.hero .btn{margin-top:10px}.meta-grid{grid-template-columns:repeat(2,1fr)}.club-hero{display:block}.digital-card{width:100%;margin-top:20px}}@media(max-width:520px){h1{font-size:29px}.top-actions{display:none}.stats{grid-template-columns:1fr 1fr}.stat strong{font-size:25px}.repair-card-top,.page-head{display:block}.repair-card-top .status,.page-head .btn{margin-top:10px}.form-row{grid-template-columns:1fr}.meta-grid{grid-template-columns:1fr 1fr}.quick span{font-size:13px}}
.link-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff8e7;border:1px solid #f2d598;border-radius:16px;padding:16px 18px;margin:18px 0;color:#59451c}.link-banner div{display:flex;flex-direction:column;gap:4px}.link-banner strong{font-size:14px}.link-banner span:not(.status){font-size:13px;line-height:1.45}.status.waiting,.pill.pending{background:#fff0c7;color:#7b5800}.pill.pending{border-color:#ead39a}@media(max-width:700px){.link-banner{align-items:flex-start;flex-direction:column}}

/* v0.3.0 Admin Centre */
.admin-shell .content{min-width:0}
.admin-shell .topbar{display:flex;align-items:center;justify-content:space-between;gap:20px}
.admin-shell .table-panel{overflow:auto}
.admin-shell table small{color:var(--muted,#718096)}
.admin-shell .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em}
@media(max-width:760px){.admin-shell .stats{grid-template-columns:1fr 1fr}.admin-shell table{min-width:760px}}

/* v0.4.0 Update Centre */
.notice{padding:14px 16px;border-radius:14px;margin:0 0 18px}.notice.success{background:#ecfdf3;border:1px solid #bbf7d0}.notice.error{background:#fff1f2;border:1px solid #fecdd3}
.upload-label{display:grid;gap:9px;font-weight:700}.upload-label input{padding:14px;border:1px solid #d9e1eb;border-radius:12px;background:#fff}
.action-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.btn{border:0;border-radius:11px;padding:12px 16px;font-weight:800;cursor:pointer}.btn.primary{background:#1f72e5;color:#fff}.btn.secondary{background:#eaf1fa;color:#17345b}
.ok-text{color:#087443}.bad-text{color:#b42318}

/* v0.4.2 Update Centre auto-refresh */
.refresh-progress{height:6px;margin-top:10px;border-radius:999px;background:rgba(31,114,229,.12);overflow:hidden}
.refresh-progress span{display:block;height:100%;width:0;background:currentColor;animation:ccus-refresh-progress 1.65s linear forwards}
@keyframes ccus-refresh-progress{to{width:100%}}

/* v0.5.0 Workshop Pro integration */
.inline-link-form{display:flex;gap:8px;align-items:center;min-width:300px}.inline-link-form input{min-width:150px;padding:9px 10px;border:1px solid #d9e1eb;border-radius:9px}

/* v0.6.1 Customer activation UI */
.login-body{min-height:100svh;display:flex;align-items:flex-start;justify-content:center;padding:clamp(32px,8vh,84px) 20px;background:radial-gradient(circle at 50% -10%,rgba(35,111,210,.32),transparent 38%),linear-gradient(160deg,#0d1d33 0%,#081525 70%,#07111d 100%)}
.login-card{width:min(520px,100%);background:#fff;border:1px solid rgba(255,255,255,.72);border-radius:22px;padding:clamp(28px,5vw,46px);box-shadow:0 28px 80px rgba(0,0,0,.34);text-align:left}
.login-card .brand-mark{width:52px;height:52px;border-radius:15px;margin:0 0 22px;font-size:24px}.login-card .eyebrow{margin-bottom:8px;color:#5f718c}
.login-card h1{margin:0 0 12px;font-size:clamp(30px,5vw,38px);line-height:1.08;letter-spacing:-.035em}
.login-card .muted{margin:0 0 28px;font-size:15px;line-height:1.55;color:#637188}.login-card .muted strong{color:#26364d;overflow-wrap:anywhere}
.login-card form{display:grid;gap:18px}.login-card form label{display:grid;gap:8px;margin:0;color:#26364d;font-size:13px;font-weight:800;text-align:left}
.login-card form input{height:54px;margin:0;padding:12px 15px;border:1px solid #cfd8e6;border-radius:12px;background:#fff;color:#15243a;font-size:20px;font-weight:700;letter-spacing:.18em;box-shadow:0 1px 2px rgba(15,35,60,.04)}
.login-card form input:focus{outline:0;border-color:#2b79df;box-shadow:0 0 0 4px rgba(43,121,223,.13)}
.login-card .btn.primary{min-height:52px;margin-top:4px;border-radius:12px;font-size:15px;box-shadow:0 8px 20px rgba(22,103,217,.18)}
.login-card .secure-note{margin:20px 0 0;padding:14px 16px;border-radius:12px;background:#f5f8fc;color:#66758b;font-size:12px;line-height:1.5;text-align:left}
@media(max-width:560px){.login-body{padding:20px 14px}.login-card{padding:26px 22px;border-radius:18px}.login-card h1{font-size:30px}}

/* v0.6.2 Activation viewport / scrolling fix
   Keep the activation shell exactly within the browser viewport.
   Padding is included in the viewport height instead of extending the page. */
html:has(body.login-body){
  height:100%;
  overflow:hidden;
  background:#081525;
}
body.login-body{
  box-sizing:border-box;
  width:100%;
  min-height:100vh;
  height:100vh;
  min-height:100dvh;
  height:100dvh;
  max-height:100dvh;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:none;
  -webkit-overflow-scrolling:touch;
}
body.login-body .login-card{
  flex:0 0 auto;
}

/* v0.7.0 Repair Centre */
.repair-detail-link{font-weight:800;color:var(--blue)}
.back-link{display:inline-block;margin-bottom:13px;color:var(--blue);font-size:13px;font-weight:800}
.repair-detail-head{align-items:flex-start}
.repair-detail-head>.status{margin-top:25px}
.repair-detail-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:18px}
.repair-summary .meta-grid{margin-bottom:18px}
.repair-detail-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:4px}
.repair-progress .panel-head{padding-bottom:4px}
.detail-timeline{margin-top:4px;padding-top:4px;border-top:0}
.detail-timeline>div{grid-template-columns:16px 92px 1fr;min-height:44px}
.detail-timeline>div:not(:last-child){position:relative}
.detail-timeline>div:not(:last-child)::after{content:"";position:absolute;left:3px;top:27px;bottom:-17px;width:2px;background:#dce7f5}
.detail-timeline>div>span{position:relative;z-index:1;width:9px;height:9px}
.empty.compact{padding:18px 0;text-align:left}
@media(max-width:900px){.repair-detail-grid{grid-template-columns:1fr}}
@media(max-width:520px){.repair-detail-head>.status{margin-top:12px}.repair-detail-actions .btn{width:100%}.detail-timeline>div{grid-template-columns:16px 76px 1fr}}

/* v0.8.0 Invoice Viewer */
.invoice-page-head{align-items:flex-start}.invoice-payment-badge{margin-top:24px;border-radius:999px;padding:9px 13px;font-size:12px;font-weight:900;text-transform:uppercase}.invoice-payment-badge.paid{background:#e7f8ee;color:#167443}.invoice-payment-badge.outstanding{background:#fff3df;color:#9b5b00}.customer-invoice-top{display:flex;justify-content:space-between;gap:28px;padding-bottom:24px;border-bottom:1px solid #e5ebf3}.invoice-brand{font-size:24px;font-weight:900}.invoice-meta{display:grid;grid-template-columns:repeat(3,auto);gap:24px;text-align:right}.invoice-meta span,.invoice-customer-grid span{display:block;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;margin-bottom:4px}.invoice-customer-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:24px 0}.invoice-customer-grid p{margin:4px 0;color:var(--muted)}.invoice-table-wrap{overflow-x:auto}.invoice-table{width:100%;border-collapse:collapse}.invoice-table th,.invoice-table td{padding:12px;border-bottom:1px solid #e5ebf3}.invoice-table th:not(:first-child),.invoice-table td:not(:first-child){text-align:right}.invoice-totals{width:min(100%,360px);margin:22px 0 0 auto}.invoice-totals>div{display:flex;justify-content:space-between;padding:8px 0}.invoice-totals .grand{border-top:1px solid #dfe7f1;border-bottom:1px solid #dfe7f1;font-size:18px;padding:12px 0}.invoice-footer-note{margin-top:24px;padding-top:18px;border-top:1px solid #e5ebf3;color:var(--muted);font-size:12px}@media(max-width:650px){.customer-invoice-top,.invoice-customer-grid{display:grid;grid-template-columns:1fr}.invoice-meta{grid-template-columns:1fr;text-align:left;gap:10px}.invoice-table{min-width:540px}}

/* v0.8.1 Paid invoice / receipt state */
.payment-receipt{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;margin-top:26px;padding:18px;border:1px solid #cdebd9;background:#f4fbf7;border-radius:14px}
.payment-receipt-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#daf4e4;color:#167443;font-size:19px;font-weight:900}
.payment-receipt h2{margin:2px 0 3px;font-size:17px}.payment-receipt p{margin:0;color:var(--muted);font-size:13px}
.payment-receipt-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:7px}.payment-receipt-meta span{font-size:11px;font-weight:800;color:#52705f}
.receipt-balance{color:#167443;white-space:nowrap}
@media(max-width:650px){.payment-receipt{grid-template-columns:auto 1fr}.receipt-balance{grid-column:2;white-space:normal}}

/* v0.8.2 Invoice documents, branding and print */
.invoice-page-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.invoice-page-actions .invoice-payment-badge{margin-top:0}
.invoice-company{display:flex;align-items:flex-start;gap:18px}
.invoice-logo{width:150px;max-height:72px;object-fit:contain;object-position:left center}
.invoice-contact{display:flex;flex-direction:column;gap:3px;font-size:12px;line-height:1.35;color:var(--muted)}
.invoice-contact strong{font-size:14px;color:var(--text)}
.document-unavailable{color:var(--muted);font-size:12px}
@media(max-width:650px){.invoice-page-actions{align-items:flex-start}.invoice-company{display:grid}.invoice-logo{width:135px}}
@media print{
  @page{margin:12mm}
  body{background:#fff!important}
  .sidebar,.topbar,.invoice-page-head,.invoice-print-button,footer,.alert,.link-banner{display:none!important}
  .app-shell,.content{display:block!important;width:100%!important;margin:0!important;padding:0!important}
  .customer-invoice{box-shadow:none!important;border:0!important;padding:0!important;margin:0!important;background:#fff!important;color:#111!important}
  .invoice-logo{width:145px!important}
  .invoice-contact,.invoice-customer-grid p,.invoice-footer-note{color:#444!important}
  .invoice-table th,.invoice-table td{color:#111!important;border-color:#ccc!important}
  .payment-receipt{break-inside:avoid;background:#fff!important;border:1px solid #aaa!important}
  .invoice-totals{break-inside:avoid}
}

/* v0.8.3 Correct business details + stronger invoice branding */
.invoice-company{align-items:center;gap:20px;min-width:430px}
.invoice-logo{width:118px;height:118px;max-height:none;object-fit:contain;object-position:center}
.invoice-contact{font-size:13px;line-height:1.45}
.invoice-contact strong{font-size:16px;margin-bottom:2px}
@media(max-width:760px){.invoice-company{min-width:0}.invoice-logo{width:100px;height:100px}}
@media(max-width:650px){.invoice-company{display:flex;align-items:center}.invoice-logo{width:92px;height:92px}}
@media print{.invoice-company{min-width:0}.invoice-logo{width:105px!important;height:105px!important;max-height:none!important}}

.legacy-invoice-item{font-size:11px;color:var(--muted);font-weight:600}

/* v0.8.5 iPad/Safari invoice print layout */
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  html,body{width:100%!important;min-width:0!important;margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .customer-invoice{width:100%!important;max-width:none!important;box-sizing:border-box!important}
  .customer-invoice-top{display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(250px,.9fr)!important;column-gap:18mm!important;align-items:start!important;width:100%!important;padding-bottom:8mm!important}
  .invoice-company{display:grid!important;grid-template-columns:30mm minmax(0,1fr)!important;gap:6mm!important;align-items:center!important;min-width:0!important}
  .invoice-logo{width:30mm!important;height:30mm!important;max-width:30mm!important;max-height:30mm!important;object-fit:contain!important}
  .invoice-contact{min-width:0!important;font-size:9.5pt!important;line-height:1.28!important}
  .invoice-contact strong{font-size:12pt!important;line-height:1.15!important;margin-bottom:2mm!important}
  .invoice-contact span{display:block!important;white-space:nowrap!important}
  .invoice-meta{display:grid!important;grid-template-columns:1fr!important;gap:3mm!important;text-align:right!important;min-width:0!important}
  .invoice-meta>div{display:grid!important;grid-template-columns:28mm minmax(0,1fr)!important;align-items:baseline!important;column-gap:4mm!important}
  .invoice-meta span{margin:0!important;font-size:8.5pt!important;text-align:left!important;white-space:nowrap!important}
  .invoice-meta strong{font-size:10.5pt!important;line-height:1.2!important;text-align:right!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important}
  .invoice-customer-grid{padding:7mm 0!important;gap:12mm!important}
  .invoice-table{min-width:0!important;table-layout:fixed!important}
  .invoice-table th:first-child,.invoice-table td:first-child{width:60%!important}
  .invoice-table th:nth-child(2),.invoice-table td:nth-child(2){width:10%!important}
  .invoice-table th:nth-child(3),.invoice-table td:nth-child(3),.invoice-table th:nth-child(4),.invoice-table td:nth-child(4){width:15%!important}
  .invoice-table th,.invoice-table td{font-size:9.5pt!important}
  .invoice-totals{width:72mm!important;margin-left:auto!important}
  .payment-receipt{margin-top:7mm!important}
}

/* v0.8.6 definitive Safari/iPad invoice print header */
@media print {
  .customer-invoice-top{
    display:flex!important;
    flex-direction:row!important;
    justify-content:space-between!important;
    align-items:flex-start!important;
    gap:12mm!important;
  }
  .invoice-company{
    flex:1 1 auto!important;
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    gap:6mm!important;
  }
  .invoice-logo{
    flex:0 0 28mm!important;
    width:28mm!important;
    height:28mm!important;
    max-width:28mm!important;
    max-height:28mm!important;
  }
  .invoice-contact{
    flex:1 1 auto!important;
    min-width:0!important;
    font-size:9pt!important;
    line-height:1.3!important;
  }
  .invoice-contact strong{
    font-size:11.5pt!important;
  }
  .invoice-meta{
    flex:0 0 62mm!important;
    width:62mm!important;
    display:block!important;
    text-align:left!important;
  }
  .invoice-meta>div{
    display:flex!important;
    justify-content:space-between!important;
    align-items:baseline!important;
    gap:6mm!important;
    margin:0 0 2.5mm!important;
  }
  .invoice-meta span{
    flex:0 0 auto!important;
    margin:0!important;
    font-size:8pt!important;
    white-space:nowrap!important;
  }
  .invoice-meta strong{
    flex:1 1 auto!important;
    margin:0!important;
    font-size:9.5pt!important;
    line-height:1.2!important;
    text-align:right!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
}

/* v0.8.7 redesigned print header */
@media print {
  @page { size: A4 portrait; margin: 12mm; }

  .customer-invoice-top {
    display: block !important;
    width: 100% !important;
    padding-bottom: 7mm !important;
  }

  .invoice-company {
    display: grid !important;
    grid-template-columns: 30mm minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 7mm !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .invoice-logo {
    width: 30mm !important;
    height: 30mm !important;
    max-width: 30mm !important;
    max-height: 30mm !important;
    object-fit: contain !important;
  }

  .invoice-contact {
    min-width: 0 !important;
    font-size: 9.5pt !important;
    line-height: 1.3 !important;
  }

  .invoice-contact strong {
    display: block !important;
    font-size: 13pt !important;
    line-height: 1.15 !important;
    margin-bottom: 2mm !important;
  }

  .invoice-contact span {
    display: block !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  .invoice-meta {
    display: grid !important;
    grid-template-columns: minmax(0,1.6fr) minmax(0,.75fr) minmax(0,1.35fr) !important;
    gap: 8mm !important;
    width: 100% !important;
    margin-top: 7mm !important;
    padding-top: 5mm !important;
    border-top: 1px solid #d9e0e8 !important;
    text-align: left !important;
  }

  .invoice-meta > div {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .invoice-meta span {
    display: block !important;
    margin: 0 0 1.2mm !important;
    font-size: 8pt !important;
    line-height: 1 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  .invoice-meta strong {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 10.5pt !important;
    line-height: 1.2 !important;
    text-align: left !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .invoice-meta > div:first-child strong {
    font-size: 11pt !important;
  }

  .invoice-customer-grid {
    padding-top: 7mm !important;
  }
}

/* v0.9.0 My Devices */
.device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.device-overview-card{display:block;text-decoration:none;color:inherit;padding:20px;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.device-overview-card:hover{transform:translateY(-2px);border-color:#bfd0e6;box-shadow:0 12px 28px rgba(25,46,78,.08)}
.device-card-top{display:flex;gap:15px;align-items:center}.device-icon.large{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#eef5ff;color:#2867cf;font-size:22px}
.device-kicker{font-size:10px;letter-spacing:.08em;font-weight:900;color:var(--muted);text-transform:uppercase}.device-overview-card h2{margin:3px 0 0}.device-model{margin:3px 0 0;color:var(--muted);font-size:13px}
.device-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #e8edf4}.device-stat-row span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800}.device-stat-row strong{display:block;margin-top:5px;font-size:13px}
.device-card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:16px;color:#2366d1;font-weight:800;font-size:13px}
.device-detail-layout{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.4fr);gap:16px}.device-identity-card,.device-history-card{align-self:start}
.device-detail-list{display:grid}.device-detail-list>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid #edf1f6}.device-detail-list span{color:var(--muted);font-size:12px}.device-detail-list strong{text-align:right;font-size:13px}
.device-nickname-form{margin-top:20px;padding-top:18px;border-top:1px solid #e5ebf3}.device-nickname-form label{display:block;font-weight:800;font-size:12px}.device-nickname-form label span{display:block;margin:3px 0 8px;color:var(--muted);font-weight:500}.device-nickname-form input{width:100%;box-sizing:border-box;margin-bottom:10px}
.device-repair-list{display:grid}.device-repair-list>a{display:flex;justify-content:space-between;gap:20px;text-decoration:none;color:inherit;padding:14px 0;border-bottom:1px solid #edf1f6}.device-repair-list>a:last-child{border-bottom:0}.device-repair-list>a:hover strong:first-child{color:#2366d1}.device-repair-list div:last-child{text-align:right}.device-repair-list span{display:block;margin-top:4px;color:var(--muted);font-size:12px}
@media(max-width:900px){.device-grid,.device-detail-layout{grid-template-columns:1fr}}
@media(max-width:580px){.device-stat-row{grid-template-columns:1fr}.device-detail-head{align-items:flex-start}.device-repair-list>a{align-items:flex-start}.device-detail-list>div{display:grid;gap:3px}.device-detail-list strong{text-align:left}}

/* v0.9.2 Warranty mapping + scope clarification */
.warranty-scope-note{display:flex;gap:14px;align-items:flex-start;margin:0 0 16px;padding:14px 16px;border:1px solid #dbe6f2;border-radius:12px;background:#f8fbff}
.warranty-scope-note strong{white-space:nowrap}
.warranty-scope-note span{color:var(--muted);font-size:13px;line-height:1.45}
.device-warranty-note{grid-column:1/-1;margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.4}
@media(max-width:650px){.warranty-scope-note{display:grid;gap:6px}}

/* v0.9.3 device warranty presentation */
.device-stat-row small{display:block;margin-top:4px;color:var(--muted);font-size:10px;font-weight:700}

/* v0.9.4 opened-device warranty scope note */
.device-detail-warranty-note{margin-top:14px;padding:11px 12px;border:1px solid #dbe6f2;border-radius:10px;background:#f8fbff;color:var(--muted);font-size:11px;font-weight:700;line-height:1.45}

/* v0.10.0 Book a Repair v1 */
.booking-form-v2{overflow:visible}.booking-step{display:flex;gap:12px;align-items:flex-start;margin-bottom:15px}.booking-step h2{margin:2px 0 4px}.booking-step p{margin:0;color:var(--muted);font-size:12px}.booking-step-number{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:50%;background:#2366d1;color:white;font-weight:900}
.booking-device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.booking-device-choice{display:flex;align-items:center;gap:10px;text-align:left;padding:13px;border:1px solid #dce4ee;border-radius:12px;background:white;color:inherit;cursor:pointer}.booking-device-choice:hover,.booking-device-choice.selected{border-color:#3977dc;background:#f5f9ff}.booking-device-choice b{margin-left:auto;color:#2366d1;opacity:0}.booking-device-choice.selected b{opacity:1}.booking-device-choice small{display:block;margin-top:2px;color:var(--muted)}.booking-device-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#eef5ff;color:#2366d1}
.booking-link-button{border:0;background:transparent;color:#2366d1;font-weight:800;padding:11px 0;cursor:pointer}.booking-divider{height:1px;background:#e7edf4;margin:22px 0}
.new-device-panel{padding:14px;border:1px solid #e0e7ef;border-radius:12px;background:#fbfcfe}.hidden{display:none!important}.form-help{margin:0;color:var(--muted);font-size:11px}
.smart-device-search{position:relative}.device-search-results{position:absolute;z-index:10;left:0;right:0;top:100%;background:white;border-radius:10px;box-shadow:0 10px 30px rgba(20,35,60,.15);overflow:hidden}.device-search-results:empty{display:none}.device-search-results button{display:block;width:100%;border:0;border-bottom:1px solid #edf1f6;background:white;text-align:left;padding:10px 12px;cursor:pointer}.device-search-results button:hover{background:#f5f8fc}
.fault-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}.fault-choice input{position:absolute;opacity:0;pointer-events:none}.fault-choice span{display:block;padding:11px 12px;border:1px solid #dce4ee;border-radius:10px;background:white;font-size:12px;font-weight:750;cursor:pointer}.fault-choice input:checked+span{border-color:#3977dc;background:#eef5ff;color:#1859be}.other-fault{margin-bottom:12px}
@media(max-width:650px){.booking-device-grid,.fault-choice-grid{grid-template-columns:1fr}}

/* v0.11.0 Unified Device Smart Search */
.device-search-results{max-height:360px;overflow:auto}
.smart-device-result{display:flex!important;justify-content:space-between;gap:14px;align-items:center}
.smart-device-result span{min-width:0}.smart-device-result strong,.smart-device-result small{display:block}.smart-device-result small{margin-top:3px;color:var(--muted);font-size:10px}
.smart-device-result em{max-width:42%;font-style:normal;color:var(--muted);font-size:10px;text-align:right;line-height:1.3}
.device-search-loading,.device-search-empty{padding:12px;background:white;color:var(--muted);font-size:11px;line-height:1.4}
@media(max-width:650px){.smart-device-result{align-items:flex-start}.smart-device-result em{max-width:48%}}

/* v0.11.1 simplified device search */
.smart-device-add{border-top:1px solid #dfe7f1!important;background:#f8fbff!important;color:#1859be!important}
.smart-device-add strong{color:#1859be}

/* v0.11.2 compact fault selector */
.booking-form-v2 #repair-type{width:100%}

/* v0.11.3 Request a Repair UI polish */
.booking-layout{align-items:start}
.booking-form-v2{padding:22px}
.booking-form-v2 .booking-step{gap:14px;margin-bottom:17px}
.booking-form-v2 .booking-step-number{box-shadow:0 3px 10px rgba(35,102,209,.16)}
.booking-form-v2 .booking-step h2{font-size:20px;line-height:1.18;letter-spacing:-.02em}
.booking-form-v2 .booking-step p{font-size:12px;line-height:1.45;max-width:620px}
.booking-form-v2 .booking-divider{margin:24px 0}
.booking-form-v2 label{font-weight:750}
.booking-form-v2 select,.booking-form-v2 textarea,.booking-form-v2 input{border-color:#d5dfeb}
.booking-form-v2 select:focus,.booking-form-v2 textarea:focus,.booking-form-v2 input:focus{border-color:#3977dc;box-shadow:0 0 0 3px rgba(57,119,220,.10);outline:0}
.booking-form-v2 textarea{min-height:88px;resize:vertical}
.booking-form-v2 .optional-label{margin-left:5px;font-size:10px;font-weight:650;color:var(--muted);text-transform:none}
.booking-form-v2 .notice{margin-top:14px;line-height:1.45}
.booking-form-v2 .btn.primary{margin-top:14px;min-height:44px;padding-left:18px;padding-right:18px}
.booking-device-choice{min-height:62px}
.booking-device-choice strong{line-height:1.25}
@media(min-width:900px){.booking-layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px}}
@media(max-width:650px){.booking-form-v2{padding:17px}.booking-form-v2 .booking-step h2{font-size:18px}.booking-form-v2 .booking-divider{margin:20px 0}}

/* v0.12.0 live CCUS Club */
.club-member-since{font-size:11px;color:var(--muted);margin-top:12px}
.club-card-points{display:flex;flex-direction:column;align-items:flex-end;font-size:26px;font-weight:900;line-height:1}
.club-card-points small{font-size:8px;letter-spacing:.16em;margin-top:5px;opacity:.75}

/* v0.12.1 — CCUS Club physical card + approved card presentation */
.club-membership-panel{display:grid;grid-template-columns:minmax(420px,1.55fr) minmax(260px,.8fr);gap:28px;align-items:stretch;margin-bottom:18px}
.club-card-front{position:relative;overflow:hidden;min-height:270px;border-radius:22px;background:radial-gradient(circle at 70% 30%,#07152b 0,#030a16 48%,#01050c 100%);box-shadow:0 18px 38px rgba(3,16,36,.25);color:#fff;isolation:isolate}
.club-card-front:after{content:"";position:absolute;inset:0;background-image:linear-gradient(30deg,rgba(19,78,145,.08) 12%,transparent 12.5%,transparent 87%,rgba(19,78,145,.08) 87.5%,rgba(19,78,145,.08)),linear-gradient(150deg,rgba(19,78,145,.08) 12%,transparent 12.5%,transparent 87%,rgba(19,78,145,.08) 87.5%,rgba(19,78,145,.08));background-size:32px 56px;z-index:-2}
.club-card-lines{position:absolute;width:68%;height:110px;transform:rotate(-20deg);border-top:3px solid #0b7cff;border-bottom:2px solid #0758c8;filter:drop-shadow(0 0 7px rgba(0,124,255,.8));opacity:.95}
.club-card-lines:before,.club-card-lines:after{content:"";position:absolute;left:0;right:0;border-top:2px solid #0b7cff}.club-card-lines:before{top:20px}.club-card-lines:after{bottom:22px}
.club-card-lines-top{left:-25%;top:-35px}.club-card-lines-bottom{right:-23%;bottom:-40px}
.club-card-brand{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);text-align:center;line-height:1}.club-card-brand strong{display:block;color:#0878f9;font-size:58px;font-weight:950;letter-spacing:-.06em}.club-card-brand span{display:block;font-size:25px;letter-spacing:.43em;margin-left:.43em;margin-top:7px}
.club-card-company{position:absolute;left:28px;bottom:25px;line-height:.88}.club-card-company strong{font-size:20px}.club-card-company em{font-style:normal;color:#0878f9}.club-card-company small{display:block;color:#1591ff;font-size:7px;letter-spacing:.3em;margin-top:8px}
.club-membership-details{display:flex;flex-direction:column;justify-content:center;gap:17px}.club-membership-details>div:not(.club-link-note):not(.physical-card-linked){display:flex;flex-direction:column;gap:5px}.club-membership-details span{font-size:12px;color:var(--muted)}.club-membership-details strong{font-size:14px}
.club-membership-details .status{align-self:flex-start}.club-link-note,.physical-card-linked{padding:13px 14px;border-radius:11px;background:#eef5ff;border:1px solid #d8e7fb;display:flex;flex-direction:column;gap:4px}.club-link-note strong,.physical-card-linked strong{color:#164b8c}.club-link-note span,.physical-card-linked span{font-size:11px}
.club-card-link-form{padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.club-card-link-form label{font-size:12px;font-weight:800}.club-card-link-form p{font-size:11px;color:var(--muted);margin:8px 0 12px}.club-link-actions{display:flex;gap:8px}
.club-points-summary{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-bottom:18px}.club-points-primary,.club-points-secondary{display:flex;align-items:center;gap:18px;padding:6px 18px}.club-points-secondary{border-left:1px solid var(--line);flex-direction:column;align-items:flex-start;gap:3px;justify-content:center}.club-star{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#eef5ff;color:#0878f9;font-size:45px;line-height:1}.club-points-primary div,.club-points-secondary{font-size:12px;color:var(--muted)}.club-points-primary strong,.club-points-secondary strong{display:block;color:#0966df;font-size:27px;margin:3px 0}.club-points-secondary strong{color:var(--text)}.club-points-primary small,.club-points-secondary small{display:block}
.club-activity .transaction{padding:15px 2px}
@media(max-width:900px){.club-membership-panel{grid-template-columns:1fr}.club-card-front{min-height:260px}.club-membership-details{padding:4px}.club-points-summary{grid-template-columns:1fr}.club-points-secondary{border-left:0;border-top:1px solid var(--line);padding-top:18px;margin-top:10px}}
@media(max-width:520px){.club-card-front{min-height:205px}.club-card-brand strong{font-size:44px}.club-card-brand span{font-size:19px}.club-card-company{left:20px;bottom:19px}.club-card-company strong{font-size:16px}}

/* v0.12.2 — linked Club activity */
.transaction-link{color:inherit;text-decoration:none;border-radius:10px;margin:0 -8px;padding-left:8px;padding-right:8px;transition:background .15s ease,transform .15s ease}
.transaction-link:hover{background:#f4f8fd}
.transaction-link:focus-visible{outline:3px solid rgba(9,102,223,.2);outline-offset:2px}
.transaction-link span{color:var(--muted)}
.purchase-detail .detail-list{margin-bottom:18px}

/* v0.13.0 — Purchase History */
.purchase-tools{display:flex;gap:12px;align-items:center;margin-bottom:16px;padding:14px}.purchase-search{flex:1;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#fff}.purchase-search input{border:0;outline:0;width:100%;padding:12px 0;background:transparent}.purchase-tools select{min-width:190px}
.purchase-list{display:grid;gap:10px}.purchase-row{display:grid;grid-template-columns:46px 1fr auto;gap:14px;align-items:center;text-decoration:none;color:inherit;padding:16px 18px;transition:transform .15s ease,box-shadow .15s ease}.purchase-row:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(12,35,64,.08)}.purchase-icon{width:42px;height:42px;border-radius:11px;background:#eef5ff;color:#0966df;display:grid;place-items:center;font-size:20px}.purchase-main{display:flex;flex-direction:column;gap:3px}.purchase-main span,.purchase-main small,.purchase-total span{font-size:11px;color:var(--muted)}.purchase-total{text-align:right}.purchase-total strong{display:block;font-size:17px;margin-bottom:4px}
.purchase-detail-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.purchase-detail-meta div{display:flex;flex-direction:column;gap:4px}.purchase-detail-meta span{font-size:11px;color:var(--muted)}.purchase-items{border:1px solid var(--line);border-radius:12px;overflow:hidden}.purchase-items-head,.purchase-item{display:grid;grid-template-columns:minmax(0,1fr) 70px 110px 110px;gap:10px;padding:12px 14px;align-items:center}.purchase-items-head{background:#f6f8fb;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.purchase-item{border-top:1px solid var(--line)}.purchase-item span:nth-child(n+2),.purchase-item strong:last-child,.purchase-items-head span:nth-child(n+2){text-align:right}.purchase-totals{margin-left:auto;max-width:330px;padding-top:16px}.purchase-totals div{display:flex;justify-content:space-between;padding:7px 0}.purchase-totals .grand{font-size:18px;border-top:1px solid var(--line);margin-top:5px;padding-top:12px}.purchase-actions{display:flex;gap:8px;margin-top:18px}
@media(max-width:760px){.purchase-tools{flex-direction:column;align-items:stretch}.purchase-tools select{min-width:0}.purchase-row{grid-template-columns:42px 1fr}.purchase-total{grid-column:2;text-align:left;display:flex;justify-content:space-between}.purchase-detail-meta{grid-template-columns:1fr 1fr}.purchase-items-head,.purchase-item{grid-template-columns:minmax(0,1fr) 45px 85px}.purchase-items-head span:nth-child(3),.purchase-item span:nth-child(3){display:none}}

/* v0.13.2 — Purchase History sorting */
.purchase-tools #purchase-sort{min-width:150px}
@media(max-width:760px){.purchase-tools #purchase-sort{min-width:0}}

/* v0.13.4 — customer-facing digital POS receipt */
.customer-receipt{max-width:880px;margin:0 auto;padding:34px 38px;background:#fff}
.receipt-header{display:flex;justify-content:space-between;gap:28px;align-items:flex-start;padding-bottom:24px;border-bottom:2px solid #15243b}
.receipt-company{display:flex;gap:18px;align-items:flex-start}.receipt-logo{width:118px;height:auto;object-fit:contain}.receipt-contact{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--muted)}.receipt-contact strong{font-size:15px;color:var(--text);margin-bottom:3px}
.receipt-title{text-align:right}.receipt-title span{display:block;font-size:11px;letter-spacing:.18em;font-weight:800;color:var(--muted);margin-bottom:5px}.receipt-title strong{font-size:20px}
.receipt-meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding:22px 0}.receipt-meta-grid div{display:flex;flex-direction:column;gap:4px}.receipt-meta-grid span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.receipt-meta-grid strong{font-size:13px}
.receipt-items{border:1px solid var(--line);border-radius:10px;overflow:hidden}.receipt-items-head,.receipt-item{display:grid;grid-template-columns:minmax(0,1fr) 72px 110px 110px;gap:12px;align-items:center;padding:12px 14px}.receipt-items-head{background:#f5f7fa;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.receipt-item{border-top:1px solid var(--line);font-size:13px}.receipt-item span:nth-child(n+2),.receipt-item strong:last-child,.receipt-items-head span:nth-child(n+2){text-align:right}
.receipt-summary{width:min(390px,100%);margin-left:auto;padding-top:18px}.receipt-summary>div{display:flex;justify-content:space-between;gap:20px;padding:7px 2px;font-size:13px}.receipt-grand-total{border-top:2px solid #15243b;margin-top:5px;padding-top:12px!important;font-size:18px!important}
.receipt-club{margin-top:22px;border:1px solid #cfe0ff;background:#f4f8ff;border-radius:10px;padding:13px 15px;display:flex;justify-content:space-between;gap:14px}.receipt-club span{font-size:10px;font-weight:900;letter-spacing:.12em;color:#0966df}.receipt-club strong{font-size:13px}
.receipt-footer{text-align:center;margin-top:28px;padding-top:20px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:4px}.receipt-footer strong{font-size:13px}.receipt-footer span{font-size:11px;color:var(--muted)}
@media(max-width:760px){.customer-receipt{padding:22px 18px}.receipt-header{flex-direction:column}.receipt-title{text-align:left}.receipt-meta-grid{grid-template-columns:1fr 1fr}.receipt-items-head,.receipt-item{grid-template-columns:minmax(0,1fr) 48px 82px}.receipt-items-head span:nth-child(3),.receipt-item span:nth-child(3){display:none}.receipt-logo{width:92px}.receipt-company{gap:12px}.receipt-club{flex-direction:column}}
@media print{
  body{background:#fff!important}
  .sidebar,.topbar,.receipt-screen-head,.link-banner,.alert,footer{display:none!important}
  .app-shell,.content{display:block!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
  .customer-receipt{box-shadow:none!important;border:0!important;border-radius:0!important;max-width:none!important;margin:0!important;padding:10mm 12mm!important}
  .receipt-header{break-inside:avoid}.receipt-items,.receipt-summary,.receipt-club,.receipt-footer{break-inside:avoid}
  @page{margin:10mm}
}

/* v0.13.5 — eliminate blank second print page on invoices/receipts */
@media print {
  html, body {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .app-shell,
  .content {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .customer-invoice,
  .customer-receipt {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    break-after: auto !important;
    page-break-after: auto !important;
  }

  .customer-invoice:last-child,
  .customer-receipt:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  footer,
  body > script,
  .content > script {
    display: none !important;
  }
}

/* v0.13.6 — actual CCUS Club award on paid repair invoices */
.invoice-club-points{width:min(390px,100%);margin:14px 0 0 auto;padding:13px 15px;border:1px solid #cfe0ff;border-radius:10px;background:#f4f8ff}
.invoice-club-points>div{display:flex;align-items:center;justify-content:space-between;gap:16px}
.invoice-club-points span{font-size:10px;font-weight:900;letter-spacing:.12em;color:#0966df}
.invoice-club-points strong{font-size:13px}
.invoice-club-points p{margin:5px 0 0;font-size:10px;color:var(--muted);text-align:right}
@media print{.invoice-club-points{break-inside:avoid;background:#fff!important;border-color:#aaa!important}}

/* v0.13.8 — CCUS Customer signed-out page using official CCUS Scotland branding */
.customer-signin-body{
    min-height:100svh;
    display:grid;
    place-items:center;
    padding:32px 20px;
    background:
        radial-gradient(circle at 50% -12%,rgba(45,126,232,.34),transparent 38%),
        linear-gradient(160deg,#0d1d33 0%,#081525 70%,#07111d 100%);
}
.customer-signin-card{
    width:min(520px,100%);
    padding:38px 42px 40px;
    border-radius:24px;
    background:linear-gradient(180deg,#10233a 0%,#0b192b 100%);
    border:1px solid rgba(80,145,225,.34);
    box-shadow:0 30px 90px rgba(0,0,0,.38);
    color:#f5f9ff;
    text-align:center;
}
.customer-signin-brand{
    display:flex;
    justify-content:center;
    align-items:center;
    margin:0 auto 18px;
}
.customer-signin-brand img{
    display:block;
    width:150px;
    height:150px;
    object-fit:contain;
    object-position:center;
    border-radius:50%;
    background:transparent;
}
.customer-signin-card .eyebrow{
    margin-bottom:8px;
    color:#75b6ff;
}
.customer-signin-card h1{
    margin:0;
    color:#fff;
    font-size:clamp(34px,6vw,46px);
    letter-spacing:-.04em;
}
.customer-signin-card .customer-signin-intro{
    max-width:390px;
    margin:14px auto 26px;
    color:#aebed2;
    font-size:15px;
    line-height:1.55;
}
.customer-signin-button{
    min-height:54px;
    border-radius:12px;
    background:linear-gradient(135deg,#2384f4,#1e6fd5);
    box-shadow:0 12px 30px rgba(31,111,210,.28);
    font-size:15px;
    font-weight:800;
}
.customer-signin-button:hover{filter:brightness(1.06)}
.customer-signin-security{
    display:grid;
    justify-items:center;
    gap:5px;
    margin-top:18px;
    padding:17px 16px 16px;
    border:1px solid rgba(88,139,201,.24);
    border-radius:12px;
    background:rgba(7,18,33,.42);
    text-align:center;
}
.customer-signin-lock{
    position:relative;
    display:block;
    width:24px;
    height:20px;
    margin:0 0 6px;
    border:2px solid #75b6ff;
    border-radius:5px;
    box-sizing:border-box;
}
.customer-signin-lock::before{
    content:"";
    position:absolute;
    left:50%;
    top:-12px;
    width:12px;
    height:12px;
    border:2px solid #75b6ff;
    border-bottom:0;
    border-radius:8px 8px 0 0;
    transform:translateX(-50%);
    box-sizing:border-box;
}
.customer-signin-lock::after{
    content:"";
    position:absolute;
    left:50%;
    top:6px;
    width:4px;
    height:6px;
    border-radius:999px;
    background:#75b6ff;
    transform:translateX(-50%);
}
.customer-signin-security strong{
    color:#e7f1ff;
    font-size:13px;
}
.customer-signin-security>span:not(.customer-signin-lock){
    color:#8fa3bf;
    font-size:12px;
    line-height:1.45;
}
@media(max-width:560px){
    .customer-signin-body{padding:18px 14px}
    .customer-signin-card{padding:30px 24px 32px;border-radius:20px}
    .customer-signin-brand img{width:126px;height:126px}
    .customer-signin-card h1{font-size:36px}
}

/* v0.13.9 — My Account authoritative customer profile */
.account-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr);gap:18px;align-items:start}
.account-profile-form{padding:24px}
.account-profile-form .panel-head{align-items:flex-start}
.account-profile-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.account-profile-form label{display:grid;gap:7px;font-size:13px;font-weight:750;color:var(--text)}
.account-profile-form label small{font-weight:500;color:var(--muted);line-height:1.45}
.account-profile-form input{min-height:46px}
.account-profile-form .span-two{grid-column:1/-1}
.account-profile-form .optional{font-weight:500;color:var(--muted)}
.account-readonly{display:grid;grid-template-columns:120px 1fr;gap:3px 16px;padding:14px 16px;margin:4px 0 18px;border:1px solid var(--line);border-radius:12px;background:#f8fafd}
.account-readonly span{grid-row:1/3;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.account-readonly strong{font-size:15px}
.account-readonly small{color:var(--muted)}
.account-section-title{margin:26px 0 14px;padding-top:20px;border-top:1px solid var(--line)}
.account-section-title h3{margin:3px 0 4px;font-size:18px}
.account-section-title p{margin:0;color:var(--muted);font-size:13px}
.account-sync-note{display:grid;gap:4px;margin-top:22px;padding:14px 16px;border:1px solid #cfe0ff;border-radius:12px;background:#f4f8ff}
.account-sync-note strong{font-size:13px;color:#164a91}
.account-sync-note span{font-size:12px;color:#64758d;line-height:1.45}
.account-form-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.account-form-actions>div{display:grid;gap:2px}
.account-form-actions>div span{font-size:10px;letter-spacing:.08em;font-weight:800;color:var(--muted);text-transform:uppercase}
.account-form-actions>div strong{font-size:12px}
.account-notification-form{position:sticky;top:98px}
@media(max-width:980px){
  .account-layout{grid-template-columns:1fr}
  .account-notification-form{position:static}
}
@media(max-width:640px){
  .account-profile-form .form-grid{grid-template-columns:1fr}
  .account-profile-form .span-two{grid-column:auto}
  .account-readonly{grid-template-columns:1fr}
  .account-readonly span{grid-row:auto}
  .account-form-actions{align-items:stretch;flex-direction:column}
  .account-form-actions .btn{width:100%}
}

/* v0.14.0 — compact My Account layout */
.account-layout{
    grid-template-columns:minmax(0,1.55fr) minmax(280px,.72fr);
    gap:16px;
}
.account-profile-form{
    padding:20px 22px;
}
.account-profile-form .panel-head{
    margin-bottom:12px;
}
.account-profile-form .form-grid{
    gap:12px 14px;
}
.account-profile-form label{
    gap:5px;
}
.account-profile-form input{
    min-height:42px;
    padding-top:9px;
    padding-bottom:9px;
}
.account-readonly.compact{
    grid-template-columns:110px 1fr;
    padding:11px 14px;
    margin:0 0 14px;
}
.account-contact-grid.compact{
    margin-bottom:4px;
}
.account-section-title.compact{
    margin:18px 0 10px;
    padding-top:15px;
}
.account-section-title.compact h3{
    font-size:17px;
}
.account-address-grid.compact{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(120px,.55fr);
    gap:10px 12px;
}
.account-address-grid.compact .span-two{
    grid-column:1/-1;
}
.account-address-grid.compact .postcode-field{
    grid-column:3;
}
.account-form-actions.compact{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:14px;
    margin-top:14px;
    padding-top:14px;
}
.account-save-meta{
    color:var(--muted);
    font-size:11px;
    line-height:1.4;
}
.account-notification-form{
    top:92px;
    padding:20px;
}
.account-notification-form .toggle{
    padding:10px 0;
}
@media(max-width:1100px){
    .account-layout{grid-template-columns:1fr}
    .account-notification-form{position:static}
}
@media(max-width:760px){
    .account-profile-form{padding:18px}
    .account-profile-form .form-grid,
    .account-address-grid.compact{
        grid-template-columns:1fr;
    }
    .account-address-grid.compact .span-two,
    .account-address-grid.compact .postcode-field{
        grid-column:auto;
    }
    .account-form-actions.compact{
        grid-template-columns:1fr;
        align-items:stretch;
    }
    .account-form-actions.compact .btn{width:100%}
    .account-save-meta{order:3}
}

/* v0.14.1 — materially denser My Account form */
.account-layout{
  grid-template-columns:minmax(0,1.75fr) 320px;
  gap:14px;
}
.account-profile-form{
  padding:18px 20px 16px;
}
.account-profile-form .panel-head{
  margin-bottom:8px;
}
.account-profile-form .panel-head h2{
  margin-top:1px;
}
.account-readonly.compact{
  grid-template-columns:82px auto 1fr;
  align-items:center;
  gap:8px 14px;
  padding:9px 12px;
  margin-bottom:11px;
}
.account-readonly.compact span,
.account-readonly.compact strong,
.account-readonly.compact small{
  grid-row:auto;
}
.account-readonly.compact small{
  text-align:right;
  font-size:11px;
}
.account-profile-form .form-grid{
  gap:9px 12px;
}
.account-contact-grid.compact{
  grid-template-columns:1.25fr .75fr;
}
.account-profile-form label{
  gap:4px;
  font-size:12px;
}
.account-profile-form label small{
  font-size:10px;
}
.account-profile-form input{
  min-height:38px;
  height:38px;
  padding:7px 11px;
}
.account-section-title.compact{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:14px;
  margin:13px 0 8px;
  padding-top:11px;
}
.account-section-title.compact h3{
  margin:1px 0 0;
  font-size:16px;
}
.account-section-title.compact p{
  white-space:nowrap;
  font-size:10px;
}
.account-address-grid.compact{
  grid-template-columns:1fr 1fr;
  gap:9px 12px;
}
.account-address-grid.compact .address-line{
  grid-column:auto;
}
.account-address-grid.compact label:nth-of-type(3),
.account-address-grid.compact label:nth-of-type(4),
.account-address-grid.compact .postcode-field{
  grid-column:auto;
}
.account-address-grid.compact{
  grid-template-areas:
    "line1 line2"
    "town county"
    "postcode postcode";
}
.account-address-grid.compact label:nth-of-type(1){grid-area:line1}
.account-address-grid.compact label:nth-of-type(2){grid-area:line2}
.account-address-grid.compact label:nth-of-type(3){grid-area:town}
.account-address-grid.compact label:nth-of-type(4){grid-area:county}
.account-address-grid.compact label:nth-of-type(5){
  grid-area:postcode;
  width:min(240px,100%);
}
.account-form-actions.compact{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:11px;
  padding-top:11px;
}
.account-form-actions.compact .btn{
  min-height:40px;
  padding:9px 18px;
}
.account-notification-form{
  padding:18px;
}
.account-notification-form>h2{
  margin-bottom:4px;
}
.account-notification-form>p{
  margin-top:0;
  margin-bottom:8px;
  font-size:12px;
}
.account-notification-form .toggle{
  padding:8px 0;
}
.account-notification-form .btn{
  margin-top:6px;
}
@media(max-width:1050px){
  .account-layout{grid-template-columns:1fr}
}
@media(max-width:680px){
  .account-readonly.compact{grid-template-columns:1fr}
  .account-readonly.compact small{text-align:left}
  .account-contact-grid.compact,
  .account-address-grid.compact{
    display:grid;
    grid-template-columns:1fr;
    grid-template-areas:none;
  }
  .account-address-grid.compact label:nth-of-type(n){
    grid-area:auto;
    width:auto;
  }
}

/* v0.14.2 — final compact My Account layout */
.account-layout{
  grid-template-columns:minmax(0,1fr) 300px;
  gap:14px;
  align-items:start;
}
.account-profile-compact{
  padding:16px 18px 14px;
}
.compact-account-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:8px;
}
.compact-account-head h2{
  margin:1px 0 0;
  font-size:19px;
}
.compact-name-row{
  display:grid;
  grid-template-columns:100px auto 1fr;
  align-items:center;
  gap:12px;
  min-height:38px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f8fafd;
}
.compact-name-row>span{
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.compact-name-row>strong{font-size:13px}
.compact-name-row>small{
  justify-self:end;
  color:var(--muted);
  font-size:10px;
}
.compact-profile-grid{
  display:grid;
  gap:10px 14px;
}
.compact-profile-grid-top{
  grid-template-columns:1fr 1fr;
  margin-top:10px;
}
.account-profile-compact label{
  margin:0;
  font-size:11px;
  font-weight:800;
}
.account-profile-compact label>span{
  display:block;
  margin-bottom:4px;
}
.account-profile-compact label small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
  font-weight:500;
}
.account-profile-compact input{
  width:100%;
  height:36px;
  min-height:36px;
  padding:6px 10px;
  font-size:13px;
}
.compact-address-heading{
  margin:10px 0 4px;
  padding-top:9px;
  border-top:1px solid var(--line);
}
.compact-address-heading span{
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
}
.compact-address-rows{
  display:grid;
  gap:6px;
}
.compact-address-rows label{
  display:grid;
  grid-template-columns:125px minmax(0,1fr);
  align-items:center;
  gap:10px;
}
.compact-address-rows label>span{
  margin:0;
}
.compact-address-rows em{
  color:var(--muted);
  font-size:9px;
  font-style:normal;
  font-weight:500;
}
.compact-account-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid var(--line);
}
.compact-customer-id{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.compact-customer-id span{
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.compact-customer-id strong{
  overflow:hidden;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.compact-account-actions .btn{
  min-height:36px;
  padding:7px 16px;
}
.account-notification-form{
  padding:16px;
}
.account-notification-form h2{
  font-size:19px;
}
.account-notification-form>p{
  margin:3px 0 7px;
  font-size:11px;
}
.account-notification-form .toggle{
  padding:7px 0;
}
.account-notification-form .toggle strong{
  font-size:11px;
}
.account-notification-form .btn{
  min-height:36px;
  padding:7px 13px;
}
@media(max-width:980px){
  .account-layout{grid-template-columns:1fr}
  .account-notification-form{position:static}
}
@media(max-width:680px){
  .compact-account-head{align-items:flex-start}
  .compact-name-row{grid-template-columns:1fr}
  .compact-name-row>small{justify-self:start}
  .compact-profile-grid-top{grid-template-columns:1fr}
  .compact-address-rows label{grid-template-columns:1fr;gap:3px}
  .compact-account-actions{align-items:stretch;flex-direction:column}
  .compact-account-actions .btn{width:100%}
}

/* v0.14.3 — align Email Address and Phone Number columns */
.compact-profile-grid-top{
  align-items:start;
}
.compact-profile-grid-top label{
  display:grid;
  grid-template-rows:auto 36px 13px;
  align-content:start;
}
.compact-profile-grid-top label>span{
  align-self:end;
}
.compact-profile-grid-top label>input{
  align-self:start;
}
.compact-profile-grid-top label>small{
  min-height:13px;
  line-height:13px;
  margin-top:3px;
}
.compact-profile-grid-top .field-helper-spacer{
  visibility:hidden;
}

/* v0.14.4 — tighten Email Address / Phone Number label spacing */
.compact-profile-grid-top label{
  gap:2px !important;
}
.compact-profile-grid-top label>span{
  margin:0 !important;
  line-height:1.05;
}
.compact-profile-grid-top label>input{
  margin-top:0 !important;
}
.compact-profile-grid-top label>small{
  margin-top:2px !important;
}

/* v0.15.0 — verified public customer sign-up */
.signin-action-stack{display:grid;gap:10px}
.customer-create-button{border:1px solid rgba(92,153,226,.42);background:#152a43;color:#eaf3ff}
.signup-card{max-width:520px}
.signup-form{display:grid;gap:12px;text-align:left}
.signup-form label{display:grid;gap:5px;color:#dbe7f8;font-size:12px;font-weight:750}
.signup-form input{min-height:44px;border:1px solid #29425f;background:#081628;color:#fff}
.signup-form input:focus{outline:none;border-color:#2f8fff;box-shadow:0 0 0 3px rgba(47,143,255,.16)}
.signup-passcode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.signup-code{text-align:center;font-size:22px!important;font-weight:800;letter-spacing:.25em}
.signup-back,.signup-resend{text-align:center;margin-top:14px}
.signup-back a,.signup-resend button{color:#74b6ff;font-size:12px;font-weight:750}
.signup-resend{display:block}
.signup-resend button{border:0;background:transparent;cursor:pointer}
@media(max-width:560px){.signup-passcode-grid{grid-template-columns:1fr}}

/* v0.15.1 — signup form contrast fix */
.customer-signin-card .signup-form label{
  color:#dbe7f8 !important;
}
.customer-signin-card .signup-form label>input{
  background:#ffffff !important;
  color:#101a2b !important;
  border-color:#b9c9dc !important;
  -webkit-text-fill-color:#101a2b !important;
}
.customer-signin-card .signup-form label>input::placeholder{
  color:#66758a !important;
  opacity:1;
}
.customer-signin-card .signup-form label>input:focus{
  background:#ffffff !important;
  color:#101a2b !important;
  border-color:#2f8fff !important;
}

/* v0.15.2 — requested dark signup input boxes */
.customer-signin-card .signup-form label{
  color:#dbe7f8 !important;
}
.customer-signin-card .signup-form label>input{
  background:#081628 !important;
  color:#f4f8ff !important;
  -webkit-text-fill-color:#f4f8ff !important;
  border:1px solid #365473 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.customer-signin-card .signup-form label>input::placeholder{
  color:#8fa5bd !important;
  opacity:1;
}
.customer-signin-card .signup-form label>input:focus{
  background:#0a1b30 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border-color:#3994ff !important;
  box-shadow:0 0 0 3px rgba(57,148,255,.16) !important;
}

/* v0.15.3 — normalize signup input typography */
.customer-signin-card .signup-form input{
  letter-spacing:normal !important;
  font-kerning:auto !important;
  font-variant-ligatures:normal !important;
}
.customer-signin-card .signup-form .signup-code{
  letter-spacing:.25em !important;
}

/* v0.15.4 — verification screen contrast only */
.customer-signin-card .signup-form .muted,
.customer-signin-card .signup-form p.muted,
.customer-signin-card .signup-form .signup-email,
.customer-signin-card .signup-form strong{
  color:#dbe7f8 !important;
  -webkit-text-fill-color:#dbe7f8 !important;
  opacity:1 !important;
}
.customer-signin-card .signup-form .notice,
.customer-signin-card .signup-form .info,
.customer-signin-card .signup-form .hint{
  color:#334155 !important;
  -webkit-text-fill-color:#334155 !important;
  opacity:1 !important;
}

/* v0.15.5 — exact verification-page contrast fix */
.customer-signin-card .customer-signin-intro strong{
  color:#f4f8ff !important;
  -webkit-text-fill-color:#f4f8ff !important;
  opacity:1 !important;
}
.customer-signin-card .secure-note{
  color:#334155 !important;
  -webkit-text-fill-color:#334155 !important;
  opacity:1 !important;
}


/* v0.16.0 — first-login onboarding and useful empty states */
.welcome-onboarding{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin:0 0 22px;
  padding:28px;
  border:1px solid #cfe0f7;
  border-radius:18px;
  background:linear-gradient(135deg,#f7fbff 0%,#edf6ff 100%);
}
.welcome-onboarding-main{max-width:820px}
.welcome-onboarding h1{margin:4px 0 8px;font-size:30px;line-height:1.12;color:#172033}
.welcome-onboarding p{margin:0;color:#52647a;line-height:1.55}
.welcome-onboarding-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:20px;
}
.welcome-onboarding-grid>div{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border:1px solid #d9e7f7;
  border-radius:12px;
  background:#fff;
}
.welcome-onboarding-grid b{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  flex:0 0 22px;
  border-radius:50%;
  background:#e8f7ee;
  color:#16733c;
  font-size:12px;
}
.welcome-onboarding-grid span{display:grid;gap:2px}
.welcome-onboarding-grid strong{font-size:13px;color:#203149}
.welcome-onboarding-grid small{font-size:12px;line-height:1.4;color:#687a90}
.welcome-onboarding-action{flex:0 0 auto;margin:0}
.customer-empty-state{
  display:flex!important;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
}
.customer-empty-state strong{font-size:15px;color:#26364d}
.customer-empty-state span{max-width:620px;color:#637188;line-height:1.5}
.customer-empty-state .btn{margin-top:5px}

@media(max-width:820px){
  .welcome-onboarding{align-items:stretch;flex-direction:column;padding:22px}
  .welcome-onboarding-grid{grid-template-columns:1fr}
  .welcome-onboarding-action .btn{width:100%}
}

/* v0.16.1 — dedicated test customer controls */
.test-reset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.test-reset-card{padding:18px;border:1px solid #dbe4ef;border-radius:14px;background:#f8fafc}
.test-reset-card h3{margin:0 0 7px;color:#26364d}
.test-reset-card p{margin:0 0 16px;color:#637188;line-height:1.55}
.test-reset-card.danger-zone{border-color:#f0d3d3;background:#fffafa}
.test-safety-note{margin-top:18px}
@media(max-width:760px){.test-reset-grid{grid-template-columns:1fr}}

/* v0.16.2 — successful customer sign-up hand-off */
.signup-success-card{text-align:center}
.signup-success-card .customer-signin-intro{max-width:520px;margin-left:auto;margin-right:auto}
.signup-success-icon{display:grid;place-items:center;width:54px;height:54px;margin:4px auto 14px;border-radius:50%;background:#e7f7ee;color:#15803d;font-size:28px;font-weight:900}
.signup-success-message{margin:18px 0}

/* v0.17.0 — customer dashboard and repair-priority experience */
.dashboard-ready-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 20px;padding:22px 26px;border:1px solid #b9e3ca;border-radius:18px;background:#edf9f2}
.dashboard-ready-banner h2{margin:4px 0 5px;color:#183b2a;font-size:24px}
.dashboard-ready-banner p{margin:0;color:#496657}
.dashboard-primary-grid,.dashboard-secondary-grid{align-items:stretch}
.dashboard-repairs-panel{min-width:0}
.dashboard-list{display:grid}
.dashboard-list-row{display:flex;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid #e8edf4}
.dashboard-list-row:last-child{border-bottom:0}
.dashboard-list-row>div{display:grid;gap:4px;min-width:0}
.dashboard-list-row span,.dashboard-list-row small{color:#68778d}
.notification-preview{display:block}
.notification-preview span{white-space:normal;line-height:1.45}
@media(max-width:820px){
  .dashboard-ready-banner{align-items:flex-start;flex-direction:column}
  .dashboard-ready-banner .btn{width:100%;text-align:center}
  .dashboard-list-row{align-items:flex-start}
}

/* v0.17.2 — dashboard row separation */
.dashboard-secondary-grid{margin-top:20px}

/* v0.17.3 — customer-visible repair notes */
.detail-timeline .customer-repair-note p{padding:10px 12px;border-radius:10px;background:#f5f8fc}
.detail-timeline time small{display:block;margin-top:3px;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#58708d}

/* v0.17.4 — customer-facing repair comments */
.repair-customer-comments-panel{grid-column:1/-1}
.repair-customer-comments-panel .panel-head p{margin:4px 0 0;color:var(--muted)}
.customer-comment-thread{display:grid;gap:12px;margin-top:16px}
.customer-comment-thread article{padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:#fff}
.customer-comment-thread article.from-workshop{border-left:4px solid #315f8d}
.customer-comment-thread article.from-customer{background:#f7f9fc}
.customer-comment-thread article>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}
.customer-comment-thread article strong{font-size:14px}
.customer-comment-thread article time{font-size:12px;color:var(--muted)}
.customer-comment-thread article p{margin:0;white-space:pre-wrap;line-height:1.55}
@media(max-width:700px){.customer-comment-thread article>div{align-items:flex-start;flex-direction:column;gap:2px}}

/* v0.18.0 - Repair History and cancellation */
.status.cancelled{background:rgba(239,68,68,.12);color:#ef4444;border-color:rgba(239,68,68,.24)}
.repair-history-card.is-cancelled{border-color:rgba(239,68,68,.2)}
.repair-history-cancel-reason{margin-top:14px;padding:12px 14px;border-radius:12px;background:rgba(239,68,68,.07);display:flex;flex-direction:column;gap:4px}
.repair-history-cancel-reason span{color:var(--muted)}
.repair-cancelled-banner{grid-column:1/-1;display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-color:rgba(239,68,68,.22);background:rgba(239,68,68,.06)}
.repair-cancelled-banner h2{margin:.2rem 0 .35rem}.repair-cancelled-banner p{margin:0;color:var(--muted)}
.repair-cancelled-banner>span{white-space:nowrap;color:var(--muted);font-size:.9rem}
@media(max-width:720px){.repair-cancelled-banner{flex-direction:column}.repair-cancelled-banner>span{white-space:normal}}


/* v0.19.0 — Repair Request review and Workshop Pro acceptance */
.repair-request-admin-list{display:grid;gap:16px}
.repair-request-admin-card{padding:20px}
.repair-request-admin-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.repair-request-admin-head h2{margin:.3rem 0 .25rem}
.repair-request-admin-head p{margin:0;color:var(--muted)}
.repair-request-admin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.repair-request-admin-grid>div{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft,#f6f8fb)}
.repair-request-admin-grid span{display:block;color:var(--muted);font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
.repair-request-admin-grid strong{display:block}
.repair-request-message{padding:12px 14px;border-left:3px solid var(--primary,#1464f4);background:var(--surface-soft,#f6f8fb);border-radius:8px;margin:10px 0}
.repair-request-message.staff{border-left-color:#637083}
.repair-request-message span{font-size:.72rem;font-weight:900;letter-spacing:.08em;color:var(--muted)}
.repair-request-message p{margin:5px 0 0;line-height:1.45}
.repair-request-admin-actions{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-top:16px}
.repair-request-admin-actions form{margin:0}
.repair-request-decline-form{display:flex;gap:8px;flex:1;min-width:min(100%,360px)}
.repair-request-decline-form input{flex:1;min-width:180px}
.customer-request-list{padding:18px}
.customer-request-row small{display:block;color:var(--muted);margin-top:4px}
.customer-request-row .customer-request-message{color:var(--text);font-weight:650}
@media(max-width:820px){
 .repair-request-admin-grid{grid-template-columns:1fr 1fr}
 .repair-request-admin-head{flex-direction:column}
 .repair-request-decline-form{width:100%;flex-direction:column}
 .repair-request-decline-form input,.repair-request-decline-form button{width:100%}
}
@media(max-width:520px){.repair-request-admin-grid{grid-template-columns:1fr}}


/* v0.20.0 — Workshop Pro owns Repair Requests */
.customer-request-row .status.ready{white-space:nowrap}


/* v0.21.0 — Repair Request scheduling and customer replies */
.customer-request-row-v021{display:block}
.customer-request-main{display:grid;gap:7px;width:100%}
.customer-request-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.customer-request-date{display:flex;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft,#f6f8fb)}
.customer-request-date span{color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.customer-request-date.proposed{border-left:3px solid var(--primary,#1464f4)}
.customer-request-thread{display:grid;gap:8px;margin-top:4px}
.customer-request-thread-item{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--surface-soft,#f6f8fb)}
.customer-request-thread-item.staff{border-left:3px solid var(--primary,#1464f4)}
.customer-request-thread-item.customer{border-left:3px solid #6c7a89}
.customer-request-thread-item>div{display:flex;justify-content:space-between;gap:10px}
.customer-request-thread-item small{color:var(--muted)}
.customer-request-thread-item p{margin:5px 0 0;line-height:1.45}
.customer-request-reply{display:grid;gap:8px;margin-top:5px;padding-top:12px;border-top:1px solid var(--line)}
.customer-request-reply label{display:grid;gap:6px;font-weight:800}
.customer-request-reply textarea{width:100%;resize:vertical}
.customer-request-reply .btn{justify-self:start}
@media(max-width:620px){.customer-request-title,.customer-request-date{flex-direction:column}.customer-request-reply .btn{width:100%}}


/* v0.21.1 — Request a Repair preferred date/time alignment */
.booking-form-v2 .form-row{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
}
.booking-form-v2 .form-row > label{
  min-width:0;
}
.booking-form-v2 .form-row > label > input,
.booking-form-v2 .form-row > label > select{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
@media(max-width:620px){
  .booking-form-v2 .form-row{grid-template-columns:1fr}
}

/* v0.21.5 — deterministic Preferred Date control for iPad/Safari */
.booking-form-v2 .booking-preferred-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
  align-items:start;
}
.booking-form-v2 .booking-preferred-row > label{
  min-width:0;
}
.booking-date-control{
  position:relative;
  display:block;
  width:100%;
  height:44px;
  margin-top:7px;
}
.booking-date-display{
  display:flex;
  align-items:center;
  width:100%;
  height:44px;
  box-sizing:border-box;
  padding:11px 12px;
  border:1px solid #d7deea;
  border-radius:9px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:14px;
  line-height:20px;
  pointer-events:none;
}
.booking-date-display.placeholder{
  color:var(--muted);
}
.booking-date-control > input[type="date"]{
  position:absolute;
  inset:0;
  width:100%;
  height:44px;
  min-width:0;
  max-width:100%;
  margin:0;
  padding:0;
  border:0;
  opacity:0;
  cursor:pointer;
  box-sizing:border-box;
}
.booking-form-v2 .booking-preferred-row > label > select{
  width:100%;
  box-sizing:border-box;
}
html[data-theme="dark"] .booking-date-display{
  background:var(--input-bg);
  color:var(--text);
  border-color:var(--line);
}
html[data-theme="dark"] .booking-date-display.placeholder{
  color:var(--muted);
}
@media(max-width:620px){
  .booking-form-v2 .booking-preferred-row{
    grid-template-columns:1fr;
  }
}

/* v0.21.6 — identical Preferred Date / Preferred Time visual controls */
.booking-form-v2 .booking-preferred-control{
  display:flex;
  align-items:center;
  width:100%;
  height:44px;
  min-height:44px;
  max-height:44px;
  box-sizing:border-box;
  border:1px solid #d7deea;
  border-radius:9px;
  padding:11px 12px;
  background:#fff;
  color:var(--text);
  font-family:inherit;
  font-size:14px;
  font-weight:700;
  line-height:20px;
}
.booking-form-v2 select.booking-preferred-control{
  display:block;
  margin-top:7px;
}
.booking-form-v2 .booking-date-display.booking-preferred-control{
  margin:0;
  pointer-events:none;
}
html[data-theme="dark"] .booking-form-v2 .booking-preferred-control{
  background:var(--input-bg);
  color:var(--text);
  border-color:var(--line);
}

/* v0.22.0 — dedicated Submitted Requests page */
.booking-layout-single{
  grid-template-columns:minmax(0,1fr);
}
.booking-layout-single .booking-form-v2{
  width:100%;
}
.submitted-requests-list{
  display:grid;
  gap:16px;
}
.submitted-request-card{
  padding:20px;
}
.submitted-request-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}
.submitted-request-head h2{
  margin:4px 0 3px;
}
.submitted-request-head p{
  margin:0;
  color:var(--muted);
}
.submitted-request-meta{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:18px 0;
}
.submitted-request-meta>div{
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-soft,#f6f8fb);
}
.submitted-request-meta span,
.submitted-request-initial>span{
  display:block;
  margin-bottom:4px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.submitted-request-meta strong{
  display:block;
}
.submitted-request-initial{
  padding:12px 14px;
  border:1px solid var(--line);
  border-left:3px solid var(--primary,#1464f4);
  border-radius:10px;
  background:var(--surface-soft,#f6f8fb);
}
.submitted-request-initial p{
  margin:0;
  line-height:1.45;
}
.submitted-request-thread{
  display:grid;
  gap:8px;
  margin-top:16px;
}
.submitted-request-reply{
  margin-top:16px;
}
.submitted-requests-empty{
  display:grid;
  justify-items:center;
  gap:8px;
}
.submitted-requests-empty strong{
  color:var(--text);
  font-size:18px;
}
.submitted-requests-empty span{
  max-width:560px;
}
html[data-theme="dark"] .submitted-request-meta>div,
html[data-theme="dark"] .submitted-request-initial{
  background:var(--surface-soft);
}
@media(max-width:900px){
  .submitted-request-meta{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .submitted-request-head{flex-direction:column}
  .submitted-request-meta{grid-template-columns:1fr}
  .submitted-requests-head{align-items:flex-start}
}

/* v0.23.0 — Notification Centre + Customer Approvals */
.dashboard-approval-banner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:16px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-left:4px solid var(--primary,#1464f4);
  border-radius:12px;
  background:var(--surface,#fff);
}
.dashboard-approval-banner h2{margin:3px 0 5px}
.dashboard-approval-banner p{margin:0;color:var(--muted)}
.approval-list,.notification-centre{display:grid;gap:14px}
.approval-card{padding:20px}
.approval-card-pending{border-left:4px solid var(--primary,#1464f4)}
.approval-card-head{
  display:flex;justify-content:space-between;gap:16px;align-items:flex-start
}
.approval-card-head h2{margin:4px 0 3px}
.approval-card-head p{margin:0;color:var(--muted)}
.approval-amount{
  display:flex;justify-content:space-between;align-items:center;
  margin:16px 0;padding:12px 14px;border:1px solid var(--line);
  border-radius:10px;background:var(--surface-soft,#f6f8fb)
}
.approval-amount span,.approval-description>span,.approval-customer-comment>span{
  color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.07em
}
.approval-amount strong{font-size:22px}
.approval-description,.approval-customer-comment{
  padding:13px 14px;border:1px solid var(--line);border-radius:10px
}
.approval-description p,.approval-customer-comment p{margin:5px 0 0;line-height:1.5}
.approval-meta{display:flex;gap:14px;margin:12px 0;color:var(--muted);font-size:12px}
.approval-decision-form{margin-top:14px}
.approval-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}
.notification-card{display:flex;gap:14px;padding:16px 18px}
.notification-icon{
  display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;
  border:1px solid var(--line);font-weight:800
}
.notification-content{min-width:0;flex:1}
.notification-title-row{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.notification-title-row small{color:var(--muted);white-space:nowrap}
.notification-content p{margin:6px 0 8px;color:var(--muted);line-height:1.45}
.notification-content a{font-weight:700}
.notification-empty,.approval-empty{display:grid;justify-items:center;gap:7px}
.notification-empty strong,.approval-empty strong{font-size:18px;color:var(--text)}
@media(max-width:650px){
  .dashboard-approval-banner,.approval-card-head,.notification-title-row{align-items:flex-start;flex-direction:column}
  .approval-actions{flex-direction:column-reverse}
  .approval-actions .btn{width:100%}
  .approval-meta{flex-direction:column;gap:4px}
}

/* v0.23.1 — notification unread badge and state */
.sidebar .nav-item{
  position:relative;
}
.nav-notification-badge{
  margin-left:auto;
  flex:0 0 auto;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#d92d20;
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:1;
  box-shadow:0 0 0 2px #0d1c32;
}
.notification-card.notification-unread{
  border-left:4px solid #d92d20;
}
.notification-card.notification-unread .notification-title-row strong{
  font-weight:800;
}

/* v0.23.3 — zero-state notification badge */
.nav-notification-badge-zero{
  background:#53647a;
  color:#fff;
  box-shadow:0 0 0 2px #0d1c32;
}
/* v0.24.0 — customer-managed devices + temporary repair access */
.device-page-actions{display:flex;gap:10px;align-items:center}.device-source-badge{display:inline-flex;margin-top:7px;padding:4px 8px;border-radius:999px;background:#eef3f9;color:#53647a;font-size:11px;font-weight:800}.customer-device-add-form{max-width:760px}.customer-device-add-step{display:flex;gap:13px;align-items:flex-start;margin-bottom:14px}.customer-device-add-step>span{flex:0 0 32px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--blue,#1464f4);color:#fff;font-weight:800}.customer-device-add-step h2{margin:2px 0 3px}.customer-device-add-step p{margin:0}.customer-device-selected{margin-top:10px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f6f8fb;display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center}.customer-device-selected>span{grid-column:1/-1;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.08em}.customer-device-selected strong{font-size:15px}.customer-device-access-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.75fr);gap:16px;align-items:center;margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:11px;background:#f7f9fc}.customer-device-access-field strong{display:block}.customer-device-access-field strong em{font-style:normal;color:var(--muted);font-size:11px}.customer-device-access-field p{margin:5px 0 0;font-size:12px}@media(max-width:700px){.device-page-actions{width:100%;align-items:stretch;flex-direction:column}.device-page-actions .btn{width:100%;text-align:center}.customer-device-access-field{grid-template-columns:1fr}}

/* v0.24.1 — PIN/password and Android-style pattern lock capture */
.customer-device-access-field{grid-template-columns:1fr;align-items:stretch}
.customer-access-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.customer-access-option{
  min-height:44px;display:flex;align-items:center;gap:8px;padding:10px 12px;
  border:1px solid var(--line);border-radius:10px;background:var(--panel,#fff);
  font-weight:700;cursor:pointer
}
.customer-access-option input{width:auto;margin:0}
.customer-access-option.selected{border-color:var(--blue,#1464f4);box-shadow:0 0 0 2px color-mix(in srgb,var(--blue,#1464f4) 14%,transparent)}
.customer-access-entry{margin-top:2px}
.customer-pattern-entry{max-width:420px}
.customer-pattern-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.customer-pattern-heading strong,.customer-pattern-heading small{display:block}
.customer-pattern-heading small{margin-top:2px;color:var(--muted)}
.customer-pattern-lock{
  position:relative;width:min(100%,330px);aspect-ratio:1/1;display:grid;
  grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);
  align-items:center;justify-items:center;touch-action:none;user-select:none;
  border:1px solid var(--line);border-radius:14px;background:var(--panel,#fff);padding:24px
}
.customer-pattern-lines{position:absolute;inset:24px;width:calc(100% - 48px);height:calc(100% - 48px);pointer-events:none;overflow:visible}
.customer-pattern-lines line{stroke:var(--blue,#1464f4);stroke-width:6;stroke-linecap:round;opacity:.8}
.customer-pattern-node{
  position:relative;z-index:2;width:54px;height:54px;border:0;border-radius:50%;
  background:transparent;padding:0;display:grid;place-items:center;touch-action:none
}
.customer-pattern-node span{
  width:18px;height:18px;border:3px solid #7d8a9b;border-radius:50%;
  background:var(--panel,#fff);transition:.12s ease
}
.customer-pattern-node.selected span{
  width:24px;height:24px;border-color:var(--blue,#1464f4);background:var(--blue,#1464f4);
  box-shadow:0 0 0 7px color-mix(in srgb,var(--blue,#1464f4) 16%,transparent)
}
.customer-pattern-summary{margin-top:8px;font-size:12px;color:var(--muted);font-weight:700}
@media(max-width:700px){
  .customer-access-options{grid-template-columns:1fr}
  .customer-pattern-entry{max-width:100%}
  .customer-pattern-lock{width:min(100%,310px);margin-inline:auto}
}

/* v0.24.2 — pattern direction indicators */
.customer-pattern-lines .customer-pattern-arrow{
  fill:var(--blue,#1464f4);
  opacity:.95;
}
.customer-pattern-node.pattern-start::after,
.customer-pattern-node.pattern-end::after{
  content:attr(data-pattern-label);
  position:absolute;
  z-index:4;
  top:-9px;
  left:50%;
  transform:translate(-50%,-100%);
  padding:2px 5px;
  border-radius:5px;
  background:var(--blue,#1464f4);
  color:#fff;
  font-size:8px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.05em;
  pointer-events:none;
  white-space:nowrap;
}
/* v0.25.0 — customer response to Workshop Pro device-access request */
.customer-access-request-panel{grid-column:1/-1}
.customer-access-request-lock{font-size:24px}
.customer-access-request-form{display:grid;gap:14px;margin-top:14px}
.customer-access-request-form>.btn{justify-self:start}
.customer-pattern-node.pattern-start::after{content:"START"}
.customer-pattern-node.pattern-end::after{content:"END"}
.customer-access-request-panel .notice{margin-top:12px}
/* v0.25.3 — visible device-access controls are no longer wrapped in a form */
.customer-access-submit-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.customer-access-submit-error{color:#b42318;font-size:12px;font-weight:750}
.customer-access-submit-error[hidden]{display:none!important}
/* v0.25.5 — robust native secure-access forms */
.customer-access-methods{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:16px;margin-top:16px}
.customer-access-method-card{padding:16px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.customer-access-method-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.customer-access-method-head span,.customer-access-method-head strong,.customer-access-method-head small{display:block}
.customer-access-method-head span{font-size:9px;font-weight:900;letter-spacing:.1em;color:var(--muted)}
.customer-access-method-head strong{margin-top:2px;font-size:16px}
.customer-access-method-head small{margin-top:3px;color:var(--muted);line-height:1.4}
.customer-access-native-form{display:grid;gap:12px}
.customer-access-native-form label{display:grid;gap:6px;font-size:12px;font-weight:800;color:var(--text)}
.customer-access-native-form input[type="password"]{width:100%;min-height:44px;box-sizing:border-box}
.customer-access-native-form>.btn{justify-self:start}
.customer-access-submit-error{color:#b42318;font-size:12px;font-weight:750}
.customer-access-submit-error[hidden]{display:none!important}
@media(max-width:900px){.customer-access-methods{grid-template-columns:1fr}}
/* v0.25.6 — secure access controls render without form elements */
.customer-access-request-panel .customer-access-methods{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(360px,.9fr)!important;gap:16px!important;margin-top:16px!important}
.customer-access-request-panel .customer-access-method-card{display:block!important;min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.customer-access-request-panel .customer-access-native-form{display:grid!important;gap:12px!important}
.customer-access-request-panel .customer-pattern-lock{display:grid!important;visibility:visible!important;opacity:1!important;min-height:300px}
.customer-access-request-panel .customer-pattern-node{display:grid!important;visibility:visible!important;opacity:1!important}
@media(max-width:900px){.customer-access-request-panel .customer-access-methods{grid-template-columns:1fr!important}}
/* v0.25.9 — live Workshop Updates */
.repair-progress .panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.repair-live-indicator{color:var(--muted);font-size:10px;font-weight:750;white-space:nowrap}
@media(max-width:520px){.repair-live-indicator{white-space:normal;text-align:right}}
/* v0.26.0 — Messages */
.customer-messages-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:18px}
.messages-left{display:grid;align-content:start;gap:14px}.messages-live-label{color:var(--muted);font-size:12px;font-weight:700}
.new-message-card{padding:0}.new-message-card summary{padding:17px 18px;cursor:pointer;font-weight:800}.message-create-form{padding:0 18px 18px}
.message-conversation-list{padding:0;overflow:hidden}.message-conversation-row{display:flex;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid var(--border);color:inherit;text-decoration:none}.message-conversation-row:hover,.message-conversation-row.active{background:var(--surface-soft)}.message-conversation-row.unread{box-shadow:inset 3px 0 0 var(--accent)}.message-conversation-row>div:first-child{display:grid;gap:4px;min-width:0}.message-conversation-row span{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-conversation-row>div:last-child{display:grid;justify-items:end;gap:6px}.message-conversation-row b{min-width:22px;height:22px;border-radius:11px;background:#d62828;color:#fff;display:grid;place-items:center;font-size:11px}.message-conversation-row small{color:var(--muted);font-size:11px;white-space:nowrap}
.customer-message-thread-panel{padding:0;min-height:590px;display:flex;flex-direction:column}.message-thread-empty{flex:1;display:grid;place-content:center;text-align:center;gap:6px;color:var(--muted)}.message-thread-head{display:flex;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid var(--border)}.message-thread-head span:first-child{color:var(--muted);font-size:11px;font-weight:800}.message-thread-head h2{margin:4px 0 0}
.message-thread-list{flex:1;max-height:500px;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:12px}.message-bubble{max-width:78%;padding:12px 14px;border-radius:15px;background:var(--surface-soft);align-self:flex-start}.message-bubble.mine{align-self:flex-end;background:var(--accent-soft)}.message-bubble p{margin:5px 0 7px;line-height:1.45}.message-bubble small{color:var(--muted);font-size:11px}.message-reply-form{display:flex;gap:10px;padding:15px 18px;border-top:1px solid var(--border)}.message-reply-form textarea{flex:1;resize:vertical}.message-closed-note{padding:18px;text-align:center;color:var(--muted);border-top:1px solid var(--border)}
@media(max-width:800px){.customer-messages-layout{grid-template-columns:1fr}.customer-message-thread-panel{min-height:480px}}

/* v0.26.1 — single live chat */
.customer-live-chat{padding:0;min-height:620px;display:flex;flex-direction:column;overflow:hidden}.customer-live-chat-head{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-bottom:1px solid var(--border)}.customer-live-chat-head>div{display:grid;gap:2px}.customer-live-chat-head span{color:var(--muted);font-size:12px}.customer-live-chat .message-thread-list{flex:1;max-height:none;min-height:430px}.message-thread-welcome{margin:auto;display:grid;gap:6px;text-align:center;color:var(--muted)}.message-thread-welcome strong{color:var(--text);font-size:18px}.customer-live-chat-compose{margin-top:auto}

/* v0.26.8 — Safari-safe compact Live Chat viewport */
#customerMessagesPage{
  height:460px!important;
  min-height:0!important;
  max-height:460px!important;
  padding:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
#customerMessagesPage .customer-live-chat-head{
  flex:0 0 auto;
}
#customerMessagesPage #customerMessageThreadList{
  flex:1 1 auto;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
#customerMessagesPage .customer-live-chat-compose{
  flex:0 0 auto;
  margin-top:0!important;
  background:var(--surface);
}
@media(max-width:800px){
  #customerMessagesPage{
    height:420px!important;
    max-height:420px!important;
  }
}


/* v0.26.12 — customer-controlled My Devices removal */
.device-remove-panel{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-top:20px;
    padding-top:18px;
    border-top:1px solid var(--line);
}
.device-remove-panel>div{
    display:grid;
    gap:4px;
}
.device-remove-panel strong{
    font-size:13px;
}
.device-remove-panel span{
    max-width:520px;
    color:var(--muted);
    font-size:12px;
    line-height:1.5;
}
.device-remove-panel form{
    flex:0 0 auto;
    margin:0;
}
.device-remove-button{
    background:#fff1f2;
    color:#a61b2b;
    border:1px solid #f0b7bf;
}
.device-remove-button:hover{
    background:#ffe4e8;
}
@media(max-width:640px){
    .device-remove-panel{
        align-items:stretch;
        flex-direction:column;
    }
    .device-remove-button{
        width:100%;
    }
}


/* v0.26.14 — compact customer repair cards */
.repair-card{
    padding:18px 20px;
}
.repair-card .repair-card-top{
    gap:14px;
}
.repair-card .repair-card-top h2{
    margin:4px 0 0;
}
.repair-card .repair-card-top p{
    margin:8px 0 0;
}
.repair-card .meta-grid{
    margin:14px 0 12px;
}
.repair-card .meta-grid>div{
    padding:10px 12px;
}
.repair-card .card-actions{
    padding-top:11px;
}
@media(max-width:700px){
    .repair-card{
        padding:16px;
    }
}


/* v0.26.15 — Submitted Requests customer-facing polish */
.submitted-request-new-button{
    white-space:nowrap;
    flex:0 0 auto;
}
.submitted-request-repair-reference a{
    display:inline-block;
    margin-top:5px;
    color:var(--blue);
    font-size:12px;
    font-weight:800;
}
@media(max-width:620px){
    .submitted-request-new-button{
        width:auto;
        white-space:normal;
    }
}


/* v0.26.18 — Approvals grouping and presentation polish */
.approval-section{
    display:grid;
    gap:12px;
}
.approval-section+.approval-section{
    margin-top:8px;
    padding-top:18px;
    border-top:1px solid var(--line);
}
.approval-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    padding:0 2px;
}
.approval-section-head h2{
    margin:3px 0 0;
    font-size:20px;
}
.approval-section-head>span{
    color:var(--muted);
    font-size:12px;
    font-weight:700;
}
.approval-section-cards{
    display:grid;
    gap:14px;
}
.approval-decision-form .optional-label{
    display:inline-block;
    margin-left:6px;
    color:var(--muted);
    font-size:10px;
    font-weight:650;
    text-transform:none;
}
.approval-section-previous .approval-card{
    padding:16px 18px;
}
.approval-section-previous .approval-amount{
    margin:12px 0;
    padding:10px 12px;
}
.approval-section-previous .approval-description,
.approval-section-previous .approval-customer-comment{
    padding:11px 12px;
}
@media(max-width:650px){
    .approval-section-head{
        align-items:flex-start;
        flex-direction:column;
        gap:5px;
    }
}


/* v0.26.19 — customer Chat wording and clearer message separation */
.customer-live-chat-note{
  padding:10px 20px;
  border-bottom:1px solid var(--line);
  background:#f7f9fc;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
#customerMessagesPage .message-thread-list{
  padding:18px 18px 14px;
  gap:14px;
}
.message-bubble{
  max-width:76%;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow:0 3px 10px rgba(24,42,67,.03);
}
.message-bubble strong{
  display:block;
  font-size:13px;
  margin-bottom:4px;
}
.message-bubble.workshop{
  align-self:flex-start;
  background:#f7f9fc;
  border-color:#dbe4f0;
  border-left:4px solid #315f8d;
}
.message-bubble.mine{
  align-self:flex-end;
  background:#eaf3ff;
  border-color:#c9dcfa;
  border-right:4px solid var(--blue);
}
.message-bubble p{
  margin:5px 0 7px;
  line-height:1.5;
}
.message-bubble small{
  display:block;
  color:var(--muted);
  font-size:11px;
}
@media(max-width:800px){
  .message-bubble{
    max-width:88%;
  }
}


/* v0.26.20 — CCUS Customer Light / Dark Mode */
:root{
  --surface:var(--panel);
  --surface-soft:#f7f9fc;
  --input-bg:#fff;
  --border:var(--line);
  --accent-soft:#eaf3ff;
}
html[data-theme="light"]{
  color-scheme:light;
}
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#081321;
  --panel:#0f1d30;
  --text:#eef4ff;
  --muted:#9cadc4;
  --line:#283a53;
  --blue:#4b9cff;
  --blue2:#2d79d0;
  --nav:#07111f;
  --green:#55be88;
  --shadow:0 14px 35px rgba(0,0,0,.22);
  --surface:#0f1d30;
  --surface-soft:#14243a;
  --input-bg:#0b1829;
  --border:#283a53;
  --accent-soft:#16375d;
}

/* top-bar theme control */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:7px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  color:var(--text);
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.theme-toggle:hover{
  border-color:#8fb5e7;
}
.theme-toggle-icon{
  display:inline-grid;
  place-items:center;
  width:18px;
  font-size:16px;
  line-height:1;
}
html[data-theme="dark"] .theme-toggle{
  background:#14243a;
  border-color:#304965;
  color:#eef4ff;
}
@media(max-width:620px){
  .theme-toggle{
    width:38px;
    padding:7px;
  }
  .theme-toggle-label{
    display:none;
  }
}

/* global portal surfaces */
html[data-theme="dark"] body,
html[data-theme="dark"] .content{
  background:var(--bg);
  color:var(--text);
}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .quick a,
html[data-theme="dark"] .submitted-request-meta>div,
html[data-theme="dark"] .submitted-request-initial,
html[data-theme="dark"] .approval-amount,
html[data-theme="dark"] .customer-request-date,
html[data-theme="dark"] .customer-request-thread-item,
html[data-theme="dark"] .customer-device-selected,
html[data-theme="dark"] .customer-device-access-field,
html[data-theme="dark"] .customer-access-method-card,
html[data-theme="dark"] .customer-access-request-panel .customer-access-method-card,
html[data-theme="dark"] .club-card-link-form,
html[data-theme="dark"] .purchase-search,
html[data-theme="dark"] .welcome-onboarding-grid>div,
html[data-theme="dark"] .customer-comment-thread article{
  background:var(--surface-soft)!important;
  border-color:var(--line)!important;
  color:var(--text);
}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .card-actions,
html[data-theme="dark"] .timeline,
html[data-theme="dark"] .detail-list>div,
html[data-theme="dark"] .device-card .line,
html[data-theme="dark"] .approval-section+.approval-section{
  border-color:var(--line);
}

/* inputs and forms */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .booking-date-display,
html[data-theme="dark"] .booking-form-v2 .booking-preferred-control{
  background:var(--input-bg)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
  -webkit-text-fill-color:var(--text);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:#7488a3;
  -webkit-text-fill-color:#7488a3;
}
html[data-theme="dark"] .form label,
html[data-theme="dark"] .account-profile-form label,
html[data-theme="dark"] .account-notification-form label,
html[data-theme="dark"] .booking-form-v2 label{
  color:var(--text);
}

/* tables, lists and secondary surfaces */
html[data-theme="dark"] th,
html[data-theme="dark"] .purchase-items-head{
  background:#132237;
  color:var(--muted);
}
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] .purchase-item,
html[data-theme="dark"] .purchase-row{
  border-color:var(--line);
}
html[data-theme="dark"] .purchase-row{
  background:var(--panel);
}
html[data-theme="dark"] .meta-grid>div{
  background:var(--surface-soft);
}
html[data-theme="dark"] .btn.secondary{
  background:#172b45;
  color:#d9e9ff;
}
html[data-theme="dark"] .device-icon,
html[data-theme="dark"] .device-icon.large,
html[data-theme="dark"] .booking-device-icon,
html[data-theme="dark"] .purchase-icon,
html[data-theme="dark"] .club-star{
  background:#173153;
  color:#76b4ff;
}
html[data-theme="dark"] .club-card{
  background:linear-gradient(145deg,#111f33,#142947);
}
html[data-theme="dark"] .warranty-badge{
  background:#143629;
  color:#6cd39b;
}

/* notices / status surfaces */
html[data-theme="dark"] .notice,
html[data-theme="dark"] .alert:not(.danger){
  background:#112a46;
  border-color:#294d73;
  color:#c6dcf5;
}
html[data-theme="dark"] .alert.danger{
  background:#3b1d24;
  border-color:#6d3540;
  color:#ffc7ce;
}
html[data-theme="dark"] .pill,
html[data-theme="dark"] .status{
  background:#1b2c43;
  color:#c3d1e4;
}
html[data-theme="dark"] .status.ready{
  background:#15382a;
  color:#74d4a2;
}

/* Chat remains deliberately two-colour in both modes */
html[data-theme="dark"] .customer-live-chat-note{
  background:#101f33;
  border-color:var(--line);
}
html[data-theme="dark"] .message-bubble.workshop{
  background:#17263a;
  border-color:#30445f;
  border-left-color:#6d97c4;
}
html[data-theme="dark"] .message-bubble.mine{
  background:#12365e;
  border-color:#28588a;
  border-right-color:#5ba1ff;
}
html[data-theme="dark"] #customerMessagesPage .customer-live-chat-compose{
  background:var(--panel);
}

/* dashboard / club / workflow surfaces */
html[data-theme="dark"] .dashboard-approval-banner,
html[data-theme="dark"] .dashboard-ready-banner,
html[data-theme="dark"] .link-banner{
  background:var(--panel);
  border-color:var(--line);
}
html[data-theme="dark"] .welcome-onboarding{
  background:linear-gradient(135deg,#10243d,#13355c);
  border-color:#2b4d70;
}
html[data-theme="dark"] .fault-choice span{
  background:var(--input-bg);
  border-color:var(--line);
  color:var(--text);
}
html[data-theme="dark"] .fault-choice input:checked+span{
  background:#15375f;
  border-color:#5799e8;
  color:#cfe5ff;
}

/* My Account and footer */
html[data-theme="dark"] .compact-account-actions,
html[data-theme="dark"] .compact-address-heading{
  border-color:var(--line);
}
html[data-theme="dark"] footer{
  color:#7f92ab;
}

/* Preserve printable documents as white paper regardless of screen theme. */
@media print{
  html[data-theme="dark"] body,
  html[data-theme="dark"] .customer-receipt{
    background:#fff!important;
    color:#111!important;
  }
}


/* v0.26.21 — complete dark-theme coverage */

/* Warranties */
html[data-theme="dark"] .warranty-scope-note,
html[data-theme="dark"] .device-detail-warranty-note{
  background:var(--surface-soft)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .warranty-scope-note strong{
  color:var(--text);
}

/* Request a Repair */
html[data-theme="dark"] .booking-device-choice{
  background:var(--surface-soft)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .booking-device-choice:hover,
html[data-theme="dark"] .booking-device-choice.selected{
  background:#17375d!important;
  border-color:#4d8bd1!important;
}
html[data-theme="dark"] .new-device-panel{
  background:var(--surface-soft)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .device-search-results{
  background:var(--panel)!important;
  border:1px solid var(--line);
  box-shadow:0 12px 32px rgba(0,0,0,.35);
}
html[data-theme="dark"] .device-search-results button,
html[data-theme="dark"] .device-search-loading,
html[data-theme="dark"] .device-search-empty{
  background:var(--panel)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .device-search-results button:hover{
  background:var(--surface-soft)!important;
}
html[data-theme="dark"] .smart-device-add{
  background:#12365e!important;
  color:#bcd9ff!important;
  border-color:#315d8e!important;
}
html[data-theme="dark"] .smart-device-add strong{
  color:#d9eaff!important;
}
html[data-theme="dark"] .booking-divider{
  background:var(--line)!important;
}
html[data-theme="dark"] .customer-access-option{
  background:var(--surface-soft)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .customer-access-option.selected{
  background:#15375f!important;
  border-color:#5799e8!important;
}
html[data-theme="dark"] .customer-pattern-lock,
html[data-theme="dark"] .customer-pattern-summary{
  background:var(--input-bg)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}

/* My Account */
html[data-theme="dark"] .compact-name-row{
  background:var(--surface-soft)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .account-notification-form .toggle{
  border-color:var(--line);
}

/* Admin Centre uses the same theme variables and persistence */
html[data-theme="dark"] .admin-shell{
  background:var(--bg);
  color:var(--text);
}
html[data-theme="dark"] .admin-shell .content{
  background:var(--bg);
}
html[data-theme="dark"] .admin-shell .panel,
html[data-theme="dark"] .admin-shell .stat,
html[data-theme="dark"] .admin-shell .table-panel,
html[data-theme="dark"] .admin-shell .test-reset-card{
  background:var(--panel)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
html[data-theme="dark"] .admin-shell .test-reset-card h3,
html[data-theme="dark"] .admin-shell .test-reset-card p{
  color:var(--text);
}
html[data-theme="dark"] .admin-shell .test-reset-card p{
  color:var(--muted);
}
html[data-theme="dark"] .admin-shell .test-reset-card.danger-zone{
  background:#351b24!important;
  border-color:#6f3444!important;
}
html[data-theme="dark"] .admin-shell th{
  background:#132237!important;
  color:var(--muted)!important;
}
html[data-theme="dark"] .admin-shell td,
html[data-theme="dark"] .admin-shell th{
  border-color:var(--line)!important;
}
html[data-theme="dark"] .admin-shell input,
html[data-theme="dark"] .admin-shell select,
html[data-theme="dark"] .admin-shell textarea,
html[data-theme="dark"] .admin-shell .upload-label input,
html[data-theme="dark"] .admin-shell .inline-link-form input{
  background:var(--input-bg)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
  -webkit-text-fill-color:var(--text);
}
html[data-theme="dark"] .admin-shell .notice.success{
  background:#143428!important;
  border-color:#2e694e!important;
  color:#a9e7c4!important;
}
html[data-theme="dark"] .admin-shell .notice.error,
html[data-theme="dark"] .admin-shell .alert.danger{
  background:#3a1d25!important;
  border-color:#723a47!important;
  color:#ffc2ca!important;
}
html[data-theme="dark"] .admin-shell .btn.secondary{
  background:#172b45!important;
  color:#d9e9ff!important;
}
html[data-theme="dark"] .admin-shell .booking-row,
html[data-theme="dark"] .admin-shell .detail-list>div{
  border-color:var(--line)!important;
}
html[data-theme="dark"] .admin-shell .secure-note{
  background:var(--surface-soft)!important;
  border-color:var(--line)!important;
  color:var(--muted)!important;
}


/* v0.26.22 — higher-contrast success green in Dark Mode */
html[data-theme="dark"]{
  --green:#79dfa5;
}
html[data-theme="dark"] .dashboard-ready-banner{
  background:#10261f!important;
  border-color:#285c45!important;
}
html[data-theme="dark"] .dashboard-ready-banner h2{
  color:#8be9b2!important;
}
html[data-theme="dark"] .dashboard-ready-banner p{
  color:#b2d9c2!important;
}
html[data-theme="dark"] .dashboard-ready-banner .eyebrow{
  color:#80cda0!important;
}
html[data-theme="dark"] .status.ready,
html[data-theme="dark"] .warranty-badge,
html[data-theme="dark"] .transaction .plus{
  color:#83e6ad!important;
}
html[data-theme="dark"] .status.ready{
  background:#173d2d!important;
}
html[data-theme="dark"] .warranty-badge{
  background:#173d2d!important;
}


/* v0.26.23 — Workshop Updates note contrast in Dark Mode */
html[data-theme="dark"] .detail-timeline .customer-repair-note p{
    background:var(--surface-soft)!important;
    border:1px solid var(--line);
    color:var(--text)!important;
}
html[data-theme="dark"] .detail-timeline .customer-repair-note time small{
    color:#9fb3cd;
}


/* v0.26.25 — invoices and receipts always print as light documents */
@media print {
  html[data-theme="dark"] {
    color-scheme: light !important;
    --bg:#fff !important;
    --panel:#fff !important;
    --text:#182235 !important;
    --muted:#69758a !important;
    --line:#d9e1eb !important;
    --surface:#fff !important;
    --surface-soft:#f5f7fa !important;
    --input-bg:#fff !important;
    --border:#d9e1eb !important;
    --accent-soft:#edf4ff !important;
  }

  html[data-theme="dark"] body,
  html[data-theme="dark"] .content,
  html[data-theme="dark"] .app-shell {
    background:#fff !important;
    color:#182235 !important;
  }

  html[data-theme="dark"] .customer-invoice.panel,
  html[data-theme="dark"] .customer-receipt.panel,
  html[data-theme="dark"] .customer-invoice,
  html[data-theme="dark"] .customer-receipt {
    background:#fff !important;
    color:#182235 !important;
    border-color:#d9e1eb !important;
    box-shadow:none !important;
  }

  html[data-theme="dark"] .customer-invoice *,
  html[data-theme="dark"] .customer-receipt * {
    border-color:#d9e1eb !important;
  }

  html[data-theme="dark"] .customer-invoice h1,
  html[data-theme="dark"] .customer-invoice h2,
  html[data-theme="dark"] .customer-invoice h3,
  html[data-theme="dark"] .customer-invoice strong,
  html[data-theme="dark"] .customer-invoice td,
  html[data-theme="dark"] .customer-invoice .invoice-brand,
  html[data-theme="dark"] .customer-receipt h1,
  html[data-theme="dark"] .customer-receipt h2,
  html[data-theme="dark"] .customer-receipt h3,
  html[data-theme="dark"] .customer-receipt strong,
  html[data-theme="dark"] .customer-receipt .receipt-item {
    color:#182235 !important;
    -webkit-text-fill-color:#182235 !important;
  }

  html[data-theme="dark"] .customer-invoice p,
  html[data-theme="dark"] .customer-invoice span,
  html[data-theme="dark"] .customer-invoice .invoice-contact,
  html[data-theme="dark"] .customer-invoice .invoice-customer-grid p,
  html[data-theme="dark"] .customer-invoice .invoice-footer-note,
  html[data-theme="dark"] .customer-invoice .legacy-invoice-item,
  html[data-theme="dark"] .customer-receipt p,
  html[data-theme="dark"] .customer-receipt span,
  html[data-theme="dark"] .customer-receipt .receipt-contact,
  html[data-theme="dark"] .customer-receipt .receipt-footer span {
    color:#4b5565 !important;
    -webkit-text-fill-color:#4b5565 !important;
  }

  html[data-theme="dark"] .customer-invoice .invoice-table th,
  html[data-theme="dark"] .customer-receipt .receipt-items-head,
  html[data-theme="dark"] .customer-receipt .receipt-meta-grid>div {
    background:#f5f7fa !important;
    color:#4b5565 !important;
    -webkit-text-fill-color:#4b5565 !important;
  }

  html[data-theme="dark"] .customer-invoice .payment-receipt,
  html[data-theme="dark"] .customer-invoice .invoice-club-points,
  html[data-theme="dark"] .customer-receipt .receipt-club {
    background:#f4f8ff !important;
    color:#182235 !important;
    border-color:#b8c9df !important;
  }

  html[data-theme="dark"] .customer-invoice .payment-receipt-icon {
    background:#daf4e4 !important;
    color:#167443 !important;
  }

  html[data-theme="dark"] .customer-invoice .invoice-payment-badge.paid {
    background:#e7f8ee !important;
    color:#167443 !important;
  }

  html[data-theme="dark"] .customer-invoice .invoice-payment-badge.outstanding {
    background:#fff3df !important;
    color:#9b5b00 !important;
  }

  html[data-theme="dark"] .customer-invoice .invoice-totals,
  html[data-theme="dark"] .customer-invoice .invoice-totals *,
  html[data-theme="dark"] .customer-receipt .receipt-summary,
  html[data-theme="dark"] .customer-receipt .receipt-summary * {
    color:#182235 !important;
    -webkit-text-fill-color:#182235 !important;
  }

  html[data-theme="dark"] .customer-receipt .receipt-grand-total {
    border-color:#182235 !important;
  }
}


/* v0.26.35 — CCUS Club savings balance + transaction history */
.club-savings-summary{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) minmax(170px,.45fr);
  gap:18px;
  align-items:center;
  margin-bottom:18px;
  padding:20px;
}
.club-savings-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#e9f8ef;
  color:#16844e;
  font-size:28px;
  font-weight:950;
}
.club-savings-balance{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:3px;
}
.club-savings-balance>span{
  color:var(--muted);
  font-size:11px;
}
.club-savings-balance>strong{
  margin-top:2px;
  color:var(--text);
  font-size:30px;
  line-height:1;
}
.club-savings-balance>small{
  margin-top:5px;
  color:var(--muted);
  font-size:10px;
}
.club-savings-status{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:4px;
  padding-left:18px;
  border-left:1px solid var(--line);
}
.club-savings-status>span{
  color:var(--muted);
  font-size:8px;
  font-weight:850;
  letter-spacing:.10em;
}
.club-savings-status>strong{
  color:#16844e;
  font-size:15px;
}
.club-savings-status>small{
  color:var(--muted);
  font-size:9px;
}
.club-savings-activity{margin-bottom:18px}
.club-savings-activity .panel-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:11px;
}
.club-savings-transactions{
  display:grid;
  gap:8px;
  margin-top:14px;
}
.club-savings-transaction{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface-soft,#f8fafc);
  color:inherit;
  text-decoration:none;
}
a.club-savings-transaction:hover{
  border-color:#b8cce6;
  background:#f3f7fc;
}
.club-savings-transaction-main{
  display:flex;
  align-items:center;
  min-width:0;
  gap:11px;
}
.club-savings-transaction-main>div{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:3px;
}
.club-savings-transaction-main strong{
  color:var(--text);
  font-size:12px;
}
.club-savings-transaction-main div span{
  color:var(--muted);
  font-size:9px;
  line-height:1.35;
}
.club-savings-type{
  min-width:38px;
  padding:5px 7px;
  border-radius:999px;
  font-size:8px;
  font-weight:900;
  text-align:center;
  letter-spacing:.06em;
}
.club-savings-type.credit{
  background:#e2f6e9;
  color:#15834c;
}
.club-savings-type.debit{
  background:#fde9eb;
  color:#b93f51;
}
.club-savings-transaction-value{
  display:flex;
  flex:0 0 auto;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
}
.club-savings-transaction-value strong{
  font-size:13px;
}
.club-savings-transaction-value strong.plus{color:#16844e}
.club-savings-transaction-value strong.minus{color:#ba3e51}
.club-savings-transaction-value span{
  color:var(--muted);
  font-size:9px;
}
html[data-theme="dark"] .club-savings-icon{
  background:#123a2b;
  color:#78dfad;
}
html[data-theme="dark"] .club-savings-status>strong,
html[data-theme="dark"] .club-savings-transaction-value strong.plus{
  color:#78dfad;
}
html[data-theme="dark"] .club-savings-transaction{
  background:var(--surface-soft,#14243a);
  border-color:var(--line);
}
html[data-theme="dark"] a.club-savings-transaction:hover{
  border-color:#3c5878;
  background:#172a42;
}
html[data-theme="dark"] .club-savings-type.credit{
  background:#123a2b;
  color:#78dfad;
}
html[data-theme="dark"] .club-savings-type.debit{
  background:#48202a;
  color:#ff9cab;
}
html[data-theme="dark"] .club-savings-transaction-value strong.minus{
  color:#ff9cab;
}
@media(max-width:760px){
  .club-savings-summary{
    grid-template-columns:54px minmax(0,1fr);
  }
  .club-savings-icon{
    width:50px;
    height:50px;
    border-radius:14px;
    font-size:24px;
  }
  .club-savings-status{
    grid-column:1/-1;
    padding:12px 0 0;
    border-left:0;
    border-top:1px solid var(--line);
  }
}
@media(max-width:560px){
  .club-savings-transaction{
    align-items:flex-start;
    flex-direction:column;
  }
  .club-savings-transaction-value{
    width:100%;
    align-items:flex-start;
    padding-left:49px;
  }
}


/* v0.26.36 — CCUS Club finance summary, ledger and reserved stock */
.club-finance-summary{
  display:grid;
  grid-template-columns:1.15fr .8fr 1.15fr;
  gap:0;
  margin-bottom:18px;
  padding:0;
  overflow:hidden;
}
.club-finance-primary,
.club-finance-secondary,
.club-finance-savings{
  min-height:112px;
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px 22px;
}
.club-finance-secondary{
  align-items:flex-start;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
}
.club-finance-primary>div,
.club-finance-savings>div{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:3px;
}
.club-finance-primary div>span,
.club-finance-secondary>span,
.club-finance-savings div>span{
  color:var(--muted);
  font-size:11px;
}
.club-finance-primary strong,
.club-finance-savings strong{
  font-size:26px;
  line-height:1.05;
}
.club-finance-secondary strong{font-size:22px}
.club-finance-primary small,
.club-finance-secondary small,
.club-finance-savings small{
  color:var(--muted);
  font-size:9px;
}
.club-savings-pound{
  width:56px;
  height:56px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e3f5e9;
  color:#16844e;
  font-size:27px;
  font-weight:950;
}
.club-finance-savings strong{color:#16844e}

.customer-club-reserved-stock{margin-bottom:18px}
.customer-club-reserved-stock .panel-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:11px;
}
.customer-club-reserved-count{
  padding:6px 9px;
  border-radius:999px;
  background:#e8f2ff;
  color:#2463a7;
  font-size:9px;
  font-weight:850;
  white-space:nowrap;
}
.customer-club-reserved-list{display:grid;gap:8px;margin-top:13px}
.customer-club-reserved-list article{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface-soft,#f8fafc);
}
.customer-club-reserved-main{
  display:flex;
  align-items:center;
  min-width:0;
  gap:11px;
}
.customer-club-reserved-main>div{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:4px;
}
.customer-club-reserved-main strong{font-size:12px}
.customer-club-reserved-main div span{color:var(--muted);font-size:9px}
.customer-club-reserved-value{
  display:flex;
  flex:0 0 auto;
  align-items:flex-end;
  flex-direction:column;
  gap:3px;
}
.customer-club-reserved-value strong{font-size:14px}
.customer-club-reserved-value span{color:var(--muted);font-size:8px}
.customer-club-reserved-note{
  margin-top:11px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface-soft,#f8fafc);
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}

.club-savings-ledger{margin-bottom:18px}
.club-savings-ledger .panel-head p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:11px;
}
.club-ledger-table-wrap{
  overflow-x:auto;
  margin-top:13px;
  border:1px solid var(--line);
  border-radius:11px;
}
.club-ledger-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  background:var(--panel);
}
.club-ledger-table th{
  padding:9px 11px;
  border-bottom:1px solid var(--line);
  background:var(--surface-soft,#f8fafc);
  color:var(--muted);
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  text-align:left;
  text-transform:uppercase;
}
.club-ledger-table td{
  padding:11px;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
  font-size:10px;
}
.club-ledger-table tbody tr:last-child td{border-bottom:0}
.club-ledger-table td>strong{font-size:10px}
.club-ledger-table td span{color:var(--muted);font-size:9px}
.club-ledger-table a{font-weight:800}
.club-ledger-table .num{text-align:right;white-space:nowrap}
.club-ledger-table .plus{color:#16844e}
.club-ledger-table .minus{color:#ba3e51}

html[data-theme="dark"] .club-savings-pound{
  background:#123a2b;
  color:#7de3b2;
}
html[data-theme="dark"] .club-finance-savings strong,
html[data-theme="dark"] .club-ledger-table .plus{color:#7de3b2}
html[data-theme="dark"] .customer-club-reserved-count{
  background:#17365d;
  color:#8fc3ff;
}
html[data-theme="dark"] .customer-club-reserved-list article,
html[data-theme="dark"] .customer-club-reserved-note,
html[data-theme="dark"] .club-ledger-table th{
  background:var(--surface-soft,#14243a);
}
html[data-theme="dark"] .club-ledger-table{background:var(--panel)}
html[data-theme="dark"] .club-ledger-table .minus{color:#ff9cab}

@media(max-width:820px){
  .club-finance-summary{grid-template-columns:1fr 1fr}
  .club-finance-primary{grid-column:1}
  .club-finance-secondary{grid-column:2;border-right:0}
  .club-finance-savings{grid-column:1/-1;border-top:1px solid var(--line)}
}
@media(max-width:560px){
  .club-finance-summary{grid-template-columns:1fr}
  .club-finance-primary,.club-finance-secondary,.club-finance-savings{grid-column:1;border-left:0;border-right:0}
  .club-finance-secondary,.club-finance-savings{border-top:1px solid var(--line)}
  .customer-club-reserved-list article{align-items:flex-start;flex-direction:column}
  .customer-club-reserved-value{align-items:flex-start}
}


/* v0.28.0 — optional customer passkeys and Account Security */
.customer-security-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 18px;padding:22px 24px;border-radius:18px;background:linear-gradient(120deg,#0d2a4f,#134f8d);color:#fff;box-shadow:var(--shadow)}
.customer-security-banner .eyebrow,.customer-security-banner p{color:#c7daf0}.customer-security-banner h2{font-size:24px;margin:0 0 6px}.customer-security-banner p{margin:0}.customer-security-banner .btn{flex:none;background:#fff;color:#123b6a}
.account-security-panel{display:grid;gap:10px}.account-security-panel p{margin:0}.customer-security-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:5px 0}.customer-security-mini>div{padding:11px;border-radius:10px;background:#f6f9fd;border:1px solid var(--line)}.customer-security-mini span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.customer-security-mini strong{display:block;margin-top:5px;font-size:15px}
.customer-security-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:18px;margin-bottom:18px}.customer-security-primary{display:flex;align-items:flex-start;gap:18px}.customer-security-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#e9f2ff;color:var(--blue);font-size:25px;flex:none}.customer-security-primary p{margin:4px 0 16px}.customer-session-list{display:grid}.customer-session-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-top:1px solid var(--line)}.customer-session-row:first-child{border-top:0}.customer-session-row small,.customer-session-row span{display:block;color:var(--muted);font-size:11px;margin-top:4px}.customer-session-row>div:last-child{text-align:right}.customer-security-activity{display:grid}.customer-security-activity>div{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-top:1px solid var(--line)}.customer-security-activity>div:first-child{border-top:0}.customer-security-activity small{color:var(--muted);text-align:right}
html[data-theme="dark"] .customer-security-mini>div{background:#12243a;border-color:#27405f}html[data-theme="dark"] .customer-security-icon{background:#173558;color:#74b8ff}
@media(max-width:900px){.customer-security-grid{grid-template-columns:1fr}.customer-security-banner{align-items:flex-start;flex-direction:column}.customer-security-banner .btn{width:100%}.customer-security-mini{grid-template-columns:1fr}}
@media(max-width:620px){.customer-session-row,.customer-security-activity>div{display:grid;grid-template-columns:1fr}.customer-session-row>div:last-child,.customer-security-activity small{text-align:left}}


/* v0.28.4 — state-aware customer passkey discovery banner */
.customer-security-banner-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:none}
.customer-security-banner-actions form{margin:0}
.customer-security-banner .customer-security-dismiss{background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.32);box-shadow:none}
.customer-security-banner .customer-security-dismiss:hover{background:rgba(255,255,255,.18)}
@media(max-width:900px){.customer-security-banner-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.customer-security-banner-actions .btn{width:auto;min-width:150px}.customer-security-banner-actions form{display:inline-flex}}
@media(max-width:520px){.customer-security-banner-actions{display:grid;grid-template-columns:1fr}.customer-security-banner-actions .btn,.customer-security-banner-actions form,.customer-security-banner-actions form .btn{width:100%}}

/* v0.31.0 — native CCUS Club Digital Card */
.club-digital-card-column{display:flex;flex-direction:column;gap:12px;min-width:0}
.club-digital-card{width:100%;max-width:610px;aspect-ratio:1.586/1;perspective:1400px;align-self:center}
.club-digital-card-inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .42s cubic-bezier(.2,.72,.2,1)}
.club-digital-card[data-card-side="back"] .club-digital-card-inner{transform:rotateY(180deg)}
.club-digital-card-face{position:absolute;inset:0;overflow:hidden;border-radius:24px;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 18px 40px rgba(2,12,28,.25)}
.club-digital-card-front{display:flex;flex-direction:column;padding:24px 26px;background:#01091b;color:#fff;isolation:isolate}
.club-digital-card-front:after{content:"";position:absolute;inset:0;background-image:linear-gradient(30deg,rgba(19,78,145,.07) 12%,transparent 12.5%,transparent 87%,rgba(19,78,145,.07) 87.5%,rgba(19,78,145,.07)),linear-gradient(150deg,rgba(19,78,145,.07) 12%,transparent 12.5%,transparent 87%,rgba(19,78,145,.07) 87.5%,rgba(19,78,145,.07));background-size:34px 59px;z-index:-2}
.club-digital-card .club-card-lines{z-index:-1}
.club-digital-card-topline{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.club-digital-card-logo{display:flex;align-items:flex-start;min-width:0}.club-digital-card-logo img{display:block;width:124px;max-width:42vw;height:auto;object-fit:contain}
.club-digital-card-badge{display:inline-flex;padding:7px 9px;border:1px solid rgba(126,188,255,.42);border-radius:999px;background:rgba(6,84,175,.2);color:#b9dcff;font-size:8px;font-weight:900;letter-spacing:.13em;white-space:nowrap}
.club-digital-card-member{display:flex;flex-direction:column;gap:5px;margin-top:auto}
.club-digital-card-member span,.club-digital-card-number span,.club-digital-card-balances span{color:#8fb7e4;font-size:8px;font-weight:900;letter-spacing:.13em}
.club-digital-card-member strong{font-size:20px;line-height:1.1;max-width:75%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.club-digital-card-balances{display:flex;gap:30px;margin-top:15px}
.club-digital-card-balances>div{display:flex;flex-direction:column;gap:2px}
.club-digital-card-balances strong{font-size:20px;line-height:1.05}
.club-digital-card-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:15px}
.club-digital-card .club-card-company{position:static;line-height:.88;flex:none}
.club-digital-card .club-card-company strong{font-size:15px}.club-digital-card .club-card-company small{font-size:6px}
.club-digital-card-number{display:flex;min-width:0;flex-direction:column;align-items:flex-end;gap:3px;text-align:right}
.club-digital-card-number strong{max-width:100%;font:800 10px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e5f2ff}
.club-digital-card-back{display:flex;flex-direction:column;transform:rotateY(180deg);padding:24px 26px;background:linear-gradient(150deg,#f9fbff,#e9f3ff);color:#10213c;border:1px solid #d2e3f8}
.club-digital-card-back-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.club-digital-card-back-brand{display:flex!important;flex-direction:column;align-items:flex-start;gap:8px!important}.club-digital-card-back-brand img{display:block;width:96px;height:auto;object-fit:contain}
.club-digital-card-back-head>div{display:flex;flex-direction:column;gap:4px}.club-digital-card-back-head>div>span{color:#1a72de;font-size:10px;font-weight:900;letter-spacing:.15em}.club-digital-card-back-head strong{font-size:19px}
.club-digital-card-back .club-digital-card-badge{background:#e1efff;color:#1765bd;border-color:#bdd8f7}
.club-digital-qr{display:flex;align-items:center;justify-content:center;width:154px;height:154px;margin:auto auto 7px;padding:10px;background:#fff;border:1px solid #cddbea;border-radius:10px;overflow:hidden}
.club-digital-qr canvas,.club-digital-qr img{width:100%!important;height:100%!important;max-width:100%;object-fit:contain;image-rendering:pixelated}
.club-digital-qr-error{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:10px;text-align:center;color:#6a7c91;font-size:9px;font-weight:800}
.club-digital-code-text{display:block;text-align:center;font:900 11px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;color:#10213c}
.club-digital-card-back p{margin:7px auto 0;max-width:92%;color:#5c6f87;text-align:center;font-size:9px;line-height:1.35}
.club-digital-card-back-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-top:auto;padding-top:10px;border-top:1px solid #ccdaea}.club-digital-card-back-footer span{font-weight:850;font-size:11px}.club-digital-card-back-footer small{color:#6a7c91;font-size:8px;text-align:right}
.club-digital-card-unavailable{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;padding:25px}.club-digital-card-unavailable span{max-width:360px;color:#697b90;font-size:10px;line-height:1.45}
.club-digital-card-controls{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.club-digital-card-controls .btn{min-width:118px}.club-digital-card-controls .btn.is-active{background:#1767d7;color:#fff}
.club-digital-card-note{margin:0 auto;max-width:570px;color:var(--muted);font-size:9px;line-height:1.45;text-align:center}
html[data-theme="dark"] .club-digital-card-back{background:linear-gradient(150deg,#eef5ff,#dceaff);color:#10213c;border-color:#31506f}
html[data-theme="dark"] .club-digital-card-back h1,html[data-theme="dark"] .club-digital-card-back h2,html[data-theme="dark"] .club-digital-card-back strong{color:#10213c}
@media(max-width:900px){.club-digital-card{max-width:640px}.club-membership-panel{gap:20px}}
@media(max-width:560px){.club-digital-card-face{border-radius:19px}.club-digital-card-front,.club-digital-card-back{padding:17px 18px}.club-digital-card .club-card-brand strong{font-size:34px}.club-digital-card .club-card-brand span{font-size:11px;margin-top:5px}.club-digital-card-badge{padding:5px 7px;font-size:6px}.club-digital-card-member strong{font-size:16px}.club-digital-card-balances{gap:19px;margin-top:10px}.club-digital-card-balances strong{font-size:16px}.club-digital-card-footer{margin-top:9px}.club-digital-card .club-card-company strong{font-size:12px}.club-digital-card-number strong{font-size:8px}.club-digital-qr{width:124px;height:124px;padding:8px}.club-digital-card-back-head strong{font-size:15px}.club-digital-code-text{font-size:9px}.club-digital-card-back p{font-size:8px}.club-digital-card-back-footer{padding-top:6px}.club-digital-card-back-footer span{font-size:9px}.club-digital-card-back-footer small{font-size:7px}}
@media(max-width:390px){.club-digital-card-front,.club-digital-card-back{padding:14px 15px}.club-digital-card .club-card-brand strong{font-size:30px}.club-digital-card-member strong{font-size:14px}.club-digital-card-balances strong{font-size:14px}.club-digital-card-balances span,.club-digital-card-member span,.club-digital-card-number span{font-size:6px}.club-digital-qr{width:108px;height:108px;padding:7px}.club-digital-card-back p{display:none}}


/* CCUS Customer 0.31.1 — Google Wallet */
.club-google-wallet-form{display:flex;justify-content:center;margin-top:12px}.club-google-wallet-button{background:#111;color:#fff;border-color:#111;min-width:218px;justify-content:center;gap:10px;font-weight:750}.club-google-wallet-button:hover{background:#202124;border-color:#202124}.club-google-wallet-button span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#202124;font-weight:850;font-size:13px}.club-google-wallet-button:focus-visible{outline:3px solid rgba(66,133,244,.35);outline-offset:2px}
html[data-theme="dark"] .club-google-wallet-button{background:#fff;color:#111;border-color:#fff}html[data-theme="dark"] .club-google-wallet-button span{background:#202124;color:#fff}


/* CCUS Customer 0.32.0 — Apple Wallet */
.club-wallet-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:12px}.club-wallet-actions form{margin:0}.club-apple-wallet-button{background:#1767d7;color:#fff;border-color:#1767d7;min-width:238px;justify-content:center;font-weight:800}.club-apple-wallet-button:hover{background:#0f57bf;border-color:#0f57bf}.club-apple-wallet-button:focus-visible{outline:3px solid rgba(23,103,215,.3);outline-offset:2px}.club-wallet-actions .club-google-wallet-form{margin-top:0}
@media(max-width:560px){.club-wallet-actions{display:grid;grid-template-columns:1fr}.club-wallet-actions form,.club-wallet-actions button{width:100%}}

/* CCUS Club wallet-branding refinement (0.32.3)
   Use the official wallet-provider badges without recreating or recolouring them. */
.club-apple-wallet-form{display:flex;justify-content:center;align-items:center}
.club-apple-wallet-button,
.club-apple-wallet-button:hover,
.club-apple-wallet-button:active,
.club-apple-wallet-button:focus{
  width:min(100%,152px);height:48px;min-width:0;padding:0;border:0;border-radius:0;
  background-color:transparent!important;
  background-image:url('wallet/add-to-apple-wallet.svg')!important;
  background-repeat:no-repeat!important;background-position:center!important;background-size:contain!important;
  box-shadow:none!important;color:transparent!important;font-size:0!important;line-height:0;overflow:hidden;
}
.club-apple-wallet-button:focus-visible{outline:3px solid rgba(23,103,215,.3);outline-offset:3px}
.club-google-wallet-button,
.club-google-wallet-button:hover,
.club-google-wallet-button:active,
.club-google-wallet-button:focus,
html[data-theme="dark"] .club-google-wallet-button,
html[data-theme="dark"] .club-google-wallet-button:hover,
html[data-theme="dark"] .club-google-wallet-button:active,
html[data-theme="dark"] .club-google-wallet-button:focus{
  width:min(100%,174px);height:48px;min-width:0;padding:0;border:0;border-radius:0;
  background-color:transparent!important;
  background-image:url('wallet/add-to-google-wallet.svg')!important;
  background-repeat:no-repeat!important;background-position:center!important;background-size:contain!important;
  box-shadow:none!important;color:transparent!important;font-size:0!important;line-height:0;overflow:hidden;
}
.club-google-wallet-button span{display:none!important}
.club-google-wallet-button:focus-visible{outline:3px solid rgba(66,133,244,.35);outline-offset:3px}
@media(max-width:560px){
  .club-wallet-actions .club-apple-wallet-button{width:min(100%,152px)}
  .club-wallet-actions .club-google-wallet-button{width:min(100%,174px)}
}


/* CCUS Customer 0.32.5 — Wallet badge rendering + cache-safe provider controls */
.club-wallet-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:14px;min-height:48px}
.club-wallet-actions form,.club-apple-wallet-form,.club-google-wallet-form{display:flex;align-items:center;justify-content:center;margin:0}
.club-wallet-badge-button,
.club-wallet-badge-button:hover,
.club-wallet-badge-button:active,
.club-wallet-badge-button:focus,
.club-apple-wallet-button,
.club-apple-wallet-button:hover,
.club-apple-wallet-button:active,
.club-apple-wallet-button:focus,
.club-google-wallet-button,
.club-google-wallet-button:hover,
.club-google-wallet-button:active,
.club-google-wallet-button:focus,
html[data-theme="dark"] .club-google-wallet-button,
html[data-theme="dark"] .club-google-wallet-button:hover,
html[data-theme="dark"] .club-google-wallet-button:active,
html[data-theme="dark"] .club-google-wallet-button:focus{
  appearance:none;-webkit-appearance:none;display:inline-flex!important;align-items:center;justify-content:center;
  width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:inherit!important;
  font-size:inherit!important;line-height:normal!important;overflow:visible!important;cursor:pointer;
}
.club-wallet-badge-button img,.club-apple-wallet-button img,.club-google-wallet-button img{display:block!important;width:auto!important;height:44px!important;max-width:min(100%,210px)!important;object-fit:contain}
.club-wallet-badge-button:focus-visible{outline:3px solid rgba(66,133,244,.38)!important;outline-offset:4px!important;border-radius:8px!important}
.club-google-wallet-button span{display:none!important}
@media(max-width:560px){
  .club-wallet-actions{display:flex;flex-direction:column;align-items:center;gap:10px}
  .club-wallet-actions form{width:auto!important}
  .club-wallet-actions .club-wallet-badge-button,.club-wallet-actions .club-apple-wallet-button,.club-wallet-actions .club-google-wallet-button{width:auto!important}
  .club-wallet-badge-button img,.club-apple-wallet-button img,.club-google-wallet-button img{height:44px!important;max-width:calc(100vw - 64px)!important}
}

/* CCUS Customer 0.32.7 — resilient provider badge fallback */
.club-wallet-badge-fallback{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border-radius:8px;background:#111;color:#fff;font-weight:800;white-space:nowrap}
html[data-theme="dark"] .club-wallet-badge-fallback{background:#fff;color:#111}

/* v0.32.8 — native CCUS Club digital card branding */
@media(max-width:520px){.club-digital-card-logo img{width:108px}.club-digital-card-back-brand img{width:86px}}

/* CCUS Customer 0.32.9 — native Club card logo reliability + accent-line restoration */
.club-digital-card-front .club-card-lines{z-index:0;pointer-events:none}
.club-digital-card-topline,.club-digital-card-member,.club-digital-card-balances,.club-digital-card-footer{position:relative;z-index:1}
.club-digital-card-logo,.club-digital-card-back-brand{position:relative;z-index:2}
.club-digital-card-logo img{display:block;width:124px;max-width:42vw;height:auto;object-fit:contain;border:0;background:transparent}
.club-digital-card-back-brand img{display:block;width:96px;height:auto;object-fit:contain;border:0;background:transparent}
@media(max-width:520px){.club-digital-card-logo img{width:108px}.club-digital-card-back-brand img{width:86px}}


/* v0.32.23 — dashboard device-access action UI polish */
.dashboard-device-access-banner{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  margin:4px 0 30px;padding:21px 23px;border:1px solid #efaaaa;border-left:6px solid #d92d20;
  border-radius:16px;background:#fff3f2;box-shadow:0 10px 28px rgba(144,24,20,.08)
}
.dashboard-device-access-copy{min-width:0}.dashboard-device-access-banner h2{margin:3px 0 6px;color:#7a271a;font-size:23px}
.dashboard-device-access-banner p{margin:0;color:#8a3326}.dashboard-device-access-banner .eyebrow{color:#b42318}
.dashboard-device-access-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
.dashboard-device-access-actions .btn.primary{background:#d92d20;border-color:#d92d20;color:#fff;box-shadow:0 6px 16px rgba(217,45,32,.18)}
.dashboard-device-access-actions .btn.primary:hover{background:#b42318;border-color:#b42318}
.dashboard-device-access-actions span{font-size:12px;color:#8a3326;white-space:nowrap}
.dashboard-device-access-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.dashboard-device-access-list>span,.dashboard-device-access-list>a{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #f1b4ae;border-radius:10px;background:#fffafa;color:inherit;text-decoration:none}
.dashboard-device-access-list small{color:#a23a30;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
html[data-theme="dark"] .dashboard-device-access-banner{background:#321917;border-color:#69302b;border-left-color:#f04438;box-shadow:none}
html[data-theme="dark"] .dashboard-device-access-banner h2{color:#fecdca}
html[data-theme="dark"] .dashboard-device-access-banner p,html[data-theme="dark"] .dashboard-device-access-actions span{color:#f5b9b4}
html[data-theme="dark"] .dashboard-device-access-banner .eyebrow{color:#f97066}
html[data-theme="dark"] .dashboard-device-access-actions .btn.primary{background:#d92d20;border-color:#d92d20;color:#fff}
html[data-theme="dark"] .dashboard-device-access-list>span,html[data-theme="dark"] .dashboard-device-access-list>a{background:#251211;border-color:#67312c;color:inherit}
html[data-theme="dark"] .dashboard-device-access-list small{color:#f3aaa4}
@media(max-width:760px){.dashboard-device-access-banner{align-items:flex-start;flex-direction:column;margin-bottom:26px}.dashboard-device-access-actions{width:100%;align-items:stretch}.dashboard-device-access-actions .btn{width:100%;text-align:center}.dashboard-device-access-actions span{text-align:center;white-space:normal}}

/* v0.32.25 Customer-visible repair photos */
.customer-repair-photos{grid-column:1/-1}.customer-repair-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}.customer-repair-photo-card{display:grid;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);transition:transform .16s ease,box-shadow .16s ease}.customer-repair-photo-card:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(24,42,67,.09)}.customer-repair-photo-image{display:block;aspect-ratio:4/3;background:#eef2f7;overflow:hidden}.customer-repair-photo-image img{width:100%;height:100%;display:block;object-fit:cover}.customer-repair-photo-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 12px}.customer-repair-photo-meta strong{font-size:13px}.customer-repair-photo-meta small{font-size:11px;color:var(--muted);white-space:nowrap}@media(max-width:520px){.customer-repair-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.customer-repair-photo-meta{display:grid;gap:2px;padding:9px}.customer-repair-photo-meta small{font-size:10px}}html[data-theme="dark"] .customer-repair-photo-image{background:#111b29}html[data-theme="dark"] .customer-repair-photo-card{border-color:var(--line)}


/* v0.32.27 — phone-only native-style CCUS Customer experience + PWA shell.
   IMPORTANT: all layout overrides below are isolated to <=640px. */
.customer-mobile-appbar,.customer-mobile-dashboard,.customer-mobile-bottom-nav,.customer-mobile-more-sheet,.customer-mobile-more-backdrop,.customer-pwa-launch{display:none}
@media (max-width:640px){
  html{background:#081321;overscroll-behavior-y:none}
  body.customer-portal-body{min-width:0;background:var(--bg);padding:0 0 calc(78px + env(safe-area-inset-bottom));overflow-x:hidden;-webkit-tap-highlight-color:transparent}
  body.customer-portal-body .app-shell{display:block;min-height:100dvh}
  body.customer-portal-body .sidebar,body.customer-portal-body .topbar{display:none!important}
  body.customer-portal-body .content{padding:0 14px calc(36px + env(safe-area-inset-bottom));background:var(--bg);min-height:100dvh}
  body.customer-portal-body footer{padding:24px 8px 8px;margin-bottom:8px;font-size:10px}
  body.customer-portal-body h1{font-size:28px;line-height:1.08}
  body.customer-portal-body h2{font-size:19px}
  body.customer-portal-body p{line-height:1.48}

  .customer-mobile-appbar{position:sticky;top:0;z-index:90;display:flex;align-items:center;justify-content:space-between;min-height:calc(68px + env(safe-area-inset-top));margin:0 -14px 14px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:rgba(7,17,31,.94);border-bottom:1px solid #1c3049;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
  html[data-theme="light"] .customer-mobile-appbar{background:rgba(244,247,251,.95);border-bottom-color:#d9e2ee}
  .customer-mobile-appbar-left{display:flex;align-items:center;gap:11px;min-width:0}.customer-mobile-appbar-left>img{width:42px;height:42px;object-fit:contain}.customer-mobile-appbar-left>div{display:grid;min-width:0}.customer-mobile-appbar-left span{font-size:9px;letter-spacing:.17em;color:var(--muted);font-weight:900}.customer-mobile-appbar-left strong{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-mobile-back{width:42px;height:42px;border:1px solid var(--line);border-radius:14px;display:grid;place-items:center;background:var(--panel);color:var(--text);font-size:34px;line-height:1}.customer-mobile-theme-toggle{width:42px!important;height:42px!important;border-radius:14px!important;padding:0!important;flex:none}

  .customer-dashboard-desktop{display:none!important}.customer-mobile-dashboard{display:block;padding:2px 0 10px}.customer-mobile-welcome{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 2px 15px}.customer-mobile-welcome>div>span{display:block;font-size:10px;letter-spacing:.16em;font-weight:900;color:#7fa8da}.customer-mobile-welcome h1{margin:3px 0 2px;font-size:30px}.customer-mobile-welcome p{margin:0;font-size:13px}.customer-mobile-avatar{width:48px;height:48px;display:grid;place-items:center;flex:none;border-radius:16px;background:linear-gradient(145deg,#45a3ff,#1768d8);color:white;font-size:19px;font-weight:900;box-shadow:0 9px 24px rgba(22,103,217,.28)}
  .customer-mobile-balances{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.customer-mobile-balances>a{min-width:0;padding:15px;border:1px solid #2d5f98;border-radius:18px;background:linear-gradient(145deg,#102947,#173a63);color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.14)}.customer-mobile-balances span,.customer-mobile-balances small{display:block;color:#9fbbdc}.customer-mobile-balances span{font-size:10px;text-transform:uppercase;letter-spacing:.09em;font-weight:850}.customer-mobile-balances strong{display:block;margin:6px 0 2px;font-size:25px;line-height:1}.customer-mobile-balances small{font-size:10px}.customer-mobile-balances>a:last-child{background:linear-gradient(145deg,#112942,#164564);border-color:#286580}
  html[data-theme="light"] .customer-mobile-balances>a{background:linear-gradient(145deg,#0f2442,#17569f);border-color:#397bc6}

  .customer-mobile-alert{display:grid;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;gap:10px;margin:10px 0;padding:12px 13px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text)}.customer-mobile-alert>b{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:#17375d;color:#70b3ff}.customer-mobile-alert span{display:grid;gap:2px}.customer-mobile-alert strong{font-size:13px}.customer-mobile-alert small{color:var(--muted);font-size:11px;line-height:1.35}.customer-mobile-alert i{font-style:normal;font-size:24px;color:var(--muted)}.customer-mobile-alert-ready{border-color:#245e46;background:#102b24}.customer-mobile-alert-ready>b{background:#164d38;color:#78d9a8}.customer-mobile-alert-action{border-color:#6c5728;background:#2d2718}.customer-mobile-alert-action>b{background:#4a3c1d;color:#ffd779}
  html[data-theme="light"] .customer-mobile-alert-ready{background:#edf9f2;border-color:#b9e3ca}
  html[data-theme="light"] .customer-mobile-alert-action{background:#fff8e7;border-color:#f2d598}

  .customer-mobile-section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:20px 2px 10px}.customer-mobile-section-title>span{font-size:13px;font-weight:900;color:var(--text)}.customer-mobile-section-title small,.customer-mobile-section-title>a{font-size:11px;color:var(--muted)}
  .customer-mobile-tile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.customer-mobile-tile{min-height:106px;padding:14px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);box-shadow:0 7px 20px rgba(0,0,0,.07)}.customer-mobile-tile>b{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:var(--accent-soft);color:var(--blue);font-size:19px}.customer-mobile-tile>span{display:grid;gap:3px}.customer-mobile-tile strong{font-size:14px;line-height:1.15}.customer-mobile-tile small{font-size:10px;color:var(--muted);line-height:1.25}.customer-mobile-tile-primary{grid-column:1/-1;min-height:80px;flex-direction:row;align-items:center;justify-content:flex-start;background:linear-gradient(145deg,#1667d9,#0e56bd);border-color:#277fec;color:#fff}.customer-mobile-tile-primary>b{flex:none;background:rgba(255,255,255,.16);color:#fff}.customer-mobile-tile-primary small{color:#cfe2ff}
  .customer-mobile-current{margin-top:8px}.customer-mobile-current>a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;margin:8px 0;border:1px solid var(--line);border-radius:15px;background:var(--panel);color:var(--text)}.customer-mobile-current>a>span{display:grid;gap:3px;min-width:0}.customer-mobile-current>a strong{font-size:13px}.customer-mobile-current>a small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-mobile-current em{font-style:normal;font-size:10px;font-weight:850;padding:5px 8px;border-radius:999px;background:var(--accent-soft);color:var(--blue);white-space:nowrap}.customer-mobile-current em.ready{background:#15382a;color:#74d4a2}

  /* Existing section pages become compact touch-first app screens only on phones. */
  body.customer-portal-body .page-head{margin:3px 0 13px;padding:0 2px;gap:10px;align-items:flex-start}.page-head h1{font-size:25px;margin-bottom:4px}.page-head p{font-size:12px;margin:0;line-height:1.4}.page-head .eyebrow{font-size:9px;margin-bottom:4px}.page-head .btn{min-height:42px;border-radius:13px}.back-link,.invoice-back-link{display:none!important}
  body.customer-portal-body .panel{border-radius:18px;padding:15px;box-shadow:none}.stack{gap:11px}.repair-card h2{font-size:20px}.repair-card-top{display:flex;gap:8px}.repair-card-top>div:first-child{min-width:0}.repair-card-top .status{margin-top:0;white-space:nowrap}.meta-grid{gap:7px;margin:13px 0}.meta-grid>div{padding:10px;border-radius:12px}.card-actions{padding-top:11px}.cards,.grid{gap:11px}.quick{display:none}
  body.customer-portal-body input,body.customer-portal-body select,body.customer-portal-body textarea{min-height:46px;border-radius:13px;font-size:16px}body.customer-portal-body textarea{min-height:98px}.btn{min-height:42px;border-radius:13px}.form label{margin:12px 0}.table-panel{border-radius:18px}.table-panel table{min-width:0}.table-panel thead{display:none}.table-panel table,.table-panel tbody,.table-panel tr,.table-panel td{display:block;width:100%}.table-panel tr{padding:12px 14px;border-bottom:1px solid var(--line)}.table-panel td{padding:3px 0;border:0}.table-panel td:empty{display:none}
  .warranty-card{padding:15px}.warranty-scope-note{border-radius:15px}.purchase-row{border-radius:15px}.purchase-search{border-radius:15px}.customer-live-chat{min-height:calc(100dvh - 210px)}
  .club-membership-panel,.club-finance-summary,.customer-club-reserved-stock,.club-savings-ledger,.club-activity{scroll-margin-top:90px}.club-membership-panel{padding:14px}.club-finance-summary{display:grid;gap:10px}.club-ledger-table-wrap{overflow:visible}.club-ledger-table thead{display:none}.club-ledger-table,.club-ledger-table tbody,.club-ledger-table tr,.club-ledger-table td{display:block;width:100%}.club-ledger-table tr{margin-bottom:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.club-ledger-table td{border:0;padding:3px 0;text-align:left!important}.club-ledger-table td.num{text-align:left!important}
  .account-layout{display:grid;grid-template-columns:1fr!important;gap:11px}.compact-profile-grid,.compact-address-rows{grid-template-columns:1fr!important}.compact-account-actions{align-items:stretch;flex-direction:column}.compact-account-actions .btn{width:100%}

  .customer-mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;z-index:120;min-height:calc(68px + env(safe-area-inset-bottom));padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:rgba(7,17,31,.97);border-top:1px solid #233650;box-shadow:0 -12px 30px rgba(0,0,0,.24);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}html[data-theme="light"] .customer-mobile-bottom-nav{background:rgba(255,255,255,.97);border-top-color:#d9e2ee}.customer-mobile-bottom-nav>a,.customer-mobile-bottom-nav>button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:transparent;color:#8496ad;font:inherit;padding:3px 2px;border-radius:12px;min-width:0}.customer-mobile-bottom-nav b{font-size:20px;line-height:1;font-weight:750}.customer-mobile-bottom-nav span{font-size:9px;font-weight:800}.customer-mobile-bottom-nav .active{color:#4b9cff;background:rgba(75,156,255,.09)}

  .customer-mobile-more-backdrop{position:fixed;display:block;inset:0;z-index:130;background:rgba(0,0,0,.56);backdrop-filter:blur(2px)}.customer-mobile-more-backdrop[hidden]{display:none}.customer-mobile-more-sheet{position:fixed;display:block;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:140;max-height:min(78dvh,690px);overflow:auto;padding:8px 14px calc(16px + env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:26px;background:var(--panel);box-shadow:0 24px 70px rgba(0,0,0,.45)}.customer-mobile-more-sheet[hidden]{display:none}.customer-mobile-more-handle{width:44px;height:5px;border-radius:999px;background:#51637a;margin:2px auto 11px}.customer-mobile-more-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.customer-mobile-more-head>div{display:grid}.customer-mobile-more-head span{font-size:9px;letter-spacing:.15em;color:var(--muted);font-weight:900}.customer-mobile-more-head strong{font-size:23px}.customer-mobile-more-head button{width:40px;height:40px;border-radius:13px;border:1px solid var(--line);background:var(--surface-soft);color:var(--text);font-size:26px}.customer-mobile-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.customer-mobile-more-grid>a{position:relative;min-height:70px;padding:10px;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft);color:var(--text)}.customer-mobile-more-grid b{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--accent-soft);color:var(--blue)}.customer-mobile-more-grid span{font-size:12px;font-weight:800;line-height:1.2}.customer-mobile-more-grid i{position:absolute;right:7px;top:7px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border-radius:999px;background:#e34f59;color:#fff;font-size:9px;font-style:normal;font-weight:900}.customer-mobile-signout{display:flex;justify-content:center;margin-top:12px;padding:12px;border:1px solid #5d2c35;border-radius:14px;color:#ff9ca5;background:#2d171d;font-weight:800}.customer-mobile-more-open{overflow:hidden}

  .customer-pwa-launch{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;flex-direction:column;gap:8px;background:#081321;color:#fff;opacity:0;transition:opacity .22s ease}.customer-pwa-launch.is-visible{display:flex;opacity:1}.customer-pwa-launch.is-hidden{opacity:0;pointer-events:none}.customer-pwa-launch img{width:92px;height:92px;object-fit:contain}.customer-pwa-launch strong{font-size:24px}.customer-pwa-launch span{font-size:10px;letter-spacing:.18em;color:#9fb1c8;text-transform:uppercase;font-weight:850}
}
@media (max-width:390px){
  .customer-mobile-tile-grid{gap:8px}.customer-mobile-tile{min-height:100px;padding:12px}.customer-mobile-balances>a{padding:13px}.customer-mobile-balances strong{font-size:22px}.customer-mobile-more-grid>a{min-height:66px}.customer-mobile-appbar{padding-left:12px;padding-right:12px}.customer-mobile-appbar-left strong{font-size:17px}
}
@media (max-width:640px) and (orientation:landscape){
  body.customer-portal-body{padding-bottom:calc(62px + env(safe-area-inset-bottom))}.customer-mobile-appbar{min-height:calc(56px + env(safe-area-inset-top));padding-top:calc(6px + env(safe-area-inset-top));padding-bottom:6px}.customer-mobile-appbar-left>img,.customer-mobile-back,.customer-mobile-theme-toggle{width:38px!important;height:38px!important}.customer-mobile-bottom-nav{min-height:calc(56px + env(safe-area-inset-bottom));padding-top:3px;padding-bottom:calc(3px + env(safe-area-inset-bottom))}.customer-mobile-bottom-nav b{font-size:17px}.customer-mobile-bottom-nav span{font-size:8px}.customer-mobile-dashboard{max-width:640px;margin:auto}.customer-mobile-tile{min-height:88px}.customer-mobile-more-sheet{max-height:88dvh}
}


/* 0.32.29 — PWA navigation polish: keep the branded launch screen to first standalone load only.
   Normal phone navigation uses a delayed, non-blocking progress cue instead of replaying the logo. */
@media (max-width:640px){
  html.customer-mobile-navigating::before{
    content:"";position:fixed;z-index:1600;top:env(safe-area-inset-top);left:0;height:2px;width:34%;
    border-radius:0 999px 999px 0;background:linear-gradient(90deg,#2f8cff,#6bb7ff);
    box-shadow:0 0 12px rgba(75,156,255,.45);pointer-events:none;
    animation:customer-mobile-nav-progress .85s ease-in-out infinite alternate;
  }
}
@keyframes customer-mobile-nav-progress{from{transform:translateX(-18%);opacity:.72}to{transform:translateX(210%);opacity:1}}
@media (prefers-reduced-motion:reduce){html.customer-mobile-navigating::before{animation:none;transform:none;width:68%;opacity:.8}}

/* 0.32.30 — phone PWA Chat tab + native-style chat screen.
   Deliberately isolated to <=640px so tablet/desktop CCUS Customer remains unchanged. */
@media (max-width:640px){
  .customer-mobile-bottom-nav .customer-mobile-nav-badge{
    position:absolute;top:1px;left:calc(50% + 8px);min-width:17px;height:17px;padding:0 4px;
    display:grid;place-items:center;border:2px solid #07111f;border-radius:999px;
    background:#e34f59;color:#fff;font-size:8px;line-height:1;font-style:normal;font-weight:900;
    box-sizing:border-box;box-shadow:0 2px 8px rgba(0,0,0,.24)
  }
  html[data-theme="light"] .customer-mobile-bottom-nav .customer-mobile-nav-badge{border-color:#fff}

  body.customer-portal-body[data-customer-page="messages"] .content{
    padding-left:0;padding-right:0;padding-bottom:calc(68px + env(safe-area-inset-bottom));
    min-height:100dvh
  }
  body.customer-portal-body[data-customer-page="messages"] .customer-mobile-appbar{margin-left:0;margin-right:0;margin-bottom:0;padding-left:14px;padding-right:14px}
  body.customer-portal-body[data-customer-page="messages"] .page-head{display:none!important}
  body.customer-portal-body[data-customer-page="messages"] footer{display:none}
  body.customer-portal-body[data-customer-page="messages"] #customerMessagesPage{
    --chat-nav-height:calc(68px + env(safe-area-inset-bottom));
    --chat-appbar-height:calc(68px + env(safe-area-inset-top));
    width:100%;height:calc(100dvh - var(--chat-appbar-height) - var(--chat-nav-height));min-height:0;
    margin:0;padding:0;border:0;border-radius:0;background:var(--bg);box-shadow:none;overflow:hidden
  }
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-head{
    min-height:58px;padding:9px 14px;background:var(--panel);border-bottom:1px solid var(--line)
  }
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-head>div{gap:1px}
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-head strong{font-size:15px;line-height:1.2}
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-head span{font-size:10px;line-height:1.3}
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-head>.status{
    flex:none;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.02em
  }
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-note{display:none}
  body.customer-portal-body[data-customer-page="messages"] #customerMessageThreadList{
    min-height:0;max-height:none;flex:1;padding:14px 12px 18px;gap:8px;overflow-y:auto;overscroll-behavior-y:contain;
    scroll-behavior:smooth;background:
      radial-gradient(circle at 8% 10%,rgba(59,137,233,.055),transparent 29%),
      linear-gradient(180deg,var(--bg),var(--bg));
    -webkit-overflow-scrolling:touch
  }
  body.customer-portal-body[data-customer-page="messages"] .message-thread-welcome{
    max-width:270px;margin:auto;padding:22px 18px;border:1px solid var(--line);border-radius:20px;background:var(--panel)
  }
  body.customer-portal-body[data-customer-page="messages"] .message-thread-welcome strong{font-size:17px}
  body.customer-portal-body[data-customer-page="messages"] .message-thread-welcome span{font-size:12px;line-height:1.45}
  body.customer-portal-body[data-customer-page="messages"] .message-bubble{
    width:auto;max-width:84%;margin:0;padding:9px 12px;border:1px solid var(--line);border-radius:18px 18px 18px 6px;
    background:var(--panel);box-shadow:0 3px 12px rgba(0,0,0,.06)
  }
  body.customer-portal-body[data-customer-page="messages"] .message-bubble.workshop{align-self:flex-start}
  body.customer-portal-body[data-customer-page="messages"] .message-bubble.mine{
    align-self:flex-end;border-color:#2b7bdc;border-radius:18px 18px 6px 18px;background:linear-gradient(145deg,#1973e8,#145fc5);color:#fff
  }
  body.customer-portal-body[data-customer-page="messages"] .message-bubble strong{display:block;margin:0 0 2px;font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
  body.customer-portal-body[data-customer-page="messages"] .message-bubble.mine strong{color:#d5e8ff}
  body.customer-portal-body[data-customer-page="messages"] .message-bubble p{margin:0 0 4px;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
  body.customer-portal-body[data-customer-page="messages"] .message-bubble small{display:block;font-size:9px;line-height:1.2;color:var(--muted)}
  body.customer-portal-body[data-customer-page="messages"] .message-bubble.mine small{color:#c9e0ff;text-align:right}
  body.customer-portal-body[data-customer-page="messages"] .customer-chat-send-error{
    margin:0;padding:7px 12px;border-top:1px solid #69302b;background:#321917;color:#ffc9c4;font-size:11px;text-align:center
  }
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-compose{
    flex:none;display:grid;grid-template-columns:minmax(0,1fr) 46px;align-items:end;gap:8px;margin:0;padding:8px 10px 9px;
    border-top:1px solid var(--line);background:var(--panel);box-shadow:0 -8px 22px rgba(0,0,0,.08)
  }
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-compose textarea{
    width:100%;min-height:44px!important;max-height:104px!important;height:44px;margin:0;padding:10px 14px;resize:none;overflow-y:auto;
    border-radius:22px;font-size:16px;line-height:22px;background:var(--surface-soft)
  }
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-compose button{
    width:46px;height:46px;min-height:46px!important;margin:0;padding:0;border-radius:50%;display:grid;place-items:center;flex:none;
    box-shadow:0 5px 16px rgba(23,104,216,.24)
  }
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-compose button span{font-size:0}
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-compose button span::after{content:"➤";font-size:18px;line-height:1;transform:translateX(1px)}
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-compose.is-sending button{opacity:.62;pointer-events:none}
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-compose.is-sending button span::after{content:"…";transform:none}
}
@media (max-width:640px) and (orientation:landscape){
  body.customer-portal-body[data-customer-page="messages"] #customerMessagesPage{
    --chat-nav-height:calc(56px + env(safe-area-inset-bottom));
    --chat-appbar-height:calc(56px + env(safe-area-inset-top));
  }
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-head{min-height:48px;padding-top:6px;padding-bottom:6px}
  body.customer-portal-body[data-customer-page="messages"] #customerMessageThreadList{padding-top:9px;padding-bottom:10px}
  body.customer-portal-body[data-customer-page="messages"] .customer-live-chat-compose{padding-top:6px;padding-bottom:6px}
}

/* 0.32.30 mobile-only chat labels; hidden on tablet/desktop. */
.customer-mobile-chat-live,.customer-mobile-chat-support-note{display:none}
@media (max-width:640px){
  body.customer-portal-body[data-customer-page="messages"] .customer-chat-desktop-status{display:none}
  body.customer-portal-body[data-customer-page="messages"] .customer-mobile-chat-live{display:inline-flex}
  body.customer-portal-body[data-customer-page="messages"] .customer-mobile-chat-support-note{display:block!important;font-size:10px;line-height:1.3;color:var(--muted)}
}

/* 0.32.31 — PWA Web Push controls. Hidden outside phone UI so tablet/desktop remain unchanged. */
.customer-push-settings{display:none}
@media (max-width:640px){
  .customer-push-settings{display:flex}
  .customer-push-compact{
    align-items:center;gap:10px;margin:0 0 12px;padding:11px 12px;border:1px solid var(--line);border-radius:17px;
    background:linear-gradient(145deg,var(--panel),var(--surface-soft));box-shadow:0 5px 18px rgba(0,0,0,.06)
  }
  .customer-push-icon{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:11px;background:rgba(47,140,255,.14);color:#42a0ff;font-size:12px}
  .customer-push-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:2px}.customer-push-copy strong{font-size:12px}.customer-push-copy small{font-size:10px;line-height:1.3;color:var(--muted)}
  .customer-push-enable,.customer-push-disable{min-width:58px;height:34px;padding:0 10px;border:1px solid rgba(47,140,255,.5);border-radius:11px;background:#1672e5;color:#fff;font:800 10px/1 inherit;cursor:pointer}
  .customer-push-disable{background:rgba(48,183,132,.12);border-color:rgba(48,183,132,.45);color:#49d79e}
  .customer-push-account{flex-direction:column;gap:14px}
  .customer-push-account-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.customer-push-account-head h2{margin:2px 0 3px}.customer-push-account-head p{margin:0}
  .customer-push-state{flex:none;padding:6px 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface-soft);color:var(--muted);font-size:9px;font-weight:900}
  .customer-push-actions{display:flex;gap:8px;flex-wrap:wrap}.customer-push-actions .btn{flex:1;min-width:130px}
  .customer-push-preferences{display:grid;gap:0;border-top:1px solid var(--line)}
  .customer-push-preferences .toggle{margin:0;padding:11px 0;border-bottom:1px solid var(--line)}
  .customer-push-preferences .toggle small{display:block;margin-top:2px;font-size:10px;color:var(--muted)}
  .customer-push-preferences .btn{margin-top:12px}
}


/* v0.33.0 — Mail-In Repair Integration */
.website-repair-handoff{margin:0 0 18px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:var(--panel);display:grid;gap:4px}.website-repair-handoff strong{font-size:16px}.website-repair-handoff p{margin:0;color:var(--muted);line-height:1.5}.customer-repair-route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 4px}.customer-repair-route{position:relative;border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:16px;text-align:left;color:var(--text);display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"mark title check" "mark copy check";gap:3px 12px;align-items:center;cursor:pointer}.customer-repair-route>span{grid-area:mark;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--soft);font-weight:800}.customer-repair-route>strong{grid-area:title}.customer-repair-route>small{grid-area:copy;color:var(--muted);line-height:1.4}.customer-repair-route>b{grid-area:check;opacity:0;font-size:18px}.customer-repair-route.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.customer-repair-route.selected>b{opacity:1}.mail-in-fixed-charge{display:flex;align-items:center;gap:18px;padding:14px 16px;margin:14px 0 2px;border-radius:14px;background:var(--soft)}.mail-in-fixed-charge>div{display:grid;min-width:100px}.mail-in-fixed-charge span{font-size:11px;letter-spacing:.1em;color:var(--muted);font-weight:800}.mail-in-fixed-charge strong{font-size:24px}.mail-in-fixed-charge p{margin:0;color:var(--muted);line-height:1.45}.website-repair-option{display:grid;gap:3px;padding:12px 14px;margin:0 0 12px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}.website-repair-option span,.mail-in-address-display>span,.mail-in-return-address-card>span{font-size:11px;letter-spacing:.1em;font-weight:800;color:var(--muted)}.website-repair-option small{color:var(--muted)}.mail-in-request-fields{display:grid;gap:12px}.mail-in-posting-notice{display:grid;gap:5px}.mail-in-posting-notice span{color:var(--muted)}.mail-in-inline-badge{display:inline-flex;align-items:center;margin-left:8px;padding:3px 7px;border-radius:999px;background:var(--soft);border:1px solid var(--line);font-size:10px;letter-spacing:.08em;font-weight:800;vertical-align:middle}.submitted-request-mail-in{border-top:3px solid var(--accent)}.mail-in-request-summary{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(260px,1.2fr);gap:14px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.mail-in-price-breakdown,.mail-in-address-display{padding:14px;border-radius:14px;background:var(--soft);display:grid;gap:8px}.mail-in-price-breakdown>div{display:flex;justify-content:space-between;gap:12px}.mail-in-price-breakdown .total{padding-top:8px;border-top:1px solid var(--line);font-size:15px}.mail-in-address-display p,.mail-in-return-address-card p{margin:2px 0;line-height:1.55}.mail-in-address-display small{color:var(--muted)}.mail-in-update-details{grid-column:1/-1;border:1px solid var(--line);border-radius:14px;padding:0 14px}.mail-in-update-details summary{cursor:pointer;padding:13px 0;font-weight:700}.mail-in-update-form{display:grid;gap:12px;padding:0 0 14px}.customer-mail-in-repair-panel{grid-column:1/-1}.customer-mail-in-timeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 18px}.mail-in-stage{position:relative;display:grid;justify-items:center;text-align:center;gap:5px;padding:12px 8px;border:1px solid var(--line);border-radius:14px;color:var(--muted)}.mail-in-stage>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--soft);font-weight:800}.mail-in-stage.active,.mail-in-stage.complete{color:var(--text);border-color:var(--accent)}.mail-in-stage.active>span,.mail-in-stage.complete>span{background:var(--accent);color:var(--accent-contrast,#fff)}.mail-in-stage small{font-size:11px}.mail-in-repair-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mail-in-repair-detail-grid>div{display:grid;gap:3px;padding:12px;border-radius:12px;background:var(--soft)}.mail-in-repair-detail-grid span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.mail-in-return-address-card{margin-top:10px;padding:14px;border-radius:12px;background:var(--soft)}.mail-in-customer-next-step{margin-top:12px;display:grid;gap:4px}.mail-in-customer-next-step span{line-height:1.5}.hidden{display:none!important}
@media(max-width:760px){.customer-repair-route-grid{grid-template-columns:1fr}.mail-in-fixed-charge{align-items:flex-start;flex-direction:column;gap:7px}.mail-in-request-summary{grid-template-columns:1fr}.customer-mail-in-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}.mail-in-repair-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.customer-mail-in-timeline,.mail-in-repair-detail-grid{grid-template-columns:1fr}}

/* v0.33.1 — Live Inventory Repair Selection + Mail-In route fix */
.live-repair-pricing{display:grid;gap:12px;margin-top:10px}.live-repair-pricing-status{padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--muted);font-size:13px;line-height:1.45}.repair-live-price{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--soft);flex-wrap:wrap}.repair-live-price>span{font-size:10px;letter-spacing:.1em;font-weight:900;color:var(--muted)}.repair-live-price>strong{font-size:24px}.repair-live-price>small{color:var(--muted);margin-left:auto}.customer-repair-route{touch-action:manipulation}
@media(max-width:640px){.repair-live-price{align-items:flex-start;flex-direction:column;gap:4px}.repair-live-price>small{margin-left:0}}

/* 0.33.2 — Route selection uses native form radios for reliable Mobile Safari submission */
.customer-repair-route-radio{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important}.customer-repair-route:focus-within{outline:2px solid var(--accent);outline-offset:2px}

/* v0.33.3 — Mail-In Repair Details light-mode polish */
html[data-theme="light"] .customer-mail-in-repair-panel .mail-in-stage{
  background:#ffffff;
  border-color:#d6e0ec;
  box-shadow:0 3px 12px rgba(23,37,61,.035);
}
html[data-theme="light"] .customer-mail-in-repair-panel .mail-in-stage.complete{
  background:#f8fbff;
  border-color:#8ab8ee;
}
html[data-theme="light"] .customer-mail-in-repair-panel .mail-in-stage.active{
  background:#eef6ff;
  border-color:var(--blue);
  box-shadow:0 0 0 1px rgba(22,103,217,.08),0 5px 16px rgba(23,37,61,.05);
}
html[data-theme="light"] .customer-mail-in-repair-panel .mail-in-stage.complete>span{
  background:#e7f2ff;
  border:1px solid #b7d5f8;
  color:var(--blue);
}
html[data-theme="light"] .customer-mail-in-repair-panel .mail-in-stage.active>span{
  background:var(--blue);
  border:1px solid var(--blue);
  color:#fff;
  box-shadow:0 4px 10px rgba(22,103,217,.18);
}
html[data-theme="light"] .customer-mail-in-repair-panel .mail-in-inline-badge{
  background:#eef6ff;
  border-color:#c7dcf6;
  color:var(--blue2);
}
html[data-theme="light"] .customer-mail-in-repair-panel .mail-in-repair-detail-grid>div,
html[data-theme="light"] .customer-mail-in-repair-panel .mail-in-return-address-card{
  background:#f7faff;
  border:1px solid #e1e9f2;
}

/* v0.33.5 — Repair Review & Private Feedback */
.customer-review-followup{grid-column:1/-1;overflow:hidden}.customer-review-heart{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:var(--soft);border:1px solid var(--line);font-size:20px}.customer-review-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.customer-review-option{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--soft);display:flex;flex-direction:column;gap:9px}.customer-review-option h3{margin:0}.customer-review-option p{margin:0;color:var(--muted);line-height:1.5}.customer-review-label{font-size:10px;letter-spacing:.12em;font-weight:900;color:var(--muted)}.customer-review-option form{margin-top:auto}.customer-review-recorded{display:block;margin-top:7px;color:var(--muted);text-align:center}.customer-review-form{display:grid;gap:12px}.customer-review-form fieldset{margin:0;padding:0;border:0;display:grid;gap:7px}.customer-review-form legend,.customer-review-form>label{font-weight:800;font-size:13px}.customer-review-form fieldset small{color:var(--muted)}.customer-review-rating{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.customer-review-rating label{cursor:pointer}.customer-review-rating input{position:absolute;opacity:0;pointer-events:none}.customer-review-rating span{height:42px;border:1px solid var(--line);border-radius:11px;display:grid;place-items:center;background:var(--panel);font-weight:900;transition:.15s ease}.customer-review-rating input:checked+span{border-color:var(--blue);background:rgba(22,103,217,.12);color:var(--blue)}.customer-review-rating label:focus-within span{outline:2px solid var(--blue);outline-offset:2px}.customer-review-form textarea{width:100%;margin-top:7px;resize:vertical}.customer-review-thanks{display:grid;gap:3px}.customer-review-note{margin:14px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.customer-review-option.public-review{border-top:3px solid var(--blue)}.customer-review-option.private-review{border-top:3px solid #607d9e}
html[data-theme="light"] .customer-review-followup{background:#fff}html[data-theme="light"] .customer-review-option{background:#f7faff;border-color:#dfe8f2}html[data-theme="light"] .customer-review-heart{background:#eef6ff;color:var(--blue);border-color:#c7dcf6}
@media(max-width:760px){.customer-review-options{grid-template-columns:1fr}.customer-review-option{padding:16px}.customer-review-rating span{height:46px}}


/* 0.33.6 — Abandoned Repair Recovery */
.repair-draft-resume-card,.repair-draft-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid color-mix(in srgb,var(--blue) 40%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--accent-soft) 75%,var(--panel)),var(--panel));border-radius:18px;padding:18px 20px;margin:0 0 18px}.repair-draft-resume-card h2,.repair-draft-banner strong{margin:3px 0 5px}.repair-draft-resume-card p,.repair-draft-banner p{margin:0;color:var(--muted)}.repair-draft-banner>div{min-width:0}.repair-draft-banner small{display:block;margin-top:7px;color:var(--blue);font-weight:800}.repair-draft-banner form{margin:0;flex:none}.customer-mobile-alert-draft{border-color:#315f91;background:#102740}.customer-mobile-alert-draft>b{background:#194b7d;color:#8ec5ff}html[data-theme="light"] .customer-mobile-alert-draft{background:#eef6ff;border-color:#b8d6f7}html[data-theme="light"] .customer-mobile-alert-draft>b{background:#d8ebff;color:#1768d8}
@media(max-width:640px){.repair-draft-resume-card,.repair-draft-banner{align-items:stretch;flex-direction:column}.repair-draft-resume-card .btn,.repair-draft-banner .btn{width:100%}}


/* 0.33.7 — Mail-In Packing Slip & QR Intake */
.mail-in-packing-slip-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--soft) 72%,transparent)}
.mail-in-packing-slip-actions>div{display:grid;gap:4px}.mail-in-packing-slip-actions span{color:var(--muted);font-size:13px;line-height:1.45}.mail-in-packing-slip-actions .btn{white-space:nowrap}
.mail-in-slip-toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:18px}.mail-in-packing-slip{max-width:900px;margin:0 auto;background:#fff;color:#06101e;border:1px solid #d9e1ea;border-radius:22px;padding:32px;box-shadow:0 18px 55px rgba(6,16,30,.12)}
.mail-in-slip-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:22px;border-bottom:2px solid #0a6ed1}.mail-in-slip-head span,.mail-in-packing-slip span{font-size:11px;font-weight:800;letter-spacing:.08em;color:#526274}.mail-in-slip-head h1{margin:5px 0 4px;font-size:30px;color:#06101e}.mail-in-slip-head p{margin:0;color:#526274}.mail-in-slip-badge{display:inline-flex;padding:8px 12px;border-radius:999px;background:#e9f4ff;border:1px solid #9bcbf7;color:#075ca8;font-size:12px;letter-spacing:.08em}
.mail-in-slip-reference{display:grid;grid-template-columns:1fr 240px;align-items:center;gap:26px;padding:24px 0;border-bottom:1px solid #d9e1ea}.mail-in-slip-reference>div:first-child{display:grid;gap:8px}.mail-in-slip-reference>div:first-child>strong{font-size:30px;letter-spacing:.02em}.mail-in-slip-reference small{color:#526274}.mail-in-slip-qr{width:228px;min-height:228px;padding:4px;background:#fff;border:1px solid #d9e1ea;border-radius:12px;display:grid;place-items:center}.mail-in-slip-qr img,.mail-in-slip-qr canvas{max-width:220px!important;max-height:220px!important}.mail-in-slip-qr-error{font-size:12px;text-align:center;color:#9b2c2c}
.mail-in-slip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:22px 0}.mail-in-slip-grid>div{display:grid;gap:5px;padding:14px;border-radius:12px;background:#f5f8fb;border:1px solid #e2e8ef}.mail-in-slip-grid strong{font-size:15px}.mail-in-slip-grid small{color:#526274}.mail-in-slip-address{padding:16px;border:1px solid #d9e1ea;border-radius:14px}.mail-in-slip-address p{margin:7px 0 0;line-height:1.6;font-weight:650}
.mail-in-slip-send{display:grid;grid-template-columns:.8fr 1.2fr;gap:16px;margin-top:16px}.mail-in-slip-send>div{padding:16px;border-radius:14px;background:#f5f8fb;border:1px solid #e2e8ef}.mail-in-slip-send strong{display:block;margin:6px 0}.mail-in-slip-send p{margin:0;line-height:1.55}.mail-in-slip-send ul{margin:8px 0 0;padding-left:18px;display:grid;gap:6px;line-height:1.45}.mail-in-slip-footer{display:grid;gap:3px;margin-top:22px;padding-top:18px;border-top:1px solid #d9e1ea;text-align:center}.mail-in-slip-footer span{color:#075ca8}.mail-in-slip-footer small{margin-top:5px;color:#526274}
@media(max-width:700px){.mail-in-packing-slip-actions{align-items:stretch;flex-direction:column}.mail-in-packing-slip-actions .btn{width:100%;text-align:center}.mail-in-packing-slip{padding:20px;border-radius:16px}.mail-in-slip-head{flex-direction:column}.mail-in-slip-reference{grid-template-columns:1fr;justify-items:center;text-align:center}.mail-in-slip-grid,.mail-in-slip-send{grid-template-columns:1fr}.mail-in-slip-toolbar{flex-direction:column}.mail-in-slip-toolbar .btn{width:100%;text-align:center}}
@media print{body.customer-portal-body{background:#fff!important}.customer-shell>.sidebar,.customer-topbar,.mobile-bottom-nav,.no-print,.customer-footer{display:none!important}.customer-shell,.customer-main,.customer-content{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}.mail-in-packing-slip{box-shadow:none!important;border:0!important;border-radius:0!important;max-width:none!important;margin:0!important;padding:12mm!important;page-break-inside:avoid}.mail-in-slip-qr{break-inside:avoid}.mail-in-slip-send>div,.mail-in-slip-grid>div{break-inside:avoid}}
