
: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 49px}.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;align-items:center;gap:2px}.dots i,.hd-dots i,.legend i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#1d5fd1}.dots i.gold,.hd-dots i.gold,.legend i.gold{background:#c77700}.dots i.green,.hd-dots i.green,.legend i.green{background:#15543e}
.dots i.slate,.hd-dots i.slate,.legend i.slate{background:#64748b}
.dots b,.hd-dots b{font-size:9px;line-height:7px;font-weight:700;color:#4d6070;margin-left:1px}
.mini .d.sel .dots b{color:#fff}
.cal-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;text-align:left;color:#506475;font-size:14px;margin:0 0 4px}
.cal-toggle::after{content:'▾';font-size:15px;transition:transform .15s}
.cal-toggle[aria-expanded=false]::after{transform:rotate(-90deg)}.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)}
/* build-brief-2026-09-28b.md item 5: a notice body keeps its own line breaks, and a "- " line
   renders as a list item, instead of one run-on paragraph. */
.notice-row small .line{display:block}
.notice-row small ul{margin:2px 0;padding-left:16px}
.notice-row .pill{font-size:10px;margin-left:6px;vertical-align:middle}
/* 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}
/* The visit protocol (build-brief-2026-09-28.md): a step strip on the job overview so a skipped
   step — packing, arrival, tasks, finish — is visible at a glance, not just when finish refuses
   to save. Handover choice on the finish screen reuses .check, same as every other tick list. */
.step-strip{font-size:12px;color:var(--muted);margin:4px 0 18px}
h2+.check{border-top:0}
.cal-list .empty{padding:30px 0}
/* one line per instruction (whatToDo in app.js) */
ul.lines{margin:6px 0 14px;padding-left:20px}
ul.lines li{margin:0 0 8px;line-height:1.4}
/* Wave 5 A: an inline icon with no size of its own (label.check > svg was one) rendered ~290px wide and squeezed the
   text beside it into a one-word column. Element selector, so every class rule above still wins; this is only the floor. */
svg{width:22px;height:22px;flex:none}
.check>svg{width:22px;height:22px;flex:none;margin:1px 0 0}
.sent{display:block;font-size:12px;color:var(--muted);margin:-4px 0 8px}
/* Wave 5 D: packing groups as drop-downs. Summary = group name, count, tick; the ticks themselves stay 21px .check rows. */
.pack-group{border-bottom:1px solid var(--line)}
.pack-group>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 0;cursor:pointer;list-style:none}
.pack-group>summary::-webkit-details-marker{display:none}
.pack-group>summary::after{content:"›";margin-left:auto;color:var(--muted);font-size:20px;transition:transform .15s}
.pack-group[open]>summary::after{transform:rotate(90deg)}
.pack-group>summary strong{font-size:16px}
.pack-group>summary small{color:var(--muted);font-size:12px}
.pack-group>summary .tick{color:var(--green);font-weight:700}
.pack-group>.check:first-of-type{border-top:0}
/* Wave 5 E: fabric pictures. 56px thumbnail on a packing line (the swatch chip stays 22px where there is no picture),
   a smaller one on the "Curtains for this job" rows, and the picture at full width above a window's measurements. */
.fab-thumb{width:56px;height:56px;border-radius:8px;object-fit:cover;flex:none;background:var(--wash);border:1px solid #d5d7cc}
.fab-thumb.sm{width:40px;height:40px}
.row .fab-thumb{margin:0}
.fab-hero{margin:0 0 14px}
.fab-hero img{display:block;width:100%;height:auto;max-height:340px;object-fit:cover;border-radius:12px;background:var(--wash)}
.fab-hero figcaption{font-size:12px;color:var(--muted);margin-top:6px}
.curtains-h{font-size:13px;color:var(--muted);text-transform:none;margin:14px 0 4px}
.curtain-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);padding:10px 0;min-height:52px;cursor:pointer;color:inherit;font-size:14px}
.curtain-row .chev{color:var(--muted)}

