/* JEEVZ app styles, ported from streams/jeevz/demo-app/demo.css. One file, no CDN, no external fonts. */
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;font:16px/1.4 var(--font,system-ui,Arial,sans-serif);background:#e8eaf0;color:var(--text,#1b2a4a)}
a{color:var(--ink,#3b6fd4)}
#app{max-width:430px;margin:0 auto;min-height:100vh;background:#fff;position:relative;padding-bottom:84px}
#app.plain{padding-bottom:0}
.top{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--brand,#1b2a4a);color:var(--on-brand,#fff);padding:10px 14px;position:sticky;top:0;z-index:5}
.mark{font-weight:800;letter-spacing:.12em;font-size:17px;color:var(--accent-text,#FFC93C);box-shadow:0 3px 0 var(--accent-line,transparent);text-decoration:none}
.firmname{font-size:13px;text-align:right}
.firmname a{color:inherit}
.phonelink{display:inline-block;margin-left:10px;vertical-align:middle}
.phonelink svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.8}
.card h3{margin:0 0 6px;font-size:16px}
.body{padding:14px}.body.flush{padding:0}
h1,h2{margin:.2em 0 .4em}h1{font-size:22px}h2{font-size:18px}
.note{font-size:13px;color:#555}.note.pad{padding:0 14px}
.crumb{display:inline-block;margin:0 0 6px;font-size:14px;text-decoration:none}
.err{color:#c0392b;font-weight:600}

/* inbox */
.listhead{display:flex;justify-content:space-between;align-items:baseline;font-size:22px;font-weight:700;padding:12px 14px 6px}
.listhead small{font-size:13px;font-weight:400;color:#6f6f6f}
.row{display:flex;gap:12px;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #eceef3;padding:11px 14px;font:inherit;color:inherit;text-decoration:none}
.av{flex:none;width:40px;height:40px;border-radius:50%;background:#8a93a8;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:15px}
.rb{flex:1;min-width:0}.r1,.r2{display:flex;align-items:center;gap:6px}.r1{justify-content:space-between}
.tm{font-size:12px;color:#6f6f6f}.unread .tm{color:#3b6fd4;font-weight:700}.unread b{font-weight:800}
.pv{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;color:#555}.unread .pv{color:var(--text,#1b2a4a)}
.udot{flex:none;width:10px;height:10px;border-radius:50%;background:#3b6fd4}
.needs{display:inline-block;background:var(--needs-bg,#1b2a4a);color:var(--needs-fg,#FFC93C);border-radius:99px;padding:1px 8px;font-size:11px;font-weight:700;margin-left:4px}
.chip{display:inline-block;border-radius:99px;padding:2px 9px;font-size:12px;margin:2px 3px 2px 0;background:#eef}
.chip.risk{background:#c0392b;color:#fff}.chip.money{background:#ffe9a8}.chip.doubt{background:#ddd}
.empty{padding:24px 14px;color:#6f6f6f;text-align:center}

/* timeline */
.tvhead{display:flex;align-items:center;gap:10px;background:#fff;border-bottom:1px solid #d6d9e2;padding:8px 14px}
.tvhead small{display:block;font-size:12px;color:#6f6f6f}
.bk{font-size:32px;color:#3b6fd4;line-height:1;padding:0 4px;text-decoration:none}
.tv{background:#f6f7fb;min-height:60vh}
.thread{display:flex;flex-direction:column;gap:8px;padding:10px 14px}
.msg{max-width:84%;padding:9px 12px;border-radius:18px;font-size:15px;white-space:pre-line}
.msg small{display:block;font-size:11px;opacity:.7;margin-top:3px}
.msg.out{align-self:flex-end;background:#3b6fd4;color:#fff;border-bottom-right-radius:4px}
.msg.in{align-self:flex-start;background:#e4e6ec;color:var(--text,#1b2a4a);border-bottom-left-radius:4px}
.evt{align-self:center;font-size:13px;color:#555;background:#eceef3;border-radius:99px;padding:4px 12px;display:flex;gap:6px;align-items:center}
.evt small{color:#6f6f6f}

/* cards, buttons, forms */
.card{border:1px solid #d6d9e2;border-radius:12px;padding:12px;margin:10px 0}
.btn,button.btn{display:inline-block;background:var(--brand,#1b2a4a);color:var(--on-brand,#fff);border:0;border-radius:10px;padding:12px 16px;font:inherit;font-weight:600;text-decoration:none;margin:4px 4px 4px 0;min-height:44px;cursor:pointer}
.btn.small{padding:8px 12px;font-size:14px;min-height:40px}
.btn.ghost,button.ghost{background:#fff;color:var(--ink,#1b2a4a);border:1px solid var(--brand,#1b2a4a);border-radius:10px;padding:12px 16px;font:inherit;min-height:44px}
.btn.block{display:block;width:100%;text-align:center}
.field{display:block;margin:8px 0;font-size:14px;color:#555}
input,select,textarea{display:block;width:100%;font:inherit;padding:10px;margin:4px 0;border:1px solid #d6d9e2;border-radius:8px;background:#fff;color:var(--text,#1b2a4a);min-height:44px}
input[type=checkbox]{display:inline-block;width:auto;min-height:0;margin:0 8px 0 0}
label.inl{display:flex;align-items:center;margin:8px 0}
.kv{margin:6px 0}.kv b{display:inline-block;min-width:84px}

/* pipeline */
.sumbar{display:flex;justify-content:space-between;background:#eef2ff;border-radius:10px;padding:10px 12px;font-size:15px;margin-bottom:6px}
#board{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;-webkit-overflow-scrolling:touch}
.col{flex:none;width:176px;scroll-snap-align:start;background:#f3f4f8;border-radius:10px;padding:8px}
.col h3{margin:0;font-size:14px;display:flex;justify-content:space-between}
.cnt{background:var(--brand,#1b2a4a);color:var(--on-brand,#fff);border-radius:99px;padding:0 8px;font-size:12px}
.cv{font-size:12px;color:#555;margin:2px 0 6px;min-height:16px}
.pc{display:block;background:#fff;border:1px solid #d6d9e2;border-radius:8px;padding:8px;margin:5px 0;font-size:13px;color:inherit;text-decoration:none}
.pc b{display:block}.pc span,.pc small{display:block;color:#666}.pc small{margin-top:3px;font-size:12px}
.pc .mv{display:flex;gap:4px;margin-top:6px}
.pc .mv form{margin:0}
.pc .mv button{min-width:42px;min-height:44px;padding:0;border:1px solid var(--brand,#1b2a4a);background:#fff;border-radius:8px;font-size:16px;color:var(--ink,#1b2a4a)}
.none{font-size:12px;color:#6f6f6f;padding:4px 0}

/* quotes */
table{width:100%;border-collapse:collapse;font-size:14px}td,th{padding:6px 2px;border-bottom:1px solid #eee;text-align:left}.r{text-align:right}
td form{margin:0}td button{min-width:44px;min-height:44px;border:0;background:#eceef3;border-radius:8px;color:var(--text,#1b2a4a);font:inherit}
.qhead,.tot{display:flex;justify-content:space-between;padding:4px 0}
.big{font-weight:700;font-size:18px}
.qrow{display:flex;justify-content:space-between;align-items:center;text-decoration:none;color:inherit}

/* bottom tab bar */
#tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;z-index:6;display:flex;background:var(--brand,#1b2a4a);padding:6px 0 8px}
#tabs a{flex:1;position:relative;color:var(--on-brand,#fff);font-size:12px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 2px;text-decoration:none;min-height:44px}
#tabs a.on{color:var(--accent-text,#FFC93C);font-weight:700;box-shadow:inset 0 3px 0 var(--accent-line,transparent)}
#tabs svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#tabs em{position:absolute;top:-2px;left:calc(50% + 6px);min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:#c0392b;color:#fff;font-style:normal;font-size:11px;line-height:17px;font-weight:700;text-align:center}

/* print */
.paper{padding:16px}
@media print{#tabs,.top,.noprint{display:none}body{background:#fff}#app{max-width:none;padding:0}}

/* S10 set-up page */
.jznum{font-size:18px;letter-spacing:.02em}
code.dial{font:600 15px/1.3 ui-monospace,Menlo,Consolas,monospace;background:#f1f3f8;border-radius:6px;padding:2px 6px;word-break:break-all}
.guide h3{font-size:17px;margin:16px 0 6px}.guide h4{font-size:15px;margin:14px 0 4px}.guide li{margin:4px 0}
.result{border-radius:8px;padding:10px;font-weight:600;background:#fff6dd}
.result.passed{background:#e3f6e8}.result.waiting{background:#eef2fb;font-weight:400}
/* FS-9 brand */
.mark img{display:block;max-height:28px;max-width:140px}
.pwr{font-size:12px;color:#555;text-align:center;padding:8px 14px}
.qbrand{display:flex;align-items:center;gap:10px;border-bottom:4px solid var(--brand,#1b2a4a);padding-bottom:8px;margin-bottom:10px}
.qbrand img{max-height:48px;max-width:160px}
@media print{.qbrand,.qbrand *{-webkit-print-color-adjust:exact;print-color-adjust:exact}.pwr{display:none}}
.top .settings{color:var(--on-brand,#3b6fd4)}

/* v1 polish: assistant and training pages */
.phead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.phead .btn{margin:0}
.sh{display:flex;align-items:center;gap:8px;margin-top:22px}
.card h2{margin-top:0}.card.flush{padding:0}
.card.risk{border-color:#c0392b;border-left-width:4px}
.alert{background:#fdecea;color:#8e2418;border-radius:10px;padding:10px 12px;margin:8px 0}
.quote{white-space:pre-line;margin:6px 0;padding:8px 10px;background:#f6f7fb;border-left:3px solid var(--accent-text,#FFC93C);border-radius:6px;font-size:15px}
.acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.acts .btn{margin:0}
.btn.danger{background:#c0392b;color:#fff}
.seg{display:flex;background:#eceef3;border-radius:12px;padding:4px;gap:4px;margin:4px 0 6px}
.seg button{flex:1;min-height:44px;border:0;border-radius:9px;background:transparent;font:inherit;font-weight:600;color:var(--text,#1b2a4a);cursor:pointer}
.seg button.on{background:var(--brand,#1b2a4a);color:var(--on-brand,#fff);box-shadow:0 1px 3px rgba(0,0,0,.2)}
.sumbar span{font-size:13px}
.msg.flat{max-width:none;margin:6px 0;border-bottom-right-radius:18px}
.trow{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #eceef3;margin:0}
.trow:last-child{border-bottom:0}
.trow .tl{flex:1;min-width:0}.trow .tl b{display:block;font-size:15px}.trow .tl small{color:#666;font-size:12px}
.trow .btn{margin:0;min-width:84px}
.bar{display:block;height:6px;background:#eceef3;border-radius:99px;overflow:hidden;margin-top:4px}
.bar i{display:block;height:100%;max-width:100%;background:var(--accent-text,#FFC93C)}
.faq{border-top:1px solid #eceef3;padding-top:6px;margin-top:6px}

/* v2 look (Guy, 24 Oct): clean and light with a trade-premium finish. Grey canvas, white cards, soft shadows,
   navy for action, yellow only as an accent. Overrides the rules above; brand colours still come from --brand etc. */
:root{--canvas:#f4f5f8;--line:#e6e8ee;--muted:#6b7385;--soft:#eef0f5;--r:16px;--shadow:0 1px 2px rgba(16,24,40,.05),0 2px 8px rgba(16,24,40,.06)}
body{font-family:var(--font,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif);background:#e9ebf0;-webkit-font-smoothing:antialiased}
#app{background:var(--canvas);padding-bottom:96px}
.top{padding:14px 18px;box-shadow:0 1px 0 rgba(0,0,0,.08)}
.top .settings{font-size:14px;text-decoration:none;opacity:.85}
.body{padding:18px 16px}
h1{font-size:28px;letter-spacing:-.02em;font-weight:800}
h2{font-size:19px;letter-spacing:-.01em;font-weight:700}
.note,.field{color:var(--muted)}
.sh{margin:26px 2px 10px}
.crumb{color:var(--muted);font-weight:600;margin-bottom:10px}

/* cards */
.card{background:#fff;border:0;border-radius:var(--r);padding:16px;margin:12px 0;box-shadow:var(--shadow)}
.card.risk{border:0;box-shadow:inset 4px 0 0 #d64535,var(--shadow)}
.empty{background:#fff;border-radius:var(--r);box-shadow:var(--shadow);margin:8px 0}
.quote{background:var(--soft);border-left:0;border-radius:12px;padding:10px 12px;color:var(--text,#1b2a4a)}
.alert{border-radius:12px}

/* buttons and inputs */
.btn,button.btn{border-radius:12px;font-weight:650;letter-spacing:.01em;box-shadow:0 1px 2px rgba(16,24,40,.12);transition:transform .08s,filter .15s}
.btn:active{transform:scale(.98)}.btn:hover{filter:brightness(1.08)}
.btn.ghost,button.ghost{background:var(--soft);color:var(--text,#1b2a4a);border:0;box-shadow:none;border-radius:12px}
.btn.danger{background:#d64535}
input,select,textarea{background:var(--soft);border:1px solid transparent;border-radius:12px;padding:12px 14px;transition:border-color .15s,background .15s}
input:focus,select:focus,textarea:focus{outline:0;background:#fff;border-color:var(--brand,#1b2a4a);box-shadow:0 0 0 3px rgba(27,42,74,.12)}
.field{font-size:13px;font-weight:600;margin:12px 0}
.seg{background:var(--soft);border-radius:14px}
.seg button{border-radius:11px}
.seg button.on{box-shadow:0 2px 6px rgba(16,24,40,.18)}

/* inbox: one white grouped list on the grey canvas */
.listhead{font-size:28px;font-weight:800;letter-spacing:-.02em;padding:20px 18px 10px}
.listhead small{font-size:13px;font-weight:600;color:var(--muted)}
.listhead+.row{border-top-left-radius:var(--r);border-top-right-radius:var(--r)}
.row{background:#fff;border-bottom:1px solid var(--line);padding:13px 16px;margin:0 12px;width:auto;transition:background .12s}
.row:active{background:var(--soft)}
.row:has(+ :not(.row)),.row:last-of-type{border-bottom:0;border-bottom-left-radius:var(--r);border-bottom-right-radius:var(--r)}
.av{background:var(--soft);color:var(--text,#1b2a4a);font-weight:800;width:42px;height:42px}
.unread .av{background:var(--brand,#1b2a4a);color:var(--accent-text,#FFC93C)}
.unread .tm{color:var(--text,#1b2a4a)}
.udot{background:var(--accent-text,#FFC93C);box-shadow:0 0 0 2px #fff}
.needs{background:#fff4d1;color:#7a5600;font-weight:700;padding:2px 9px}
.pv{color:var(--muted)}

/* timeline */
.tvhead{border-bottom:1px solid var(--line);padding:12px 16px}
.tv{background:var(--canvas)}
.msg{border-radius:20px;padding:10px 14px;box-shadow:0 1px 1px rgba(16,24,40,.05)}
.msg.out{background:var(--brand,#1b2a4a);color:var(--on-brand,#fff)}
.msg.in{background:#fff;color:var(--text,#1b2a4a)}
.evt{background:#fff;box-shadow:var(--shadow)}

/* pipeline */
.sumbar{background:#fff;border-radius:var(--r);box-shadow:var(--shadow);padding:14px 16px}
.col{background:transparent;padding:4px 2px;width:200px}
.col h3{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:0 4px}
.cnt{background:var(--soft);color:var(--text,#1b2a4a);font-weight:700}
.cv{padding:0 4px}
.pc{border:0;border-radius:14px;padding:12px;box-shadow:var(--shadow);margin:8px 0}
.pc b{font-size:14px}
.pc .mv button{border:0;background:var(--soft);border-radius:10px;min-width:44px}

/* quotes */
.qrow{font-size:15px}

/* bottom tab bar: white, frosted, navy when active with a yellow pill */
#tabs{background:rgba(255,255,255,.92);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px);border-top:1px solid var(--line);padding:6px 6px calc(8px + env(safe-area-inset-bottom))}
#tabs a{color:var(--muted);font-size:11px;font-weight:600;border-radius:12px}
#tabs a.on{color:var(--brand,#1b2a4a);box-shadow:none}
#tabs a.on svg{background:var(--accent,#FFC93C);border-radius:99px;padding:3px 14px;width:52px;height:28px;box-sizing:border-box}
#tabs em{top:0;left:calc(50% + 8px);box-shadow:0 0 0 2px #fff}

/* training rows */
.trow{border-bottom:1px solid var(--line);padding:14px 16px}
.bar{background:var(--soft);height:6px}
.bar i{background:linear-gradient(90deg,var(--accent,#FFC93C),#f5a623)}
.pwr{color:var(--muted)}
@media print{#app{background:#fff}.card{box-shadow:none;border:1px solid #ddd}}
#tabs svg{width:52px;height:28px;padding:3px 14px;box-sizing:border-box;border-radius:99px}
.phead h1{white-space:nowrap;font-size:26px}.phead .btn.small{white-space:nowrap;padding:8px 12px;font-size:13px;min-height:36px}

/* v2 pipeline: stat tiles, stage chips, one wide column at a time with the next one peeking */
.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:4px 0 14px}
.stat{background:#fff;border-radius:var(--r);box-shadow:var(--shadow);padding:14px 16px}
.stat b{display:block;font-size:24px;font-weight:800;letter-spacing:-.02em}
.stat small{color:var(--muted);font-size:13px;font-weight:600}
.st-new{--st:#3b6fd4}.st-contacted{--st:#e0a100}.st-quote_sent{--st:#7a5af5}.st-won{--st:#2f8f6b}.st-lost{--st:#9aa1b2}
.stagebar{display:flex;gap:6px;overflow-x:auto;margin:0 -16px 12px;padding:0 16px 4px;scrollbar-width:none}
.stagebar::-webkit-scrollbar{display:none}
.stagebar a{flex:none;display:inline-flex;align-items:center;gap:6px;background:#fff;border-radius:99px;padding:7px 12px;font-size:13px;font-weight:600;color:var(--text,#1b2a4a);text-decoration:none;box-shadow:var(--shadow)}
.stagebar i,.col h3 i,.steps i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--st)}
.stagebar .cnt{padding:0 7px;font-size:11px}
#board{gap:12px;margin:0 -16px;padding:0 16px 8px;scroll-padding:0 16px}
.col{width:78%;max-width:320px;padding:0}
.col h3{display:flex;justify-content:space-between;align-items:baseline;text-transform:none;letter-spacing:0;font-size:15px;color:var(--text,#1b2a4a);padding:2px 4px 6px}
.col h3 span{display:inline-flex;align-items:center;gap:8px}
.col h3 small{font-size:13px;color:var(--muted);font-weight:700}
.pc{box-shadow:inset 3px 0 0 var(--st),var(--shadow);padding:14px 14px 12px}
.pcl{display:block;color:inherit;text-decoration:none}
.pc b{font-size:15px;line-height:1.3}
.who{display:flex !important;align-items:center;gap:8px;margin-top:6px;color:var(--muted)}
.av.xs{width:22px;height:22px;font-size:11px}
.due{display:inline-block !important;margin-top:8px !important;background:var(--soft);border-radius:99px;padding:3px 10px;font-weight:600;color:var(--text,#1b2a4a) !important}
.due.late{background:#fdecea;color:#a52a1c !important}
.pc .mv{gap:6px;margin-top:12px}
.pc .mv .grow{flex:1}
.pc .mv button{min-height:40px;font-size:15px}
.pc .mv button.fwd{width:100%;background:var(--brand,#1b2a4a);color:var(--on-brand,#fff);font-size:14px;font-weight:650}
.none{background:#fff;border:1px dashed var(--line);border-radius:14px;padding:16px;text-align:center;color:var(--muted);font-size:13px;box-shadow:none}

/* v2 job card */
.steps{display:flex;list-style:none;margin:6px 0 14px;padding:0;gap:4px}
.steps li{flex:1;display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:600;color:var(--muted)}
.steps li i{width:100%;height:5px;border-radius:99px;background:var(--line)}
.steps li.done i,.steps li.now i{background:var(--st)}
.steps li.now{color:var(--text,#1b2a4a)}
.who.big{margin:0 0 10px;color:inherit}
.who.big>span:nth-child(2){flex:1;min-width:0}.who.big>span a{color:inherit;text-decoration:none}.who.big small{display:block;color:var(--muted);font-size:13px}
.who.big .btn{margin:0}
.kv{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:10px;margin:10px 0 0}
.kv b{min-width:0;color:var(--muted);font-weight:600;font-size:14px}

/* v2 quotes */
.group{background:#fff;border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden;margin:6px 0 16px}
.group .row{margin:0;border-radius:0 !important;align-items:center}
.group .row:last-child{border-bottom:0}
.qrow .rb b{display:block}.qlabel{color:var(--muted);font-size:13px}
.qrow .amt{font-size:16px;font-variant-numeric:tabular-nums}
.fold summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.fold summary::-webkit-details-marker{display:none}
.fold summary small{color:var(--muted);font-size:13px}
.fold[open] summary{margin-bottom:8px}
.paper .qhead{align-items:center;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:6px}
.pill{background:var(--soft);border-radius:99px;padding:3px 10px;font-size:13px;font-weight:700}
.lines{margin:6px 0}
.line{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.ld{flex:1;min-width:0}.ld b{display:block;font-weight:600}.ld small{color:var(--muted);font-size:13px}
.lt{font-weight:700;font-variant-numeric:tabular-nums}
.line form{margin:0}
.x{width:32px;height:32px;min-height:32px;border:0;border-radius:50%;background:var(--soft);color:var(--muted);font-size:18px;line-height:1;cursor:pointer}
.totals{padding-top:6px}
.tot{font-variant-numeric:tabular-nums;color:var(--muted)}
.tot.big{color:var(--text,#1b2a4a);font-size:22px;font-weight:800;border-top:2px solid var(--text,#1b2a4a);margin-top:6px;padding-top:10px}
.vatrow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;background:var(--soft);border-radius:12px;padding:4px 4px 4px 12px}
.vatrow .inl{margin:0}.vatrow .btn{margin:0;background:#fff}
.addgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.addgrid .wide{grid-column:1/-1}
.or{text-align:center;color:var(--muted);font-size:13px;margin:4px 0}
.pc .av.xs{display:inline-flex;color:var(--text,#1b2a4a)}

/* v3 Apple look (Guy, 24 Oct): white first, three blues. Dark blue for titles, totals and the logo; bright blue for
   actions, links and the active tab; pale blue for highlights, chips and secondary buttons. Flat, hairlines, no heavy bars.
   The client's own brand colours stay on their logo, printed quotes and website. */
:root{--b1:#0b2e6b;--b2:#1e6bff;--b3:#eaf2ff;--b2ink:#1c63ec;--ink:#0b1220;--label2:rgba(60,60,67,.74);--label3:rgba(60,60,67,.3);--hair:#e8ecf2;--field:#f4f6fa;--red:#e0281e;--green:#34c759}
body{font:17px/1.35 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",system-ui,sans-serif;letter-spacing:-.01em;background:#eef1f6;color:var(--ink)}
#app{background:#fff}
a{color:var(--b2)}
.top{background:rgba(255,255,255,.86);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);color:var(--ink);box-shadow:0 .5px 0 var(--hair);padding:10px 16px}
.mark{background:var(--b1);border-radius:10px;padding:5px 10px;box-shadow:none;color:#fff;font-size:14px}
.mark img{max-height:22px}
/* Printed quote and invoice: the logo sits on the same dark chip as the app header, so a light logo stays visible. */
.qbrand img{background:var(--b1);border-radius:10px;padding:6px 10px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.firmname{color:var(--label2)}
.top .settings{color:var(--b2);opacity:1;font-size:16px}
.body{padding:8px 16px 24px}
h1,.listhead{font-size:34px;line-height:1.2;font-weight:700;letter-spacing:.01em;color:var(--ink)}
h2{font-size:20px;font-weight:600;color:var(--ink)}
.note,.field{color:var(--label2)}
.crumb{color:var(--b2);font-weight:400;font-size:17px}
.sh{font-size:20px}

/* lists: white rows, inset hairlines */
.listhead{padding:14px 16px 6px}
.listhead small{color:var(--label2);font-weight:400;font-size:15px}
.row{margin:0;width:100%;border-radius:0 !important;background:#fff;border-bottom:0;padding:12px 16px;box-shadow:inset 0 -.5px 0 0 var(--hair)}
.row:active{background:var(--b3)}
.av{background:var(--b3);color:var(--b1);font-weight:600;font-size:16px}
.unread .av{background:var(--b2);color:#fff}
.r1 b,.unread b{font-weight:600}
.tm,.unread .tm{color:var(--label2);font-weight:400;font-size:14px}
.unread .tm{color:var(--b2)}
.pv{color:var(--label2);font-size:15px}.unread .pv{color:var(--label2)}
.udot{background:var(--b2);box-shadow:none}
.needs{background:var(--b3);color:var(--b1);font-weight:600;border-radius:6px}
.chip{background:var(--b3);color:var(--b1);border-radius:6px}
.chip.risk{background:#ffecea;color:#c4231a}.chip.money{background:#fff3e0;color:#ad5700}

/* cards: white with a hairline border, no shadow */
.card,.empty,.stat,.sumbar,.group,.pc,.evt{background:#fff;border:1px solid var(--hair);border-radius:14px;box-shadow:none}
.card.risk{border-color:#ffc9c4;box-shadow:none}
.quote{background:var(--field);border-radius:12px}
.alert{background:#ffecea;color:#c4231a}

/* buttons, fields, switches */
.btn,button.btn{background:var(--b2);color:#fff;border-radius:12px;font-size:17px;font-weight:600;box-shadow:none}
.btn.small{font-size:15px;border-radius:10px}
.btn:hover{filter:brightness(1.05)}
.btn.ghost,button.ghost{background:var(--b3);color:var(--b2ink)}
.btn.danger{background:var(--red)}
input,select,textarea{background:var(--field);border:1px solid transparent;border-radius:12px;color:var(--ink)}
input:focus,select:focus,textarea:focus{background:#fff;border-color:var(--b2);box-shadow:0 0 0 3px rgba(30,107,255,.15)}
.field{font-weight:500}
.seg{background:var(--field);border-radius:10px;padding:2px;gap:0}
.seg button{border-radius:8px;font-weight:500;color:var(--ink);min-height:40px}
.seg button.on{background:#fff;color:var(--b1);font-weight:600;box-shadow:0 3px 8px rgba(0,0,0,.12),0 3px 1px rgba(0,0,0,.04)}
.cnt{background:var(--b3);color:var(--b1)}
.bar{background:var(--field)}.bar i{background:var(--b2)}

/* messages */
.tv{background:#fff}
.tvhead{background:rgba(255,255,255,.9);border-bottom:.5px solid var(--hair)}
.bk{color:var(--b2)}
.msg{font-size:17px;border-radius:18px;box-shadow:none}
.msg.out{background:var(--b2);color:#fff}
.msg.in{background:#f0f2f6;color:var(--ink)}
.evt{color:var(--label2);border-radius:99px}

/* pipeline: the three blues mark the open stages */
.stat{padding:14px 16px}
.stats .stat:first-child{background:var(--b1);border-color:var(--b1)}
.stats .stat:first-child b{color:#fff}.stats .stat:first-child small{color:rgba(255,255,255,.75)}
.stat b{font-size:28px;font-weight:700;color:var(--b1)}.stat small{color:var(--label2);font-weight:400}
.st-new{--st:#7fb0ff}.st-contacted{--st:var(--b2)}.st-quote_sent{--st:var(--b1)}.st-won{--st:var(--green)}.st-lost{--st:#aeb4c0}
.stagebar a{background:var(--field);box-shadow:none;font-weight:500;color:var(--ink)}
.col h3{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.02em;color:var(--label2)}
.col h3 small{color:var(--b1)}
.pc{box-shadow:none}
.due{background:var(--b3);color:var(--b1) !important}
.due.late{background:#ffecea;color:#c4231a !important}
.pc .mv button{background:var(--field);color:var(--ink)}
.pc .mv button.fwd{background:var(--b3);color:var(--b2ink)}
.none{border:1px dashed var(--hair)}
.steps li i{background:var(--hair)}

/* quotes */
.group{overflow:hidden}
.group .row{box-shadow:inset 0 -.5px 0 0 var(--hair)}
.qrow .amt{color:var(--b1)}
.pill{background:var(--b3);color:var(--b1)}
.tot.big{color:var(--b1);border-top:1px solid var(--hair)}
.vatrow{background:var(--field)}
.x{background:var(--field)}

/* training rows and tab bar */
.trow{border-bottom:.5px solid var(--hair)}
/* 95% white, so the tab labels keep 4.6:1 over anything that scrolls behind the bar */
#tabs{background:rgba(255,255,255,.95);border-top:.5px solid var(--hair)}
#tabs a{color:#686c75;font-size:10px;font-weight:500}
#tabs a.on{color:var(--b2ink)}
#tabs a.on svg{background:none;padding:0;width:24px;height:24px}
#tabs svg{width:24px;height:24px;padding:0}
#tabs em{background:var(--red)}
.pwr{color:var(--label2)}

/* v3 login */
.login{min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:40px 24px 60px;background:linear-gradient(180deg,#fff 0%,#fff 55%,var(--b3) 100%)}
.lhead{text-align:center;margin-bottom:28px}
.licon{display:inline-flex;align-items:center;justify-content:center;width:76px;height:76px;border-radius:20px;background:linear-gradient(150deg,var(--b2),var(--b1));box-shadow:0 10px 24px rgba(11,46,107,.25)}
.licon svg{width:40px;height:40px;fill:#fff}
.lhead h1{margin:18px 0 6px;font-size:34px;letter-spacing:.02em}
.lhead p{margin:0;color:var(--label2);font-size:16px}
.lgroup{background:var(--field);border-radius:14px;overflow:hidden;margin-bottom:16px}
.lgroup label{display:block;padding:10px 16px 6px;border-bottom:.5px solid var(--hair)}
.lgroup label:last-child{border-bottom:0}
.lgroup span{display:block;font-size:12px;font-weight:600;color:var(--label2);text-transform:uppercase;letter-spacing:.03em}
.lgroup input{background:transparent;border:0;padding:4px 0 6px;min-height:36px;margin:0;font-size:17px;box-shadow:none !important}
.lgroup:focus-within{box-shadow:0 0 0 3px rgba(30,107,255,.15)}
.lform .btn{margin:0;padding:15px}
.lform .errorlist{list-style:none;margin:0 0 12px;padding:10px 14px;background:#ffecea;color:#c4231a;border-radius:12px;font-size:15px}
.lfoot{text-align:center;color:var(--label2);font-size:13px;margin-top:22px}

/* FS-17 assistant screens: same look as the inbox and the clickable demo */
.pad{padding:14px}
.sec{border:1px solid #d6d9e2;border-radius:12px;padding:12px;margin:12px 0;background:#fff}
.sec h2{margin:0 0 8px;font-size:17px}
.sec .note{margin:0 0 8px}
.back{display:inline-block;margin:0 0 6px;font-size:14px;text-decoration:none}
.alert{background:#fde8e6;border-left:4px solid #c0392b;padding:10px;margin:8px 0;font-weight:600;border-radius:0 8px 8px 0}
.seg{display:flex;border:2px solid var(--brand,#1b2a4a);border-radius:12px;overflow:hidden;margin:8px 0}
.seg button{flex:1;border:0;border-right:1px solid var(--brand,#1b2a4a);background:#fff;color:var(--ink,#1b2a4a);font:inherit;font-size:14px;font-weight:600;padding:8px 4px;min-height:48px;cursor:pointer;line-height:1.2}
.seg button:last-child{border-right:0}
.seg button small{display:block;font-weight:400;font-size:11px}
.seg button.on{background:var(--brand,#1b2a4a);color:var(--on-brand,#fff)}
.btn.danger,button.danger{background:#c0392b;color:#fff;border:0;border-radius:10px;padding:12px 16px;font:inherit;font-weight:700;min-height:48px;width:100%;cursor:pointer;margin:6px 0}
.btn.quiet,button.quiet{background:none;border:0;color:#555;text-decoration:underline;font:inherit;font-size:14px;padding:10px 8px;min-height:44px;cursor:pointer}
.acts{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:6px}
.acts form{margin:0}
.acts .btn,.acts button{margin:0}
.need{border:1px solid #d6d9e2;border-radius:12px;padding:10px 12px;margin:8px 0;background:#fff}
.need.risk{border-left:4px solid #c0392b}.need.money{border-left:4px solid #d9a400}
.need b{display:block}.need p{margin:4px 0;font-size:14px}
.danger-line{color:#c0392b;font-weight:700;font-size:14px;margin:4px 0}
.theirs{font-size:14px;color:#333;margin:4px 0}
textarea.draftbox{background:#f6f7fb;border-left:4px solid var(--brand,#1b2a4a);min-height:110px}
.trow{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eceef3}
.trow:last-child{border-bottom:0}
.trow .tl{flex:1;min-width:0;font-size:14px}.trow .tl b{display:block}
.trow .tl small{color:#555}
.prog{height:10px;border-radius:99px;background:#e4e6ec;overflow:hidden;margin:5px 0 2px}.prog i{display:block;height:100%;background:#2f8f6b}
.chip.ok{background:#d6f0de;color:#14532d}
details.allow{flex:none}
details.allow summary{list-style:none;cursor:pointer}details.allow summary::-webkit-details-marker{display:none}
details.allow .confirm{margin-top:8px;border:2px solid var(--brand,#1b2a4a);border-radius:12px;padding:10px;background:#fff;font-size:14px}
.trow:has(details[open]){flex-wrap:wrap}.trow details[open].allow{flex:1 1 100%}
.leadc{background:#f6f7fb;border:1px solid #d6d9e2;border-radius:12px;padding:10px 12px;margin:8px 0;font-size:14px}
.leadc small{display:block;color:#666}.leadc b{display:block;font-size:16px;margin:2px 0}
.leadc .kv{display:flex;gap:10px}.leadc .kv b{display:block;min-width:72px;font-size:14px;margin:0}
.sentrow{border-bottom:1px solid #eceef3;padding:8px 0;font-size:14px}.sentrow:last-child{border-bottom:0}
.sentrow small{display:block;color:#666}
.sentrow .msg{max-width:100%;margin:6px 0;white-space:pre-line}
.fieldrow{display:block;margin:10px 0;font-size:14px;color:#555}
.fieldrow input,.fieldrow textarea,.fieldrow select{color:var(--text,#1b2a4a)}
.zero summary{cursor:pointer;margin-top:8px;display:inline-block}

/* v3 look over the FS-17 assistant classes (merged 24 Oct): white cards, hairlines, three blues */
.pad{padding:8px 16px 24px}
.sec{border:1px solid var(--hair);border-radius:14px;padding:16px;background:#fff}
.sec h2{font-size:20px;font-weight:600}
.back{color:var(--b2);font-size:17px}
.alert{background:#ffecea;color:#c4231a;border-left:0;border-radius:12px;font-weight:500}
.seg{border:0;background:var(--field);border-radius:10px;padding:2px;gap:0}
.seg button{border:0;border-radius:8px;background:transparent;color:var(--ink);font-weight:500;min-height:48px}
.seg button small{color:var(--label2)}
.seg button.on{background:#fff;color:var(--b1);font-weight:600;box-shadow:0 3px 8px rgba(0,0,0,.12),0 3px 1px rgba(0,0,0,.04)}
.seg button.on small{color:var(--b2)}
.btn.danger,button.danger{background:var(--red);border-radius:12px;font-weight:600}
.btn.quiet,button.quiet{color:var(--b2);text-decoration:none}
.need{border:1px solid var(--hair);border-radius:14px;padding:14px 16px}
.need.risk{border-color:#ffc9c4;border-left:1px solid #ffc9c4;background:#fff9f8}
.need.money{border-color:#ffe2bf;border-left:1px solid #ffe2bf;background:#fffbf5}
.need b{font-weight:600}
.danger-line{color:#c4231a;font-weight:600}
.theirs{background:var(--field);border-radius:12px;padding:10px 12px;color:var(--ink);white-space:pre-line}
textarea.draftbox{background:var(--field);border-left:0;border-radius:12px}
.trow{border-bottom:.5px solid var(--hair)}
.trow .tl small{color:var(--label2)}
.prog{background:var(--field);height:6px}.prog i{background:var(--b2)}
.chip.ok{background:var(--b3);color:var(--b1)}
details.allow .confirm{border:1px solid var(--hair);border-radius:14px}
.leadc{background:var(--field);border:0;border-radius:14px}
.sentrow{border-bottom:.5px solid var(--hair)}
.sentrow .msg{border-radius:18px}
.zero summary{color:var(--b2)}
/* Inbox view tabs (Checkatrade view) */
.viewtabs{display:flex;gap:8px;padding:6px 14px 8px}
.viewtabs a{flex:1;text-align:center;text-decoration:none;border:1px solid #c9cedb;border-radius:99px;padding:6px 10px;font-size:14px;color:var(--text,#1b2a4a);background:#fff}
.viewtabs a.on{background:var(--brand,#1b2a4a);color:var(--on-brand,#fff);border-color:var(--brand,#1b2a4a);font-weight:700}
.viewtabs .cnt{font-size:12px;opacity:.85}

/* OS-1 invoices: Money screens, v3 look */
.sums{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:8px 0 14px}
.sum{background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:10px 8px;display:flex;flex-direction:column;gap:2px;min-width:0}
.sum small{color:var(--muted);font-size:12px}.sum b{font-size:18px;font-variant-numeric:tabular-nums;color:var(--text,#1b2a4a)}
.sum.late b{color:#c4231a}
.rt{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.pill.st-draft{background:var(--soft);color:#656c7d}.pill.st-ready{background:#e6efff;color:#1b4fb8}.pill.st-sent{background:#dbe9ff;color:#1b4fb8}
.pill.st-paid{background:#e3f5ec;color:#1f7a55}.pill.st-void{background:#eee;color:#696969;text-decoration:line-through}
.mailbox textarea,#mail-body{width:100%;font:inherit}
.dayhead{font-size:15px;margin:14px 16px 4px}.dayhead.today::after{content:" - today";font-weight:400;font-size:13px}
.clash{color:#d64535;font-weight:600}
/* WP-4c team diary: the person picker, the person on each row and the team-today counts. */
.pfilter{display:flex;align-items:flex-end;gap:8px;margin:4px 0 8px}.pfilter .field{flex:1;margin:0}
.pfilter select,.pfilter .btn{height:44px;min-height:44px;margin:0;box-sizing:border-box}.pfilter select{width:100%}.pfilter .btn{flex:none}
.qrow .who{display:block;color:var(--muted,#555)}
.tcount{background:#fff;border-radius:var(--r,12px);box-shadow:var(--shadow,none);margin:8px 0 16px;font-size:15px}
.tcount th,.tcount td{padding:10px 12px}.tcount td{text-align:right;width:25%}.tcount thead th:not(:first-child){text-align:right}
.tcount td a{display:inline-block;min-width:44px;min-height:44px;line-height:44px;text-align:center;font-weight:700}
.tcount tfoot th,.tcount tfoot td{border-bottom:0}
.row.qrow .rb{flex:1;min-width:0}.row.qrow .rb small{display:block;margin-top:2px}

/* G5: preview gets its own line, so the chips never squeeze the job title down to "Ne..." */
.rb .r2{flex-wrap:wrap;row-gap:5px}.rb .r2 .pv{flex:1 0 100%}
/* JOB-1 to JOB-5: the work side of a job card */
.flash{padding:8px 14px 0}.alert.info,.alert.success{background:#e8eefc;color:#1e3a8a}
.work h2{font-size:18px;margin:18px 0 6px}.work .row2{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.work .row2 b{font-variant-numeric:tabular-nums;white-space:nowrap}.work ul{list-style:none;padding:0;margin:0}
.work li{padding:8px 0;border-bottom:1px solid #e3e7ee}.work .sub{font-size:14px;color:#475569}
.work form.inline{display:inline}.work details summary{min-height:44px;display:flex;align-items:center;font-weight:600;cursor:pointer}
.work .grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.chip.warn{background:#fef3c7;color:#8a4b00}
.sheet table{width:100%;border-collapse:collapse}.sheet td,.sheet th{padding:6px 4px;border-bottom:1px solid #dce3ed;text-align:left}

/* D8: a clear keyboard focus ring on every control (WCAG 2.2 focus appearance). Mouse and touch taps show no ring. */
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible,
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #1e6bff;outline-offset:2px}
#tabs a:focus-visible{outline-offset:-3px}
/* STORE-2: inside the iPhone app (native.js adds .in-app) */
.linkbtn{background:none;border:0;padding:8px 0;font:inherit;font-size:15px;color:var(--b2ink,#0a58ca);text-decoration:underline;cursor:pointer;min-height:44px}
/* STORE-2: the login page wears the Jeevz brand (streams/jeevz/brand/tokens.css): it is the same for every firm,
   so it shows JEEVZ, not a firm's colours. static/jeevz/mark.svg is a copy of streams/jeevz/brand/mark.svg. */
.login{background:#f4f5f2;color:#17211d}
.lmark{display:block;margin:0 auto;width:76px;height:76px;filter:drop-shadow(0 10px 22px rgba(48,109,85,.22))}
.lword{text-transform:none;font-weight:800;letter-spacing:-.02em}
.lword span{color:#306d55}
.login .btn.lgo{background:linear-gradient(135deg,#7cf7d4,#c6ff5e);color:#06100c;font-weight:700;border-radius:999px}
.login .lfoot a{color:#306d55}
/* STORE-2: inside the iPhone app (and a home-screen install) the page runs under the status bar; keep the top bar below it.
   In a normal browser env() is 0, so nothing changes there. */
.top{padding-top:calc(10px + env(safe-area-inset-top))}
