/* Customer App – small additions on top of the shared design system (mobile). */
.cx-hero{background:var(--pg);color:#fff;border-radius:22px;padding:18px 18px 16px;display:flex;flex-direction:column;gap:12px}
.cx-hero h2{font-size:22px;line-height:1.2}
.cx-hero .muted{color:rgba(255,255,255,.85)}
.cx-where{background:hsl(var(--card));color:hsl(var(--foreground));border-radius:16px;padding:6px 12px;display:flex;flex-direction:column}
.cx-where .wrow{display:flex;align-items:center;gap:10px;min-height:46px}
.cx-where .wrow+.wrow{border-top:1px dashed hsl(var(--border))}
.cx-where input{border:0;background:transparent;flex:1;min-width:0;font-size:15px;height:44px;outline:none}
.cx-dot{width:10px;height:10px;border-radius:50%;flex:none}
.cx-dot.a{background:hsl(var(--success))}.cx-dot.b{background:hsl(var(--destructive))}
.cx-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 4px;scrollbar-width:none}
.cx-chips::-webkit-scrollbar{display:none}
.cx-chips .chip{height:36px;padding:0 14px;font-size:13px;cursor:pointer;flex:none}
.cx-chips .chip .i{width:15px;height:15px}
.cx-qa{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.cx-qa a{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px;border-radius:18px;background:hsl(var(--card));border:1px solid hsl(var(--border));color:inherit;font-weight:600;font-size:13px;text-decoration:none!important}
.cx-qa a .qi{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--pt);color:var(--pc)}
.cx-qa a .qi .i{width:22px;height:22px}
.cx-offers{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px;scrollbar-width:none}
.cx-offers::-webkit-scrollbar{display:none}
.cx-offer{flex:0 0 82%;scroll-snap-align:start;border-radius:18px;padding:16px;color:#fff;min-height:118px;display:flex;flex-direction:column;gap:6px;position:relative;overflow:hidden}
.cx-offer b{font-size:16px}
.cx-offer p{font-size:12.5px;opacity:.92}
.cx-offer .code{margin-top:auto;align-self:flex-start;border:1.5px dashed rgba(255,255,255,.7);border-radius:8px;padding:2px 10px;font-family:var(--mono);font-size:12.5px;background:rgba(255,255,255,.12);color:#fff;cursor:pointer}
.cx-ride{display:flex;flex-direction:column;gap:8px;color:inherit;text-decoration:none!important}
.cx-ride .r1{display:flex;align-items:center;gap:8px}
.cx-ride .r1 b{font-size:14.5px}
.cx-route{display:grid;grid-template-columns:14px 1fr;gap:2px 8px;align-items:center;font-size:13.5px}
.cx-route .ln{width:2px;height:12px;background:hsl(var(--border));margin-left:4px}
.cx-route span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cx-steps{display:flex;gap:4px;margin:2px 0 2px}
.cx-steps i{flex:1;height:5px;border-radius:99px;background:hsl(var(--border))}
.cx-steps i.on{background:var(--pc)}
.cx-steplbl{display:flex;justify-content:space-between;font-size:12px;color:hsl(var(--muted-foreground));font-weight:600}
.cx-h{font-size:20px;font-weight:700;letter-spacing:-.01em}
.cx-foot{position:sticky;bottom:72px;z-index:5;padding-top:8px;background:linear-gradient(to top,hsl(var(--background)) 70%,transparent)}
.mapp .mtabs[hidden]+.x,.cx-foot.notabs{bottom:0}
.optcard{cursor:pointer;color:inherit}
.optcard .oi .i{width:22px;height:22px}
.optcard .ot{font-weight:700;font-size:14.5px}
.optcard .os{font-size:12px;color:hsl(var(--muted-foreground))}
.optcard .op{margin-left:auto;text-align:right;flex:none}
.optcard .op b{font-size:16px;display:block}
.optcard[disabled]{opacity:.55;cursor:not-allowed}
.cx-tripcode{font-family:var(--mono);font-size:26px;font-weight:600;letter-spacing:.3em;text-align:center;padding:8px;border-radius:12px;background:var(--pt);color:var(--pc)}
.cx-stars{display:flex;gap:6px;justify-content:center}
.cx-stars button{border:0;background:none;font-size:38px;line-height:1;color:hsl(var(--border));padding:2px;cursor:pointer}
.cx-stars button.on{color:#f0a500}
.cx-tags{display:flex;flex-wrap:wrap;gap:8px}
.cx-tags .chip{cursor:pointer;height:34px}
.cx-bubble{max-width:86%;padding:10px 12px;border-radius:16px;background:hsl(var(--muted));font-size:13.5px;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}
.cx-bubble.me{align-self:flex-end;background:var(--pt);border-bottom-right-radius:4px}
.cx-bubble:not(.me){border-bottom-left-radius:4px}
.cx-bubble small{display:block;margin-top:4px;color:hsl(var(--muted-foreground));font-size:11px}
.cx-thread{display:flex;flex-direction:column;gap:10px}
.cx-docwrap{overflow:auto;border-radius:14px;background:hsl(var(--muted));padding:10px;-webkit-overflow-scrolling:touch}
.cx-docwrap .doc{min-width:600px;padding:20px}
.cx-big{font-size:28px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.cx-ok{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:hsl(var(--success)/.14);color:hsl(var(--success));margin:8px auto 0}
.cx-ok.bad{background:hsl(var(--destructive)/.12);color:hsl(var(--destructive))}
.cx-ok .i{width:36px;height:36px}
.cx-kv{display:flex;flex-direction:column}
.cx-kv>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid hsl(var(--border));font-size:13.5px}
.cx-kv>div:first-child{border-top:0}
.cx-kv dt{color:hsl(var(--muted-foreground))}
.cx-kv dd{margin:0;font-weight:600;text-align:right;min-width:0;overflow-wrap:anywhere}
.cx-list{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:18px;overflow:hidden}
.cx-list .li{padding:13px 16px;min-height:56px}
.cx-list .li .i{flex:none}
.cx-list .li .lic{width:36px;height:36px;border-radius:11px;background:var(--pt);color:var(--pc);display:grid;place-items:center;flex:none}
.cx-otp{display:flex;gap:8px;justify-content:space-between}
.cx-otp input{width:100%;height:54px;text-align:center;font-size:22px;font-family:var(--mono);border-radius:12px;border:1.5px solid hsl(var(--input));background:hsl(var(--card))}
.cx-otp input:focus{border-color:var(--pc);outline:none}
.cx-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:hsl(var(--muted));border-radius:14px;padding:4px;gap:4px}
.cx-seg button{border:0;background:transparent;height:40px;border-radius:10px;font-weight:600;font-size:13.5px;color:hsl(var(--muted-foreground))}
.cx-seg button.on{background:hsl(var(--card));color:hsl(var(--foreground));box-shadow:var(--sh)}
.cx-acc details{border-top:1px solid hsl(var(--border));padding:12px 2px}
.cx-acc details:first-child{border-top:0}
.cx-acc summary{font-weight:600;cursor:pointer}
.cx-acc p{margin-top:6px;color:hsl(var(--muted-foreground));font-size:13px}
.cx-live{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:hsl(var(--success))}
.cx-live::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;animation:cxp 1.4s infinite}
@keyframes cxp{50%{opacity:.25}}
.cx-unread{width:8px;height:8px;border-radius:50%;background:var(--pc);flex:none}
.sheet .mb{overflow:auto}
.sheet .mf{display:flex;gap:8px;padding:12px 16px}
.sheet .mf .btn{flex:1;height:46px;border-radius:12px;font-size:15px}
body[data-portal="customer"] .input,body[data-portal="customer"] .select{height:46px;font-size:15px;border-radius:12px}
body[data-portal="customer"] .textarea{height:auto;padding:10px 12px;font-size:15px;border-radius:12px}
body[data-portal="customer"] .check input{width:20px;height:20px}
body[data-portal="customer"] .btn{min-height:40px}
body[data-portal="customer"] .btn.sm{min-height:34px}
body[data-portal="customer"] .toasts{left:12px;right:12px;align-items:center;bottom:calc(84px + env(safe-area-inset-bottom,0px))}
/* customer accent drives primary (buttons, links, chips, stepper) */
body[data-portal="customer"]{--primary:161 84% 33%;--ring:161 84% 36%;--secondary:152 50% 94%;--secondary-foreground:161 84% 26%;--accent:152 45% 95%;--accent-foreground:161 84% 26%}
:root[data-theme="dark"] body[data-portal="customer"]{--primary:158 64% 45%;--primary-foreground:230 46% 11%;--secondary:160 25% 18%;--secondary-foreground:150 40% 90%;--accent:160 25% 18%;--accent-foreground:150 40% 90%}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body[data-portal="customer"]{--primary:158 64% 45%;--primary-foreground:230 46% 11%;--secondary:160 25% 18%;--secondary-foreground:150 40% 90%;--accent:160 25% 18%;--accent-foreground:150 40% 90%}}
:root[data-theme="dark"] body[data-portal="customer"]{--pt:hsl(160 30% 16%)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body[data-portal="customer"]{--pt:hsl(160 30% 16%)}}
/* compact trip stepper on phones */
body[data-portal="customer"] .mbody .stepper{overflow:visible}
body[data-portal="customer"] .mbody .stepper .st{min-width:0;font-size:10px;line-height:1.15;gap:5px}
body[data-portal="customer"] .mbody .stepper .st .c{width:24px;height:24px;font-size:11px}
body[data-portal="customer"] .mbody .stepper .st::before{top:11px}
body[data-portal="customer"] .map .mcard{max-width:170px}
/* self-drive rentals, documents, tolls */
.cx-mode button{display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}
.cx-mode button .i{width:16px;height:16px}
.cx-ric{width:34px;height:34px;border-radius:10px;background:var(--pt);color:var(--pc);display:grid;place-items:center;flex:none}
.cx-sdcard{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,#0f766e,#0e7490);color:#fff;text-decoration:none!important}
.cx-sdcard b{font-size:15.5px}.cx-sdcard p{font-size:12.5px;opacity:.92;margin-top:2px}
.cx-sdcard .qi{width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:none}
.cx-sdcard .qi .i{width:22px;height:22px}
.cx-specs{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:4px;font-size:12px;color:hsl(var(--muted-foreground))}
.cx-specs span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.cx-specs .i{width:13px;height:13px}
.cx-car .op{min-width:64px}
.cx-late{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:hsl(var(--destructive))}
.cx-late::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;animation:cxp 1s infinite}
.cx-plate{padding:4px 8px;border-radius:8px;border:1.5px solid hsl(var(--foreground));font-weight:600;white-space:nowrap;flex:none}
.cx-fuel{display:inline-flex;gap:2px;vertical-align:middle}
.cx-fuel i{width:7px;height:12px;border-radius:2px;background:hsl(var(--border))}
.cx-fuel i.on{background:hsl(var(--success))}
.cx-dmg{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:6px;font-size:13px}
.cx-dmg li{display:flex;gap:8px;align-items:flex-start}
.cx-dmg .i{width:15px;height:15px;flex:none;margin-top:2px;color:hsl(36 100% 42%)}
.cx-chg{display:grid;gap:6px;padding:10px 12px;border-radius:12px;background:hsl(var(--destructive)/.06);border:1px solid hsl(var(--destructive)/.18)}
.cx-chg div{display:flex;justify-content:space-between;gap:10px;font-size:13px}
.cx-chg span{min-width:0;overflow-wrap:anywhere}
.cx-why{font-size:12.5px;color:hsl(var(--muted-foreground))}
.cx-why summary{cursor:pointer;font-weight:600;display:inline-flex;align-items:center;gap:6px;color:hsl(var(--foreground))}
.cx-why summary .i{width:14px;height:14px}
.cx-why p{margin-top:6px}
.cx-docth{width:64px;height:44px;object-fit:cover;border-radius:8px;background:hsl(var(--muted));flex:none}
.cx-upcard{display:flex;align-items:center;gap:12px;width:100%;cursor:pointer;color:inherit;font:inherit;border-style:dashed}
.cx-upcard>.i{width:20px;height:20px;color:var(--pc);flex:none}
.mcard.check{display:flex}

/* car condition (inspections) */
.cx-insrow{display:flex;gap:12px;align-items:flex-start}
.cx-insrow .lic{width:36px;height:36px;border-radius:11px;background:var(--pt);color:var(--pc);display:grid;place-items:center;flex:none}
.cx-insrow .t{font-weight:600;font-size:14px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.cx-insrow .s{font-size:12.5px;color:hsl(var(--muted-foreground));margin-top:2px}
.cx-why2{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;background:var(--pt)}
.cx-why2>.i{color:var(--pc);flex:none;margin-top:2px}

/* 2D inspection views: keep a view wider than the phone centred (shared .iv2 grid left-aligns overflow) */
.iv2{display:flex!important;align-items:center;justify-content:center}.iv2 .icanvas{flex:none}