/* Wave 6 — the More tab. Work rows carry a status line and, where something is waiting, a red count or an amber pill. */
.count{font-size:11px;font-weight:700;background:#b3402f;color:#fff;border-radius:10px;padding:1px 8px;min-width:22px;text-align:center}
.pill.amber{background:#f4eede;color:#8b5e21;border:0;font-size:11px;font-weight:700;padding:3px 9px}
.pill.green{background:#e7efe9;color:#15543e;border:0;font-size:11px;font-weight:700;padding:3px 9px}
.pill.blue{background:#e6eef8;color:#2f6fb0;border:0;font-size:11px;font-weight:700;padding:3px 9px}
.pill.red{background:#f6e3df;color:#b3402f;border:0;font-size:11px;font-weight:700;padding:3px 9px}
.pill.grey{background:#f1f3ef;color:#727a75;border:0;font-size:11px;font-weight:700;padding:3px 9px}
.ico-wrap{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex:none;background:#e7efe9;color:#15543e}
.ico-wrap svg{width:19px;height:19px;color:#15543e}
.checkin-btn{min-height:64px;font-size:17px;margin:14px 0 4px}
.checked-in{font-size:13px;color:#15543e;font-weight:600;margin:2px 0 8px}
.lock-strip{display:flex;gap:8px;align-items:center;font-size:12px;color:#8b5e21;background:#f4eede;padding:9px 12px;border-radius:8px;margin:0 0 6px}
.lock-strip svg{width:15px;height:15px;flex:none}
.lbl{font-size:11px;font-weight:700;letter-spacing:.4px;color:#727a75;text-transform:uppercase;margin:18px 0 4px}
.sub-sm{font-size:12px;color:#727a75;margin:6px 0 0}
.person{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.person small{display:block}
.av-sm{width:32px;height:32px;border-radius:50%;background:#dce7db;color:#23523d;display:grid;place-items:center;font-size:12px;flex:none}
.seg{display:flex;border:1px solid #ccd5cc;border-radius:9px;overflow:hidden;flex:none}
.seg button{min-height:44px;padding:0 11px;font-size:13px;color:#4d6070;background:#fff}
.seg button+button{border-left:1px solid #ccd5cc}
.seg button.on{background:#15543e;color:#fff;font-weight:600}
.seg button.on.late{background:#8b5e21}
.seg button.on.off{background:#b3402f}
.day-card{display:block;width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:10px 0;min-height:44px}
.day-card.unread{border-color:#b3402f}
.dc-head{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.dc-head .pill{margin-left:auto}
.day-card .dot{width:8px;height:8px;border-radius:50%;background:#b3402f;flex:none}
.dc-ex{display:block;font-size:12px;color:#8b5e21;margin-bottom:3px}
.dc-note{display:block;font-size:14px;white-space:pre-line;margin:2px 0 4px}
.day-card small{display:block}

/* Wave 6 — stock, chips, steppers, paste. Every tap target is 44px or more. */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.fchip{border:1px solid #ccd5cc;border-radius:18px;padding:0 14px;min-height:44px;font-size:13px;background:#fff}
.fchip.on{background:#15543e;border-color:#15543e;color:#fff}
.stock-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.stock-name{flex:1;min-width:0;text-align:left;min-height:44px;padding:4px 0}
.stock-name strong{display:block;font-size:15px}
.stock-name small{display:block}
.low{color:#b3402f!important;font-weight:600}
.qty{display:flex;align-items:center;gap:6px;flex:none}
.qty button{width:44px;height:44px;border:1px solid #ccd5cc;border-radius:9px;font-size:20px;font-weight:600;background:#fff}
.qty b{min-width:34px;text-align:center;font-variant-numeric:tabular-nums;font-size:15px}
.qty-ro{font-size:15px}
.bigqty{display:flex;align-items:center;justify-content:center;gap:22px;margin:8px 0 6px}
.bigqty button{width:56px;height:56px;border:1px solid #ccd5cc;border-radius:12px;font-size:26px;background:#fff}
.bigqty b{font-size:30px;min-width:70px;text-align:center;font-variant-numeric:tabular-nums}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pr{border:1px solid var(--line);border-radius:10px;padding:12px;margin:10px 0}
.pr.unsure{border-color:#e0b46a;background:#fdf9ef}
.pr-line{display:flex;justify-content:space-between;gap:8px;font-family:ui-monospace,Menlo,monospace;font-size:12px;color:#3b4a42;margin-bottom:8px}
.pr-x{width:44px;height:44px;margin:-10px -8px 0 0;font-size:22px;color:#727a75}
.pr-row{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:8px}
select.sel{width:100%;min-height:44px;padding:0 10px;border:1px solid #c6cfc6;border-radius:7px;background:#fff;margin:4px 0;font-size:15px;color:var(--ink)}
.newbox{margin-top:6px}
.tabs2{display:flex;border-bottom:1px solid var(--line);margin:14px 0 4px}
.tabs2 button{flex:1;min-height:44px;font-size:14px;color:#727a75;border-bottom:2px solid transparent}
.tabs2 button.on{color:#15543e;font-weight:700;border-color:#15543e}
.shelf{display:block;width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:10px 0;min-height:44px}
.shelf .pill{margin-top:6px;display:inline-block}
.shelf .dc-head small{margin-left:0}
.stock-row .grow{min-width:0}
.stock-row .grow strong,.stock-row .grow small{display:block}

/* Wave 6 — Friday list */
.buy-row{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.dc-head+.buy-row{border-top:0}
.buy-row .grow{min-width:0}
.buy-row .grow strong,.buy-row .grow small{display:block}
.buy-row.is-bought strong{text-decoration:line-through;color:#727a75}
button.tick{width:44px;height:44px;flex:none;border:2px solid #9fb0a6;border-radius:10px;background:#fff;font-size:22px;color:#fff;margin:-2px 0}
button.tick.done{background:#15543e;border-color:#15543e}
button.tick:disabled{opacity:1}
.chg{min-height:44px;padding:0 6px;font-size:12px;color:#15543e;text-decoration:underline;flex:none}
.ask{border:1px solid #15543e;border-radius:10px;padding:12px;margin:8px 0;background:#f4f8f5;flex:1}
.ask p{margin:6px 0}
.choices{display:grid;gap:8px;margin:8px 0}
.choices button{min-height:44px;text-align:left;padding:8px 12px;border:1px solid #ccd5cc;border-radius:9px;background:#fff;font-size:14px}
.choices button.on{border-color:#15543e;background:#15543e;color:#fff;font-weight:600}
.pick-btn{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:0 12px;border:1px solid #c6cfc6;border-radius:7px;text-align:left}
.shop-other{display:flex;gap:8px;align-items:center;margin-top:6px}
.shop-other input{flex:1;min-height:44px;padding:0 10px;border:1px solid #c6cfc6;border-radius:7px}
.shop-other .secondary{width:auto;margin:0;padding:0 14px}
.shelf .buy-row .pill{margin-top:2px;display:inline-block}

/* Wave 6 — requests */
.req{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:10px 0}
.req small{display:block;margin-top:3px}
.req .dc-head{margin-bottom:2px}
.req-why{font-size:13px;margin:6px 0 0}
.req-dec{color:#15543e;font-weight:600}
.req-photo{width:64px;height:64px;object-fit:cover;border-radius:7px;margin-top:8px;display:block}
.acts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.acts button{margin-top:10px}
.field.cost{display:flex;align-items:center;gap:8px}
.field.cost input{margin-top:0}
.tabs2 button{white-space:nowrap;font-size:13px;padding:0 4px}

/* Wave 7 A: fabric pictures open full screen; a fabric with no picture says so. */
.fab-open{padding:0;border:0;background:none;flex:none;display:block;line-height:0;border-radius:8px;cursor:zoom-in}
.fab-hero .fab-open{width:100%}
small.nopic{color:var(--muted);font-style:normal}
#lightbox{position:fixed;inset:0;z-index:50;background:rgba(15,25,20,.92);display:flex;align-items:center;justify-content:center;padding:56px 16px 24px}
#lightbox figure{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:10px}
#lightbox img{max-width:100%;max-height:calc(100dvh - 140px);object-fit:contain;border-radius:8px;background:#fff}
#lightbox figcaption{color:#fff;font-size:15px;font-weight:600}
#lightbox .lb-close{position:absolute;top:8px;right:8px;width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:22px}

/* Wave 7 D: the basket. */
.pr-line.plain{font-family:inherit;font-size:13px;color:var(--muted);margin-bottom:2px}
.pr select.sel{margin:6px 0}
.pr-row select.sel.unit{width:auto;flex:1;margin:0}
.buy-row small.cond{color:#8b5e21;font-size:12px;margin-top:2px}

/* Wave 7 F: What did you use? */
.use-row{display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.use-row .grow strong,.use-row .grow small{display:block}
.use-row .qty{justify-self:end}
.use-quick{grid-column:1/-1;display:flex;gap:8px}
.use-quick button{flex:1;min-height:44px;border:1px solid #ccd5cc;border-radius:9px;background:#fff;font-size:13px}
.use-quick button.on{background:#15543e;border-color:#15543e;color:#fff;font-weight:600}

/* Wave 7 G: Missing information */
.gap-card{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:10px 0}
.gap-card small{display:block;margin-top:3px}
.gap-miss{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}

/* Wave 7 A1: read-only groups are lists with a hairline between them, not bordered boxes. Controls (buttons, inputs, the paste and basket rows) keep theirs. */
div.shelf{border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0;margin:0;min-height:0}
.req{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;margin:0}
.gap-card{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 0;margin:0}

/* Wave 8: what the maker is making; the Friday list's "Not yet scheduled" group */
.maker-card{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:8px 0}
.maker-card small{display:block;margin-top:2px}
.maker-card .dc-head{margin-bottom:0}
.buy-when{display:inline-block;margin-left:6px}
.row .src{font-size:10px}

/* Wave 10: the Rails block, the curtain status line, bullet lines in a packing note, and the spacing under a note */
.rail-line{padding:10px 0;border-bottom:1px solid var(--line)}.rail-line strong{display:block}.rail-line span{display:block;font-size:14px}.rail-line small{display:block;margin-top:2px}
.curtain-status{margin:14px 0 4px}
.kit-lines{margin:4px 0 2px;padding-left:18px;font-size:12px;color:var(--muted)}.kit-lines li{margin:2px 0}
.note small{display:block}
