/* Graftly shared styles. Layout: a single phone-width working column per step page; the build board is a wider list. */
:root{
  --bg:#eef1f4; --surface:#ffffff; --sunk:#f5f7f9; --ink:#14212d; --muted:#586878; --line:#d9e0e7;
  --navy:#132a3e; --on-navy:#eaf1f7; --copper:#a9561c; --on-copper:#ffffff; --copper-soft:#f7ebe1;
  --amber:#8a5a06; --amber-bg:#fbf0d9; --green:#17683f; --green-bg:#e2f3ea; --red:#a3271b; --red-bg:#fbe7e4; --blue:#1d5a9e; --blue-bg:#e6eef8;
  --f-display:"Barlow Semi Condensed","Arial Narrow",Arial,sans-serif; --f-body:"Barlow",system-ui,-apple-system,"Segoe UI",sans-serif;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0c141b; --surface:#141f29; --sunk:#101922; --ink:#e4ebf1; --muted:#95a4b2; --line:#26343f;
  --navy:#0a1620; --on-navy:#e4ebf1; --copper:#e08b52; --on-copper:#1b0e05; --copper-soft:#2b1c12;
  --amber:#f0c060; --amber-bg:#2c220d; --green:#6fd3a0; --green-bg:#11281c; --red:#f09186; --red-bg:#2d1513; --blue:#8ab8ec; --blue-bg:#122233; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0c141b; --surface:#141f29; --sunk:#101922; --ink:#e4ebf1; --muted:#95a4b2; --line:#26343f;
  --navy:#0a1620; --on-navy:#e4ebf1; --copper:#e08b52; --on-copper:#1b0e05; --copper-soft:#2b1c12;
  --amber:#f0c060; --amber-bg:#2c220d; --green:#6fd3a0; --green-bg:#11281c; --red:#f09186; --red-bg:#2d1513; --blue:#8ab8ec; --blue-bg:#122233; color-scheme:dark}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.45;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:14px 32px}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit}
:focus-visible{outline:2px solid var(--copper);outline-offset:2px}
.col{max-width:480px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.col.wide{max-width:760px}
h1,h2{font-family:var(--f-display);font-weight:700;margin:0;line-height:1.1;text-wrap:balance}
h1{font-size:28px} h2{font-size:20px}
h3{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:4px 0 -6px;font-weight:600}
p{margin:0}
.muted{color:var(--muted)} .small{font-size:13px} .hint{font-size:13px;color:var(--muted)}
/* page header */
.ptop{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.ptop a{color:var(--muted);font-weight:600;text-decoration:none}
.ptop a:hover{color:var(--ink)}
.ptop .brand{font-family:var(--f-display);font-weight:700;font-size:16px;color:var(--ink);letter-spacing:.2px}
.ptop .grow{flex:1}
.phead{background:var(--navy);color:var(--on-navy);border-radius:18px;padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.phead .eyebrow{font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.75;font-weight:600}
.phead p{opacity:.85;font-size:15px}
/* blocks */
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px}
.sunk{background:var(--sunk);border-radius:12px;padding:10px 12px}
.row{display:flex;align-items:center;gap:10px}
.row>.grow,.grow{flex:1;min-width:0}
.list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}
.item{display:flex;align-items:center;gap:10px;padding:11px 14px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;width:100%}
.item:last-child{border-bottom:0}
.item .t{font-weight:600}
.item .s{font-size:13px;color:var(--muted)}
.pill{display:inline-block;font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;white-space:nowrap}
.p-amber{background:var(--amber-bg);color:var(--amber)} .p-green{background:var(--green-bg);color:var(--green)}
.p-red{background:var(--red-bg);color:var(--red)} .p-blue{background:var(--blue-bg);color:var(--blue)} .p-grey{background:var(--sunk);color:var(--muted);border:1px solid var(--line)}
.btn{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:10px 14px;font-weight:600;text-align:center;text-decoration:none;display:inline-block}
.btn.primary{background:var(--copper);border-color:var(--copper);color:var(--on-copper)}
.btn.dark{background:var(--navy);border-color:var(--navy);color:var(--on-navy)}
.btn.small{padding:6px 10px;font-size:13px;border-radius:10px}
.btn.block{width:100%}
.btn:disabled{opacity:.5;cursor:default}
.btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.flag{border-left:4px solid var(--amber);background:var(--amber-bg);padding:10px 12px;border-radius:0 10px 10px 0}
.flag.green{border-left-color:var(--green);background:var(--green-bg)}
.flag.red{border-left-color:var(--red);background:var(--red-bg)}
label{font-size:13px;font-weight:600;color:var(--muted);display:block;margin-bottom:4px}
input[type=text],input[type=number],input[type=tel],select,textarea{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:9px 11px;min-width:0}
textarea{min-height:96px;resize:vertical}
.field{display:flex;flex-direction:column;min-width:0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:380px){.grid2{grid-template-columns:1fr}}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{border:1px solid var(--line);background:var(--sunk);border-radius:999px;padding:6px 11px;font-size:13px;text-align:left}
.chip.on{border-color:var(--copper);background:var(--copper-soft)}
.seg{display:inline-flex;flex-wrap:wrap;background:var(--sunk);border:1px solid var(--line);border-radius:999px;padding:3px;gap:2px;align-self:flex-start}
.seg button{border:0;background:none;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:600;color:var(--muted)}
.seg button.on{background:var(--navy);color:var(--on-navy)}
.av{width:36px;height:36px;border-radius:50%;background:var(--navy);color:var(--on-navy);display:flex;align-items:center;justify-content:center;font-family:var(--f-display);font-weight:700;font-size:17px;flex:none}
.money{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--navy);color:var(--on-navy);padding:10px 16px;border-radius:12px;font-size:14px;font-weight:600;z-index:40;max-width:calc(100% - 32px);text-align:center}
.pfoot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:14px;font-size:14px}
.linkbtn{border:0;background:none;color:var(--muted);text-decoration:underline;font-size:13px;padding:2px}
@media (prefers-reduced-motion:no-preference){.fresh{animation:fresh 1.6s ease-out}@keyframes fresh{from{background:var(--copper-soft)}to{background:transparent}}}
.spin{width:26px;height:26px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--copper);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.err{color:var(--red);font-size:13px;min-height:1em}
input[type=email],input[type=password]{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:9px 11px;min-width:0}
fieldset{border:0;margin:0;padding:0;min-width:0}
fieldset:disabled input,fieldset:disabled select,fieldset:disabled button{opacity:.6}
/* pop-up sheet (texts to customers) */
.sheet{position:fixed;inset:0;z-index:50!important;background:rgba(8,14,20,.55);display:flex;align-items:flex-end;justify-content:center;z-index:30;padding:0 max(0px,env(safe-area-inset-right,0px)) 0 max(0px,env(safe-area-inset-left,0px))}
.sheet .pane{background:var(--surface);width:100%;max-width:480px;border-radius:20px 20px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px;max-height:92%;overflow:auto}
.sheet .pane>*{flex-shrink:0}
@media (prefers-reduced-motion:no-preference){.sheet .pane{animation:up .22s ease-out}@keyframes up{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}}
.tl{display:flex;flex-direction:column;border-left:2px solid var(--line);margin-left:6px;padding-left:14px}
.tl div{position:relative;padding:4px 0 10px;font-size:14px}
.tl div::before{content:"";position:absolute;left:-21px;top:9px;width:10px;height:10px;border-radius:50%;background:var(--surface);border:2px solid var(--muted)}
.tl div.ok::before{border-color:var(--green);background:var(--green)}
.tl div.wait::before{border-color:var(--amber)}
.tl small{display:block;color:var(--muted);font-size:12px}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.stat .n{font-family:var(--f-display);font-size:26px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
.stat .l{font-size:12.5px;color:var(--muted)}
.big{font-family:var(--f-display);font-size:30px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.1}
button.item{cursor:pointer}
button.item:hover{background:var(--sunk)}
/* ── one question per screen ── */
.wiz{display:flex;flex-direction:column;min-height:calc(100vh - 46px);min-height:calc(100dvh - 46px);gap:14px}
.wiz-top{display:flex;align-items:center;gap:10px}
.wiz-top button{border:0;background:none;color:var(--muted);font-weight:600;font-size:15px;padding:8px 2px;min-width:44px;text-align:left}
.wiz-top button:last-child{text-align:right}
.wiz-bar{flex:1;height:6px;background:var(--line);border-radius:999px;overflow:hidden}
.wiz-bar i{display:block;height:100%;background:var(--copper);border-radius:999px;transition:width .25s}
.wiz-body{flex:1;display:flex;flex-direction:column;gap:14px}
.wiz-count{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.wiz-q{font-size:30px;line-height:1.1}
.wiz-sub{color:var(--muted);font-size:15px}
.wiz input[type=text],.wiz input[type=tel],.wiz input[type=number],.wiz input[type=email],.wiz select,.wiz textarea{font-size:19px;padding:13px 14px;border-radius:12px}
.wiz input[type=time],.wiz input[type=date]{font-size:18px;padding:12px;border-radius:12px;width:100%;border:1px solid var(--line);background:var(--surface)}
.wiz textarea{min-height:150px}
.wiz-foot{position:sticky;bottom:0;background:var(--bg);padding:10px 0 calc(8px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:8px;margin-top:auto}
.btn.big{padding:15px 16px;font-size:17px;border-radius:14px}
.btn.ghost{border:0;background:none;color:var(--muted);text-decoration:underline;font-weight:600}
.opts{display:flex;flex-direction:column;gap:8px}
.opts.two{display:grid;grid-template-columns:1fr 1fr}
.opt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:2px solid var(--line);background:var(--surface);border-radius:14px;padding:13px 14px;font-size:16px}
.opt b{display:block;font-size:17px}
.opt span.s{display:block;font-size:13px;color:var(--muted);font-weight:400}
.opt.on{border-color:var(--copper);background:var(--copper-soft)}
.opt .tick{margin-left:auto;font-weight:700;color:var(--copper);visibility:hidden}
.opt.on .tick{visibility:visible}
.money-in{position:relative}
.money-in>span{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:19px;color:var(--muted)}
.money-in input{padding-left:30px!important}
/* settings-style list: tap a row to change it */
.rows{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}
.rowlink{display:flex;align-items:center;gap:10px;padding:13px 14px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;width:100%}
.rowlink:last-child{border-bottom:0}
.rowlink .l{font-size:13px;color:var(--muted)}
.rowlink .v{font-weight:600}
.rowlink .chev{margin-left:auto;color:var(--muted);font-size:20px}
button.rowlink:hover{background:var(--sunk)}
.bigaction{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--copper);color:var(--on-copper);border:0;border-radius:16px;padding:18px;font-family:var(--f-display);font-size:22px;font-weight:700;text-decoration:none;width:100%}
/* Job Agreement */
.scope{display:flex;flex-direction:column;gap:5px}
.scope .sh{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-top:2px}
.sline{display:flex;align-items:center;gap:10px;padding:5px 4px 5px 12px;line-height:1.3;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:15px}
.sline.yes>span:first-child{color:var(--green);font-weight:700}
.sline.no{background:var(--sunk)}
.sline.no>span:first-child{color:var(--muted)}
.sline .x{border:0;background:none;font-size:22px;line-height:1;color:var(--muted);padding:2px 8px}
.addline{display:flex;gap:6px;align-items:center;margin-top:4px}
.addline input{flex:1;min-width:0;padding:10px 12px!important}
.addline .btn{white-space:nowrap}
/* Record buttons: big, for big hands, dirty hands and gloves */
.micwrap{position:relative;display:block;width:100%}
.micwrap>input{padding-right:70px!important;width:100%;min-height:60px}
.micbtn{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:54px;height:54px;border-radius:50%;border:0;background:#d0302a;color:#fff;display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.micbtn svg{width:26px;height:26px}
.micbtn.on{background:#fff;border:3px solid #d0302a;animation:micpulse 1.2s ease-in-out infinite}
.micbtn .recdot{width:20px;height:20px;border-radius:5px;background:#d0302a}
.bigrec{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:68px;border:2px solid var(--line);background:var(--surface);border-radius:18px;padding:10px 16px;font-family:var(--f-display);font-weight:700;font-size:22px;color:var(--ink);flex:none}
.bigrec .dot{width:46px;height:46px;border-radius:50%;background:#d0302a;box-shadow:0 0 0 6px rgba(208,48,42,.15);flex:none}
.bigrec.on{border-color:#d0302a;color:#d0302a}
.bigrec.on .dot{border-radius:10px;width:34px;height:34px;margin:6px;animation:micpulse 1.2s ease-in-out infinite}
@keyframes micpulse{0%,100%{box-shadow:0 0 0 0 rgba(208,48,42,.45)}50%{box-shadow:0 0 0 10px rgba(208,48,42,0)}}
@media (prefers-reduced-motion:reduce){.micbtn.on,.bigrec.on .dot{animation:none}}
.row>.micwrap,.addline>.micwrap{flex:1;min-width:0}

/* Snap button: big, bottom right, on every plumber screen. Hidden while a question screen or sheet is open */
.snapfab{position:fixed;right:16px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:20;width:84px;height:84px;border-radius:50%;border:0;background:var(--copper);color:var(--on-copper);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;box-shadow:0 6px 18px rgba(8,14,20,.35),0 0 0 4px var(--surface);font-family:var(--f-display);font-weight:700;font-size:16px;letter-spacing:.02em;cursor:pointer}
.snapfab:active{transform:scale(.95)}
body.hasfab{padding-bottom:110px}
body:has(.wiz) .snapfab,body:has(.sheet) .snapfab{display:none}
.snapopt{display:flex;align-items:center;gap:14px;text-align:left;width:100%;min-height:96px;border:2px solid var(--line);background:var(--surface);border-radius:18px;padding:14px;font:inherit;color:inherit}
.snapopt .ic{font-size:36px;width:60px;height:60px;border-radius:16px;background:var(--copper-soft);display:grid;place-items:center;flex:none}
.snapopt b{display:block;font-family:var(--f-display);font-size:22px}
.snapopt .s,.snapjob .s{display:block;font-size:14px;color:var(--muted)}
.snaplist{display:flex;flex-direction:column;gap:8px;max-height:60vh;overflow:auto}
.snapjob{display:flex;align-items:center;gap:10px;text-align:left;width:100%;min-height:68px;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:10px 14px;font:inherit;color:inherit}
.snapjob b{font-size:17px}
.snapjob .when{font-weight:600;color:var(--copper);font-size:14px;white-space:nowrap}

/* Photo / Video buttons, like a phone camera */
.capture{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.capture.one{grid-template-columns:1fr}
.capture .cap{min-height:104px;border:2px solid var(--copper);background:var(--copper-soft);color:var(--ink);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;margin:0}
.capture .cap svg{color:var(--copper)}
.capture .cap b{font-family:var(--f-display);font-size:20px}
.capture.big .cap{min-height:132px}
.capture.big .cap svg{width:48px;height:48px}
.capture .cap:active{transform:scale(.97)}
.snapprev{width:100%;max-height:150px;object-fit:cover;border-radius:14px;background:var(--sunk)}
label.snapopt{cursor:pointer;margin:0}
.snapopt .ic svg{color:var(--copper)}

.askchange{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface);border:1px dashed var(--line);border-radius:16px;padding:12px 14px;font:inherit;color:inherit;font-size:22px}
.askchange b{display:block;font-size:16px}
.askchange .s{display:block;font-size:13px;color:var(--muted)}
.rate{display:flex;justify-content:center;gap:4px}
.rate button{border:0;background:none;font-size:50px;line-height:1;color:var(--line);min-width:56px;min-height:62px;padding:2px}
.rate button.on{color:#e0a400}

.offbar{position:fixed;left:0;right:0;top:0;z-index:40;background:#3b2a00;color:#ffe9a8;font-size:14px;padding:calc(8px + env(safe-area-inset-top,0px)) 16px 8px;text-align:center;transform:translateY(-110%);transition:transform .2s}
.offbar.on{transform:none}

.planbar{display:block;max-width:560px;margin:10px auto 0;padding:10px 14px;border-radius:12px;background:var(--blue-bg);color:var(--ink);font-size:14px;text-decoration:none}
.planbar.warn{background:var(--amber-bg);border:1px solid var(--amber)}
.planbar b{color:var(--copper);white-space:nowrap}

/* ── five-tab shell ── */
.ptop2{display:flex;align-items:flex-end;gap:10px;padding-top:4px}
.ptop2 .biz{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
.ptop2 h1{margin:0;font-family:var(--f-display);font-size:34px;line-height:1.05}
.moreb{width:48px;height:48px;border-radius:14px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;color:var(--ink);flex:none}
.subtabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;margin-top:-2px}
.subtabs a{flex:none;padding:9px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);text-decoration:none;font-weight:600;font-size:15px}
.subtabs a.on{background:var(--navy);color:var(--on-navy);border-color:var(--navy)}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--surface);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(6,1fr);align-items:end;padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 18px rgba(8,14,20,.08)}
.tabbar a,.tabbar button{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted);text-decoration:none;font-size:11px;font-weight:600;background:none;border:0;padding:4px 0;min-height:52px;justify-content:center;position:relative}
.tabbar a.on{color:var(--copper)}
.tabbar .peteb{color:var(--ink)}
.tabbar .peteb .pc{width:64px;height:64px;margin-top:-30px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;box-shadow:0 0 0 4px var(--surface),0 6px 16px rgba(8,14,20,.3)}
.tabbar .peteb .ear{position:absolute;top:-26px;right:calc(50% - 32px);width:14px;height:14px;border-radius:50%;background:var(--green);border:2px solid var(--surface);display:none}
body.heypete .tabbar .peteb .ear{display:block}
body.hastabs{padding-bottom:170px}
body.hastabs .snapfab{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
body:has(.wiz) .tabbar,body:has(.sheet) .tabbar,body:has(.pete.full) .tabbar{display:none}
@media (min-width:700px){.tabbar{max-width:560px;margin:0 auto;border-radius:20px 20px 0 0;border:1px solid var(--line)}}

/* ── Pete ── */
.pete.full{position:fixed;inset:0;z-index:45;background:var(--bg);display:flex;flex-direction:column;padding:calc(10px + env(safe-area-inset-top,0px)) 14px calc(12px + env(safe-area-inset-bottom,0px));max-width:560px;margin:0 auto}
.pete .ptopbar{display:flex;align-items:center;gap:10px;padding-bottom:8px;border-bottom:1px solid var(--line);min-width:0}
.pete .ptopbar b{font-family:var(--f-display);font-size:24px;display:block}
.pete .ptopbar .grow{min-width:0}
.pete .face{width:46px;height:46px;border-radius:50%;background:var(--copper);color:#fff;display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:22px;flex:none}
.pete .pclose{width:46px;height:46px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-size:20px;flex:none}
.pete .pchat{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:12px 2px}
.pm{max-width:90%;padding:11px 14px;border-radius:18px;font-size:17px;line-height:1.38}
.pm.me{align-self:flex-end;background:var(--copper);color:var(--on-copper);border-bottom-right-radius:5px}
.pm.him{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:5px}
.pm.him .nm{display:block;font-size:12px;font-weight:700;color:var(--copper);margin-bottom:2px}
.pm.typing{color:var(--muted);letter-spacing:3px}
.pcard{margin-top:10px;border:2px solid var(--copper);background:var(--copper-soft);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.pcard b{font-size:15px}.pcard span{font-size:15px}
.pcard .ok{font-weight:700;color:var(--green)}
.pete .pfoot{display:flex;flex-direction:column;gap:8px;padding-top:8px;border-top:1px solid var(--line);min-width:0}
.pete .pfoot>*{min-width:0;max-width:100%}
.pete .pfoot .row input{flex:1;min-width:0}
.pete.full>*{min-width:0}
.pete .pq{flex-wrap:nowrap;overflow-x:auto}
.pete .pq .chip{white-space:nowrap;font-size:14px;padding:8px 12px}
.pete .pstat{min-height:22px;text-align:center;color:var(--muted);font-size:15px}
.pete .pctrl{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}
.pete .pctrl .btn{justify-self:center}
.pmic{width:92px;height:92px;border-radius:50%;border:0;background:var(--navy);color:#fff;display:grid;place-items:center;box-shadow:0 6px 18px rgba(8,14,20,.3)}
.pmic.on{background:#d32f2f;animation:pmicpulse 1.2s infinite}
@keyframes pmicpulse{0%{box-shadow:0 0 0 0 rgba(211,47,47,.5)}70%{box-shadow:0 0 0 22px rgba(211,47,47,0)}100%{box-shadow:0 0 0 0 rgba(211,47,47,0)}}
.pwave{display:flex;justify-content:center;align-items:center;gap:5px;height:44px}
.pwave i{width:6px;height:10px;border-radius:4px;background:var(--copper);animation:pw .9s ease-in-out infinite}
@keyframes pw{0%,100%{height:8px}50%{height:40px}}
.heyrow{justify-content:center;color:var(--muted);gap:8px}
.pete.mini{position:fixed;left:8px;right:8px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:30;max-width:540px;margin:0 auto}
.pmini{display:flex;align-items:center;gap:10px;background:var(--navy);color:var(--on-navy);border-radius:20px;padding:10px 10px 10px 12px;box-shadow:0 8px 24px rgba(8,14,20,.35)}
.pmini b{display:block;font-size:14px}.pmini span{display:block;font-size:14px;opacity:.9;max-height:3.9em;overflow:hidden}
.pmini .pmic{width:60px;height:60px}
.pmini .pclose{width:40px;height:40px;background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:12px}
.pete.mini .pwave{background:var(--navy);border-radius:0 0 16px 16px;margin:-6px 20px 0}
body.pete-open{overflow:hidden}
body:has(.pete.mini) .snapfab{display:none}
@media (prefers-reduced-motion:reduce){.pmic.on,.pwave i{animation:none}}

a.item{text-decoration:none;color:inherit}
.pminicard{background:var(--surface);border:2px solid var(--copper);border-radius:16px;padding:10px 12px;margin-bottom:8px;display:flex;flex-direction:column;gap:8px;box-shadow:0 8px 24px rgba(8,14,20,.25);font-size:15px}

/* ═══════════ Design v2: big, clean, simple ═══════════ */
:root{
  --bg:#f3f4f6; --surface:#ffffff; --sunk:#f6f7f9; --ink:#0e1525; --muted:#6b7385; --line:#e7e9ee;
  --navy:#0d1526; --on-navy:#f2f4f8; --copper:#d4602a; --on-copper:#ffffff; --copper-soft:#fdeee6;
  --green:#14804a; --green-bg:#e3f6ec;
  --f-display:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif; --f-body:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --shadow:0 1px 2px rgba(14,21,37,.04),0 6px 20px rgba(14,21,37,.06); --r:22px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--bg:#0a0f19;--surface:#141b28;--sunk:#101622;--ink:#eef1f6;--muted:#9aa3b5;--line:#232c3b;--navy:#060a12;--copper:#f07a43;--copper-soft:#2b1a11;--shadow:0 1px 2px rgba(0,0,0,.3),0 6px 20px rgba(0,0,0,.35)}}
body{font-size:17px;letter-spacing:-.005em;-webkit-font-smoothing:antialiased}
h1,h2{font-weight:800;letter-spacing:-.02em}
h1{font-size:34px} h2{font-size:24px}
h3{font-size:20px;letter-spacing:-.01em;text-transform:none;color:var(--ink);font-weight:800;margin:10px 0 -2px}
.small{font-size:14px} .col{gap:16px}
.card,.list,.stock,.sig,.camp,.next{border:0!important;border-radius:var(--r);box-shadow:var(--shadow);background:var(--surface)}
.card{padding:18px}
.item{padding:16px 18px;border-bottom:1px solid var(--line)}
.item .t{font-size:17px;font-weight:700}
.item .s{font-size:14px}
.btn{min-height:54px;border-radius:16px;font-weight:700;font-size:17px;border:0;background:var(--surface);box-shadow:var(--shadow);letter-spacing:-.01em}
.btn.primary{background:linear-gradient(180deg,#e06a33,#cb5822);color:#fff;box-shadow:0 6px 18px rgba(212,96,42,.35)}
.btn.dark{background:var(--navy);color:#fff}
.btn.big{min-height:64px;font-size:19px;border-radius:18px}
.btn.ghost{background:none;box-shadow:none}
.btn.small{min-height:40px;font-size:15px}
input,select,textarea{border-radius:16px!important;border:1.5px solid var(--line)!important;min-height:56px;font-size:18px!important;padding:12px 16px!important;background:var(--surface)}
textarea{min-height:110px}
input:focus,select:focus,textarea:focus{border-color:var(--copper)!important;outline:none;box-shadow:0 0 0 4px var(--copper-soft)}
.pill{font-size:13px;padding:4px 10px;font-weight:700}
.opt{border-radius:18px!important;border:2px solid transparent!important;background:var(--surface);box-shadow:var(--shadow);min-height:66px;padding:14px 16px!important}
.opt b{font-size:18px}
.opt.on{border-color:var(--copper)!important;background:var(--copper-soft)}
/* question screens: one big question */
.wiz-q{font-size:34px!important;font-weight:800!important;letter-spacing:-.025em;line-height:1.08}
.wiz-sub{font-size:17px!important}
.wiz-count{font-size:13px;letter-spacing:.04em}
/* no small print on the working screens */
body.hastabs .hint, body.hastabs p.small.muted{display:none}
.ptop2 h1{font-size:36px}
.ptop2 .biz{font-size:13px}
.subtabs a{border:0;box-shadow:var(--shadow);padding:11px 16px;font-size:15px}
.subtabs a.on{background:var(--ink);color:#fff}
.moreb{border:0;box-shadow:var(--shadow);border-radius:16px}
/* tab bar */
.tabbar{border-top:0;box-shadow:0 -1px 0 var(--line),0 -8px 30px rgba(14,21,37,.06)}
.tabbar a svg{stroke-width:2}
.tabbar a.on{color:var(--copper)}
.tabbar a.on svg{stroke-width:2.4}
.tabbar .peteb .pc{width:68px;height:68px;margin-top:-34px;overflow:hidden;background:var(--navy);position:relative}
.tabbar .peteb .pc img{width:100%;height:100%;object-fit:cover}
.tabbar .peteb .mb{position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:50%;background:var(--copper);color:#fff;display:grid;place-items:center;border:3px solid var(--surface)}
/* More menu as big tiles */
.moregrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.moregrid a{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:20px;background:var(--sunk);text-decoration:none;color:var(--ink);min-height:104px}
.moregrid .ico{width:44px;height:44px;border-radius:14px;background:var(--surface);display:grid;place-items:center;color:var(--copper);box-shadow:var(--shadow)}
.moregrid b{font-size:16px}
/* leads */
.leads{display:flex;flex-direction:column;gap:10px}
.lead{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:0;background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:14px 14px 14px 16px;min-height:78px;font:inherit;color:inherit}
.lead .av,.av{width:48px;height:48px;border-radius:50%;background:var(--copper-soft);color:var(--copper);display:grid;place-items:center;font-weight:800;font-size:20px;flex:none}
.lead b{display:block;font-size:18px;font-weight:800;letter-spacing:-.01em}
.lead .grow span{display:block;font-size:14px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lead .grow{min-width:0}
.stage{flex:none;font-size:14px;font-weight:700;padding:9px 12px;border-radius:999px;background:var(--sunk);color:var(--muted);white-space:nowrap}
.stage.go{background:var(--copper);color:#fff}
.nextstep .visits{display:flex;flex-wrap:wrap;gap:8px}
.nextstep .visits span{background:var(--sunk);border-radius:12px;padding:8px 12px;font-weight:700}
.empty{display:flex;flex-direction:column;align-items:center;gap:14px;padding:40px 10px;text-align:center}
.empty .ei{width:84px;height:84px;border-radius:28px;background:var(--surface);box-shadow:var(--shadow);display:grid;place-items:center;color:var(--copper)}
.empty b{font-size:20px}
/* Pete with a face */
.pete .face,.brief .face,.pfacebig{overflow:hidden;padding:0}
.pete .face img,.brief .face img,.pfacebig img{width:100%;height:100%;object-fit:cover;display:block}
.pfacebig{width:120px;height:120px;border-radius:50%;margin:24px auto 8px;box-shadow:0 10px 30px rgba(14,21,37,.18)}
.pempty{text-align:center;display:flex;flex-direction:column;gap:6px;align-items:center;padding:0 10px}
.pempty b{font-size:26px;font-weight:800;letter-spacing:-.02em}
.pempty span{color:var(--muted);font-size:17px}

/* v2.1: slimmer Snap button, icon only */
.snapfab{width:62px;height:62px;font-size:0;gap:0}
.snapfab svg{width:26px;height:26px}
.snapfab span,.snapfab b{display:none}

.ptopbar .grow{display:flex;align-items:center}

/* ═══════════ Design v3: fresh ═══════════ */
:root{
  --bg:#f5f6fa; --sunk:#f0f2f7; --line:#e8eaf0; --ink:#0b1220; --muted:#667085;
  --copper:#f0612a; --copper-2:#ff8a4c; --copper-soft:#fff0e8; --mint:#12b886; --mint-soft:#e5f8f1;
  --shadow:0 1px 1px rgba(11,18,32,.03),0 12px 32px -10px rgba(11,18,32,.12); --r:24px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--bg:#0a0e16;--sunk:#121825;--line:#1f2736;--copper:#ff7a3d;--copper-2:#ffa069;--copper-soft:#2a1910;--mint-soft:#0f2a22}}
body{background:
  radial-gradient(900px 520px at 105% -8%,rgba(255,138,76,.16),transparent 62%),
  radial-gradient(800px 480px at -12% 6%,rgba(92,141,255,.10),transparent 60%),
  var(--bg);background-attachment:fixed;min-height:100vh}
.btn.primary{background:linear-gradient(135deg,var(--copper-2) 0%,var(--copper) 55%,#e14b18 100%);box-shadow:0 10px 24px -8px rgba(240,97,42,.6),inset 0 1px 0 rgba(255,255,255,.25)}
.btn.primary:active{transform:scale(.985)}
.btn{transition:transform .12s ease}
.card,.list,.stock,.sig,.camp,.next,.tile,.move,.petecard,.lead,.tg,.crow{border-radius:var(--r)}
/* page titles: big and clean, nothing above them */
.ptop2{padding-top:10px;align-items:center}
.ptop2 h1{font-size:40px;letter-spacing:-.035em}
.moreb,.iconb{width:50px;height:50px;border-radius:17px;border:0;background:rgba(255,255,255,.9);box-shadow:var(--shadow);display:grid;place-items:center;color:var(--ink)}
/* subtabs: one soft segmented control */
.subtabs{background:rgba(11,18,32,.05);border-radius:18px;padding:5px;gap:4px;margin-top:2px;align-self:flex-start;max-width:100%}
.subtabs a{box-shadow:none;background:transparent;border:0;padding:10px 16px;border-radius:14px;color:var(--muted);font-weight:700}
.subtabs a.on{background:var(--surface);color:var(--ink);box-shadow:0 2px 8px rgba(11,18,32,.10)}
/* tab bar: frosted glass */
.tabbar{background:rgba(255,255,255,.82);-webkit-backdrop-filter:saturate(1.6) blur(20px);backdrop-filter:saturate(1.6) blur(20px);box-shadow:0 -1px 0 rgba(11,18,32,.06)}
.tabbar a.on{color:var(--copper)}
.tabbar .railhead,.tabbar .railmore{display:none}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .tabbar{background:rgba(20,27,40,.82)}:root:not([data-theme="light"]) .moreb,:root:not([data-theme="light"]) .iconb{background:var(--surface)}}
/* Snap: a crisp round button */
.snapfab{background:linear-gradient(135deg,var(--copper-2),var(--copper));box-shadow:0 12px 28px -8px rgba(240,97,42,.7)}
/* Home */
body .hello h1{font-size:38px;letter-spacing:-.035em}
body .hero{border-radius:30px;background:radial-gradient(140% 120% at 100% 0%,#2a3757 0%,#111a2e 45%,#0b1220 100%);box-shadow:0 24px 48px -18px rgba(11,18,32,.55)}
body .hero::after{content:'';position:absolute;inset:auto -40px -60px auto;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(255,138,76,.35),transparent 70%);pointer-events:none}
body .hero{position:relative;overflow:hidden}
body .hero .when{font-size:64px}
body .tile{min-height:124px}
body .tile .ti{border-radius:14px}
body .tile:nth-child(2) .ti{background:#eaf1ff;color:#3b6cf6}
body .tile:nth-child(3) .ti{background:var(--mint-soft);color:var(--mint)}
body .tile:nth-child(4) .ti{background:#f3ecff;color:#7c4dff}
body .hero.none{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
body .hero.none::after{display:none}
/* lists */
.lead,.move{transition:transform .12s ease}
.lead:active,.move:active,.tile:active{transform:scale(.985)}
.stage.go,.lead .stage.go{background:linear-gradient(135deg,var(--copper-2),var(--copper))!important;color:#fff!important}
/* More sheet */
.sheet{background:rgba(11,18,32,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.sheet .pane{border-radius:30px 30px 0 0;padding-top:20px}
.moregrid a{background:var(--sunk);border-radius:22px}
.askrow{display:flex;align-items:center;gap:14px;width:100%;border:0;background:var(--copper-soft);color:var(--copper);border-radius:20px;padding:16px;text-align:left;font:inherit}
.askrow b{display:block;color:var(--ink);font-size:16px}
.askrow span span{color:var(--muted);font-size:14px}
.acct{text-align:center;color:var(--muted);font-size:14px;padding:6px 0 2px}
.endspace{height:8px}
/* wizard screens */
.wiz-q{font-size:36px!important}
/* page icons used in older screens */
.camp .ic,.bigpass .ic,.sig .ic{color:var(--copper)}
.bigpass .ic{color:#fff}

/* ═══════════ Laptops: side menu, wider pages ═══════════ */
@media (min-width:900px){
  body.hastabs{padding-left:300px;padding-right:40px;padding-bottom:60px}
  body.hastabs .col{max-width:780px}
  .tabbar{top:0;bottom:0;left:0;right:auto;width:260px;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:26px 16px;background:rgba(255,255,255,.7);box-shadow:1px 0 0 rgba(11,18,32,.06)}
  .tabbar .railhead{display:flex;align-items:center;gap:12px;padding:0 10px 22px}
  .tabbar .railhead .rl{width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,var(--copper-2),var(--copper));color:#fff;display:grid;place-items:center;font-weight:800;font-size:19px;flex:none}
  .tabbar .railhead b{font-size:16px;font-weight:800;color:var(--ink);line-height:1.2}
  .tabbar a,.tabbar button{flex-direction:row;justify-content:flex-start;gap:14px;font-size:16px;font-weight:700;min-height:50px;padding:10px 14px;border-radius:15px;color:var(--muted)}
  .tabbar a:hover,.tabbar button:hover{background:rgba(11,18,32,.04);color:var(--ink)}
  .tabbar a.on{background:var(--copper-soft);color:var(--copper)}
  .tabbar .peteb{order:9;margin-top:auto;background:var(--surface);box-shadow:var(--shadow);min-height:72px;padding:12px;border-radius:20px;color:var(--ink)}
  .tabbar .peteb .pc{width:48px;height:48px;margin:0;box-shadow:none}
  .tabbar .peteb .mb{width:20px;height:20px;border-width:2px}
  .tabbar .peteb>span:last-of-type{font-size:17px}
  .tabbar .railmore{display:flex;order:8}
  .tabbar .ear{display:none!important}
  .ptop2 .moreb{display:none}
  .snapfab{right:40px;bottom:32px!important}
  body .tiles{grid-template-columns:repeat(4,1fr)}
  body .hello h1{font-size:46px}
  .pete.full{left:auto;right:0;width:460px;max-width:460px;box-shadow:-20px 0 60px rgba(11,18,32,.18)}
  .sheet{align-items:center}
  .sheet .pane{border-radius:28px;max-width:560px}
  .wiz{max-width:640px;margin:0 auto;width:100%}
}

body .petecard b{color:var(--ink)}
.namebox .vmic,.namebox .micbtn{display:none}
@media (min-width:900px){ body .hello [data-more]{display:none} }
.opt.on{border-color:transparent!important;background:var(--ink)!important;color:var(--surface)}
.opt.on b,.opt.on .s,.opt.on span{color:var(--surface)}
/* filter buttons on Jobs, Today, Customers: one style */
body .jtabs,body .dtabs,body .ftabs{display:flex;gap:8px;overflow-x:auto;padding:2px}
body .jtabs button,body .dtabs button,body .ftabs button{flex:none;border:0!important;background:var(--surface)!important;box-shadow:var(--shadow);border-radius:999px!important;padding:11px 18px!important;font-weight:700;font-size:15px;color:var(--muted);min-height:46px}
body .jtabs button.on,body .dtabs button.on,body .ftabs button.on{background:var(--ink)!important;color:var(--surface)!important}

/* ═══════════ Design v4: slick ═══════════ */
/* first paint: content rises in, once */
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  body:not(.entered) .col>*{animation:rise .5s cubic-bezier(.2,.8,.2,1) both}
  body:not(.entered) .col>*:nth-child(2){animation-delay:.04s} body:not(.entered) .col>*:nth-child(3){animation-delay:.08s}
  body:not(.entered) .col>*:nth-child(4){animation-delay:.12s} body:not(.entered) .col>*:nth-child(5){animation-delay:.16s}
  body:not(.entered) .col>*:nth-child(6){animation-delay:.2s} body:not(.entered) .col>*:nth-child(n+7){animation-delay:.24s}
  .sheet .pane{animation:sheetup .32s cubic-bezier(.2,.9,.2,1)} @keyframes sheetup{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
  .wiz-body{animation:rise .35s cubic-bezier(.2,.8,.2,1)}
}
/* shimmer while loading */
.skel{display:flex;flex-direction:column;gap:14px;padding-top:12px}
.skel i{display:block;border-radius:22px;background:linear-gradient(90deg,rgba(11,18,32,.05) 0%,rgba(11,18,32,.10) 40%,rgba(11,18,32,.05) 80%);background-size:300% 100%;animation:shim 1.3s ease-in-out infinite}
.skel .s1{height:44px;width:55%;border-radius:14px}.skel .s2{height:190px;border-radius:30px}.skel .s3{height:120px}.skel .s4{height:74px}
@keyframes shim{0%{background-position:100% 0}100%{background-position:0 0}}
/* lists become separate soft cards */
body .list{background:none!important;box-shadow:none!important;border:0!important;display:flex;flex-direction:column;gap:10px;overflow:visible}
body .list>.item,body .list>a,body .list>button.item{background:var(--surface);border:0!important;border-radius:22px;box-shadow:var(--shadow);min-height:74px}
/* colourful avatars, cycling down a list */
.av,.crow .av,.lead .av{background:linear-gradient(135deg,#ffb38a,#f0612a)!important;color:#fff!important;font-weight:800}
:nth-child(5n+2)>.av{background:linear-gradient(135deg,#8fb4ff,#3b6cf6)!important}
:nth-child(5n+3)>.av{background:linear-gradient(135deg,#6fe0b9,#12b886)!important}
:nth-child(5n+4)>.av{background:linear-gradient(135deg,#c3a6ff,#7c4dff)!important}
:nth-child(5n+5)>.av{background:linear-gradient(135deg,#ffd479,#f59f00)!important}
/* customers list: cards too */
body .crow{border:0!important;background:var(--surface);border-radius:22px;box-shadow:var(--shadow);margin-bottom:10px}
/* money numbers as one dark card */
body .stats{background:radial-gradient(140% 120% at 100% 0%,#2a3757 0%,#111a2e 50%,#0b1220 100%);border-radius:28px;padding:18px 8px;gap:0;box-shadow:0 20px 40px -18px rgba(11,18,32,.5)}
body .stat{background:none;border:0;padding:4px 12px;color:#fff}
body .stat+.stat{border-left:1px solid rgba(255,255,255,.12)!important}
body .stat .n{font-size:28px;font-weight:800;letter-spacing:-.03em;color:#fff}
body .stat .l{color:rgba(255,255,255,.65);font-size:13px;font-weight:600}
/* tab bar: soft pill behind the active tab */
.tabbar a svg{transition:transform .15s}
.tabbar a.on svg{background:var(--copper-soft);border-radius:12px;padding:4px 14px;box-sizing:content-box;margin:-4px 0}
/* frosted toast */
.toast{background:rgba(11,18,32,.88);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:18px;padding:14px 18px;font-size:15px;bottom:calc(110px + env(safe-area-inset-bottom,0px));box-shadow:0 16px 40px -12px rgba(0,0,0,.45)}
/* question screens */
.wiz-top{gap:14px;padding-top:6px}
.wiz-top button{width:46px;height:46px;min-width:46px;border-radius:15px;background:var(--surface);box-shadow:var(--shadow);display:grid;place-items:center;color:var(--ink);padding:0;font-size:18px}
.wiz-bar{height:8px;background:rgba(11,18,32,.07)}
.wiz-bar i{background:linear-gradient(90deg,var(--copper-2),var(--copper))}
.wiz-count{display:none}
.wiz-q{font-size:38px!important;letter-spacing:-.035em!important;margin-top:10px}
.wiz-foot{background:linear-gradient(to top,var(--bg) 70%,transparent);padding-top:22px}
/* Pete */
.pete.full{background:radial-gradient(700px 400px at 50% -10%,rgba(255,138,76,.14),transparent 60%),var(--bg)}
.pete .ptopbar{border-bottom:0}
.pete .pfoot{border-top:0}
.pfacebig{box-shadow:0 0 0 8px rgba(240,97,42,.10),0 0 0 18px rgba(240,97,42,.05),0 18px 40px -12px rgba(11,18,32,.35)}
.pete .pmic{background:linear-gradient(135deg,var(--copper-2),var(--copper))!important;box-shadow:0 14px 30px -8px rgba(240,97,42,.7)!important}
.pete .chip,.pete .pq .chip{border:0;background:var(--surface);box-shadow:var(--shadow);border-radius:999px;font-weight:700}
/* rows on settings pages */
body .rows{border:0!important;background:none!important;display:flex;flex-direction:column;gap:10px}
body .rows>*{background:var(--surface);border:0!important;border-radius:20px;box-shadow:var(--shadow)}
/* pills */
.pill{border-radius:999px;padding:6px 12px}
/* logo */
.bizlogo{width:52px;height:52px;border-radius:16px;background:#fff;box-shadow:var(--shadow);display:grid;place-items:center;overflow:hidden;flex:none}
.bizlogo img{width:100%;height:100%;object-fit:contain;padding:5px;box-sizing:border-box}
.tabbar .railhead .rl.img{background:#fff;box-shadow:var(--shadow);overflow:hidden;width:48px;height:48px}
.tabbar .railhead .rl.img img{width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box}
@media (min-width:900px){ body .hello .bizlogo{display:none} }

body .hello:has(.bizlogo) h1{font-size:32px}
body .hello:has(.bizlogo) .grow{min-width:0}
@media (min-width:900px){ .tabbar a.on svg{background:none;padding:0;margin:0} }
.money-in.big input{font-size:44px!important;font-weight:800;min-height:88px;padding-left:46px!important;letter-spacing:-.02em}
.money-in.big>span{font-size:34px;font-weight:800;color:var(--ink);left:18px}
.daterange{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.daterange label{font-size:14px;font-weight:700;color:var(--muted);display:flex;flex-direction:column;gap:6px}
.spanbox{display:flex;align-items:center;gap:14px;background:var(--surface);border-radius:22px;box-shadow:var(--shadow);padding:16px}
.spanbox .n{font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1}
.spanbox b{display:block;font-size:17px}
.spanbox span{color:var(--muted);font-size:14px}

.bizlogo.add{border:2px dashed #cfd4de;background:transparent;box-shadow:none;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-decoration:none;font-size:10px;font-weight:800}
.bizlogo.add svg{width:18px;height:18px}
.tabbar .railhead .rl.add{background:transparent;border:2px dashed #cfd4de;color:var(--muted);width:48px;height:48px;box-sizing:border-box}
@media (min-width:900px){ body .hello .bizlogo.add{display:none} }

/* before & after */
.ba{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ba-t{position:relative;aspect-ratio:4/5;border-radius:22px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;color:var(--muted);text-align:center;border:2px dashed var(--line)}
.ba-t.has{border:0;cursor:default}
.ba-t input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ba-t img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ba-t b{color:var(--ink);font-size:18px}
.ba-t span{font-size:13px;font-weight:600}
.ba-t .ba-i{width:56px;height:56px;border-radius:18px;background:var(--copper-soft);color:var(--copper);display:grid;place-items:center;margin-bottom:4px}
.ba-t.nudge{border-color:var(--copper);background:var(--copper-soft)}
.ba-t.nudge .ba-i{background:linear-gradient(135deg,var(--copper-2),var(--copper));color:#fff}
.ba-l{position:absolute;left:10px;top:10px;background:rgba(11,18,32,.75);color:#fff!important;border-radius:999px;padding:5px 12px;font-size:13px!important;font-weight:800!important}
.ba-re{position:absolute;right:10px;bottom:10px;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--ink);display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.ba-t.busy{opacity:.5;pointer-events:none}

/* pings */
.pushask{display:flex;align-items:center;gap:12px;background:var(--surface);border-radius:22px;box-shadow:var(--shadow);padding:14px 14px 14px 16px;position:relative}
.pushask .pi{width:44px;height:44px;border-radius:14px;background:#fff4d6;color:#d98b00;display:grid;place-items:center;flex:none}
.pushask.on .pi{background:var(--mint-soft);color:var(--mint)}
.pushask>span:nth-child(2){flex:1;min-width:0}
.pushask b{display:block;font-size:16px}
.pushask span span{font-size:13.5px;color:var(--muted)}
.pushx{position:absolute;top:4px;right:6px;border:0;background:none;color:var(--muted);font-size:18px;width:30px;height:30px}
.kaching{position:fixed;left:50%;top:calc(14px + env(safe-area-inset-top,0px));transform:translate(-50%,-140%);z-index:80;display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#0f9d6f,#12b886);color:#fff;border-radius:22px;padding:14px 20px 14px 14px;box-shadow:0 20px 40px -12px rgba(18,184,134,.6);min-width:min(92vw,340px);transition:transform .45s cubic-bezier(.2,1.3,.4,1);cursor:pointer}
.kaching.go{transform:translate(-50%,0)}
.kaching .kc-i{width:46px;height:46px;border-radius:15px;background:rgba(255,255,255,.2);display:grid;place-items:center;flex:none}
.kaching b{display:block;font-size:19px;font-weight:800;letter-spacing:-.01em}
.kaching span span{font-size:14px;opacity:.9}

/* ═══════════ Phones: bigger buttons, easier with work gloves ═══════════ */
@media (max-width:899px){
  .btn{min-height:60px;font-size:18px;border-radius:18px;padding-left:18px;padding-right:18px}
  .btn.big{min-height:70px;font-size:20px;border-radius:20px}
  .btn.small{min-height:48px;font-size:16px;padding:0 18px;border-radius:15px}
  .btn.ghost{min-height:52px}
  input,select{min-height:60px}
  .opt{min-height:74px}
  .opt b{font-size:19px}
  .subtabs a{padding:13px 18px;font-size:16px}
  body .jtabs button,body .dtabs button,body .ftabs button{min-height:52px;font-size:16px;padding:12px 20px!important}
  .stage,.lead .stage{font-size:15px!important;padding:11px 16px!important;border-radius:999px}
  .chip{padding:11px 16px;font-size:15px;min-height:44px}
  .moreb,.iconb{width:54px;height:54px;border-radius:18px}
  .tabbar a,.tabbar button{min-height:60px;font-size:12px}
  .tabbar a svg{width:27px;height:27px}
  .item{min-height:76px}
  .item .btn.small{min-height:46px}
  .moregrid a{min-height:116px}
  .moregrid b{font-size:17px}
  .wiz-top button{width:52px;height:52px;min-width:52px}
  .linkbtn{min-height:44px;font-size:16px}
  .snapfab{width:66px;height:66px}
}
@media (max-width:899px){
  body .jtabs,body .dtabs,body .ftabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);overflow:visible}
  body .jtabs button,body .dtabs button,body .ftabs button{padding:12px 6px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* ═══════════ Phones v2: properly big ═══════════ */
@media (max-width:899px){
  body{font-size:18px}
  .btn{min-height:64px;font-size:19px;border-radius:20px;font-weight:800}
  .btn.big,.wiz-foot .btn{min-height:76px;font-size:21px;border-radius:22px}
  .btn.small{min-height:52px;font-size:17px;padding:0 20px;border-radius:16px}
  .item .btn.small,.lead .stage,.stage{min-height:48px;display:inline-flex;align-items:center}
  .stage,.lead .stage{font-size:16px!important;padding:0 18px!important}
  .lead{min-height:88px;padding:16px!important}
  .lead .av,.crow .av,.av{width:52px!important;height:52px!important;font-size:20px!important}
  .item .t,.lead b,.crow .t{font-size:18px!important}
  .subtabs a{padding:14px 20px;font-size:17px}
  body .jtabs button,body .dtabs button,body .ftabs button{min-height:56px;font-size:17px}
  .tabbar{padding-top:8px}
  .tabbar a,.tabbar button{min-height:66px;font-size:13px;gap:4px}
  .tabbar a svg{width:30px;height:30px}
  .tabbar .peteb .pc{width:74px;height:74px;margin-top:-38px}
  body.hastabs{padding-bottom:190px}
  body.hastabs .snapfab{bottom:calc(100px + env(safe-area-inset-bottom,0px))}
  .snapfab{width:70px;height:70px}
  .snapfab svg{width:30px;height:30px}
  .moreb,.iconb{width:58px;height:58px;border-radius:19px}
  .opt{min-height:80px}
  .opt b{font-size:20px}
  input,select{min-height:64px;font-size:19px!important}
  .tile b{font-size:30px}
  .tile span{font-size:15px}
  .move{min-height:80px}
  .move span{font-size:17px}
  .moregrid a{min-height:124px}
  .moregrid b{font-size:18px}
  .wiz-top button{width:56px;height:56px;min-width:56px}
  .tg{min-height:88px}
  .sw2{width:64px;height:38px} .sw2::after{width:32px;height:32px} .tg[aria-pressed="true"] .sw2::after{transform:translateX(26px)}
}
/* phones: page styles can't shrink the buttons back down */
@media (max-width:899px){
  .btn{min-height:64px!important;font-size:19px!important}
  .btn.small{min-height:52px!important;font-size:17px!important}
  .btn.big,.wiz-foot .btn,.hero .acts .btn{min-height:74px!important;font-size:21px!important}
  .hero .acts .glass{width:74px!important}
  .tabbar a svg,.tabbar button svg{width:30px!important;height:30px!important}
  .pill{font-size:15px;padding:8px 14px}
}
@media (max-width:899px){ .moreb,.iconb{width:58px!important;height:58px!important;border-radius:19px!important} }
/* ═══════════ On the job: huge buttons, big bottom bar ═══════════ */
@media (max-width:899px){
  /* bottom bar */
  .tabbar{padding:10px 2px calc(10px + env(safe-area-inset-bottom,0px))}
  .tabbar a,.tabbar button{min-height:76px;font-size:13.5px;font-weight:700;gap:6px;letter-spacing:-.01em}
  .tabbar a svg,.tabbar button svg{width:34px!important;height:34px!important;stroke-width:2.2}
  .tabbar a.on svg{padding:5px 16px;margin:-5px 0;border-radius:14px}
  .tabbar .peteb .pc{width:82px;height:82px;margin-top:-44px}
  .tabbar .peteb .mb{width:30px;height:30px}
  body.hastabs{padding-bottom:210px}
  body.hastabs .snapfab{bottom:calc(116px + env(safe-area-inset-bottom,0px))}
  .snapfab{width:80px!important;height:80px!important}
  .snapfab svg{width:36px!important;height:36px!important}
  /* job file (Jobs) and Today: the screens used mid-job */
  body:has(.ba) .col .btn,body:has(.dtabs) .col .btn{min-height:84px!important;font-size:22px!important;border-radius:24px!important;font-weight:800}
  body:has(.ba) .col .btn.small,body:has(.dtabs) .col .btn.small{min-height:60px!important;font-size:18px!important}
  body:has(.ba) .col .btn svg,body:has(.dtabs) .col .btn svg{width:26px;height:26px}
  body:has(.ba) .two,body:has(.dtabs) .two{gap:12px}
  .ba-t{aspect-ratio:3/4}
  .ba-t b{font-size:21px}
  .ba-t .ba-i{width:68px;height:68px}
  .ba-re{width:52px;height:52px}
}
/* ═══════════ Phones: everything bigger (big thumbs, gloves, dust) ═══════════ */
@media (max-width:899px){
  html{zoom:1.14}
  .tabbar a,.tabbar button{font-size:14px!important;font-weight:800}
  .small,.s,.item .s,.lead .s,.crow .s,.tile span,.hint,.muted{font-size:15px!important}
  .wiz-sub{font-size:18px!important}
  .pill{font-size:15px!important}
  label{font-size:16px}
}
@media (max-width:899px){
  .tabbar a,.tabbar button{font-size:13px!important;padding:4px 1px}
  .snapfab{width:66px!important;height:66px!important}
  .snapfab svg{width:30px!important;height:30px!important}
  .stage,.lead .stage{padding:0 14px!important}
  body .hero .acts .btn{white-space:nowrap}
}

/* ═══ Phone tidy (Nov 2026). Phones only, so laptops and desktops look exactly as before. ═══
   Tab bar: six equal columns that never stretch, so Pete stays in the same spot on every page
   and the highlighted tab no longer shoves its neighbours. Home greeting: fits beside the buttons. */
@media (max-width:899px){
  .tabbar{grid-template-columns:repeat(6,minmax(0,1fr))!important;column-gap:0}
  .tabbar a,.tabbar button{min-width:0;padding-left:0!important;padding-right:0!important}
  .tabbar a span,.tabbar button>span:not(.pc){max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tabbar a.on svg{padding:5px 8px!important}
  .tabbar .peteb{justify-self:center;width:100%}
  body .hello{gap:10px}
  body .hello .grow{min-width:0}
  body .hello h1{font-size:clamp(26px,8vw,38px)!important;line-height:1.04;overflow-wrap:normal;word-break:normal;hyphens:none}
  body .hello:has(.bizlogo) h1{font-size:clamp(24px,6.6vw,32px)!important}
  body .hello .grow>span{font-size:15px}
}
@media (max-width:360px){
  .tabbar a,.tabbar button{font-size:11.5px!important}
  .tabbar a svg,.tabbar button svg{width:28px!important;height:28px!important}
}
