:root{--pale:#ddf2ff;--blue:#548ff4;--deep:#2e60cf;--navy:#022135;--grey:#56708a;--line:#d3e8f8;--green:#23804a}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
body{font-family:"Segoe UI",Roboto,-apple-system,Arial,sans-serif;background:#f6fbff;color:var(--navy);font-size:16px;line-height:1.35;padding-bottom:calc(68px + env(safe-area-inset-bottom))}
.top{background:var(--pale);display:flex;align-items:center;gap:12px;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;position:sticky;top:0;z-index:5}
.top img{width:76px;height:76px;object-fit:contain;mix-blend-mode:multiply}
.top h1{font-size:21px}
.top span{font-size:14px;color:var(--deep)}
main{max-width:620px;margin:0 auto;padding:14px}
.banner{background:#ffe3a3;padding:9px 16px;font-size:14px;text-align:center}
label{display:block;font-size:13px;font-weight:700;margin:12px 0 4px}
input,textarea,select{width:100%;font:inherit;color:inherit;background:#fff;border:1.5px solid #bfdcf3;border-radius:10px;padding:11px 12px}
textarea{min-height:72px;resize:vertical}
.chips{display:flex;gap:8px}
.chips button{flex:1;background:#fff;border:1.5px solid #bfdcf3;border-radius:10px;padding:10px 4px;font:inherit;font-size:14px;color:inherit;cursor:pointer}
.chips button.on{background:var(--deep);border-color:var(--deep);color:#fff;font-weight:700}
.btn{display:block;width:100%;background:var(--deep);border:1.5px solid var(--deep);color:#fff;border-radius:12px;padding:13px;font:inherit;font-weight:700;margin-top:12px;cursor:pointer;text-align:center;text-decoration:none}
.btn.ghost{background:#fff;color:var(--navy);border-color:var(--navy)}
.btn.green{background:var(--green);border-color:var(--green)}
.btn.red{background:#fff;color:#a92f2f;border-color:#d64545}
.btn.small{display:inline-block;width:auto;padding:8px 12px;font-size:14px;margin:8px 8px 0 0}
.btn:disabled{opacity:.55;cursor:default}
.day{font-weight:700;font-size:15px;margin:16px 0 8px;display:flex;justify-content:space-between}
.day:first-child{margin-top:0}
.day span{color:var(--grey);font-weight:400}
.card{display:block;background:#fff;border:1.5px solid var(--line);border-left:6px solid var(--blue);border-radius:12px;padding:11px 13px;margin-bottom:9px;color:inherit;text-decoration:none}
.card b{font-size:16px}
.card p{font-size:14px;color:var(--grey);margin-top:2px;overflow-wrap:anywhere}
.tag{float:right;font-size:12px;font-weight:700;border-radius:20px;padding:3px 9px;margin-left:6px}
.t-new{background:var(--deep);color:#fff}.t-chg{background:#ffe3a3}.t-gone,.t-cant{background:#ffd5d5}.t-done{background:#cdeed6}.t-ex{background:#e7e7ef;color:#44495c}
.card.new{border-left-color:var(--deep);background:#eef7ff}
.card.chg{border-left-color:#e3a21a}
.card.done{border-left-color:var(--green)}
.card.cant{border-left-color:#d64545}
.card.gone{border-left-color:#d64545;opacity:.75}
.card.gone b{text-decoration:line-through}
.card.sel{outline:2px solid var(--deep)}
.kv{background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:4px 12px}
.kv div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #e6f1fa;font-size:15px}
.kv div:last-child{border:0}
.kv span{color:var(--grey)}
.kv em{font-style:normal;text-align:right;overflow-wrap:anywhere;white-space:pre-wrap}
.photo{width:100%;border-radius:12px;margin-top:12px;display:block}
.box{background:var(--pale);border-radius:12px;padding:13px;margin-top:14px}
.row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.switch{width:52px;height:30px;border-radius:20px;background:#a9bccd;position:relative;border:0;cursor:pointer;flex:none}
.switch::after{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:left .15s}
.switch[aria-checked="true"]{background:var(--deep)}
.switch[aria-checked="true"]::after{left:25px}
.hint{font-size:13px;color:var(--grey);margin-top:7px}
.history{font-size:13px;color:var(--grey);margin-top:16px;list-style:none}
.history li{padding:3px 0}
.code{font-size:26px;font-weight:700;letter-spacing:3px;margin:6px 0}
.empty{text-align:center;color:var(--grey);padding:30px 10px}
.person{background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:11px 13px;margin-top:9px}
.tabs{position:fixed;left:0;right:0;bottom:0;border-top:1px solid var(--line);background:#fff;padding:4px 14px calc(4px + env(safe-area-inset-bottom));z-index:5}
.tablinks{display:flex;gap:6px}
.tabs a{flex:1;display:flex;align-items:center;justify-content:center;min-width:0;min-height:34px;text-align:center;padding:2px;font-size:13px;font-weight:700;color:#fff;background:#548ff4;border-radius:8px;text-decoration:none}
.tabs a.on{background:#1f489f;box-shadow:inset 0 -3px 0 #ffffffb3}
.tabtime{display:none}
.toast{position:fixed;left:50%;bottom:calc(78px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--navy);color:#fff;padding:11px 16px;border-radius:12px;font-size:14px;max-width:92%;z-index:9}
/* Office PCs: list on the left, truck or form on the right */
@media (min-width:900px){
  body{padding-bottom:24px}
  .tabs{position:static;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:14px;max-width:1180px;margin:0 auto;background:none;border:0;padding:12px 14px 4px}
  .tablinks{grid-column:2;gap:8px}
  .tabs a{flex:none;min-width:108px;min-height:40px;padding:6px 16px;font-size:15px;border-radius:10px}
  .tabtime{display:block;grid-column:3;font-size:13px;color:var(--grey)}
  body:has(#tabs:not([hidden])) #subtitle{display:none}
  body{display:flex;flex-direction:column}
  .top{order:0}.banner{order:1}.tabs{order:2;width:100%}main{order:3;width:100%}
  main.wide{max-width:1180px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}
  .pane{position:sticky;top:108px;max-height:calc(100vh - 124px);overflow:auto;padding-bottom:8px}
  .toast{bottom:24px}
}

/* Headings to choose from */
.top .h-truck,.top .h-stars,.top .h-word{display:none}
.h-text{min-width:0}
body:not([data-head="logo"]):not([data-head="top"]) .h-logo,body:not([data-head="logo"]) .h-text h1{display:none}
body[data-head="beside"] .top .h-truck,body[data-head="centre"] .top .h-truck{display:block;width:84px;height:auto}
body[data-head="centre"] .top{justify-content:center}
body[data-head="beside"] .top .h-word,body[data-head="centre"] .top .h-word,body[data-head="stars"] .top .h-word{display:block;width:min(220px,56vw);height:auto}
body[data-head="stars"] .top{flex-direction:column;gap:2px;text-align:center}
body[data-head="stars"] .top .h-stars{display:block;width:92px;height:auto;margin:0 auto 2px}
body[data-head="stars"] .top .h-word{margin:0 auto 2px}
.top .h-logo,.top .h-truck,.top .h-stars,.top .h-word{mix-blend-mode:normal}
/* Heading 2 with the truck at the side: truck, then stars above the name, all in the middle */
body[data-head="side"] .top{justify-content:center;gap:12px}
body[data-head="side"] .h-text{text-align:center}
body[data-head="side"] .top .h-truck{display:block;width:min(96px,25vw);height:auto}
body[data-head="side"] .top .h-stars{display:block;width:84px;height:auto;margin:0 auto 2px}
body[data-head="side"] .top .h-word{display:block;width:min(220px,52vw);height:auto;margin:0 auto 2px}
/* Heading 3 in the middle: the whole logo above the tabs */
body[data-head="top"] .top{flex-direction:column;gap:2px;text-align:center}
body[data-head="top"] .top .h-logo{width:150px;height:150px;clip-path:inset(2px)}
@media (min-width:900px){body[data-head="top"] .top .h-logo{width:170px;height:170px}}
/* List or calendar, and the Finished test switch */
.view{max-width:320px;margin:0 auto 12px}
.trybar{display:flex;align-items:center;justify-content:center;gap:12px;font-size:14px;color:var(--grey);margin-bottom:12px}
.mini .stack{display:flex;flex-direction:column;align-items:center;gap:3px;width:55%}.mini .stack .m-word{width:100%}.mini .m-logo.big{width:96px}
/* Looks screen */
.using{border-color:var(--deep);border-width:2px}
.mini{display:flex;align-items:center;justify-content:center;gap:10px;background:#ddf2ff;color:#022135;border-radius:10px;padding:10px;margin-top:8px}
.mini.col{flex-direction:column;gap:3px}
.mini img{height:auto}.m-truck{width:70px}.m-word{width:min(180px,55%)}.m-stars{width:76px}.m-logo{width:64px}
.icons{display:flex;flex-wrap:wrap;gap:0 10px}
.icons .person{flex:1 1 150px;text-align:center}
.appicon{display:block;width:84px;height:84px;border-radius:22px;margin:9px auto 0;background:#ddf2ff}
.badge{background:#000;border-radius:10px;padding:10px;margin-top:9px}.badge img{width:34px;height:34px;display:block;margin:auto}
.mini.left{justify-content:flex-start}
.tap{cursor:pointer}
.wideicons .person{flex-basis:230px}
.pretend{display:grid;gap:8px;margin-top:9px}
.pretend img{display:block}
.pretend i{display:block;border-radius:12px;background:#ffffff40}
.p-tab{display:flex;align-items:center;gap:8px;background:#dfe3e8;color:#222;border-radius:10px 10px 0 0;padding:8px 12px;font-size:13px;width:max-content;max-width:100%}
.p-tab img{width:18px;height:18px;border-radius:3px}
.p-phone{display:grid;grid-template-columns:repeat(4,56px);justify-content:center;gap:12px 18px;background:linear-gradient(160deg,#3b5876,#182848);border-radius:18px;padding:16px 8px}
.p-phone i{width:56px;height:56px}
.p-phone figure{width:56px;text-align:center}.p-phone figure img{width:56px;height:56px;border-radius:16px}
.p-phone figcaption{color:#fff;font-size:11px;white-space:nowrap;margin-top:3px;display:flex;justify-content:center}
.p-bar{display:flex;justify-content:center;gap:12px;background:#202428;border-radius:10px;padding:8px}
.p-bar i{width:32px;height:32px;border-radius:6px}.p-bar img{width:32px;height:32px;border-radius:6px}
.notice{display:flex;align-items:center;gap:10px;background:#26292e;color:#fff;border-radius:14px;padding:10px;margin-top:9px;text-align:left;font-size:13px}
.notice div{flex:1;min-width:0}.notice div span{display:block;color:#c3c9d1}
.n-small{display:flex;width:26px;height:26px;border-radius:50%;background:#5b6470;flex:none}.n-small img{width:16px;height:16px;margin:auto}
.n-large{width:44px;height:44px;border-radius:50%;background:#ddf2ff}
.opt{margin-top:12px;font-size:15px}
textarea#note{margin-top:4px}
/* One-tap Finished */
.quick{display:flex;gap:7px;margin-bottom:9px;align-items:stretch}
.quick .card{flex:1;margin:0;min-width:0}
.finish{background:var(--green);color:#fff;border:0;border-radius:12px;padding:0 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.undo{margin-left:12px;background:none;border:0;color:#9fd0ff;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
/* Week view */
main.weekly{max-width:1600px}
.week{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;align-items:start}
.week .col{min-width:0}.week .day{margin-top:0}
@media (max-width:699px){.week{grid-template-columns:minmax(0,1fr)}}
.week .quick{flex-direction:column}.week .finish{padding:8px}
.week .tag{float:none;display:inline-block;margin:0 6px 4px 0}
.weekly .cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:0 12px}
/* Sizes: small phones, tablets, large screens */
@media (max-width:359px){
  body{font-size:15px}main{padding:10px}.chips{flex-wrap:wrap}.chips button{flex:1 1 45%}
  body[data-head="beside"] .top .h-truck,body[data-head="centre"] .top .h-truck{width:62px}body:not([data-head="top"]) .top .h-logo{width:62px;height:62px}.top{gap:8px;padding-left:10px;padding-right:10px}
  .quick{flex-direction:column;gap:4px}.finish{padding:8px}.tabs a{font-size:12.5px}.tabs{padding-left:8px;padding-right:8px}.tablinks{gap:4px}
}
@media (min-width:600px) and (max-width:899px){
  main{max-width:760px;padding:18px}.top{padding-left:24px;padding-right:24px}
  main:not(.weekly) section>div>.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
}
@media (min-width:900px){
  .pane{top:calc(var(--top,92px) + 16px);max-height:calc(100vh - var(--top,92px) - 32px)}
  body[data-head="stars"] .top{padding-top:6px;padding-bottom:6px}
  .tabs,main.wide,main.weekly{padding-left:22px;padding-right:22px}
  main.weekly{max-width:1600px}.tabs{max-width:1600px}
  body[data-head="top"] .top{padding-top:8px;padding-bottom:8px}
}
@media (min-width:1500px){
  body{font-size:17px}main.wide{max-width:1480px;grid-template-columns:minmax(0,5fr) minmax(0,4fr);gap:30px}
  main.wide section>div>.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
  .card b{font-size:17px}.card p{font-size:15px}
}
/* Dark colours, top included. The logo pictures have light-inked copies. */
.dark{--navy:#e6f2ff;--grey:#9db4c9;--line:#23455f;--deep:#4f86f0;color-scheme:dark}
.dark body{background:#07131d}
.dark .card,.dark .kv,.dark .person,.dark .tabs,.dark input,.dark textarea,.dark select,.dark .chips button,.dark .btn.ghost,.dark .btn.red{background:#0f2333;border-color:#23455f}
.dark .card{border-left-color:var(--blue)}.dark .card.new{background:#14304a;border-left-color:var(--deep)}.dark .card.chg{border-left-color:#e3a21a}.dark .card.done{border-left-color:#3fae6c}.dark .card.cant,.dark .card.gone{border-left-color:#d64545}
.dark .chips button.on{background:var(--deep);color:#fff}.dark .box{background:#122b40}.dark .btn.red{color:#ff9b9b;border-color:#d64545}
.dark .kv div{border-color:#1b3850}@media (min-width:900px){.dark .tabs{background:none}}.dark .using{border-color:var(--deep)}
.dark .top{background:#0f2333;color:#e6f2ff;border-bottom:1px solid #23455f}.dark .top span{color:#9fd0ff}.dark .top img{mix-blend-mode:normal}.dark .mini{background:#0f2333;color:#e6f2ff;border:1px solid #23455f}
.dark .tag.t-chg,.dark .tag.t-gone,.dark .tag.t-cant,.dark .tag.t-done,.dark .tag.t-ex,.dark .banner{color:#022135}
.dark .toast{background:#e6f2ff;color:#022135}.dark .undo{color:#1d4fb8}
@media (max-width:599px){.quick{flex-direction:column;gap:4px}.finish{padding:9px}}
.newver{display:block;width:100%;border:0;background:#1f489f;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.newver[hidden]{display:none}.banner[hidden]{display:none}
@media (min-width:900px){.newver{order:1}}.back{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 18px 8px 14px;margin-bottom:12px;border:1.5px solid #bfdcf3;border-radius:12px;background:#fff;color:inherit;font:inherit;font-size:16px;font-weight:700;cursor:pointer}
.back span{font-size:22px;line-height:1}.dark .back{background:#0f2333;border-color:#23455f}
/* Calendar, the booking calendar beside Add truck, profiles and businesses */
.title{font-size:19px;margin:0 0 2px}
.t-biz{background:#e4dcff;color:#2f1d73}
.week .tag.t-biz{margin-bottom:4px}
.warn{background:#ffe3a3;color:#022135;border-radius:10px;padding:9px 12px;margin-top:8px;font-size:14px;font-weight:700}
.findbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.findbar input{flex:2 1 180px;width:auto}
.findbar .filter{flex:1 1 140px;width:auto}
.findbar:not(:empty){margin-bottom:12px}
.findbar .btn.small{margin:0}
.booking .filter{margin-bottom:10px}
.turner{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;text-align:center}
.arrow{background:#fff;color:inherit;border:1.5px solid #bfdcf3;border-radius:10px;min-width:48px;min-height:40px;font:inherit;font-size:18px;cursor:pointer}
.month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.month>span{text-align:center;font-size:12px;font-weight:700;color:var(--grey)}
.month button{position:relative;min-height:48px;background:#fff;color:inherit;border:1.5px solid var(--line);border-radius:10px;font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:3px 0}
.month em{font-style:normal;font-size:15px}
.month i{font-style:normal;font-size:11px;font-weight:700;background:var(--blue);color:#fff;border-radius:20px;min-width:18px;padding:0 5px}
.month button.end{background:#eef3f7}
.month button.out{opacity:.5}
.month button.now{border:2px solid var(--deep)}
.month button.on{background:var(--deep);border-color:var(--deep);color:#fff;font-weight:700;opacity:1}
.month button.on i{background:#fff;color:#2e60cf}
.month button:disabled{opacity:.35;cursor:default}
.calendar>.view{margin-bottom:12px}
.calendar .month,.calendar .turner{max-width:620px;margin-left:auto;margin-right:auto}
.calendar .month{margin-bottom:16px}
.calendar .week .turner{max-width:none}
.share{max-width:420px;margin-left:auto;margin-right:auto;margin-top:16px}
.booking .opt{justify-content:space-between;background:var(--pale);border-radius:10px;padding:9px 12px;margin:12px 0}
.booking .day.picked{color:var(--deep)}
.line{background:#fff;border:1.5px solid var(--line);border-radius:10px;padding:8px 11px;margin-bottom:6px;display:flex;gap:10px;font-size:14px;align-items:baseline}
.line b{flex:none}
.line span{color:var(--grey);min-width:0;overflow-wrap:anywhere}

.details .btn{margin-top:14px}
@media (min-width:900px){.booking{background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:14px}.calendar .week .share{margin-top:16px}}
@media (max-width:599px){.tabs{padding-left:6px;padding-right:6px}.tablinks{gap:4px}.tabs a{font-size:12px}}
.dark .arrow,.dark .month button,.dark .line,.dark .booking{background:#0f2333;border-color:#23455f}
.dark .month button.end{background:#0a1a27}
.dark .month button.now{border-color:var(--deep)}
.dark .month button.on{background:var(--deep);border-color:var(--deep)}
.dark .booking .opt{background:#122b40}
.dark .booking .line{background:#122b40}
.dark .tag.t-biz,.dark .warn{color:#022135}
.week .card b{display:block}
.calendar>.findbar{max-width:620px;margin-left:auto;margin-right:auto}
