/* ==========================================================================
   Fate Ondaba — customer app (PWA)
   Layout: one app column (phone width; centred on larger screens), a hero card in the
   theme colour, white floating cards on a light ground, floating bottom tab bar.
   Themes: graphite (default) · forest · petrol · navy · aubergine · cream  — set on <html data-theme>
   ========================================================================== */

:root {
  /* Brand + semantic colours */
  --emerald: #10AD78; --emerald-dk: #087D58; --emerald-lt: #5BE0AE; --mint: #DFF5E9;
  --white: #FFFFFF; --bg: #F5F7F6; --ink: #17211E; --muted: #89938F; --muted-text: #66716D; --line: #E7ECE9;
  --amber: #F6B83F; --amber-bg: #FEF4DF; --amber-ink: #8A5B00;
  --red: #D94848; --red-bg: #FBE9E9; --red-ink: #A33434;
  --blue-bg: #E7F0FB; --blue-ink: #2659A6;
  --tile: #F3F3F3; --surround: #E3E9E6; --wa: #25D366; --wa-ink: #06301B;

  /* Hero theme (graphite default) */
  --hero: #141719; --hero-2: #202427; --hero-3: #2C3135;
  --hm1: #B6BCBF; --hm2: #A0A7AB; --hm3: #91989C; --hm4: #82898D;
  --hero-ink: #FFFFFF;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --app-w: 520px; --r-card: 16px; --r-input: 11px; --r-btn: 12px;
  --shadow-float: 0 12px 22px -12px rgba(23, 33, 30, .30), 0 2px 5px -1px rgba(23, 33, 30, .07);
  --shadow-tile: 0 12px 22px -10px rgba(23, 33, 30, .28), 0 3px 6px -2px rgba(23, 33, 30, .08), inset 0 1px 0 #FFFFFF;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme="forest"]    { --hero: #062A20; --hero-2: #0C3A2D; --hero-3: #164A3B; --hm1: #B5C7C0; --hm2: #9FB5AD; --hm3: #8FA69E; --hm4: #7F9A90; }
:root[data-theme="petrol"]    { --hero: #08343A; --hero-2: #0F4650; --hero-3: #1A5964; --hm1: #AFCDD0; --hm2: #97B9BD; --hm3: #88AAAE; --hm4: #76999F; }
:root[data-theme="navy"]      { --hero: #0B1B2E; --hero-2: #14273F; --hero-3: #203652; --hm1: #B2BFCF; --hm2: #9BABBF; --hm3: #8A9BB0; --hm4: #7B8DA4; }
:root[data-theme="aubergine"] { --hero: #22142A; --hero-2: #2F1E39; --hero-3: #3E2A4A; --hm1: #C6B8CE; --hm2: #B0A0BA; --hm3: #A090AA; --hm4: #8F7E9A; }
:root[data-theme="cream"]     { --hero: #FEFBF3; --hero-2: #FFFFFF; --hero-3: #E8DEC6; --hm1: #5E5A50; --hm2: #7A7362; --hm3: #9A9382; --hm4: #8C8574; --hero-ink: #17211E; --bg: #F6F1E5; --surround: #EDE6D6; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--surround); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--emerald-dk); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-family: var(--font-display); letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* Icons */
.ic { width: 22px; height: 22px; flex-shrink: 0; }
.ic-sm { width: 18px; height: 18px; flex-shrink: 0; }
.ic-xs { width: 15px; height: 15px; flex-shrink: 0; }
.ic-lg { width: 24px; height: 24px; flex-shrink: 0; }
.d3 { width: 44px; height: 44px; flex-shrink: 0; filter: drop-shadow(0 2px 2px rgba(23, 33, 30, .08)); }

/* ---- App shell ------------------------------------------------------------ */
.app { position: relative; max-width: var(--app-w); margin: 0 auto; min-height: 100%; background: var(--bg); box-shadow: 0 0 0 1px var(--line); padding-bottom: calc(104px + var(--safe-b)); }
.app.has-bar { padding-bottom: calc(196px + var(--safe-b)); }
.app.flow { padding-bottom: calc(108px + var(--safe-b)); }
.app.no-tabs { padding-bottom: calc(28px + var(--safe-b)); }
@media (min-width: 760px) { body { padding-block: 24px; } .app { border-radius: 28px; overflow: hidden; min-height: calc(100% - 48px); } }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page { padding-block: 14px 8px; }
.stack { display: flex; flex-direction: column; }
.g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g20 { gap: 20px; } .g24 { gap: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted-text); }
.small { font-size: 13.5px; } .xs { font-size: 12px; }
.strong { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; padding-block: 12px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); background: var(--white); border-bottom: 1px solid var(--line); }
.topbar h1, .topbar .tb-title { font-size: 17px; font-weight: 700; flex: 1; text-align: center; margin-right: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar.left h1 { text-align: left; margin-right: 0; font-size: 21px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink); text-decoration: none; position: relative; }

/* Floating tab bar */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); width: calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); max-width: calc(var(--app-w) - 24px); height: 64px; padding: 7px; display: flex; gap: 4px; border-radius: 24px; background: var(--hero); box-shadow: 0 18px 34px -14px rgba(6, 20, 15, .55), 0 4px 10px -4px rgba(6, 20, 15, .25), inset 0 1px 0 rgba(255, 255, 255, .08); z-index: 30; }
.tabbar a { flex: 1 1 0; min-width: 0; height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 17px; color: var(--hm2); text-decoration: none; font-family: var(--font-display); font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; transition: flex-grow .25s ease, background .2s, color .2s; }
.tabbar a .lbl { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .25s ease, opacity .2s; }
.tabbar a:hover { color: var(--white); }
.tabbar a[aria-current="page"] { flex-grow: 2.1; background: var(--emerald); color: var(--white); }
.tabbar a[aria-current="page"] .lbl { max-width: 110px; opacity: 1; }
.tabbar .badge-dot { position: relative; display: inline-flex; }
.tabbar .badge-dot::after { content: ""; position: absolute; top: -2px; right: -3px; width: 8px; height: 8px; border-radius: 4px; background: var(--amber); border: 2px solid var(--hero); }
:root[data-theme="cream"] .tabbar { background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid #ECE3CE; box-shadow: 0 18px 34px -16px rgba(80, 62, 20, .35); }
:root[data-theme="cream"] .tabbar a { color: #7A7362; }
:root[data-theme="cream"] .tabbar a:hover { color: var(--ink); }
:root[data-theme="cream"] .tabbar a[aria-current="page"] { background: #062A20; color: var(--white); }
:root[data-theme="cream"] .tabbar .badge-dot::after { border-color: var(--white); }

/* Fixed action bars */
.action-bar { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-w); background: var(--white); border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: calc(12px + var(--safe-b)); z-index: 25; box-shadow: 0 -6px 18px rgba(6, 42, 32, .06); bottom: 0; }
.action-bar.above-tabs { padding-bottom: calc(88px + var(--safe-b)); }
.bar-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12.5px; color: var(--muted-text); }
.bar-sum b { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row { display: flex; gap: 10px; }
.bar-row > * { flex: 1; }
.bar-row .icon-btn { flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid var(--line); background: var(--white); }

/* ---- Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 18px; border: 0; border-radius: var(--r-btn); font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.005em; text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.985); }
.btn-block { width: 100%; }
.btn-primary { background: var(--emerald); color: var(--white); }
.btn-primary:hover { background: #0E9D6D; }
.btn-primary[disabled], .btn-primary[aria-disabled="true"] { background: #A9DCC9; cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #CCD6D1; }
.btn-dark { background: var(--hero); color: var(--hero-ink); }
.btn-danger { background: var(--white); color: var(--red); border: 1px solid #F1C9C9; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #21C25D; }
.btn-sm { height: 40px; font-size: 14px; padding: 0 14px; }
.btn-xs { height: 32px; font-size: 13px; padding: 0 12px; border-radius: 10px; }
.txt-link { background: none; border: 0; padding: 6px 0; font-weight: 700; font-size: 13.5px; color: var(--emerald-dk); text-decoration: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: var(--white); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Pills ----------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.pill.blue { background: var(--blue-bg); color: var(--blue-ink); }
.pill.amber { background: var(--amber-bg); color: var(--amber-ink); }
.pill.green { background: var(--mint); color: var(--emerald-dk); }
.pill.teal { background: #E6F4F1; color: #0B6B5B; }
.pill.grey { background: #EEF1EF; color: #45504C; }
.pill.red { background: var(--red-bg); color: var(--red-ink); }

/* ---- Cards ----------------------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.float-card { background: var(--white); border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: var(--shadow-float); }
.pad { padding: 16px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.sec-title a { font-family: var(--font); font-size: 13.5px; font-weight: 700; color: var(--emerald-dk); text-decoration: none; letter-spacing: 0; }
.kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-text); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- Hero ------------------------------------------------------------------ */
.hero-shell { padding: 10px max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.hero { background: var(--hero); color: var(--hero-ink); padding: 16px 16px 18px; border-radius: 24px; }
:root[data-theme="cream"] .hero { border: 1px solid #EDE4CF; box-shadow: 0 10px 24px -14px rgba(80, 62, 20, .25); }
.hero-top { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.brand img { height: 38px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
:root[data-theme="cream"] .brand img { filter: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .1em; white-space: nowrap; }
.hero .icon-btn { background: var(--hero-2); border: 1px solid var(--hero-3); color: var(--hero-ink); }
:root[data-theme="cream"] .hero .icon-btn { background: var(--white); border-color: #E8DEC6; }
.dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 4px; background: var(--amber); border: 2px solid var(--hero-2); }
.hero h1 { font-size: 29px; line-height: 1.08; letter-spacing: -.035em; margin-top: 24px; }
.hero .lede { color: var(--hm1); margin-top: 8px; font-size: 14px; }
.hero-svcs { margin-top: 20px; }
.hero-svcs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--hm2); }
.hero-svcs-head a { color: var(--emerald-lt); text-decoration: none; letter-spacing: .02em; text-transform: none; font-size: 13px; }
:root[data-theme="cream"] .hero-svcs-head a { color: var(--emerald-dk); }
.hero-form { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.hfield { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); color: var(--hero-ink); }
.hfield .ic { color: var(--hm4); }
.hfield label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--hm2); font-weight: 700; }
.hfield input { background: transparent; border: 0; outline: 0; width: 100%; color: inherit; font-size: 15px; padding: 2px 0 0; }
.hfield input::placeholder { color: var(--hm3); }
.hfield:focus-within { border-color: var(--emerald); }
.hfield.err { border-color: #F08C8C; }
:root[data-theme="cream"] .hfield { background: var(--white); border-color: #E8DEC6; }
:root[data-theme="cream"] .hfield .ic { color: var(--emerald-dk); }
.hero-err { color: #FFB4B4; font-size: 13px; }
:root[data-theme="cream"] .hero-err { color: var(--red-ink); }
.suggest { background: var(--hero-2); border: 1px solid var(--hero-3); border-radius: 12px; overflow: hidden; }
.suggest button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; color: var(--hero-ink); padding: 11px 14px; font-size: 14px; }
.suggest button + button { border-top: 1px solid var(--hero-3); }
.suggest .ic-sm { color: var(--hm2); }
.hero .btn { margin-top: 2px; height: 50px; }

/* Service tiles (home) */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.svc-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 90px; min-width: 0; padding-inline: 2px; background: var(--tile); border: 1px solid rgba(255, 255, 255, .9); border-radius: 16px; box-shadow: 0 14px 22px -12px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .12), inset 0 1px 0 #FFFFFF; font-size: 11px; letter-spacing: -.02em; font-weight: 700; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.svc-tile .d3 { width: 46px; height: 46px; }
.svc-tile:hover { transform: translateY(-2px); }
.svc-tile:active { transform: translateY(1px); }
:root[data-theme="cream"] .svc-tile { box-shadow: var(--shadow-tile); }

/* Home cards */
.promo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); background: var(--mint); border: 1px solid #C8EBD8; color: var(--ink); text-decoration: none; }
.promo .circ { width: 42px; height: 42px; border-radius: 21px; background: var(--emerald); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.promo b { display: block; font-size: 15px; font-family: var(--font-display); }
.promo span.t { font-size: 13px; color: #3E5A50; }
.list { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.list.float { border-color: rgba(255, 255, 255, .9); box-shadow: var(--shadow-float); border-radius: 18px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; background: none; border: 0; color: inherit; text-decoration: none; }
.li + .li { border-top: 1px solid var(--line); }
.li .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--tile); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.li .ico .d3 { width: 34px; height: 34px; }
.li b { display: block; font-size: 14.5px; font-weight: 600; font-family: var(--font-display); letter-spacing: -.01em; }
.li .meta { display: block; font-size: 12.5px; color: var(--muted-text); }
.li .chev { color: var(--muted); }

/* Budget card */
.bud-card { display: block; width: 100%; text-align: left; border-radius: 20px; padding: 16px 16px 14px; background: var(--tile); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-tile); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.bud-card:hover { transform: translateY(-2px); }
.bud-top { display: flex; align-items: center; gap: 10px; }
.bud-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--white); color: var(--emerald-dk); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bud-main { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.bud-amt { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bud-sub { font-size: 13px; color: var(--muted-text); margin-top: 2px; font-variant-numeric: tabular-nums; }
.urg-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--red-ink); margin-top: 6px; }
.urg-dot::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--red); }
.bud-empty { margin-top: 10px; font-size: 13.5px; color: var(--muted-text); }
.ring { position: relative; flex-shrink: 0; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring .pct { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.ring .pct small { font-family: var(--font); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; padding-top: 12px; border-top: 1px solid #E1E5E3; }
.stat3 > div { padding: 0 8px; border-left: 1px solid #E1E5E3; min-width: 0; }
.stat3 > div:first-child { border-left: 0; padding-left: 0; }
.stat3 .k { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat3 .k i { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.stat3 .v { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Theme-coloured feature card */
.feature { background: var(--hero); color: var(--hero-ink); border-radius: 22px; padding: 18px; box-shadow: 0 18px 32px -18px rgba(6, 20, 15, .6); }
:root[data-theme="cream"] .feature { border: 1px solid #EDE4CF; box-shadow: 0 10px 24px -14px rgba(80, 62, 20, .25); }
.feature .kicker { color: var(--hm2); }
.feature .bud-sub, .feature .sub { color: var(--hm1); }
.feature .bud-amt { font-size: 32px; }
.feature .stat3 { border-top-color: rgba(255, 255, 255, .12); }
.feature .stat3 > div { border-left-color: rgba(255, 255, 255, .12); }
.feature .stat3 .k { color: var(--hm2); }
:root[data-theme="cream"] .feature .stat3, :root[data-theme="cream"] .feature .stat3 > div { border-color: #EDE4CF; }
.feature .btn { margin-top: 16px; width: 100%; }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.steps4 div { font-size: 11.5px; line-height: 1.3; color: var(--hm1); }
.steps4 b { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .1); color: var(--hero-ink); font-family: var(--font-display); font-size: 13px; margin-bottom: 6px; }
.steps4 .done b { background: var(--emerald); color: var(--white); }
:root[data-theme="cream"] .steps4 b { background: #EFE7D3; }

/* ---- Segmented control & chips -------------------------------------------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 4px; background: #EAEFEC; border-radius: 14px; }
.seg a, .seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 9px 4px; border: 0; border-radius: 10px; background: transparent; font-size: 12.5px; font-weight: 700; color: var(--muted-text); text-decoration: none; min-width: 0; text-align: center; }
.seg [aria-selected="true"], .seg [aria-current="page"] { background: var(--white); color: var(--ink); box-shadow: 0 4px 10px -4px rgba(23, 33, 30, .25); }
.seg .d3 { width: 32px; height: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; transition: all .15s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip[aria-pressed="true"], .chip[aria-checked="true"], .chip[aria-current="page"], .chip:has(input:checked) { background: var(--hero); border-color: var(--hero); color: var(--hero-ink); }
:root[data-theme="cream"] .chip[aria-pressed="true"], :root[data-theme="cream"] .chip[aria-current="page"], :root[data-theme="cream"] .chip:has(input:checked) { background: #062A20; border-color: #062A20; color: var(--white); }
.chip:has(input:focus-visible) { outline: 2px solid var(--emerald); outline-offset: 2px; }
.chip .ic-sm { width: 16px; height: 16px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-block: 2px 4px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row .chip { flex-shrink: 0; height: 36px; }

/* ---- Forms ----------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .flabel { font-size: 14px; font-weight: 700; }
.hint { font-size: 12.5px; color: var(--muted-text); }
.input, .textarea, .select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--white); font-size: 15px; outline: 0; transition: border-color .15s; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2366716D' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.textarea { min-height: 108px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--emerald); }
.input.err, .textarea.err, .select.err { border-color: var(--red); }
.ferr { font-size: 12.5px; color: #B53A3A; display: flex; gap: 6px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-card { padding: 16px; }
.form-step { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--emerald-dk); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check-row input { width: 20px; height: 20px; accent-color: var(--emerald-dk); margin-top: 1px; flex-shrink: 0; }
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--bg); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 13px; border: 0; background: rgba(6, 42, 32, .75); color: var(--white); display: flex; align-items: center; justify-content: center; }
.ph.loading::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .6); }
.ph-add { aspect-ratio: 1; max-width: 100%; border-radius: 10px; border: 1.5px dashed #C4CFCA; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--muted-text); cursor: pointer; }
.ph-add .ic { color: var(--emerald-dk); }
.urg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.urg label { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); min-height: 72px; cursor: pointer; }
.urg input { position: absolute; opacity: 0; pointer-events: none; }
.urg b { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.urg span { font-size: 12px; color: var(--muted-text); }
.urg label:has(input:checked) { border-color: var(--emerald); box-shadow: inset 0 0 0 1px var(--emerald); background: #F3FBF7; }
.urg label:has(input:focus-visible) { outline: 2px solid var(--emerald); outline-offset: 2px; }
.urg label.emg b { color: #B53A3A; }
.urg label.emg:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: var(--red-bg); }
.urg label[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.emg-note { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--red-bg); color: #8E2E2E; font-size: 13px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slots button { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; }
.slots button[aria-checked="true"] { background: var(--hero); color: var(--hero-ink); border-color: var(--hero); }
:root[data-theme="cream"] .slots button[aria-checked="true"] { background: #062A20; color: #fff; border-color: #062A20; }
.slots button[disabled] { color: #B8C0BC; text-decoration: line-through; cursor: not-allowed; background: var(--bg); }
.slots .flex { grid-column: 1 / -1; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: 0 0 58px; height: 68px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11.5px; color: var(--muted-text); font-weight: 600; }
.days button b { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.days button[aria-checked="true"] { background: var(--hero); border-color: var(--hero); color: var(--hm1); }
.days button[aria-checked="true"] b { color: var(--hero-ink); }
:root[data-theme="cream"] .days button[aria-checked="true"] { background: #062A20; color: #cfe; }
:root[data-theme="cream"] .days button[aria-checked="true"] b { color: #fff; }
.days button[disabled] { opacity: .4; cursor: not-allowed; }
.days button .lim { width: 5px; height: 5px; border-radius: 3px; background: var(--amber); margin-top: 2px; }
.toggle { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.toggle .tl b { display: block; font-size: 14px; font-weight: 600; }
.toggle .tl span { font-size: 12.5px; color: var(--muted-text); font-variant-numeric: tabular-nums; }
.switch { width: 46px; height: 28px; border-radius: 14px; background: #D3DBD7; position: relative; flex-shrink: 0; border: 0; padding: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--emerald-dk); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--emerald-dk); height: 28px; }
.num-box { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; height: 44px; padding: 0 10px; gap: 4px; width: 112px; flex-shrink: 0; background: var(--white); }
.num-box:focus-within { border-color: var(--emerald); }
.num-box input { border: 0; outline: 0; width: 100%; min-width: 0; font-size: 15px; font-weight: 700; text-align: right; background: transparent; font-variant-numeric: tabular-nums; }
.num-box span { font-size: 13px; color: var(--muted-text); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-size: 20px; font-weight: 700; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---- Service selection ----------------------------------------------------- */
.map { position: relative; height: 150px; overflow: hidden; background: #E9EEEB; }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-btn { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); width: 44px; height: 44px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(6, 42, 32, .12); display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.map-btn.l { left: max(16px, env(safe-area-inset-left, 0px)); }
.map-btn.r { right: max(16px, env(safe-area-inset-right, 0px)); }
.map-tag { position: absolute; left: 72px; right: 72px; top: calc(19px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 0; border-radius: 8px; background: #141719; color: var(--white); font-size: 12px; font-weight: 700; white-space: nowrap; border: 0; overflow: hidden; text-decoration: none; box-shadow: 0 2px 8px rgba(6, 42, 32, .25); }
.map-tag .eta { background: var(--emerald); height: 30px; padding: 0 8px; display: flex; align-items: center; flex-shrink: 0; }
.map-tag span.a { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; text-align: left; }
.map-tag .ic-xs { width: 14px; height: 14px; }
.map-dot { position: absolute; left: 50%; top: 70%; width: 14px; height: 14px; border-radius: 7px; background: #141719; border: 3px solid var(--white); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transform: translate(-50%, -50%); }
.sel-panel { background: var(--bg); border-radius: 20px 20px 0 0; margin-top: -14px; position: relative; padding-block: 18px 8px; }
.sel-panel h1 { font-size: 18px; }
.group-h { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-text); margin-top: 6px; }
.svc-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; width: 100%; text-align: left; background: var(--white); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--r-card); box-shadow: var(--shadow-float); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.svc-card:hover { transform: translateY(-2px); }
.svc-card .ico { width: 60px; height: 48px; border-radius: 10px; background: var(--tile); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.svc-card .ico .d3 { width: 40px; height: 40px; }
.svc-card b { display: block; font-size: 15px; font-weight: 700; font-family: var(--font-display); letter-spacing: -.01em; }
.svc-card .desc { display: block; font-size: 12.5px; color: var(--muted-text); }
.svc-card .tag { display: flex; width: fit-content; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--emerald-dk); }
.svc-card .side { font-size: 12px; font-weight: 700; color: var(--muted-text); text-align: right; white-space: nowrap; }
.svc-card .badge { position: absolute; top: -1px; right: -1px; background: #141719; color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 0 15px 0 9px; }
.svc-card .check { width: 22px; height: 22px; border-radius: 11px; border: 1.5px solid #C9D2CE; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: transparent; }
.svc-card .check .ic { width: 14px; height: 14px; stroke-width: 3; }
.svc-card[aria-pressed="true"] { border-color: var(--emerald); background: #F6FCF9; box-shadow: inset 0 0 0 1px var(--emerald), 0 14px 26px -12px rgba(8, 125, 88, .45); }
.svc-card[aria-pressed="true"] .check { background: var(--emerald-dk); border-color: var(--emerald-dk); color: var(--white); }
.svc-card[aria-pressed="true"] .side { color: var(--emerald-dk); }
.note { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-size: 13px; color: var(--muted-text); }
.note .ic-sm { color: var(--emerald-dk); }

/* ---- Confirmation / detail -------------------------------------------------- */
.done-ic { width: 64px; height: 64px; border-radius: 32px; background: var(--mint); color: var(--emerald-dk); display: flex; align-items: center; justify-content: center; }
.done-ic .ic { width: 32px; height: 32px; stroke-width: 2.6; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted-text); }
.kv dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.steps { display: flex; flex-direction: column; }
.stp { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.stp:last-child { padding-bottom: 0; }
.stp .b { width: 22px; height: 22px; border-radius: 11px; border: 2px solid #C9D2CE; background: var(--white); flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.stp:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.stp.done .b { background: var(--emerald-dk); border-color: var(--emerald-dk); color: var(--white); }
.stp.done:not(:last-child)::after { background: var(--emerald); }
.stp.current .b { border-color: var(--emerald); box-shadow: 0 0 0 4px var(--mint); }
.stp .b .ic { width: 12px; height: 12px; stroke-width: 3; }
.stp b { font-size: 14px; font-weight: 700; display: block; }
.stp span { font-size: 12.5px; color: var(--muted-text); }
.job-card { display: flex; gap: 12px; padding: 14px; width: 100%; text-align: left; background: var(--white); border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: var(--shadow-float); color: inherit; text-decoration: none; }
.job-card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--tile); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.job-card .ico .d3 { width: 36px; height: 36px; }
.job-card b { font-size: 15px; font-family: var(--font-display); letter-spacing: -.01em; }
.job-card .ref { font-size: 12px; color: var(--muted-text); font-variant-numeric: tabular-nums; }
.job-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.job-card .amt { font-family: var(--font-display); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 32px 16px; }
.empty .circ { width: 56px; height: 56px; border-radius: 28px; background: var(--mint); color: var(--emerald-dk); display: flex; align-items: center; justify-content: center; }
.empty h3 { font-size: 17px; }
.qtable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.qtable th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-text); font-weight: 700; text-align: left; padding: 0 0 8px; }
.qtable td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.qtable .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.qtable .cat { font-size: 11.5px; color: var(--muted-text); display: block; }
.qtable tfoot td { font-weight: 700; }
.qtable tfoot tr.total td { font-size: 17px; font-family: var(--font-display); border-top: 2px solid var(--ink); }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .radio { width: 20px; height: 20px; border-radius: 10px; border: 2px solid #C9D2CE; flex-shrink: 0; }
.opt:has(input:checked) { border-color: var(--emerald); box-shadow: inset 0 0 0 1px var(--emerald); }
.opt:has(input:checked) .radio { border: 6px solid var(--emerald-dk); }
details.disclose summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.disclose summary::-webkit-details-marker { display: none; }
details.disclose[open] summary .ic-sm { transform: rotate(90deg); }
.banner { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.banner.ok { background: var(--mint); color: var(--emerald-dk); }
.banner.warn { background: var(--amber-bg); color: var(--amber-ink); }
.banner.bad { background: var(--red-bg); color: var(--red-ink); }
.banner.info { background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery a { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .g-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(20, 23, 25, .75); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; text-transform: capitalize; }
.tech { display: flex; align-items: center; gap: 12px; }
.av { width: 44px; height: 44px; border-radius: 22px; background: var(--hero); color: var(--hero-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-family: var(--font-display); }
:root[data-theme="cream"] .av { background: #062A20; color: #fff; }
.stars { display: flex; justify-content: center; gap: 6px; }
.stars label { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars svg { width: 36px; height: 36px; fill: #DDE3E0; stroke: none; transition: fill .12s, transform .12s; }
.stars label.on svg { fill: var(--amber); }
.stars label:has(input:focus-visible) { outline: 2px solid var(--emerald); }
.stars-static { display: inline-flex; gap: 2px; }
.stars-static svg { width: 16px; height: 16px; stroke: none; }
.tipgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tipgrid label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 10px; min-height: 40px; padding: 4px 6px; font-size: 13px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); cursor: pointer; }
.tipgrid input { position: absolute; opacity: 0; pointer-events: none; }
.tipgrid label:has(input:checked) { background: var(--mint); border-color: var(--emerald); color: var(--emerald-dk); box-shadow: inset 0 0 0 1px var(--emerald); }
.tipgrid label:has(input:focus-visible) { outline: 2px solid var(--emerald); }
.count { font-size: 12px; color: var(--muted-text); text-align: right; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 10px 12px; border-radius: 14px; font-size: 14px; background: var(--white); border: 1px solid var(--line); }
.bubble.me { align-self: flex-end; background: var(--hero); color: var(--hero-ink); border-color: var(--hero); }
.bubble .who { display: block; font-size: 11.5px; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.bubble time { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }

/* ---- Budget / inspection --------------------------------------------------- */
.rep-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.rep-line .av { width: 36px; height: 36px; font-size: 13px; }
.prio-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-text); margin: 6px 2px -6px; }
.prio-row i { width: 7px; height: 7px; border-radius: 4px; }
.prio-row .ct { margin-left: auto; font-weight: 700; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.ins-list { background: var(--white); border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: var(--shadow-float); padding: 4px 14px; }
.ins-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; width: 100%; text-align: left; background: transparent; border: 0; color: inherit; }
.ins-item + .ins-item, form + form .ins-item { border-top: 1px solid var(--line); }
.ins-list form + form { border-top: 1px solid var(--line); }
.ins-list form + form .ins-item { border-top: 0; }
.ins-item .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tile); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ins-item .ico .d3 { width: 32px; height: 32px; }
.ins-item b { display: block; font-size: 14.5px; font-weight: 700; font-family: var(--font-display); letter-spacing: -.01em; }
.ins-item .inote { display: block; font-size: 12.5px; color: var(--muted-text); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-item .right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ins-item .amt { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; display: block; }
.ins-item .st { font-size: 11.5px; font-weight: 700; color: var(--emerald-dk); text-align: right; display: block; }
.ins-item .tick { width: 24px; height: 24px; border-radius: 12px; border: 1.5px solid #C9D2CE; display: flex; align-items: center; justify-content: center; color: transparent; }
.ins-item .tick .ic { width: 14px; height: 14px; stroke-width: 3; }
.ins-item[aria-pressed="true"] .tick { background: var(--emerald-dk); border-color: var(--emerald-dk); color: var(--white); }
.ins-item[aria-pressed="false"] .amt { color: var(--muted-text); }
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ins-chk { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; font-weight: 600; min-width: 0; }
.ins-chk .d3 { width: 28px; height: 28px; }

/* ---- Design calculator ----------------------------------------------------- */
.est .amt { font-family: var(--font-display); font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.est .mid { display: inline-flex; margin-top: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: 12.5px; font-variant-numeric: tabular-nums; }
:root[data-theme="cream"] .est .mid { background: #F4ECD9; }
.sample { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--amber-bg); color: var(--amber-ink); font-size: 12.5px; font-weight: 700; }

/* ---- Flash, toast, install ------------------------------------------------- */
.flash-stack { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 0; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.flash-success { background: var(--mint); color: var(--emerald-dk); }
.flash-error { background: var(--red-bg); color: var(--red-ink); }
.flash-info { background: var(--white); border: 1px solid var(--line); }
.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(160px + var(--safe-b)); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 440px; pointer-events: none; }
.toast { background: #141719; color: var(--white); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; box-shadow: 0 8px 24px rgba(6, 42, 32, .25); text-align: center; }
.install { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-float); }
.install img { width: 40px; height: 40px; border-radius: 10px; }
.sheet-back { position: fixed; inset: 0; background: rgba(10, 14, 12, .45); z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: var(--app-w); max-height: 88vh; overflow: auto; background: var(--white); border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* ---- Auth ------------------------------------------------------------------ */
.auth-hero { padding: 26px 18px 20px; }
.auth-hero h1 { font-size: 26px; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* "How it works" numbered list on light cards */
.how { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: how; }
.how li { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; counter-increment: how; }
.how li::before { content: counter(how); grid-row: span 2; width: 30px; height: 30px; border-radius: 15px; background: var(--tile); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.how b { font-family: var(--font-display); font-size: 14.5px; }
.how span { font-size: 13px; color: var(--muted-text); }

/* ---- Account ---------------------------------------------------------------- */
.av-lg { width: 56px; height: 56px; border-radius: 28px; font-size: 19px; background: rgba(255, 255, 255, .12); color: var(--hero-ink); }
:root[data-theme="cream"] .av-lg { background: #EFE7D3; }
.feature h2 { color: inherit; }
label.toggle { cursor: pointer; }
label.toggle:first-of-type { border-top: 0; padding-top: 4px; }
label.toggle + label.toggle { margin-top: 12px; }
label.toggle input:checked + .switch { background: var(--emerald-dk); }
label.toggle input:checked + .switch::after { transform: translateX(18px); }
label.toggle input:focus-visible + .switch { outline: 2px solid var(--emerald); outline-offset: 2px; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.theme-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 16px; background: var(--white); border: 1.5px solid var(--line); cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt .sw { position: relative; height: 64px; border-radius: 11px; margin-bottom: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.theme-opt .sw i { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 6px; border-radius: 3px; opacity: .9; }
.theme-opt b { font-size: 14px; font-family: var(--font-display); }
.theme-opt:has(input:checked) { border-color: var(--emerald-dk); box-shadow: 0 0 0 3px rgba(16, 173, 120, .18); }
.theme-opt:has(input:focus-visible) { outline: 2px solid var(--emerald); outline-offset: 2px; }

/* ---- Property, invoices, notifications ------------------------------------------- */
.prop-hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 168px; display: flex; align-items: flex-end; color: #fff; background: var(--hero); }
.prop-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.prop-hero .in { position: relative; padding: 16px; width: 100%; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.prop-hero h2 { font-size: 19px; color: #fff; }
.prop-hero p { font-size: 13px; opacity: .85; }
.prop-hero .pill { position: absolute; top: 12px; left: 12px; }
.amt-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.amt-col b { font-family: var(--font-display); font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.li.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 4px; background: var(--emerald); margin-left: 6px; vertical-align: middle; }
.composer { position: sticky; bottom: calc(88px + var(--safe-b)); display: flex; gap: 8px; align-items: flex-end; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-float); }
.composer textarea { flex: 1; border: 0; outline: 0; resize: none; min-height: 40px; max-height: 140px; padding: 10px 8px; font-size: 15px; background: transparent; }
.composer select { width: auto; max-width: 132px; min-height: 40px; padding: 6px 8px; border: 0; background: var(--bg); border-radius: 10px; font-size: 13px; }
.composer .btn { width: 44px; height: 44px; padding: 0; flex-shrink: 0; }
.day-sep { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted-text); margin: 6px 0; }
.bubble .ref { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--emerald-dk); margin-bottom: 4px; text-decoration: none; }
.bubble.me .ref { color: var(--hm1); }
.faq details { padding: 14px 16px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 14.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .ic-sm { transform: rotate(90deg); }
.faq p { font-size: 14px; color: var(--muted-text); margin-top: 8px; }
.prose h3 { font-size: 16px; margin: 18px 0 6px; }
.prose p, .prose li { font-size: 14px; line-height: 1.6; }
.prose ul { padding-left: 18px; margin: 6px 0; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.inv-head img { height: 34px; width: auto; }
@media print { .tabbar, .topbar, .no-print, .action-bar { display: none !important; } .app { box-shadow: none; padding: 0; } body { background: #fff; } .float-card { box-shadow: none; border: 0; } }

/* ---- Auth ------------------------------------------------------------------ */
.auth-top { background: var(--hero); color: var(--hero-ink); padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 54px; border-radius: 0 0 28px 28px; }
.auth-top .brand-name { color: var(--hero-ink); }
.auth-top h1 { font-size: 26px; margin-top: 26px; color: var(--hero-ink); }
.auth-top p { color: var(--hm1); font-size: 14px; margin-top: 6px; }
.auth-card { margin-top: -36px; }
.or { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted-text); font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-title .link, button.link { background: none; border: 0; padding: 0; font-family: var(--font); font-size: 13.5px; font-weight: 700; color: var(--emerald-dk); cursor: pointer; letter-spacing: 0; }

/* ---- Before / after slider (projects) ------------------------------------------ */
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .35); pointer-events: none; }
.ba-label { position: absolute; top: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(20, 23, 25, .7); color: #fff; font-size: 11px; font-weight: 700; }
.ba-label.l { left: 10px; } .ba-label.r { right: 10px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.svc-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-grid.three .svc-tile { height: 92px; font-size: 11.5px; }
.hero .hero-svcs + .hero-svcs { margin-top: 22px; }
.svc-note { font-size: 12.5px; color: var(--hm1); margin: -4px 0 10px; }
.svc-tile { position: relative; }
.svc-tile .ptag { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald-dk); background: var(--mint); border-radius: 6px; padding: 2px 5px; }
/* Request form: chosen services + Add service */
.sel-chip { height: 40px; padding: 0 6px 0 14px; border-radius: 20px; background: var(--hero); color: var(--hero-ink); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.sel-chip button { width: 28px; height: 28px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .14); color: inherit; display: grid; place-items: center; padding: 0; }
.sel-chip button .ic { width: 14px; height: 14px; }
.sel-chip:not(:has(button)) { padding-right: 14px; }
.add-svc { height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px dashed #BFD9CC; background: #F4FBF7; color: var(--emerald-dk); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.add-svc .ic { width: 16px; height: 16px; }
.add-svc[aria-expanded="true"] { border-style: solid; background: var(--mint); }
.svc-picker { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 16px; background: var(--bg); }
.svc-picker .svc-tile { height: 84px; font-size: 11px; box-shadow: 0 8px 14px -10px rgba(23, 33, 30, .4), inset 0 1px 0 #fff; border: 0; }
.svc-picker .svc-tile .d3 { width: 38px; height: 38px; }
.svc-picker .pk { grid-column: 1 / -1; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-text); }
:root[data-theme="cream"] .sel-chip button { background: rgba(0, 0, 0, .08); }
