/* KAROFI HOME SURVEY — mobile first, Karofi blue/white, large tap targets, no icons (text, colored dots and labels only) */
:root {
  --blue: #0A6FC2; --blue-d: #085A9E; --navy: #041D36; --navy2: #0A3A6C;
  --ink: #0A1A2B; --ink2: #3C4F63; --muted: #5A6D80; --line: #DFE8F0; --bg: #F2F8FC; --sky: #E6F2FA; --sky2: #CFE5F5;
  --green: #12A079; --green-btn: #0C7D5C; --green-d: #0B6B50; --green-bg: #E3F5EF;
  --amber: #F0A500; --yellow-d: #7A4F00; --yellow-bg: #FFF5DE; --yellow-line: #F5D78E;
  --red: #D64545; --red-d: #A12C2C; --red-bg: #FCE9E9; --red-line: #F2B8B8;
  --r: 16px; --r-sm: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(10, 111, 194, .45); outline-offset: 2px; }

/* header + layout */
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.top__in { max-width: 600px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.top__logo { display: block; line-height: 0; }
.top__logo img { height: 26px; width: auto; }
.top__app { font-weight: 600; font-size: 15px; color: var(--ink2); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.top__sample { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow-d); background: var(--yellow-bg); border: 1px solid var(--yellow-line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.main { max-width: 600px; margin: 0 auto; padding: 16px 16px 112px; }
body[data-view="dash"] .main, body[data-view="report"] .main { max-width: 1160px; }
body[data-view="dash"] .top__in, body[data-view="report"] .top__in { max-width: 1160px; }
body[data-view="proposal"] .top { display: none; }

/* bottom nav (text only) */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1 1 0; max-width: 160px; height: 60px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; position: relative; text-align: center; padding: 0 4px; }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 24%; right: 24%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
.nav .nav__new span { background: var(--blue); color: #fff; border-radius: 999px; padding: 9px 16px; }
.nav .nav__new[aria-current="page"]::before { display: none; }
body.no-nav .nav { display: none; }

/* bottom action bar (wizards) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.bar__in { max-width: 568px; margin: 0 auto; display: flex; gap: 8px; }
.bar__in .btn--pri, .bar__in .btn--ok { flex: 1 1 auto; }
.bar__in .btn { padding: 0 14px; }

/* titles */
.ttl { margin: 2px 0 14px; }
.ttl__back { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; font-size: 15px; text-decoration: none; }
.ttl h1 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.ttl p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.hello { margin: 2px 0 14px; }
.hello p { color: var(--muted); font-weight: 500; }
.hello h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.sec { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 24px 0 10px; }
.grp { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
h3 { font-size: 14px; font-weight: 700; color: var(--ink2); margin: 14px 0 8px; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(4, 29, 54, .04); }
.card > h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card--soft { background: var(--sky); border-color: var(--sky2); box-shadow: none; }
.card--next { border-color: #BFDDF2; box-shadow: 0 2px 12px rgba(10, 111, 194, .08); }
.card--next .btn--block { margin-top: 12px; }
.card--warn { background: var(--yellow-bg); border-color: var(--yellow-line); box-shadow: none; }
.card--odoo { border-color: #C9D7E6; }
.card p + p { margin-top: 6px; }
.big { font-size: 20px; font-weight: 700; line-height: 1.25; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 18px; }
.nw { white-space: nowrap; }
.empty { color: var(--muted); font-size: 15px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 14px; text-align: center; }
.foot { text-align: center; font-size: 13px; margin-top: 20px; }
.warn { background: var(--yellow-bg); color: var(--yellow-d); border-radius: 10px; padding: 10px 12px; font-weight: 500; font-size: 14px; margin: 10px 0 0; }
.note { background: var(--sky); color: var(--ink2); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0 0; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--yellow-d); background: var(--yellow-bg); border-radius: 999px; padding: 2px 8px; vertical-align: middle; text-transform: uppercase; }
.lnk { background: none; border: 0; padding: 8px 0; color: var(--blue); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-block; }
.kline { font-size: 14px; color: var(--ink2); margin: 2px 0 10px; }
.kline b { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1.5px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; text-align: center; line-height: 1.15; white-space: nowrap; }
.btn--pri { background: var(--blue); color: #fff; }
.btn--pri:active { background: var(--blue-d); }
.btn--ok { background: var(--green-btn); color: #fff; }
.btn--ok:active { background: var(--green-d); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:active { background: var(--sky); }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn--block { display: flex; width: 100%; }
.btn--block + .btn--block, .btn--block + .sendbox + .btn--block { margin-top: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.two .btn { white-space: normal; padding: 0 10px; }
.two--end { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 4px 0 0; }
.two--end .btn { flex: 0 0 auto; }
.acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.acts .btn { padding: 0 6px; }

/* form */
.f { margin-bottom: 20px; }
.f:last-child { margin-bottom: 0; }
.f--top { margin-top: 14px; }
.f__l { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.req { color: var(--red-d); font-style: normal; }
.inp { width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; font-size: 16px; outline: none; }
.inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 111, 194, .15); }
textarea.inp { min-height: 88px; resize: vertical; }
.inp--search { margin-bottom: 10px; }
.inp--after { margin-top: 8px; }
.hint { background: var(--red-bg); color: var(--red-d); border-radius: 12px; padding: 12px 14px; font-weight: 500; margin: 4px 0 12px; }
.hint a { color: var(--red-d); font-weight: 700; }
.prog { height: 6px; border-radius: 6px; background: #DCE8F2; margin: -4px 0 14px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }

/* option buttons: large selection cards */
.opts { display: grid; gap: 8px; }
.opts--grid, .opts--2, .opts--yn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opts--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.opts--list { grid-template-columns: minmax(0, 1fr); }
.opts--wrap { display: flex; flex-wrap: wrap; }
.opts--after { margin-top: 8px; }
.opt { min-height: 52px; padding: 10px 12px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--sky); color: var(--blue-d); box-shadow: inset 0 0 0 1px var(--blue); }
.opts--yn .opt { min-height: 60px; font-size: 18px; }
.opts--sm .opt { min-height: 44px; font-size: 14px; padding: 8px; }
.opts--wrap .opt { flex: 0 0 auto; }
.opts--list .opt { text-align: left; }

/* stepper */
.step { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; max-width: 300px; }
.step__b { width: 56px; height: 52px; border: 0; background: var(--sky); color: var(--blue-d); font-size: 24px; font-weight: 600; flex: 0 0 auto; }
.step__v { flex: 1; text-align: center; font-size: 15px; color: var(--ink2); white-space: nowrap; }
.step__v b { font-size: 20px; color: var(--ink); }
.spend { background: var(--sky); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--ink2); }
.spend b { font-size: 20px; color: var(--blue-d); margin: 0 4px; }

/* checks (step 5) */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 20px; }
.check { position: relative; min-height: 56px; padding: 10px 10px 10px 42px; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-weight: 600; font-size: 14px; line-height: 1.2; }
.check::before { content: ""; position: absolute; left: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid #9DB0C3; border-radius: 5px; background: #fff; }
.check[aria-pressed="true"] { border-color: var(--blue); background: var(--sky); color: var(--blue-d); }
.check[aria-pressed="true"]::before { background: var(--blue); border-color: var(--blue); }
.check[aria-pressed="true"]::after { content: ""; position: absolute; left: 19px; top: 50%; width: 6px; height: 11px; margin-top: -8px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* photos */
.ph { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.card > p.muted + .ph { margin-top: 12px; }
.ph__t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.ph__t b { font-size: 15px; }
.ph__t span { font-size: 13px; color: var(--muted); }
.ph__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ph__i { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--sky); display: block; }
.ph__add { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1.5px dashed #9CC8EA; border-radius: 10px; background: var(--sky); color: var(--blue-d); font-weight: 600; font-size: 14px; text-align: center; cursor: pointer; padding: 6px; }

/* KPI tiles */
.kpis { display: grid; gap: 8px; margin-bottom: 8px; }
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis--4, .kpis--dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 10px; min-width: 0; }
.kpi b { display: block; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; font-weight: 500; line-height: 1.25; }
.kpi--hero { background: var(--blue); border-color: var(--blue); color: #fff; }
.kpi--hero span { color: #D7EAF8; }
.kpi--wide { grid-column: 1 / -1; }
.kpi--wide b { font-size: 34px; }
.kpis--sm .kpi b { font-size: 20px; }
.kpi--warn { background: var(--yellow-bg); border-color: var(--yellow-line); }
.kpis--4 .kpi b { font-size: 22px; }
@media (min-width: 720px) {
  .kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis--dash { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis--dash .kpi--wide { grid-column: span 2; }
  .kpis--dash .kpi--wide b { font-size: 30px; }
}

/* customer cards + status pills */
.cust { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; text-decoration: none; color: inherit; }
.cust:active { background: var(--sky); }
.cust__t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cust__t b { font-size: 16px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust__s { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 3px; }
.cust__s > span:first-child { min-width: 0; }
.cust__x { font-size: 14px; color: var(--ink2); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.pill { display: inline-block; flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 999px; padding: 4px 9px; white-space: nowrap; line-height: 1.15; }
.pill--new { background: #EEF2F6; color: #475A6E; }
.pill--sched { background: #fff; color: var(--blue-d); box-shadow: inset 0 0 0 1px #9CC8EA; }
.pill--done { background: var(--sky); color: var(--blue-d); }
.pill--rec { background: #D3E6F7; color: var(--navy2); }
.pill--follow { background: var(--yellow-bg); color: var(--yellow-d); box-shadow: inset 0 0 0 1px var(--yellow-line); }
.pill--dp { background: var(--green-bg); color: var(--green-d); }
.pill--sold { background: var(--green-btn); color: #fff; }
.pill--inst { background: var(--green-d); color: #fff; }
.pill--lost { background: var(--red-bg); color: var(--red-d); }
.vt { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .03em; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.card--next h2 .vt { margin-left: 2px; }
.vt--ver { background: var(--green-bg); color: var(--green-d); }
.vt--linked, .vt--poss { background: var(--yellow-bg); color: var(--yellow-d); }
.vt--none { background: #EEF2F6; color: #475A6E; }
.vt--cancel { background: var(--red-bg); color: var(--red-d); }
.vp { font-size: 12px; font-weight: 700; letter-spacing: .03em; border-radius: 999px; padding: 4px 10px; text-transform: uppercase; }
.vp--ver { background: var(--green-btn); color: #fff; }
.vp--linked { background: var(--sky); color: var(--blue-d); box-shadow: inset 0 0 0 1px #9CC8EA; }
.vp--poss { background: var(--yellow-bg); color: var(--yellow-d); box-shadow: inset 0 0 0 1px var(--yellow-line); }
.vp--none { background: #EEF2F6; color: #475A6E; }
.vp--cancel { background: var(--red-bg); color: var(--red-d); }

/* chips (filters) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* status pipeline: 9 steps, 3 x 3 */
.pipe { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pipe__s { background: #fff; border: 1px solid var(--line); border-radius: 8px; min-height: 40px; padding: 5px 6px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: #8496A8; line-height: 1.15; hyphens: manual; }
.pipe__s.is-done { background: var(--sky); border-color: #BFDDF2; color: var(--blue-d); }
.pipe__s.is-now { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 3px rgba(10, 111, 194, .18); }
.pipe__s.is-lost { background: var(--red-bg); border-color: var(--red-line); color: var(--red-d); }

/* key-value lists */
.kv { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 7px 14px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 500; overflow-wrap: anywhere; }
.kv small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.kv--price dd, .kv--tot dd, .kv--pkg dd, .kv--perf dd { text-align: right; }
.kv--price { margin-bottom: 18px; }
.kv--tot dt { font-weight: 600; color: var(--ink2); font-size: 13px; letter-spacing: .03em; align-self: center; }
.kv--tot dd { font-size: 17px; font-weight: 600; }
.tot__t { font-size: 18px !important; font-weight: 700 !important; color: var(--ink) !important; padding-top: 10px; border-top: 1.5px solid var(--ink); }
.tot .f { margin-top: 18px; }
.kv--stack { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.kv--stack dt { font-size: 13px; margin-top: 8px; }
.kv--stack dt:first-child { margin-top: 0; }
.kv--odoo { font-size: 14px; gap: 6px 12px; }
.kv--odoo dt { white-space: nowrap; }
.kv--perf { font-size: 14px; gap: 5px 10px; grid-template-columns: minmax(0, 1fr) auto; }
.kv--perf dd { white-space: nowrap; overflow-wrap: normal; }
.kv--price, .kv--tot, .kv--pkg { grid-template-columns: minmax(0, 1fr) auto; }
.kv--price dd, .kv--tot dd, .kv--pkg dd { white-space: nowrap; overflow-wrap: normal; }
.kv--price small, .kv--tot small, .kv--pkg small { white-space: normal; max-width: 150px; margin-left: auto; }
.kv--pkg, .kv--tot { column-gap: 0; }
.kv--pkg dt, .kv--tot dt { padding-right: 14px; }

/* survey result */
.rrow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.card > h2 + .rrow, .diffbox + .rrow { border-top: 0; }
.rrow > div { flex: 1; min-width: 0; }
.rrow b { display: block; font-size: 15px; }
.rrow span { display: block; color: var(--ink2); font-size: 15px; }
.rrow em { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }
.rrow .lnk { flex: 0 0 auto; align-self: center; padding: 10px 4px; }
.dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; display: inline-block; }
.dot--green { background: var(--green); }
.dot--yellow { background: var(--amber); }
.dot--red { background: var(--red); }
.diffbox { border-radius: 14px; padding: 14px 16px; margin-bottom: 6px; display: flex; flex-direction: column; }
.diffbox span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.diffbox b { font-size: 22px; font-weight: 700; }
.diff--green { background: var(--green-bg); color: var(--green-d); }
.diff--yellow { background: var(--yellow-bg); color: var(--yellow-d); }
.diff--red { background: var(--red-bg); color: var(--red-d); }
span.diff { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.edbox { padding: 0 0 12px 26px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin: 14px 0 4px; }
.legend span { display: inline-flex; align-items: center; }
.legend .dot { width: 10px; height: 10px; margin: 0 5px 0 0; }

/* recommendation */
.models { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.model { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 2px 6px; }
.model img { height: 84px; width: auto; object-fit: contain; }
.model b { font-size: 11px; font-weight: 600; white-space: nowrap; }
.model[aria-pressed="true"], .mp[aria-pressed="true"] { border-color: var(--blue); background: var(--sky); box-shadow: inset 0 0 0 1px var(--blue); }
.mpick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; padding-top: 9px; }
.mp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 2px 8px; min-width: 0; }
.mp img { height: 70px; width: auto; object-fit: contain; }
.mp b { font-size: 11px; font-weight: 700; white-space: nowrap; }
.mp span { font-size: 11px; color: var(--ink2); font-weight: 600; white-space: nowrap; }
.mp em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9.5px; font-weight: 700; background: var(--green-btn); color: #fff; border-radius: 999px; padding: 2px 6px; white-space: nowrap; letter-spacing: .03em; }
.prod { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.prod img { height: 150px; width: auto; max-width: 40%; object-fit: contain; flex: 0 0 auto; }
.prod h2 { font-size: 21px; line-height: 1.2; margin: 2px 0 4px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.hero { background: var(--sky); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.hero__n { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.hero__n b { font-size: 46px; line-height: 1; font-weight: 700; color: var(--blue-d); letter-spacing: -.02em; }
.hero__n span { font-size: 17px; font-weight: 700; color: var(--blue-d); letter-spacing: .04em; }
.hero p + p { margin-top: 6px; color: var(--ink2); font-size: 15px; }
.why { margin: 0; padding: 0; list-style: none; counter-reset: w; }
.why li { position: relative; padding: 10px 0 10px 36px; border-top: 1px solid var(--line); font-size: 15px; counter-increment: w; }
.why li:first-child { border-top: 0; padding-top: 2px; }
.why li::before { content: counter(w); position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.why li:first-child::before { top: 1px; }
.why + .muted { margin-top: 10px; }

/* installation items */
.lines { margin-bottom: 10px; }
.line { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.line.is-free { background: #F6FBF9; border-color: #BFE6D8; }
.line__t { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.line__t b { font-size: 15px; }
.line__t .lnk { padding: 0 0 4px; font-size: 14px; color: var(--red-d); }
.line__r { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.line__r .step { max-width: none; flex: 0 0 auto; }
.line__r .step__b { width: 44px; height: 44px; font-size: 20px; }
.line__r .step__v { padding: 0 8px; min-width: 70px; }
.line__r .step__v b { font-size: 17px; }
.price { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); flex: 1 1 140px; min-width: 0; }
.inp--price { min-height: 44px; width: 92px; padding: 8px 10px; text-align: right; flex: 0 0 auto; }
.line__b { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.tog { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.tog[aria-pressed="true"] { background: var(--green-btn); border-color: var(--green-btn); color: #fff; }
.line__sub { font-weight: 700; font-size: 16px; }
.line__src { font-size: 12px; color: var(--muted); margin-top: 6px; }
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(4, 29, 54, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet__in { background: #fff; width: 100%; max-width: 600px; max-height: 84vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet__in h2 { font-size: 18px; margin-bottom: 6px; }
.sheet__in .list { margin-bottom: 12px; }
.list { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.row:first-child { border-top: 0; }
.row b { font-weight: 600; font-size: 16px; }
.row span { color: var(--muted); font-size: 14px; text-align: right; }
.row[aria-current="true"] b { color: var(--blue); }
.row[aria-current="true"] span::after { content: " · current"; }

/* customer view (proposal) */
.staff { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: 14px; font-weight: 600; }
.staff a { text-decoration: none; padding: 8px 0; }
.staff span { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.prop { background: #fff; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 10px 30px rgba(4, 29, 54, .08); }
.prop__head { background: var(--navy2); background-image: linear-gradient(160deg, var(--navy2), var(--blue)); color: #fff; padding: 20px 20px 22px; }
.prop__head img { height: 30px; width: auto; filter: brightness(0) invert(1); display: block; }
.prop__head p { font-size: 12px; font-weight: 700; letter-spacing: .12em; margin-top: 16px; color: #CFE6F8; }
.prop__head h1 { font-size: 26px; line-height: 1.15; margin-top: 4px; }
.prop__head .prop__for { letter-spacing: 0; font-weight: 500; font-size: 14px; margin-top: 6px; }
.prop__prod { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.prop__prod img { height: 170px; width: auto; max-width: 38%; object-fit: contain; flex: 0 0 auto; }
.prop__prod h2 { font-size: 20px; line-height: 1.2; margin: 2px 0 10px; }
.prop__price { font-size: 15px; font-weight: 700; color: var(--blue-d); letter-spacing: .04em; }
.prop__price b { font-size: 44px; letter-spacing: -.02em; line-height: 1; }
.prop__term { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink2); margin-top: 6px; }
.prop__sec { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.prop__sec h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.prop__sec .muted { margin-top: 10px; }
.assess { list-style: none; margin: 0; padding: 0; }
.assess li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 15px; }
.assess .dot { margin-top: 4px; }
.prop__cta { padding: 16px 20px 20px; }
.sendbox { background: var(--sky); border-radius: 14px; padding: 12px; margin-top: 8px; }
.sendbox__b { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 6px 0; }
.sendbox__b .btn { padding: 0 4px; font-size: 14px; }
.sendbox .btn--block { margin-top: 8px; }

/* Odoo matching + attribution */
.match { border: 1.5px solid var(--yellow-line); background: #FFFBF1; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.card .match:last-child { margin-bottom: 0; }
.card .srow + .match { margin-top: 12px; }
.match__t { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--yellow-d); margin-bottom: 10px; }
.match__why { font-size: 14px; color: var(--green-d); margin-top: 10px; }
.match__warn { font-size: 14px; color: var(--red-d); margin-top: 4px; }
.srow { display: flex; gap: 8px; }
.srow .inp { flex: 1; min-width: 0; }
.srow .btn { flex: 0 0 auto; }
.sug { background: var(--sky); border-radius: 12px; padding: 12px; margin-bottom: 18px; font-size: 14px; }
.sug .btn { margin-top: 10px; }
.flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.flags p { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--ink2); margin: 0 !important; }
.yn { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.yn--y { background: var(--green-btn); color: #fff; }
.yn--n { background: #E6ECF2; color: #3F5266; }
.yn--p { background: var(--yellow-bg); color: var(--yellow-d); }
.yn--x { background: transparent; color: var(--muted); padding: 3px 0; }
.card > .btn--block { margin-top: 14px; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { position: relative; padding: 0 0 12px 20px; border-left: 2px solid var(--line); margin-left: 5px; }
.hist li:last-child { padding-bottom: 0; border-left-color: transparent; }
.hist li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.hist b { display: block; font-weight: 500; font-size: 15px; }
.hist span { font-size: 13px; color: var(--muted); }
.hist--sm b { font-size: 14px; }

/* dashboards */
.answer { background: var(--navy2); color: #fff; border-radius: var(--r); padding: 16px 18px; margin-bottom: 10px; }
.answer p { font-size: 17px; line-height: 1.35; }
.answer p + p { margin-top: 8px; color: #D7EAF8; font-size: 15px; }
.answer b { font-size: 22px; color: #fff; }
.answer span { color: #9FD0F5; font-weight: 700; }
.todo { margin: 0 0 8px; padding-left: 18px; }
.todo li { margin: 4px 0; font-size: 15px; color: var(--yellow-d); }
.todo a { color: var(--yellow-d); font-weight: 600; }
.dash__g { display: grid; gap: 12px; margin-bottom: 12px; }
.dash__g .card { margin-bottom: 0; }
@media (min-width: 900px) { .dash__g { grid-template-columns: 1fr 1fr; } }
.hb { margin-bottom: 12px; }
.hb:last-child { margin-bottom: 0; }
.hb__h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; margin-bottom: 5px; }
.hb__l { color: var(--ink2); font-weight: 500; min-width: 0; }
.hb__v { white-space: nowrap; }
.hb__v b { font-size: 16px; font-weight: 700; }
.hb__v em { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 8px; }
.hb__t { height: 10px; background: #EAF1F7; border-radius: 0 5px 5px 0; }
.hb__t i { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; }
.conv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.conv span { background: var(--sky); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink2); }
.conv b { display: block; font-size: 24px; color: var(--ink); letter-spacing: 0; }
.conv span:last-child { background: var(--blue); color: #D7EAF8; }
.conv span:last-child b { color: #fff; }
.perfs { display: grid; gap: 10px; }
@media (min-width: 720px) { .perfs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .perfs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.perf { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg); }
.perf h3 { margin: 0; font-size: 16px; color: var(--ink); }
.perf__hero { margin: 4px 0 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.perf__hero b { font-size: 28px; color: var(--blue-d); margin-right: 4px; }
.tblw { overflow-x: auto; margin: 0 -16px; padding: 0 16px; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td:first-child { white-space: normal; min-width: 120px; }
.tbl th:not(:first-child), .tbl td:not(:first-child) { text-align: right; }
.cbar { display: inline-block; width: 48px; height: 6px; background: #EAF1F7; border-radius: 0 3px 3px 0; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.cbar i { display: block; height: 100%; background: var(--blue); border-radius: 0 3px 3px 0; }
.tblw--rep { margin: 0 0 12px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); max-height: 70vh; overflow: auto; }
.tbl--rep { min-width: 1500px; font-size: 13px; }
.tbl--rep th, .tbl--rep td { text-align: left !important; padding: 9px 12px; }
.tbl--rep thead th { position: sticky; top: 0; background: #F7FAFD; z-index: 2; }
.tbl--rep th:first-child, .tbl--rep td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.tbl--rep thead th:first-child { z-index: 3; background: #F7FAFD; }
.tbl--rep tr.is-ver td { background: #FAFDFB; }
.tbl--rep tr.is-ver td:first-child { background: #F3FAF7; }
.tbl--rep td a { font-weight: 600; text-decoration: none; }
.tbl--rep td:first-child { white-space: nowrap; }
.filt { padding: 0; }
.filt summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 15px; list-style: none; }
.filt summary::-webkit-details-marker { display: none; }
.filt summary::after { content: "Show"; float: right; color: var(--blue); font-weight: 600; font-size: 14px; }
.filt[open] summary::after { content: "Hide"; }
.filt .filters, .filt .lnk { margin: 0 16px; }
.filt .lnk { margin-bottom: 8px; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 14px; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .filters { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sel { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sel span { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.sel select { min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 0 10px; font-size: 15px; width: 100%; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 500; font-size: 15px; z-index: 60; box-shadow: 0 8px 24px rgba(4, 29, 54, .25); width: max-content; max-width: calc(100% - 32px); text-align: center; }

/* small phones */
@media (max-width: 370px) {
  .main { padding-left: 12px; padding-right: 12px; }
  .chips--scroll, .tblw { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .kpi b { font-size: 22px; }
  .top__app { display: none; }
}

/* print / save as PDF: the customer view only */
@media print {
  .top, .nav, .bar, .noprint, .toast { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; max-width: none; }
  .prop { box-shadow: none; border: 0; border-radius: 0; }
  .prop__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
