/* CarGlow Customer — v4 (21 Nov 2026). A consumer mobile app: always light (the shared tokens' dark
   mode made the customer screens look washed out on phones set to dark), deep-green brand, generous
   spacing, 16px+ touch text. The cx-* system is used by my.js; the older generic classes (card, row,
   button.primary …) are kept and restyled for the one-time booking / tracking screens in app.js. */

:root {
  color-scheme: light;
  --cx-bg: #F7F9F7;
  --cx-surface: #FFFFFF;
  --cx-ink: #15231D;
  --cx-ink-2: #3E4C45;
  --cx-muted: #56665E;
  --cx-line: #E1E8E3;
  --cx-line-2: #C9D6CE;
  --cx-green: #087F58;
  --cx-green-d: #073E30;
  --cx-green-dd: #073E30;
  --cx-green-l: #EAF3EC;
  --cx-green-l2: #DCEBE1;
  --cx-mint: #9FE0C4;
  --cx-amber: #8A4B0B;
  --cx-amber-l: #FDF1E3;
  --cx-violet: #6D28D9;
  --cx-violet-l: #EDE9FE;
  --cx-red: #9B1C14;
  --cx-red-l: #FDECEA;
  --cx-r: 20px;
  --cx-r-sm: 14px;
  --cx-shadow: 0 1px 2px rgba(14, 27, 20, .05), 0 4px 16px rgba(14, 27, 20, .06);
  --cx-shadow-lg: 0 10px 30px rgba(7, 90, 45, .25);
  /* legacy tokens used by app.js screens, pinned to light */
  --color-bg: var(--cx-bg); --color-surface: var(--cx-surface); --color-ink: var(--cx-ink); --color-ink-muted: var(--cx-muted);
  --color-border: var(--cx-line); --color-border-strong: var(--cx-line-2); --color-primary: var(--cx-green);
  --success-bg: var(--cx-green-l); --success-text: var(--cx-green-d);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--cx-bg); color: var(--cx-ink); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; font-size: 16px; line-height: 1.45; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--cx-bg); }
