/* Chris's pick, 8 Oct 2026: layout 5 (Needs you first), colours E (Hi-vis). Charcoal menu, workwear yellow for the
   main button. Every colour is a token here. Status colours keep their own meaning and are never used for anything else. */
:root{--nav:#20252b;--nav-ink:#e9ecef;--nav-on:rgba(255,255,255,.12);--pri:#f5b301;--pri-ink:#1d1a10;--accent:#7d5800;--bg:#f5f4f0;--surface:#fff;--ink:#1d2126;--muted:#646a72;--line:#e0ded7;--tint:#fdf3d3;
 --yes:#17794a;--yes-bg:#e1f3e8;--call:#8f5600;--call-bg:#fcefd3;--wait:#2f5580;--wait-bg:#e5edf6;--later:#65568c;--later-bg:#eeebf6;--cold:#646e7a;--cold-bg:#eceef1;--look:#b23a1c;--look-bg:#fbe5de}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.4 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-variant-numeric:tabular-nums;-webkit-text-size-adjust:100%}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--accent)}
.shell{min-height:100%;display:grid;grid-template-rows:1fr auto}
.side{display:none}
.main{min-width:0;display:flex;flex-direction:column}
.top{background:var(--surface);border-bottom:1px solid var(--line);padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top,0px));display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:2}
.top h1{margin:0;font-size:19px;font-weight:800;flex:1;min-width:0}
.body{padding:16px;display:flex;flex-direction:column;gap:14px;max-width:980px;width:100%;margin:0 auto}
.tabs{display:grid;grid-template-columns:repeat(5,1fr);background:var(--surface);border-top:1px solid var(--line);padding:6px 4px calc(8px + env(safe-area-inset-bottom,0px));position:sticky;bottom:0}
.tabs a{text-align:center;font-size:12px;color:var(--muted);text-decoration:none;padding:8px 0;border-radius:8px}
.tabs a.on{color:var(--accent);font-weight:700;background:var(--tint)}
.badge{background:var(--look);color:#fff;border-radius:99px;font-size:11px;font-weight:700;padding:1px 7px;margin-left:4px}
.btn{background:var(--pri);color:var(--pri-ink);border:1.5px solid var(--pri);border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-block;text-align:center;min-height:44px}
.btn.ghost{background:var(--surface);color:var(--accent);border-color:var(--line)}
.btn.warn{background:var(--surface);color:var(--look);border-color:var(--line)}
.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.row-btns{display:flex;flex-wrap:wrap;gap:8px}
.sum{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:baseline}
.sum b{font-size:30px;font-weight:800;letter-spacing:-.01em}
.sum span{color:var(--muted)}
.banner{background:var(--call-bg);color:var(--call);border-radius:12px;padding:12px 14px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:space-between}
.banner.info{background:var(--tint);color:var(--ink)}
.drop{border:2px dashed var(--line);border-radius:14px;padding:16px;background:var(--surface);display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;color:var(--muted)}
.drop strong{color:var(--ink)}
.drop.big{padding:28px 16px;justify-content:center;text-align:center;flex-direction:column}
#dropveil{position:fixed;inset:0;background:rgba(32,37,43,.9);z-index:9;display:grid;place-items:center;color:#fff;font-size:24px;font-weight:800;pointer-events:none}
#dropveil div{border:3px dashed #fff;border-radius:18px;padding:40px 28px}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1.5px solid var(--line);border-radius:99px;padding:7px 13px;font-size:14px;color:var(--muted);background:var(--surface);cursor:pointer}
.chip.on{background:var(--tint);border-color:transparent;color:var(--accent);font-weight:700}
.st{display:inline-block;border-radius:99px;padding:3px 10px;font-size:13px;font-weight:700;white-space:nowrap}
.st.waiting{background:var(--wait-bg);color:var(--wait)}.st.yes,.st.won{background:var(--yes-bg);color:var(--yes)}.st.call{background:var(--call-bg);color:var(--call)}
.st.later{background:var(--later-bg);color:var(--later)}.st.cold,.st.no,.st.lost,.st.stopped{background:var(--cold-bg);color:var(--cold)}.st.check{background:var(--look-bg);color:var(--look)}
.list{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.q{padding:13px 15px;display:grid;grid-template-columns:1fr auto;gap:3px 12px;border-top:1px solid var(--line);text-decoration:none;color:inherit}
.q:first-child{border-top:0}
.q:hover{background:var(--tint)}
.q .n{font-weight:700;min-width:0;overflow-wrap:anywhere}.q .a{font-weight:800;text-align:right}
.q .j,.q .w{color:var(--muted);font-size:14px;min-width:0;overflow-wrap:anywhere}.q .c{text-align:right}.q .w{grid-column:1/-1}
.empty{padding:26px 16px;text-align:center;color:var(--muted)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
.card h2{margin:0;font-size:16px}
.qbox{background:var(--tint);border-radius:10px;padding:12px 14px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.qbox b{font-size:24px}
.muted{color:var(--muted)}
.time{display:flex;flex-direction:column;gap:9px;border-left:2px solid var(--line);margin-left:5px;padding-left:15px}
.time div{position:relative;font-size:15px}
.time div::before{content:"";position:absolute;left:-21px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--line)}
.time div.hit::before{background:var(--yes)}
.time small{color:var(--muted);display:block}
form.f{display:grid;gap:12px}
.f label{display:grid;gap:4px;font-weight:600;font-size:14px}
.f input,.f select,.f textarea{border:1.5px solid var(--line);border-radius:10px;padding:11px 12px;background:var(--surface);font-weight:400;font-size:16px;width:100%;min-height:44px}
.f .bad input,.f .gap input{border-color:var(--look);background:var(--look-bg)}
.f small{font-weight:400;color:var(--muted)}
.f .err{color:var(--look);font-weight:600}
.two{display:grid;gap:12px}
.split{display:grid;gap:14px}
pre.orig{margin:0;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:12px;font:13px/1.45 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;overflow:auto;max-height:420px}
img.orig{max-width:100%;border-radius:10px;border:1px solid var(--line)}
.bubble{background:var(--yes-bg);border-radius:14px 14px 14px 4px;padding:11px 13px;max-width:34ch;overflow-wrap:anywhere}
iframe.mail{display:block;width:100%;height:640px;border:1px solid var(--line);border-radius:10px;background:#f2f4f7}
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.tile b{display:block;font-size:24px;font-weight:800}.tile span{font-size:13px;color:var(--muted)}
table.plan{width:100%;border-collapse:collapse;font-size:15px}
table.plan td,table.plan th{text-align:left;padding:8px 6px;border-top:1px solid var(--line)}
table.plan th{color:var(--muted);font-size:13px;border-top:0}
#toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:11px 18px;border-radius:99px;z-index:10;max-width:90vw;text-align:center}
.hello{max-width:460px;margin:0 auto;padding:28px 16px;display:flex;flex-direction:column;gap:16px}
.hello h1{margin:0;font-size:28px;font-weight:800}
@media (min-width:760px){
 .shell{grid-template-columns:220px 1fr;grid-template-rows:1fr}
 .side{display:flex;flex-direction:column;gap:4px;background:var(--nav);color:var(--nav-ink);padding:18px 12px;position:sticky;top:0;height:100vh}
 .side .logo{font-weight:800;font-size:18px;padding:4px 10px 16px}
 .side a{color:inherit;text-decoration:none;padding:10px 12px;border-radius:9px;display:flex;justify-content:space-between;align-items:center}
 .side a.on{background:var(--nav-on);font-weight:700}
 .side .cred{margin-top:auto;font-size:13px;padding:12px;border-radius:10px;background:var(--nav-on)}
 .tabs{display:none}
 .body{padding:24px 28px}
 .q{grid-template-columns:1.1fr 1.6fr auto 90px;align-items:center}
 .q .w{grid-column:auto;grid-row:auto}.q.wide .w{grid-column:2}
 .two{grid-template-columns:1fr 1fr}
 .split{grid-template-columns:1fr 1fr;align-items:start}
 .tiles{grid-template-columns:repeat(4,1fr)}
 #toast{bottom:28px}
}
/* a quote row: name and amount on top, job and status beneath on a phone; one line across on a wider screen */
.q{grid-template-columns:1fr auto;grid-template-areas:"n a" "j c"}
.q .n{grid-area:n}.q .a{grid-area:a}.q .j{grid-area:j}.q .c{grid-area:c}
.q small{display:block;color:var(--muted);font-weight:400;font-size:14px}
@media (min-width:760px){.q{grid-template-columns:1.1fr 1.7fr auto 90px;grid-template-areas:"n j c a"}}
/* Needs you first: the jobs only a person can do sit in cards at the top; what is being chased sits quietly below */
.h{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:6px 0 -6px}
.cards{display:grid;grid-template-columns:1fr;gap:10px}
.need{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:6px;min-width:0}
.need .hd{display:flex;justify-content:space-between;align-items:center;gap:8px}
.need .a{font-size:24px;font-weight:800}.need .n{font-weight:700;overflow-wrap:anywhere}.need .j{color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.need .note{background:var(--bg);border-radius:8px;padding:8px 10px;font-size:15px;overflow-wrap:anywhere}
.need .row-btns{margin-top:6px}
.need .btn{padding:9px 14px}
.allclear{background:var(--yes-bg);color:var(--yes);border-radius:14px;padding:14px 16px;font-weight:600}
.side .logo i{display:inline-block;width:22px;height:22px;border-radius:6px;background:var(--pri);vertical-align:-4px;margin-right:8px}
@media (min-width:760px){.cards{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1100px){.cards{grid-template-columns:repeat(3,1fr)}}
/* reminders and wording */
.presets{display:grid;grid-template-columns:1fr;gap:8px}
.preset{font:inherit;color:inherit;text-align:left;background:var(--surface);border:1.5px solid var(--line);border-radius:12px;padding:12px;cursor:pointer;display:flex;flex-direction:column;gap:3px;min-width:0}
.preset:hover{border-color:var(--pri);background:var(--tint)}
.preset span{color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.step-top{display:flex;justify-content:space-between;align-items:center}
.step-when{display:flex;flex-wrap:wrap;gap:8px 10px;align-items:center}
.f input.num{width:74px;text-align:center;font-weight:700}
.f input.time{width:auto}
.tick{display:flex!important;grid-template-columns:none;align-items:center;gap:6px;font-weight:600;border:1.5px solid var(--line);border-radius:10px;padding:8px 12px;min-height:44px;cursor:pointer;background:var(--surface)}
.f .tick input{width:20px;height:20px;min-height:0;accent-color:var(--ink)}
.link{background:none;border:0;color:var(--look);font-weight:600;cursor:pointer;padding:6px}
.bubble.small{font-size:15px;max-width:none}
.fchips{display:flex;flex-wrap:wrap;gap:6px}
.fchips .chip{border-style:dashed;color:var(--ink)}
.fchips small{color:var(--muted);font-weight:400}
.savebar{position:sticky;bottom:64px;background:var(--bg);padding:10px 0}
.tabs a{font-size:11px}
@media (min-width:760px){.presets{grid-template-columns:repeat(3,1fr)}.savebar{bottom:0}}
/* email design */
.tick.wide{align-items:flex-start;border:0;padding:4px 0;min-height:0;background:none}
.tick.wide small{display:block;font-weight:400;color:var(--muted)}
.f .tick.wide input{margin-top:2px;flex:none}
.thumb{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px;min-width:72px;height:56px}
.thumb img{max-width:130px;max-height:42px;display:block}
.badge-row{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center}
.f input[type=color]{width:74px;padding:4px;height:44px}
iframe.mail.tall{height:78vh;min-height:520px}
@media (min-width:760px){.stick{position:sticky;top:76px}}
#d-preview,#w-preview{overflow:hidden}
/* the set-up guide: full screen on a phone, a centred card with the email beside it on a wider screen */
#sheet{position:fixed;inset:0;z-index:8;background:rgba(32,37,43,.6);display:flex;align-items:stretch;justify-content:center}
.wz{background:var(--bg);width:100%;display:grid;grid-template-columns:1fr;min-height:0}
.wz-main{display:flex;flex-direction:column;min-height:0;background:var(--surface)}
.wz-top{display:flex;align-items:center;gap:12px;padding:14px 18px;padding-top:calc(14px + env(safe-area-inset-top,0px));border-bottom:1px solid var(--line)}
.wz-bar{flex:1;height:8px;border-radius:9px;background:var(--line);overflow:hidden}
.wz-bar i{display:block;height:100%;background:var(--pri);border-radius:9px;transition:width .25s}
.wz-step{flex:1;overflow:auto;padding:22px 18px;display:flex;flex-direction:column;gap:12px;animation:wzin .22s ease-out}
.wz-step h2{margin:0;font-size:24px;font-weight:800;text-wrap:balance}
.wz-step p{margin:0;max-width:52ch}
.wz-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line)}
.wz-right{display:flex;align-items:center;gap:6px}
.wz-side{display:none}
.link.plain{color:var(--muted)}
.swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.swatch{font:inherit;font-size:13px;color:inherit;background:var(--surface);border:2px solid var(--line);border-radius:12px;padding:8px;cursor:pointer;display:flex;flex-direction:column;gap:6px;align-items:stretch;text-align:center}
.swatch i{display:block;height:34px;border-radius:7px}
.swatch.on{border-color:var(--ink)}
.ticks{display:grid;gap:8px}
.thumb.big{height:auto;padding:8px}.thumb.big img{max-width:220px;max-height:120px}
#wz-preview-last iframe.mail.tall{height:60vh}
@keyframes wzin{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.wz-step{animation:none}.wz-bar i{transition:none}}
@media (min-width:900px){
 #sheet{align-items:center;padding:24px}
 .wz{max-width:1040px;height:min(760px,92vh);border-radius:18px;overflow:hidden;grid-template-columns:minmax(0,11fr) minmax(0,9fr)}
 .wz-side{display:flex;flex-direction:column;gap:8px;padding:16px;min-width:0;overflow:hidden}
 .wz-side iframe.mail.tall{height:calc(min(760px,92vh) - 64px);min-height:0}
 #wz-preview-last{display:none}
 .ticks{grid-template-columns:1fr 1fr}
}
/* our own yes-or-no box */
.askbox{background:var(--surface);border-radius:16px;padding:22px;max-width:420px;width:calc(100% - 32px);align-self:center;display:flex;flex-direction:column;gap:14px;font-size:17px;font-weight:600}
.askbox p{margin:0}
.hello .card h2{font-size:20px}
/* the six additions */
.q small.hot{color:var(--call);font-weight:700}
.f .step-when input.time{min-height:44px}
