
:root{--ink:#23372e;--green:#274f3f;--muted:#727a75;--line:#dce1dc;--paper:#fff;--wash:#f1f3ef;--amber:#8b5e21}*{box-sizing:border-box}body{margin:0;background:#eeefea;color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.5}button{border:0;background:transparent}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.8px;line-height:1.18;margin:8px 0}h2{font-size:19px;letter-spacing:-.4px;margin:22px 0 12px}h3{font-size:16px}small,.muted{color:var(--muted)}small{font-size:12px}a{color:var(--green)}.layout{max-width:1160px;margin:34px auto;display:grid;grid-template-columns:265px 420px 245px;gap:38px;align-items:start}.side{padding:24px 0;position:sticky;top:20px}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}.side h1{font-size:30px;margin:13px 0}.side p{color:#636c65;margin:16px 0}.scenario{display:block;text-align:left;width:100%;padding:12px 13px;margin:4px 0;border-radius:8px}.scenario.active{background:#dce4db}.scenario strong,.scenario small{display:block}.side hr{border:0;border-top:1px solid #cfd5cf;margin:22px 0}.app{background:white;border:1px solid #cfd6ce;border-radius:22px;overflow:hidden;box-shadow:0 12px 35px #2033270a;min-height:820px;position:relative}.top{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 8px}.logo{font-size:23px;font-weight:700;letter-spacing:-1px}.logo small{display:block;font-size:8px;letter-spacing:2.7px;font-weight:500;margin-top:-4px}.avatar{border-radius:50%;width:35px;height:35px;background:#e6ece5;display:grid;place-items:center;font-size:12px}.saved{padding:4px 24px 10px;font-size:11px;color:#798179}.content{padding:5px 24px 28px;min-height:654px}.back{padding:10px 0;font-size:13px;color:var(--green);min-height:42px}.sub{color:#69756c;margin:6px 0 18px}.dates{display:flex;gap:5px;margin:23px 0;border-bottom:1px solid var(--line);padding-bottom:18px}.date{flex:1;border-radius:9px;padding:9px 4px;font-size:12px}.date b{display:block;font-size:17px}.date.active{background:var(--green);color:white}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin-top:20px}.sectionhead h2{margin:0}.link{font-size:13px;color:var(--green);text-decoration:underline;padding:9px 0}.event{display:flex;text-align:left;gap:13px;width:100%;padding:19px 0;align-items:flex-start}.event .time{font-size:12px;color:#788078;margin-bottom:3px}.event p{font-size:13px;color:#738075;margin-top:5px}.ico{width:34px;height:34px;border:1px solid #b9c8bc;background:#edf2ec;display:grid;place-items:center;border-radius:50%;flex:none}.event.next{background:#f2f5f0;margin:8px -10px;padding:17px 10px;width:calc(100% + 20px);border-radius:8px}.grow{flex:1}.chev{color:#6a776f;font-size:21px}.travel{font-size:12px;background:#f4f5f2;border-radius:6px;padding:10px 12px;margin:0 0 0 46px;color:#687169}.badge{display:inline-block;font-size:11px;padding:4px 8px;border-radius:4px;background:#eaf0e6;color:#426044}.warn{background:#faf0dc;color:var(--amber)}.notice{font-size:13px;padding:12px;background:#f3f5f0;border-radius:6px;margin:15px 0}.notice.warn{background:#faf0dc}.primary,.secondary{display:block;width:100%;padding:14px 15px;border-radius:7px;min-height:48px;margin-top:12px;text-align:center;font-weight:600}.primary{background:var(--green);color:white}.secondary{border:1px solid #ccd5cc;background:white}.row{display:flex;align-items:center;gap:12px;padding:17px 0;width:100%;text-align:left;border-bottom:1px solid var(--line)}.row small{display:block;margin-top:3px}.row .grow{min-width:0}.tabs{display:flex;border-bottom:1px solid var(--line);margin:22px -24px 10px;padding:0 15px}.tabs button{flex:1;padding:13px 3px;font-size:13px;border-bottom:2px solid transparent}.tabs .active{color:var(--green);border-color:var(--green);font-weight:600}.nav{display:flex;border-top:1px solid var(--line);background:#fff;position:sticky;bottom:0;padding:8px 12px}.nav button{flex:1;padding:10px 2px;font-size:12px;color:#7b837c}.nav .active{color:var(--green);font-weight:700}.nav span{display:block;font-size:20px;line-height:1.2;margin-bottom:3px}.meta{margin:18px 0;display:grid;gap:8px;font-size:14px}.stages{display:flex;justify-content:space-between;padding:15px 0;color:#6e786e;font-size:11px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.stages b{color:var(--green)}.check{display:flex;align-items:flex-start;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);cursor:pointer}.check input{width:21px;height:21px;accent-color:var(--green);margin:1px 0;flex:none}.check small{display:block}.progress{height:5px;background:#e6e9e3;border-radius:9px;margin:12px 0 18px;overflow:hidden}.progress i{display:block;height:100%;background:#6b8b6b}.window{height:132px;border:1px dashed #b5beb5;background:#f7f8f5;display:grid;place-items:center;color:#839080;font-size:12px;margin:16px 0}.measurements{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.measurements div{border-right:1px solid var(--line)}.measurements div:last-child{border:0}.measurements small{font-size:10px;display:block}.measurements b{font-size:19px}.swatch{width:43px;height:53px;border:1px solid #d5d7cc;background:#e9dfc5;flex:none}.swatch.lace{background:repeating-linear-gradient(90deg,#fff,#fff 3px,#eee 4px)}label.field{display:block;font-size:13px;margin:16px 0}input[type=text],input[type=number],select,textarea{width:100%;padding:11px;border:1px solid #c6cfc6;border-radius:5px;background:white;color:var(--ink);margin-top:5px}textarea{min-height:85px;resize:vertical}.inline{display:grid;grid-template-columns:1fr 1fr;gap:12px}.inline label.field{margin:7px 0}.footnote{font-size:11px;color:#80867f;margin-top:17px}.empty{padding:45px 0;text-align:center}.step{padding:11px 0;border-bottom:1px solid #d5dad2;font-size:13px}.step b{color:#879381;margin-right:10px}.right h2{margin-top:0}.right p{font-size:13px}.right .current{color:var(--green);font-weight:700}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#243d2e;color:white;border-radius:8px;z-index:10;max-width:90vw}.reset{color:#865c44;font-size:12px;text-decoration:underline;padding:12px 0}.photo{border:1px dashed #b6c2b4;padding:18px 10px;text-align:center;margin:10px 0;color:#657460;font-size:12px}.note{font-size:13px;padding:12px 0;border-bottom:1px solid var(--line)}.pill{border:1px solid var(--line);padding:8px 12px;border-radius:30px;font-size:12px}.pill.active{background:#e2eadd}.filter{display:flex;gap:8px;margin:15px 0}.route{padding:18px;border:1px dashed #b9c4b6;margin:16px 0;line-height:2.4}.success{font-size:35px;color:#5c8058;margin:24px 0 5px}@media(max-width:1000px){.layout{grid-template-columns:230px 420px;justify-content:center;gap:24px}.right{display:none}}@media(max-width:700px){body{background:white}.layout{display:block;margin:0}.side{position:static;padding:10px 16px;border-bottom:1px solid var(--line)}.side>h1,.side>p,.side .eyebrow,.side hr,.side .reset,.side .desktop{display:none}.scenarios{display:flex;gap:3px;overflow:auto}.scenario{white-space:nowrap;font-size:11px;padding:8px;margin:0;width:auto}.scenario small{display:none}.app{border:0;border-radius:0;min-height:calc(100dvh - 55px);max-width:480px;margin:auto;box-shadow:none}.content{min-height:calc(100dvh - 220px)}.top{padding-top:15px}.nav{padding-bottom:max(10px,env(safe-area-inset-bottom))}.right{display:none}}@media(prefers-reduced-motion:no-preference){.content{animation:appear .15s ease}@keyframes appear{from{opacity:.6}to{opacity:1}}}

/* Reference-led revision: focused app, clear timeline and progressive disclosure. */
body{background:#f6f5f1;color:#102032}.layout{display:block;width:430px;max-width:100%;margin:28px auto}.side{display:none}.app{border-radius:30px;border:1px solid #d8ddd7;box-shadow:0 12px 45px #18372a0d;min-height:820px}.top{padding:26px 25px 12px}.logo{font-size:30px;letter-spacing:-1.3px;color:#12513d}.logo small{color:#12392d;font-size:8px;letter-spacing:3px;margin-top:-6px}.avatar{background:#dce7db;color:#23523d;width:37px;height:37px}.saved{display:none}.content{padding:8px 25px 25px;min-height:660px;animation:none}h1{font-size:29px;color:#0d1d30;letter-spacing:-1px}h2{font-size:21px;color:#102032}.sub{font-size:16px;color:#59697a;margin-top:4px}.dates{margin:19px 0 22px;padding-bottom:21px;gap:10px}.date{color:#4d6070;padding:10px 4px}.date b{font-size:16px;font-weight:500}.date.active{background:#15543e}.nav{padding:9px 16px 14px}.nav button{font-size:13px;color:#536779}.nav button.active{color:#15543e}.nav svg{display:block;margin:0 auto 4px;width:24px;height:24px}.route-heading{display:flex;align-items:center;justify-content:space-between;margin:22px 0 18px}.route-heading h2{margin:0;font-size:20px}.route-heading button{color:#15543e;font-size:12px}.route-controls{display:flex;justify-content:space-between;gap:8px;margin-top:-7px}.route-controls button{font-size:12px;padding:5px 0;color:#506475}.timeline{position:relative}.timeline:before{content:'';position:absolute;left:17px;top:35px;bottom:44px;border-left:1px dashed #96aaa2}.stop{position:relative;display:flex;width:100%;gap:13px;padding:12px 0 20px;text-align:left;align-items:flex-start}.stop-circle{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#4d85cb;color:white;flex:none;position:relative;z-index:1}.stop-circle.gold{background:#b48b27}.stop-circle.green{background:#356a55}.stop-circle svg{width:21px;height:21px}.stop-body{flex:1;min-width:0}.stop-title{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.stop-title time{font-size:12px;white-space:nowrap}.stop-title strong{font-size:14px;letter-spacing:-.25px}.stop p{font-size:13px;color:#43566b;margin:3px 0}.stop small{font-size:11px;color:#657682;display:block;margin-top:6px}.journey{position:relative;display:flex;gap:10px;align-items:center;margin:0 0 17px 49px;padding:12px;background:#f3f5f4;border-radius:8px;font-size:12px;color:#3e5265}.journey:before{content:'';position:absolute;left:-37px;width:10px;height:10px;border-radius:50%;background:#8ca79a;outline:4px solid white}.journey svg{width:19px;height:19px;flex:none}.route-foot{font-size:10px;color:#889189;margin-top:15px}.primary{background:#15543e;border-radius:7px}.row{padding:19px 0;gap:14px}.row svg{flex:none;width:23px;height:23px;color:#526674}.row strong{font-size:15px;color:#132337}.row small{font-size:12px;color:#617182}.meta{gap:12px;margin:23px 0}.meta>span{display:flex;align-items:center;gap:12px}.meta svg{width:20px;height:20px;color:#627280}.stages{border:0;display:flex;gap:8px;margin:22px 0 12px;padding:0 0 20px;border-bottom:1px solid #dbe1df}.stage{flex:1;text-align:center;position:relative;font-size:12px;color:#526375}.stage:not(:last-child):after{content:'';position:absolute;top:17px;left:72%;width:56%;height:1px;background:#a6b5b1}.stage i{display:flex;align-items:center;justify-content:center;margin:0 auto 7px;width:35px;height:35px;background:#e2ebe4;border-radius:50%;color:#1a5a3f;font-style:normal;font-size:21px}.stage.current i{background:#15543e;color:white}.stage.current{color:#0e2530;font-weight:600}.back{color:#15543e;font-weight:500}.jobsummary .back{padding-top:0}.jobsummary .sub{margin-bottom:0}.overview-travel{display:flex;gap:12px;align-items:center;padding:17px 0;border-bottom:1px solid #dbe1df}.overview-travel svg{width:22px;height:22px;flex:none;color:#536a73}.overview-travel small{display:block;font-size:11px}.overview-travel button{color:#15543e;font-size:12px;padding:5px 0}.completion-hint{font-size:12px;color:#687989;padding:16px 0 3px}.route-filter{display:flex;gap:7px;flex-wrap:wrap}.route-filter .pill{font-size:12px;padding:7px 11px}.notice{font-size:13px}.window{border-radius:8px}.app .footnote{font-size:10px}@media(max-width:700px){.layout{width:100%;margin:0}.app{border:0;border-radius:0;box-shadow:none;max-width:480px}.top{padding-top:23px}.content{min-height:calc(100dvh - 160px)}.nav{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
/* Working employee application */
#connection{padding:0 25px 7px;font-size:10px;color:#758277;min-height:22px}.route-controls select{width:auto;border:0;padding:6px 2px;margin:0;font-size:12px;color:#506475;background:transparent}.route-controls label{font-size:12px;color:#506475}.route-caption{font-size:12px;color:#567063;margin:18px 0 12px;font-weight:600}.departure{font-size:11px;color:#74847b;padding:0 0 12px}.travel-source{display:block;font-size:10px;margin-top:3px;color:#71817b}.journey{border:0;width:calc(100% - 49px);text-align:left;cursor:pointer}.photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.photo-grid figure{margin:12px 0}.photo-grid img{width:100%;height:150px;object-fit:cover;border-radius:7px}.photo-grid figcaption{font-size:10px;color:#6f7b71}.upload{position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}.upload svg{width:20px;height:20px}.upload input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.upload:focus-within{outline:2px solid #15543e;outline-offset:3px}a.primary{text-decoration:none}button:focus-visible,select:focus-visible{outline:2px solid #15543e;outline-offset:3px}.app{min-height:850px}.content{min-height:650px}.nav{z-index:2}.muted{color:#647367}.stop{min-height:90px}.back{min-height:44px}.window{background:#f3f6f1}.measurements b{font-size:20px}.logo small{line-height:1.8}@media(max-width:700px){.app{min-height:100dvh}.content{min-height:calc(100dvh - 183px)}.top{padding-top:20px}.photo-grid img{height:125px}.nav{position:sticky;bottom:0;background:#fff}} 
input[type=password]{width:100%;padding:11px;border:1px solid #c6cfc6;border-radius:5px;background:white;color:var(--ink);margin-top:5px}
/* Bottom nav floats over the page. It was position:sticky, which .app{overflow:hidden} silently defeats, so on a phone it scrolled away with the page. Same mechanics as Sifumu's member-bottom-nav: fixed to the viewport, iPhone safe-area padded, and .content pads its own bottom so nothing hides behind the bar. Look unchanged. */
.nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:430px;padding-bottom:calc(14px + env(safe-area-inset-bottom));z-index:5}
.nav:empty{display:none}
.content{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
@media(max-width:700px){.nav{max-width:480px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}}
/* Calendar tab — Option D (David, 21-09-2026): three-week mini-month with a dot per visit, the upcoming list grouped by day, last week faded below. Dot colours are the timeline's own stop-circle colours: blue site visit, gold fitting, green install / trip. */
.mini{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center;margin:12px 0 4px;padding-bottom:14px;border-bottom:1px solid #dbe1df}.mini .wd{font-size:9px;color:#7b8a80;letter-spacing:.5px}.mini .d{position:relative;padding:5px 0 11px;font-size:12px;border-radius:8px;color:#4d6070;font-variant-numeric:tabular-nums}.mini .d.sel{background:#15543e;color:#fff}.mini .d.today:not(.sel){box-shadow:inset 0 0 0 1.5px #15543e}
.dots{position:absolute;left:0;right:0;bottom:3px;display:flex;justify-content:center;gap:2px}.dots i,.hd-dots i,.legend i{display:inline-block;width:4px;height:4px;border-radius:50%;background:#4d85cb}.hd-dots i,.legend i{width:7px;height:7px}.dots i.gold,.hd-dots i.gold,.legend i.gold{background:#b48b27}.dots i.green,.hd-dots i.green,.legend i.green{background:#356a55}.mini .d.sel .dots i{background:#fff}
.legend{display:flex;gap:12px;font-size:10px;color:#657682;margin:10px 0 4px}.legend i{margin-right:4px;vertical-align:middle}.hd-dots{display:inline-flex;gap:3px;margin-left:8px;vertical-align:middle}
.dayhead{display:flex;align-items:baseline;gap:8px;margin:20px 0 4px;padding-top:14px;border-top:1px solid #dbe1df}.days .dayhead:first-child{border-top:0;padding-top:0}.dayhead strong{font-size:14px}.dayhead.today strong{color:#15543e}.dayhead small{font-size:11px;color:#657682}.dayhead .pill.free{margin-left:auto;border:0;font-size:10px;padding:2px 7px;border-radius:10px;background:#f1f3ef;color:#7b8a80;font-weight:600}
.days .stop{min-height:0;padding:11px 0;border-bottom:1px solid #eef1ee}.days>.stop:last-child{border-bottom:0}.days .stop-circle{width:32px;height:32px}.days .stop-circle svg{width:18px;height:18px}.days .stop-title time{min-width:38px;color:#657682;font-variant-numeric:tabular-nums}.days .chev{align-self:center}
.past{opacity:.55}.past .dayhead{margin-top:28px}.past .link{display:block}
/* Field portal wave 2 (22-09-2026). Company chip — Thread vs Astanah, on visit rows and the job header. */
.chip{display:inline-block;flex:none;font-size:10px;font-weight:700;letter-spacing:.2px;padding:3px 9px;border-radius:20px;margin-left:auto}
.chip.thread{background:#e7efe9;color:#12513d}.chip.astanah{background:#f4eede;color:#6b4b12}
.jobsummary>.chip{margin:2px 0 0}
/* Calendar: header, mini month and legend stay put; only the day list scrolls under them (David, 22-09-2026 — replaces the scrollIntoView jump). Scoped to phone width, where .app already fills the viewport height. */
@media(max-width:700px){
.app[data-screen="calendar"]{display:flex;flex-direction:column;height:100dvh}
.app[data-screen="calendar"] .content{display:flex;flex-direction:column;flex:1;min-height:0;padding-bottom:0;overflow:hidden}
.app[data-screen="calendar"] .cal-head{flex:none}
.app[data-screen="calendar"] .cal-list{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:calc(100px + env(safe-area-inset-bottom))}
}
/* Packing: group headings, a note line, and a 22px colour block when the item carries a swatch — never a grey guess when it doesn't. */
.swatch-chip{width:22px;height:22px;border-radius:6px;flex:none;border:1px solid #d5d7cc}
.check .swatch-chip{margin:1px 0 0}.note{display:flex;align-items:flex-start;gap:10px}
/* Bottom nav: unread badge on Notices. */
.nav button{position:relative}
.badge-dot{position:absolute;top:2px;left:56%;min-width:14px;height:14px;padding:0 3px;border-radius:8px;background:#b3402f;color:#fff;font-size:9px;font-weight:700;line-height:14px;display:inline-block;text-align:center}
/* Notices — "For you" above "Everyone", unread marked with a dot, tap marks read. */
.notice-row{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;padding:14px 0;border-bottom:1px solid var(--line);min-height:44px}
.notice-row small{display:block;margin-top:3px}
.notice-row .dot{width:8px;height:8px;border-radius:50%;background:#b3402f;margin-top:6px;flex:none}
.notice-meta{color:var(--muted)}
/* Me — inert "coming soon" rows are informational, not controls. */
.row.inert{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--line);cursor:default}
.me-head{text-align:center;padding-top:6px}
.me-photo{display:block;position:relative;width:76px;height:76px;border-radius:50%;margin:0 auto 10px;overflow:hidden;background:#dce7db;cursor:pointer}
.me-photo img{width:100%;height:100%;object-fit:cover;display:block}
.avatar-lg{width:100%;height:100%;display:grid;place-items:center;font-size:28px;color:#23523d}
.me-photo input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}
.me-photo:focus-within{outline:2px solid #15543e;outline-offset:3px}
/* Your details form needs date/tel inputs styled the same as the rest (input[type=password] already has its own rule below, for the same reason). */
input[type=date],input[type=tel]{width:100%;padding:11px;border:1px solid #c6cfc6;border-radius:5px;background:white;color:var(--ink);margin-top:5px}
input:disabled{background:#f3f5f0;color:#647367}
/* .link buttons (Sign out, Show earlier, Discuss on WhatsApp, See all jobs) were measuring 38px tall — under the 44px
   touch-target minimum this app holds everywhere else. min-height + centering fixes the target without changing how
   the link reads (David's review, 22-09-2026). */
.link{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
/* Calendar day filter (approved artboard, 22-09-2026): the tapped day's name/summary above its visits, and the
   "Nothing booked" empty state reusing the existing .empty pattern. */
.dayhead.filtered{border-top:0;margin-top:4px;padding-top:0}
.day-summary{font-size:13px;color:var(--muted);margin:2px 0 16px}
.cal-list .empty{padding:30px 0}