h1, h2, h3 { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--cx-ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; line-height: 1.2; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--cx-green); }
.ic { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.grow { flex: 1; min-width: 0; }

/* ---------------- top bar ---------------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--cx-line); }
.topbar .brand { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; min-height: 40px; cursor: pointer; flex: 1; width: auto; box-shadow: none; }
.topbar img { width: 30px; height: 30px; border-radius: 9px; }
.topbar .title { font-family: var(--font-display, 'Outfit', sans-serif); font-weight: 800; font-size: 1.15rem; color: var(--cx-green-dd); letter-spacing: -0.02em; }
.topbar button.chip { background: var(--cx-green-l); color: var(--cx-green-d); border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .88rem; min-height: 36px; width: auto; cursor: pointer; }

/* ---------------- layout ---------------- */
.cx-main, .content { flex: 1; padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 14px; }
.cx-main.with-tabs { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.cx-main.with-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.cx-stack { display: flex; flex-direction: column; gap: 12px; }
.cx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cx-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-center { text-align: center; }
.cx-muted { color: var(--cx-muted); }
.sm, .cx-muted.sm { font-size: .86rem; }
.cx-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 2px -2px; }
.cx-sec h2 { font-size: 1.1rem; }
.cx-card { background: var(--cx-surface); border-radius: var(--cx-r); padding: 16px; box-shadow: var(--cx-shadow); border: 1px solid rgba(14, 27, 20, .04); }
.cx-skel { background: linear-gradient(90deg, #E8EEEA 25%, #F4F7F5 37%, #E8EEEA 63%); background-size: 400% 100%; animation: cx-shim 1.3s ease infinite; box-shadow: none; }
@keyframes cx-shim { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.screen-in { animation: cx-in .26s ease-out; }
@keyframes cx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen-in, .cx-skel { animation: none; } }

/* ---------------- buttons ---------------- */
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 20px; border-radius: 14px; border: 0;
  font: 700 1rem/1 var(--font-body, 'Outfit', sans-serif); cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.cx-btn:active { transform: scale(.98); }
.cx-btn:disabled { opacity: .55; cursor: not-allowed; }
.cx-btn.primary { background: var(--cx-green); color: #fff; box-shadow: 0 6px 16px rgba(11, 122, 62, .28); }
.cx-btn.primary:hover { background: var(--cx-green-d); }
.cx-btn.ghost { background: var(--cx-surface); color: var(--cx-green-d); border: 1.5px solid var(--cx-green-l2); }
.cx-btn.light { background: #fff; color: var(--cx-green-dd); }
.cx-btn.outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.cx-btn.sm { width: auto; min-height: 40px; padding: 0 14px; font-size: .9rem; border-radius: 11px; }
.cx-link { background: none; border: 0; color: var(--cx-green); font: 700 .95rem var(--font-body, 'Outfit', sans-serif); cursor: pointer; padding: 10px 4px; min-height: 0; width: auto; align-self: center; text-decoration: none; }
.cx-link.danger { color: var(--cx-red); font-weight: 600; }
.cx-link.subtle { color: var(--cx-muted); font-weight: 500; font-size: .85rem; }
.cx-chip { background: var(--cx-green-l); color: var(--cx-green-d); border: 0; border-radius: 999px; padding: 7px 14px; font: 700 .85rem var(--font-body, 'Outfit', sans-serif); cursor: pointer; min-height: 34px; width: auto; }
.cx-icon-btn { width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 12px; border: 1px solid var(--cx-line); background: var(--cx-surface); display: grid; place-items: center; cursor: pointer; color: var(--cx-ink); flex: none; }
.cx-pill-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--cx-surface); border: 1px solid var(--cx-line); color: var(--cx-ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.cx-pill-btn .ic { width: 18px; height: 18px; color: var(--cx-green); }
.cx-support { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------------- inputs ---------------- */
.cx-field { display: flex; flex-direction: column; gap: 6px; }
.cx-field > span { font-size: .88rem; font-weight: 600; color: var(--cx-ink-2); }
.cx-input { width: 100%; font: 500 1rem var(--font-body, 'Outfit', sans-serif); color: var(--cx-ink); background: var(--cx-surface); border: 1.5px solid var(--cx-line-2); border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.cx-input:focus { border-color: var(--cx-green); box-shadow: 0 0 0 4px rgba(11, 122, 62, .12); }
textarea.cx-input { resize: vertical; min-height: 92px; line-height: 1.4; }
.cx-input.reg { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 1.15rem; }
.cx-input.otp { text-align: center; font-size: 1.8rem; letter-spacing: .5em; font-weight: 700; padding: 16px; }

/* ---------------- hero ---------------- */
.cx-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 24px 20px 20px; color: #fff; display: flex; flex-direction: column; gap: 12px;
  background: radial-gradient(120% 90% at 100% 0%, #1FA35A 0%, rgba(31, 163, 90, 0) 55%), linear-gradient(160deg, #0B7A3E 0%, #064A26 60%, #052F19 100%); box-shadow: var(--cx-shadow-lg); }
.cx-hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(43, 212, 122, .12); }
.cx-hero h1 { color: #fff; font-size: 1.75rem; line-height: 1.15; font-weight: 800; position: relative; }
.cx-hero h2 { color: #fff; }
.cx-hero p { color: rgba(255, 255, 255, .86); position: relative; }
.cx-hero.small { padding: 20px; border-radius: 20px; }
.cx-eyebrow { display: inline-flex; align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: rgba(255, 255, 255, .14); padding: 5px 10px; border-radius: 999px; }
.cx-hero-cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 4px; position: relative; z-index: 1; }
.cx-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: rgba(255, 255, 255, .9); position: relative; }
.cx-trust span { display: inline-flex; align-items: center; gap: 5px; }
.cx-trust .ic { width: 16px; height: 16px; color: var(--cx-mint); }

/* ---------------- steps / benefits / faq ---------------- */
.cx-steps { display: grid; gap: 10px; }
.cx-step { display: flex; gap: 12px; align-items: flex-start; background: var(--cx-surface); border-radius: var(--cx-r); padding: 14px 16px; box-shadow: var(--cx-shadow); }
.cx-step-n { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 800; color: var(--cx-green-d); background: var(--cx-green-l); }
.cx-step p { color: var(--cx-muted); font-size: .9rem; margin-top: 2px; }
.cx-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-benefit { background: var(--cx-surface); border-radius: var(--cx-r); padding: 14px; box-shadow: var(--cx-shadow); display: flex; flex-direction: column; gap: 6px; }
.cx-benefit p { color: var(--cx-muted); font-size: .86rem; }
.ic.tile { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--cx-green-l); color: var(--cx-green-d); }
.ic.big { width: 56px; height: 56px; padding: 13px; border-radius: 18px; background: var(--cx-green-l); color: var(--cx-green-d); }
.cx-faq { padding: 4px 16px; }
.cx-faq details { border-bottom: 1px solid var(--cx-line); }
.cx-faq details:last-child { border-bottom: 0; }
.cx-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; font-weight: 600; cursor: pointer; }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq .chev { width: 18px; height: 18px; color: var(--cx-muted); transition: transform .2s; }
.cx-faq details[open] .chev { transform: rotate(90deg); }
.cx-faq p { color: var(--cx-muted); padding: 0 0 14px; font-size: .93rem; }
.cx-cta-card { display: flex; flex-direction: column; gap: 14px; align-items: stretch; text-align: center; padding: 22px 16px; }
.cx-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: .85rem; padding: 6px 0 4px; }
.cx-foot a { color: var(--cx-muted); text-decoration: none; }

/* ---------------- plans ---------------- */
.cx-seg { display: flex; gap: 6px; overflow-x: auto; padding: 4px; background: #E6ECE8; border-radius: 14px; scrollbar-width: none; }
.cx-seg::-webkit-scrollbar { display: none; }
.cx-seg button { flex: 1 0 auto; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; font: 600 .9rem var(--font-body, 'Outfit', sans-serif); color: var(--cx-ink-2); cursor: pointer; min-height: 0; width: auto; }
.cx-seg button.on { background: #fff; color: var(--cx-green-dd); box-shadow: 0 1px 4px rgba(14, 27, 20, .12); }
.cx-plan { position: relative; display: flex; flex-direction: column; gap: 12px; text-align: left; width: 100%; background: var(--cx-surface); border: 2px solid transparent; border-radius: 20px; padding: 18px 16px 16px; box-shadow: var(--cx-shadow); color: var(--cx-ink); font: inherit; }
.cx-plan.hl { border-color: var(--cx-green-l2); }
.cx-plan.pick { cursor: pointer; min-height: 0; }
.cx-plan.pick.on { border-color: var(--cx-green); background: linear-gradient(180deg, #F3FBF6 0%, #fff 70%); box-shadow: 0 6px 20px rgba(11, 122, 62, .16); }
.cx-plan.pick:disabled { opacity: .5; cursor: not-allowed; }
.cx-plan.one { background: #FBFCFB; }
.cx-plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cx-plan h3 { font-size: 1.15rem; }
.cx-badge { position: absolute; top: -10px; right: 16px; background: var(--cx-green); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(11, 122, 62, .3); }
.cx-price { text-align: right; white-space: nowrap; }
.cx-price strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--cx-ink); line-height: 1.1; }
.cx-price span { font-size: .8rem; color: var(--cx-muted); }
.cx-price.sm strong { display: inline; font-size: 1.05rem; }
.cx-feats { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--cx-line-2); display: grid; gap: 8px; }
.cx-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--cx-ink-2); }
.cx-feats .ic { width: 18px; height: 18px; color: var(--cx-green); margin-top: 1px; }
.cx-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--cx-line-2); flex: none; margin-top: 3px; position: relative; background: #fff; }
.on > .cx-radio, .on .cx-plan-top > .cx-radio { border-color: var(--cx-green); }
.on > .cx-radio::after, .on .cx-plan-top > .cx-radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--cx-green); }
.cx-plan-row { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; cursor: pointer; font: inherit; color: inherit; min-height: 0; }
.cx-plan-row > .ic { color: var(--cx-muted); width: 18px; }

/* ---------------- wizard ---------------- */
.cx-wiz-head { display: flex; flex-direction: column; gap: 12px; }
.cx-wiz-top { display: flex; align-items: center; gap: 12px; }
.cx-wiz-top h1 { font-size: 1.35rem; }
.cx-progress { height: 6px; border-radius: 999px; background: #E1E8E3; overflow: hidden; }
.cx-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cx-green), var(--cx-mint)); border-radius: 999px; transition: width .3s ease; }
.cx-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--cx-line); box-shadow: 0 -6px 20px rgba(14, 27, 20, .06); }
.cx-footer .cx-btn { width: auto; flex: none; min-width: 150px; }
.cx-foot-sum { flex: 1; min-width: 0; line-height: 1.2; }
.cx-foot-sum strong { font-size: 1.3rem; font-weight: 800; }
.cx-foot-sum span { display: block; font-size: .8rem; color: var(--cx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--cx-surface); border: 2px solid var(--cx-line); border-radius: 16px; padding: 14px; cursor: pointer; font: inherit; color: inherit; min-height: 0; }
.cx-option.on { border-color: var(--cx-green); background: #F3FBF6; }
.cx-option .cx-radio { margin-top: 0; }
.cx-reg { font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; }
.cx-vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cx-vtile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 16px; border: 2px solid var(--cx-line); background: var(--cx-surface); cursor: pointer; text-align: left; font: inherit; color: inherit; min-height: 0; width: auto; }
.cx-vtile .ic { width: 26px; height: 26px; color: var(--cx-muted); }
.cx-vtile span { font-size: .78rem; color: var(--cx-muted); line-height: 1.3; }
.cx-vtile.on { border-color: var(--cx-green); background: #F3FBF6; }
.cx-vtile.on .ic { color: var(--cx-green); }
.cx-count { font-size: .8rem; font-weight: 700; color: var(--cx-green-d); background: var(--cx-green-l); padding: 4px 10px; border-radius: 999px; }
.cx-count.int { color: var(--cx-violet); background: var(--cx-violet-l); }
.cx-h-ic { display: inline-flex; align-items: center; gap: 6px; }
.cx-h-ic .ic { color: var(--cx-violet); }
.cx-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cx-day { aspect-ratio: 1; min-height: 0; width: auto; padding: 0; border-radius: 14px; border: 1.5px solid var(--cx-line-2); background: var(--cx-surface); font: 700 .82rem var(--font-body, 'Outfit', sans-serif); color: var(--cx-ink-2); cursor: pointer; display: grid; place-items: center; }
.cx-day.on { background: var(--cx-green); border-color: var(--cx-green); color: #fff; }
.cx-day.on.int { background: var(--cx-violet); border-color: var(--cx-violet); }
.cx-day:disabled { cursor: default; opacity: 1; }
.cx-day:disabled:not(.on) { opacity: .35; background: #F1F4F2; }
.cx-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--cx-line); background: var(--cx-surface); cursor: pointer; text-align: left; font: inherit; color: inherit; min-height: 0; width: auto; }
.cx-slot .ic { width: 18px; height: 18px; color: var(--cx-muted); margin-bottom: 4px; }
.cx-slot strong { font-size: 1rem; }
.cx-slot span { font-size: .8rem; color: var(--cx-muted); }
.cx-slot.on { border-color: var(--cx-green); background: #F3FBF6; }
.cx-slot.on .ic { color: var(--cx-green); }
.cx-pin { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--cx-surface); border: 1.5px dashed var(--cx-line-2); }
.cx-pin.ok { border-style: solid; border-color: var(--cx-green-l2); background: #F3FBF6; }
.cx-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -4px; padding-left: 4px; }
.cx-dates::-webkit-scrollbar { display: none; }
.cx-datechip { flex: none; width: 62px; min-height: 0; padding: 8px 0; border-radius: 14px; border: 1.5px solid var(--cx-line-2); background: var(--cx-surface); display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; font: inherit; color: var(--cx-ink); }
.cx-datechip span { font-size: .72rem; color: var(--cx-muted); font-weight: 600; }
.cx-datechip strong { font-size: 1.2rem; }
.cx-datechip.on { background: var(--cx-green); border-color: var(--cx-green); color: #fff; }
.cx-datechip.on span { color: rgba(255, 255, 255, .85); }
.cx-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--cx-amber-l); color: #7A3B06; font-size: .88rem; }
.cx-note .ic { width: 18px; height: 18px; margin-top: 1px; }
.cx-note.ok { background: var(--cx-green-l); color: var(--cx-green-d); }

/* ---------------- signed-in home ---------------- */
.cx-greet { padding: 2px 2px 0; }
.cx-greet h1 { font-size: 1.65rem; }
.cx-today { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(150deg, #0B7A3E 0%, #064A26 100%); box-shadow: var(--cx-shadow-lg); }
.cx-today.done { background: linear-gradient(150deg, #11994E 0%, #0B7A3E 100%); cursor: pointer; }
.cx-today.live { background: linear-gradient(150deg, #0E7490 0%, #0B4F63 100%); }
.cx-today.muted { background: var(--cx-surface); color: var(--cx-ink); box-shadow: var(--cx-shadow); }
.cx-today strong { display: block; font-size: 1.2rem; margin: 2px 0; }
.cx-today-k { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.cx-today-s { opacity: .9; font-size: .92rem; }
.cx-today-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex: none; }
.cx-today.muted .cx-today-ic { background: var(--cx-green-l); color: var(--cx-green-d); }
.cx-today-ic .ic { width: 28px; height: 28px; }
.cx-cleaner { display: flex; align-items: center; gap: 12px; }
.cx-avatar { width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(140deg, #0B7A3E, #1FA35A); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; flex: none; }
.cx-avatar .ic { width: 26px; height: 26px; }
.cx-avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 1.35rem; }
.cx-cleaner-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cx-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--cx-amber); }
.cx-rating .ic { width: 16px; height: 16px; fill: currentColor; }
.cx-dot { font-size: .75rem; font-weight: 700; color: var(--cx-muted); display: inline-flex; align-items: center; gap: 5px; }
.cx-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #B8C4BD; }
.cx-dot.on { color: var(--cx-green-d); }
.cx-dot.on::before { background: var(--cx-mint); box-shadow: 0 0 0 3px rgba(43, 212, 122, .25); }
.cx-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0 10px; text-align: center; }
.cx-wd { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cx-wd .l { font-size: .74rem; font-weight: 700; color: var(--cx-muted); }
.cx-wd .d { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: #F1F4F2; color: #9AA8A0; }
.cx-wd .d .ic { width: 18px; height: 18px; }
.cx-wd.due .d { background: var(--cx-green-l); color: var(--cx-green-d); }
.cx-wd.done .d { background: var(--cx-green); color: #fff; }
.cx-wd.missed .d { background: var(--cx-red-l); color: var(--cx-red); }
.cx-wd.today .d { outline: 2px solid var(--cx-green); outline-offset: 2px; }
.cx-wd.today .l { color: var(--cx-green-d); }
.cx-wd .int { font-size: .6rem; font-weight: 800; color: var(--cx-violet); background: var(--cx-violet-l); border-radius: 4px; padding: 1px 4px; min-height: 13px; }
.cx-wd .int.none { background: none; }
.cx-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .76rem; color: var(--cx-muted); }
.cx-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cx-legend .k { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--cx-green-l); }
.cx-legend .k.done { background: var(--cx-green); }
.cx-legend b { font-size: .6rem; color: var(--cx-violet); background: var(--cx-violet-l); border-radius: 4px; padding: 1px 4px; }
.cx-pay { display: flex; align-items: center; gap: 12px; }
.cx-pay strong { font-size: 1.1rem; }

/* ---------------- plan summary + schedule ---------------- */
.cx-plan-sum { display: flex; flex-direction: column; gap: 12px; }
.cx-plan-price { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 14px; background: var(--cx-green-l); color: var(--cx-green-dd); }
.cx-plan-price strong { font-size: 1.05rem; }
.cx-plan-price span { font-weight: 800; }
.cx-kv { display: flex; align-items: flex-start; gap: 10px; font-size: .94rem; }
.cx-kv .ic { width: 18px; height: 18px; color: var(--cx-green); margin-top: 2px; }
.cx-kv .k { color: var(--cx-muted); flex: none; width: 118px; }
.cx-kv .v { flex: 1; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.cx-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.cx-status { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.cx-status.ok { background: var(--cx-green-l); color: var(--cx-green-d); }
.cx-status.warn { background: var(--cx-amber-l); color: var(--cx-amber); }
.cx-status.live { background: #CFFAFE; color: #0E7490; }
.cx-status.bad { background: var(--cx-red-l); color: var(--cx-red); }
.cx-sched { padding: 4px 16px; }
.cx-sched-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--cx-line); }
.cx-sched-row:last-child { border-bottom: 0; }
.cx-sched-row.s-skipped, .cx-sched-row.s-paused, .cx-sched-row.s-moved_away { opacity: .55; }
.cx-date { width: 46px; height: 50px; border-radius: 12px; background: #F1F4F2; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1.1; }
.cx-date span { font-size: .68rem; font-weight: 700; color: var(--cx-muted); text-transform: uppercase; }
.cx-date strong { font-size: 1.1rem; }
.cx-sched-row.int .cx-date { background: var(--cx-violet-l); }
.cx-sched-row.int .cx-date span { color: var(--cx-violet); }
.cx-tag { font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; color: var(--cx-violet); background: var(--cx-violet-l); }
.cx-acts { display: flex; gap: 6px; flex: none; }

/* ---------------- washes ---------------- */
.cx-wash { display: flex; flex-direction: column; gap: 12px; }
.cx-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #E9EEEB; text-decoration: none; }
.cx-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-photo span { position: absolute; left: 8px; bottom: 8px; font-size: .72rem; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .5); padding: 3px 8px; border-radius: 999px; }
.cx-photo.empty { display: grid; place-items: center; color: #9AA8A0; }
.cx-photo.empty .ic { width: 28px; height: 28px; }
.cx-photo.empty span { background: rgba(0, 0, 0, .25); }
.cx-rate { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.cx-star { background: none; border: 0; padding: 4px; min-height: 0; width: auto; cursor: pointer; color: #C9D3CD; }
.cx-star .ic { width: 28px; height: 28px; }
.cx-star:hover, .cx-star:focus-visible { color: #F59E0B; }
.cx-star:hover .ic svg, .cx-star:focus-visible .ic svg { fill: currentColor; }
.cx-stars-done { display: flex; align-items: center; gap: 2px; color: #D5DDD8; }
.cx-stars-done .ic { width: 18px; height: 18px; }
.cx-stars-done .ic.on { color: #F59E0B; }
.cx-stars-done .ic.on svg { fill: currentColor; }
.cx-stars-done .cx-muted { margin-left: 8px; }

/* ---------------- account / lists ---------------- */
.cx-profile { display: flex; align-items: center; gap: 14px; padding: 4px 2px; }
.cx-profile h1 { font-size: 1.35rem; }
.cx-list { padding: 4px 16px; }
.cx-li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--cx-line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; color: inherit; min-height: 0; }
.cx-li:last-child { border-bottom: 0; }
.cx-li.btn { cursor: pointer; }
.cx-li.btn > .ic:last-child { color: var(--cx-muted); width: 18px; }
.cx-li.danger strong { color: var(--cx-red); }
.cx-li.danger .ic.tile { background: var(--cx-red-l); color: var(--cx-red); }
.cx-list .cx-link { display: block; margin: 4px 0; }
.cx-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 18px; }
.cx-statement table { width: 100%; border-collapse: collapse; margin: 14px 0 8px; font-size: .92rem; }
.cx-statement th { text-align: left; font-size: .76rem; color: var(--cx-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; border-bottom: 1px solid var(--cx-line); }
.cx-statement td { padding: 10px 0; border-bottom: 1px solid var(--cx-line); vertical-align: top; }
.cx-statement .amt { text-align: right; white-space: nowrap; }
.cx-statement tr.tot td { font-weight: 800; border-bottom: 0; }
.cx-statement tr.due td { color: var(--cx-green-d); font-size: 1.05rem; }
.cx-pays { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }

/* ---------------- sign in ---------------- */
.cx-auth { display: flex; flex-direction: column; gap: 14px; padding: 26px 20px; margin-top: 8px; }
.cx-auth-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--cx-green-l); color: var(--cx-green-d); display: grid; place-items: center; }
.cx-auth-ic .ic { width: 30px; height: 30px; }
.cx-auth h1 { font-size: 1.5rem; }
.cx-auth-links { display: flex; justify-content: space-between; }

/* ---------------- bottom tabs, sheet, welcome ---------------- */
.cx-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--cx-line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(14, 27, 20, .05); }
.cx-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 7px 2px; min-height: 0; width: auto; border-radius: 14px;
  font: 600 .74rem var(--font-body, 'Outfit', sans-serif); color: #7C8B83; cursor: pointer; }
.cx-tabs .ic { width: 24px; height: 24px; }
.cx-tabs button.on { color: var(--cx-green-d); background: var(--cx-green-l); }
.cx-sheet-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(6, 20, 12, .45); display: flex; align-items: flex-end; justify-content: center; animation: cx-fade .2s ease; }
@keyframes cx-fade { from { opacity: 0; } }
.cx-sheet { width: 100%; max-width: 480px; max-height: 86vh; overflow: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); animation: cx-up .25s ease-out; }
@keyframes cx-up { from { transform: translateY(40px); } }
.cx-sheet-grab { width: 40px; height: 5px; border-radius: 9px; background: #D6DED9; margin: 4px auto 10px; }
.cx-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cx-x { width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: #F1F4F2; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--cx-ink); }
.cx-welcome { display: flex; flex-direction: column; align-items: stretch; gap: 14px; text-align: center; padding-top: 18px; }
.cx-welcome .cx-plan-sum { text-align: left; }
.cx-check { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #0B7A3E, #2BD47A); box-shadow: 0 10px 30px rgba(11, 122, 62, .35); animation: cx-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.cx-check .ic { width: 44px; height: 44px; }
@keyframes cx-pop { from { transform: scale(.4); opacity: 0; } }

@media (min-width: 640px) {
  html, body { background: #E4EAE6; }
  #app { margin: 24px auto; min-height: calc(100vh - 48px); border-radius: 28px; box-shadow: 0 20px 60px rgba(14, 27, 20, .18); overflow: hidden; }
}
@media print {
  .topbar, .cx-tabs, .cx-footer, .no-print, #toast { display: none !important; }
  .cx-main { padding: 0; } .cx-card { box-shadow: none; border: 0; }
}

/* ============ legacy screens in app.js (one-time booking, tracking, apartment cleanings, staff login) ============ */
.card { background: var(--cx-surface); border-radius: var(--cx-r); padding: 16px; box-shadow: var(--cx-shadow); max-width: 100%; overflow-x: auto; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--cx-muted); font-size: .88rem; }
.center { text-align: center; }
.mono, .numbers { font-family: var(--font-mono, ui-monospace, monospace); }
button { font-family: inherit; font-size: 1rem; font-weight: 600; border: none; border-radius: 14px; padding: 14px 16px; cursor: pointer; min-height: 50px; }
button.primary, button.accent { background: var(--cx-green); color: #fff; width: 100%; box-shadow: 0 6px 16px rgba(11, 122, 62, .25); }
button.secondary { background: var(--cx-surface); color: var(--cx-green-d); border: 1.5px solid var(--cx-green-l2); width: 100%; }
button:disabled { opacity: .5; cursor: not-allowed; }
button + button { margin-top: 8px; }
.cx-main button + button, .cx-footer button + button { margin-top: 0; }
.linklike { color: var(--cx-green); text-decoration: underline; cursor: pointer; background: none; min-height: 0; padding: 6px; }
.btn-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 12px 14px; border-radius: 14px; }
select, input[type=text], input[type=tel], input[type=number], input[type=email], input[type=password], input[type=date], textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--cx-line-2); width: 100%; background: #fff; color: var(--cx-ink); outline: none; }
select:focus, input:focus, textarea:focus { border-color: var(--cx-green); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #EEF2EF; color: var(--cx-ink); }
.badge.state-confirmed, .badge.state-assigned { background: #E0F2FE; color: #0369A1; }
.badge.state-started { background: var(--cx-amber-l); color: var(--cx-amber); }
.badge.state-completed { background: var(--cx-green-l); color: var(--cx-green-d); }
.badge.state-no_supply, .badge.state-cancelled { background: var(--cx-red-l); color: var(--cx-red); }
.cg-vehicle-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; min-height: 0; width: auto; border: 1.5px solid var(--cx-line-2); border-radius: 14px; background: #fff; color: var(--cx-ink-2); font-size: .8rem; font-weight: 600; text-transform: capitalize; }
.cg-vehicle-chip.active { border-color: var(--cx-green); background: var(--cx-green-l); color: var(--cx-green-d); }
.star-row { display: flex; gap: 6px; justify-content: center; font-size: 2rem; }
.star { cursor: pointer; color: #D5DDD8; }
.star.active { color: #F59E0B; }
.otp-display { font-family: var(--font-mono, monospace); font-size: 2.4rem; font-weight: 700; letter-spacing: .3em; text-align: center; background: var(--cx-bg); border-radius: 16px; padding: 16px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; border-radius: 12px; display: block; aspect-ratio: 1; object-fit: cover; background: #E9EEEB; }
.photo-pair figcaption { text-align: center; font-size: .75rem; color: var(--cx-muted); margin-top: 4px; }
.error-banner { background: var(--cx-red-l); color: var(--cx-red); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.skeleton-block { background: linear-gradient(90deg, #E8EEEA 25%, #F4F7F5 37%, #E8EEEA 63%); background-size: 400% 100%; animation: cx-shim 1.3s ease infinite; }
.map-box { width: 100%; height: 220px; border-radius: 16px; overflow: hidden; background: #E9EEEB; }
.carglow-pin span { display: block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); background: var(--cx-green); }
.compare-slider { position: relative; width: 100%; aspect-ratio: 1.4; border-radius: 16px; overflow: hidden; background: #E9EEEB; touch-action: none; user-select: none; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-before-clip { position: absolute; inset: 0; width: 50%; overflow: hidden; transition: width .5s ease; }
.compare-before-clip img { position: absolute; inset: 0; height: 100%; width: var(--slider-w, 100%); max-width: none; object-fit: cover; }
.compare-handle { position: absolute; top: 0; bottom: 0; width: 4px; background: #fff; transform: translateX(-2px); transition: left .5s ease; cursor: ew-resize; display: flex; align-items: center; justify-content: center; }
.compare-handle span { position: absolute; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; }
.compare-label { position: absolute; bottom: 8px; font-size: .7rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: 999px; }
.compare-label-left { left: 8px; } .compare-label-right { right: 8px; }
.water-counter .count-up { font-size: 1.8rem; font-weight: 700; display: block; }
.empty-icon { font-size: 2.2rem; }
.pulse-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--cx-green); margin: 0 auto 6px; animation: pulse-dot 1.2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { transform: scale(1.6); opacity: .5; } }
.home-cta { display: flex; gap: 10px; flex-wrap: wrap; } .home-cta > * { flex: 1 1 140px; }
.home-price { width: 100%; border-collapse: collapse; } .home-price td { padding: 6px 0; border-bottom: 1px solid var(--cx-line); } .home-price td.amt { text-align: right; font-weight: 700; }


/* ================= v4 — approved design (25 Nov 2026) ================= */
.cx-h1 { font-size: 26px; line-height: 32px; font-weight: 650; letter-spacing: -0.02em; margin: 2px 0 2px; }
.cx-ov { font-size: 11.5px; line-height: 16px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-muted); }
.cx-homehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.cx-homehead .cx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--cx-line-2); background: #fff; font-weight: 600; font-size: 14px; color: var(--cx-ink); cursor: pointer; letter-spacing: .04em; }
.cx-ib { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--cx-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--cx-ink); cursor: pointer; }
.cx-herocard { background: var(--cx-green-d); color: #fff; border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.cx-herocard h2 { color: #fff; font-size: 20px; line-height: 26px; font-weight: 620; }
.cx-herocard p { color: #B9D3C6; font-size: 13.5px; }
.cx-herocard .cx-ov { color: #B9D3C6; }
.cx-herocard .cx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cx-herocard .cx-row.start { justify-content: flex-start; }
.cx-car { display: flex; justify-content: center; margin: 2px -8px -6px; }
.cx-car svg { width: 100%; max-width: 300px; height: auto; }
.cx-car.sm svg { max-width: 220px; }
.cx-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.12); color: #fff; white-space: nowrap; }
.cx-pill.on { background: #fff; color: var(--cx-green-d); }
.cx-pill.dark { background: var(--cx-mint); color: var(--cx-green-d); }
.cx-plate { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: #fff; color: var(--cx-ink); border: 1px solid var(--cx-line-2); font-size: 13px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.cx-btn.light { background: #fff; color: var(--cx-green-d); }
.cx-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx-card.cx-mini { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.cx-card.cx-mini strong { font-size: 16px; line-height: 22px; font-weight: 600; }
.cx-card.cx-member, .cx-card.cx-impact-row, .cx-card.cx-li-card, .cx-card.cx-vehicle { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; gap: 12px; }
.cx-card.cx-member { flex-direction: column; }
.cx-card.cx-member .cx-row, .cx-card.cx-vehicle .cx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cx-card.cx-impact-row, .cx-card.cx-li-card { align-items: center; }
.cx-card.cx-impact-row { background: #E6F0F4; border-color: #D3E3EA; }
.cx-lic { width: 40px; height: 40px; border-radius: 12px; background: var(--cx-green-l); color: var(--cx-green-d); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cx-lic.water { background: #fff; color: #2C6A86; }
.cx-card.cx-vehicle { flex-direction: column; }
.cx-plate.light { background: var(--cx-bg); }
.cx-link.center { align-self: center; display: inline-flex; align-items: center; gap: 6px; }
.cx-impact-hero { background: #1F5167; color: #fff; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.cx-impact-hero .cx-ov { color: #CFE3EC; }
.cx-impact-hero .big { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cx-impact-hero p { color: #CFE3EC; font-size: 14px; }
.cx-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 18px; }
.cx-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.cx-bar-v { width: 100%; max-width: 34px; background: #2C6A86; border-radius: 8px 8px 3px 3px; min-height: 4px; }
.cx-bar-n { font-size: 11px; font-weight: 650; color: var(--cx-ink-2); font-variant-numeric: tabular-nums; }
.cx-bar-l { font-size: 11px; color: var(--cx-muted); }
.cx-note-card p { margin-top: 4px; }
.cx-status.warn { background: var(--cx-amber-l); color: var(--cx-amber); }
/* tab bar: pill highlight like the approved design */
.cx-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.cx-tabs button { gap: 3px; font-size: 11px; }
.cx-tabs button .ic { width: 56px; height: 30px; border-radius: 999px; padding: 4px 17px; }
.cx-tabs button.on { color: var(--cx-green-d); font-weight: 700; }
.cx-tabs button.on .ic { background: var(--cx-green-l2); }
@media (max-width: 359px) { .cx-grid2 { grid-template-columns: 1fr; } }
.cx-tabs button.on { background: none; }
