@import url("fonts.css");

*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:#f3f4f6;color:#20242a;font-family:Inter,Arial,sans-serif;-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit}button{border:0;border-radius:9px;padding:11px 12px;background:#e2e5e9;font-weight:700;color:#20242a;font-size:14px}.primary{background:#20242a;color:#fff}.add{background:#fff;border:1px solid #d2d6da}
header{position:sticky;top:0;z-index:5;background:#20242a;color:#fff;padding:12px 14px;display:flex;justify-content:space-between;align-items:center}h1{font-size:18px;margin:0}.muted{font-size:11px;color:#aeb4bb}main{width:100%;max-width:none;margin:0;padding:8px 6px 90px}.tabs{display:flex;gap:6px;margin:0 0 10px}.tab{flex:1}.tab.active{background:#20242a;color:#fff}.top{display:flex;gap:7px;align-items:center;margin-bottom:8px}.top button{flex:1}.monthbar{display:flex;align-items:center;justify-content:space-between;margin:8px 2px 10px}.monthbar strong{font-size:19px}.arrow{font-size:20px;padding:7px 13px}.viewtoggle{display:flex;gap:5px;margin-bottom:8px}.viewtoggle button{flex:1;padding:10px}.viewtoggle .active{background:#20242a;color:#fff}
.dow{display:grid;grid-template-columns:repeat(5,1fr);font-size:10px;font-weight:700;color:#70757c;text-align:center;margin-bottom:3px}.cal{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.day{background:#fff;min-height:105px;border-radius:8px;padding:6px;overflow:hidden}.other{opacity:.35}.today{outline:2px solid #20242a}.num{font-size:12px;font-weight:700;margin-bottom:4px}.job{position:relative;font-size:10px;line-height:1.15;padding:5px 4px 5px 17px;margin:3px 0;border-radius:6px;background:#edf0f3;overflow:hidden;cursor:pointer;user-select:none}.job .kind{font-size:9px;opacity:.75}.out{background:#fff4df}.done{opacity:.45;text-decoration:line-through}.dropTarget{outline:2px dashed #20242a;outline-offset:-2px}.legend{font-size:10px;color:#777;margin:7px 2px}.daylist{display:none}.daycard{background:#fff;border-radius:10px;margin:7px 0;padding:11px}.daycard h3{margin:0 0 7px;font-size:14px}.dayjob{padding:10px 6px;border-top:1px solid #eee;position:relative}.dayjob:first-of-type{border-top:0}.dayjob b{font-size:14px}.dayjob small{color:#666}.empty{color:#888;font-size:13px;padding:18px;text-align:center}
.jobsHeader{display:flex;justify-content:space-between;align-items:center;background:#fff;border-radius:10px;padding:12px;margin-bottom:7px}.jobcols{display:grid;grid-template-columns:1fr repeat(5,46px);gap:4px;align-items:end;padding:0 8px 4px}.jobcols span{font-size:9px;font-weight:800;color:#737980;text-align:center;line-height:1.05}.jobcols span:first-child{text-align:left}.jobrow{background:#fff;border-radius:10px;padding:12px 8px;margin:7px 0}.jobtop{display:grid;grid-template-columns:minmax(0,1fr) repeat(5,46px);gap:4px;align-items:start}.jobflag{display:flex;justify-content:center}.jobcheck{width:23px;height:23px;flex:none;margin-top:1px}.jobname{font-size:15px;font-weight:700}.jobmeta{font-size:11px;color:#666;margin-top:4px;line-height:1.35}.badge{display:inline-block;font-size:10px;padding:3px 6px;border-radius:5px;background:#edf0f3;margin:3px 3px 0 0}
.panel{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:50;overflow:hidden}.card{background:#fff;position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;border-radius:0;padding:calc(14px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));overflow-y:auto;-webkit-overflow-scrolling:touch}.card h2{margin:0 0 5px;font-size:20px}.hint{font-size:11px;color:#777;margin-bottom:10px}.field{margin:9px 0}.field label{display:block;font-size:11px;color:#666;margin-bottom:4px}.field input,.field select,.field textarea{width:100%;padding:12px;border:1px solid #ccd1d6;border-radius:8px;background:#fff}.field textarea{min-height:80px;resize:vertical}.row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.actions{position:sticky;bottom:0;background:#fff;padding-top:10px;display:flex;gap:7px}.actions button{flex:1}.danger{background:#f3dddd;color:#8b2020}
.fab{position:fixed;right:16px;bottom:18px;width:58px;height:58px;border-radius:50%;font-size:28px;background:#20242a;color:#fff;box-shadow:0 4px 14px #0003;z-index:6}
@media(max-width:600px){main{width:100%;max-width:none;padding:4px 2px 90px}.day{min-height:76px;padding:5px}.job{font-size:9px;padding:4px 3px 4px 15px}.dow{font-size:9px}.row{grid-template-columns:1fr}.monthbar strong{font-size:17px}.card{padding-left:14px;padding-right:14px}.actions{padding-bottom:2px}}

.section-label{font-size:12px;font-weight:800;color:#20242a;margin:18px 0 5px;padding-top:10px;border-top:1px solid #e5e7ea}.quote-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:7px;margin-top:8px}.photo-thumb{position:relative;aspect-ratio:1;background:#edf0f3;border-radius:8px;overflow:hidden}.photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}.photo-thumb button{position:absolute;right:4px;top:4px;width:27px;height:27px;padding:0;border-radius:50%;background:#20242add;color:#fff;font-size:18px}.photo-indicator{font-size:11px;font-weight:400;color:#666}.photo-lightbox{display:none;position:fixed;inset:0;z-index:90;background:#000d;align-items:center;justify-content:center;padding:18px}.photo-lightbox img{max-width:100%;max-height:90vh;border-radius:8px}.photo-lightbox button{position:absolute;right:15px;top:15px;background:#fff;color:#20242a;font-size:22px}.photo-note{font-size:10px;color:#777;margin-top:5px}@media(max-width:600px){.jobcols,.jobtop{grid-template-columns:minmax(0,1fr) repeat(5,39px)}.jobcols{padding-left:6px;padding-right:6px}.jobrow{padding-left:8px;padding-right:6px}.jobcols span{font-size:8px}.jobcheck{width:22px;height:22px}}
.authpanel{display:flex;position:fixed;inset:0;background:#f3f4f6;z-index:100;align-items:center;justify-content:center;padding:20px}.authbox{background:#fff;width:min(430px,100%);border-radius:16px;padding:24px;box-shadow:0 8px 30px #0002}.authbox h2{margin:0 0 6px;font-size:22px}.authbox p{margin:0 0 18px;color:#666;font-size:13px;line-height:1.4}.authbox input{width:100%;padding:13px;border:1px solid #ccd1d6;border-radius:9px;margin:6px 0 10px}.authactions{display:flex;gap:8px}.authactions button{flex:1}.authmsg{min-height:20px;margin-top:12px;font-size:12px;line-height:1.4}.authmsg.err{color:#9b2020}.authmsg.ok{color:#27663a}.syncstate{font-size:10px;color:#aeb4bb;margin-left:8px}.logout{background:transparent;color:#fff;padding:5px 7px;font-size:11px}body.locked{overflow:hidden}

.jobcols span:nth-child(2){color:#7b61c9}.jobcols span:nth-child(3){color:#1688d4}
.jobcols span:nth-child(4){color:#34a853}.jobcols span:nth-child(5){color:#d69a00}
.jobcols span:nth-child(6){color:#9b51e0}
@media(max-width:600px){.jobcols span{font-size:7px}}

@keyframes todayFlash{
  0%,100%{box-shadow:inset 0 0 0 3px var(--today-flash-ink,#20242a),0 0 0 0 transparent}
  35%{box-shadow:inset 0 0 0 4px var(--today-flash-ink,#20242a),0 0 0 7px var(--today-flash-halo,rgba(32,36,42,.16))}
  70%{box-shadow:inset 0 0 0 3px var(--today-flash-ink,#20242a),0 0 0 2px transparent}
}
.today-flash{animation:todayFlash 2.4s ease-in-out}

/* Job It In: preserve the planner grid, use the supplied blue/yellow/red brand. */
:root{--surface:#fff;--page:#f3f4f6;--ink:#20242a;--secondary:#58616b;--line:#d3d9df;--blue:#EB7232;--yellow:#cbd5e1;--red:#334155}body{background:var(--page);color:var(--ink)}[hidden]{display:none!important}header{background:#121d23;border-bottom:3px solid var(--blue);padding:10px 16px}.brand{display:flex;align-items:center;gap:9px}.brand img{height:44px;width:38px;object-fit:contain;border-radius:5px;background:white}.brand h1{font-size:20px}header .muted{font-size:12px;margin-top:3px}.syncstate{font-size:12px}.logout{font-size:13px;min-height:40px}.auth-logo{width:92px;display:block;margin:0 auto 16px}.authbox{border-top:5px solid var(--blue)}.authbox h2{text-align:center}.authbox p,.authbox label,.authmsg{font-size:14px}.text-button{background:none;font-size:14px;text-decoration:underline}.preview-button{width:100%;margin-top:12px}.preview-banner{background:#fff1c4;color:#514016;padding:9px 16px;font-size:13px;text-align:center}#notice{background:#ffe3e7;color:#762434;padding:12px 16px;font-size:14px}#notice button{margin-left:8px;font-size:13px}.tab.active,.viewtoggle .active{background:#121d23;border-bottom:3px solid var(--blue)}.primary,.fab{background:#121d23}.fab{border:3px solid var(--yellow)}.settingsPanel{position:fixed;right:14px;top:82px;z-index:60;width:265px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:18px;box-shadow:0 8px 25px #0003}.settingsPanel label{display:flex;align-items:center;justify-content:space-between;margin:20px 0;font-size:16px}.settingsPanel input{width:24px;height:24px;accent-color:#EB7232}.settingsPanel button{width:100%}.day,.daycard,.card,.authbox,.jobsHeader,.actions{background:var(--surface);color:var(--ink)}.field input,.field select,.field textarea,.authbox input{background:var(--surface);color:var(--ink);border-color:var(--line)}.field label,.hint,.legend,.section-label,.empty{color:var(--secondary)}.section-label{font-size:14px}.field label,.hint,.legend,.photo-note{font-size:13px}.dow{font-size:13px}.num{font-size:14px}.job{font-size:13px;line-height:1.25;color:#20242a}.job .kind{font-size:12px;color:#30383f;opacity:1}.jobmeta,.badge,.photo-indicator{font-size:12px;color:#404b55}.jobrow,.dayjob{color:#20242a}.jobrow{cursor:pointer}.dayjob small{color:#404b55}.jobcols span{font-size:12px}.jobsHeader .muted{color:var(--secondary);font-size:12px}.day{min-height:125px}.other{opacity:.6}.today{outline:2px solid #9a3412}.authpanel{background:var(--page)}.card{max-width:760px;left:50%;transform:translateX(-50%)}button{cursor:pointer;min-height:42px}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #9a3412;outline-offset:2px}body.dark{--surface:#222b34;--page:#131a21;--ink:#f1f4f7;--secondary:#bcc7d0;--line:#485662}body.dark .day:not(.other){background:var(--surface)}body.dark button:not(.primary):not(.fab):not(.logout):not(.active):not(.danger):not(:where(.schedule-dialog button,.schedule-time-control button)){background:#354350;color:#f1f4f7}body.dark .text-button{color:#f1f4f7}body.dark .preview-banner{background:#453b23;color:#ffe7a0}body.dark .dow{color:#bcc7d0}body.dark .jobcols span{filter:brightness(1.5)}body.dark .authmsg.err{color:#ffa1ad}body.dark .authmsg.ok{color:#8fdeab}
@media(min-width:900px){main{padding:14px 18px 90px}.cal{gap:7px}.day{min-height:150px}.job{padding:9px 8px 9px 21px;margin:5px 0}.top,.viewtoggle{width:100%;max-width:none}.jobcols,.jobtop{grid-template-columns:minmax(0,1fr) repeat(5,80px)}}
@media(max-width:600px){header{padding:8px}.brand h1{font-size:17px}.brand img{height:36px;width:31px}header #count{display:none}.logout{padding:5px;font-size:12px}.day{min-height:90px;padding:4px}.job{font-size:12px;padding:6px 3px 6px 14px;overflow-wrap:anywhere}.job .kind{font-size:12px}.dow{font-size:12px}.jobcols span{font-size:10px}.jobcols,.jobtop{grid-template-columns:minmax(0,1fr) repeat(5,40px);gap:2px}.jobname{font-size:14px}.jobcheck{width:24px;height:24px}.jobrow{padding:9px 5px}.cal{gap:3px}main{padding:8px 3px 90px}.actions{gap:4px}.actions button{font-size:13px;padding:10px 6px}body.weekends .job{padding-left:3px}.authbox{padding:20px}.settingsPanel{top:73px}}

/* Stable header height keeps the view tabs directly below the brand. */
header{height:90px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px}.brand{justify-content:center}.brand img{height:64px;width:55px}.header-status{min-width:0}.header-status .syncstate{margin:0;display:block}header #settingsBtn{justify-self:end}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tabs{position:sticky;top:90px;z-index:4;background:var(--page);padding:8px 0;margin-top:0}.archive-filter{display:flex;gap:8px;margin-bottom:10px}.archive-filter button{flex:1}.archive-filter .active{background:#121d23;color:white;border-bottom:3px solid var(--blue)}.archive-action{width:100%;margin:10px 0;background:#354350;color:white}.settingsPanel{top:94px}.settingsPanel button{margin-top:8px}@media(max-width:600px){header{height:82px}.brand img{height:56px;width:48px}.tabs{top:82px}.settingsPanel{top:86px}.header-status .syncstate{font-size:11px}header #settingsBtn{font-size:12px}}

.authbox select,.settingsPanel select{width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);margin:6px 0 12px;font-size:14px}.settingsPanel{max-height:calc(100dvh - 110px);overflow-y:auto}.authpanel{overflow-y:auto}.authbox{margin:auto}.settingsPanel #profileMsg{font-size:13px;line-height:1.4;margin-top:8px}

.trade-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0;font-size:14px}.trade-summary span{min-width:0}.trade-summary strong{display:block;margin-top:4px}.settingsPanel .trade-summary button{width:auto;margin:0;font-size:13px}.trade-overlay{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;background:#0008;padding:20px;overflow-y:auto}.trade-card{width:min(400px,100%);padding:24px;border-radius:14px;background:var(--surface);color:var(--ink)}.trade-card h2{margin-top:0}.trade-card select{width:100%;padding:12px;margin:8px 0 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}.trade-actions{display:flex;gap:8px;margin-top:16px}.trade-actions button{flex:1}

.account-email{margin-bottom:18px;font-size:14px}.account-email span,.account-email strong{display:block}.account-email strong{margin-top:6px;overflow-wrap:anywhere}.trade-card input{width:100%;padding:12px;margin:8px 0 18px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}.trade-card{max-height:calc(100dvh - 40px);overflow-y:auto}


.account-links{display:flex;justify-content:center;gap:24px;margin-top:20px;font-size:14px}.account-links a,.account-deletion a{color:var(--ink);text-underline-offset:3px}.account-deletion{border-top:1px solid var(--line);margin-top:20px;padding-top:16px;font-size:14px;line-height:1.5}.account-deletion summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--ink)}.account-deletion p{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.delete-request{display:inline-block;padding:12px 0;color:var(--red)!important}

/* Display the supplied horizontal artwork, cropping its outer white padding in CSS. */
.header-banner{position:relative;display:block;width:280px;aspect-ratio:5.32;overflow:hidden;border-radius:10px}.brand .header-banner img{position:absolute;left:-2.6%;top:50%;transform:translateY(-50%);width:105.2%;height:auto;max-width:none;border-radius:0;background:transparent}@media(max-width:600px){.header-banner{width:clamp(140px,45vw,230px);border-radius:7px}}

/* Professional slate, silver and orange brand. */
:root{--page:#f8fafc;--ink:#334155;--secondary:#526174;--line:#cbd5e1;--blue:#EB7232;--yellow:#cbd5e1;--red:#334155}
body{font-family:Inter,Arial,sans-serif}header{background:#1e293b}.primary,.fab{background:#EB7232;color:#172033}.fab{border-color:#cbd5e1}.tab.active,.viewtoggle .active,.archive-filter .active{background:#334155;color:white}.auth-logo{width:240px;max-width:90%;height:auto}.header-banner{aspect-ratio:4.7;overflow:visible}.brand .header-banner img{position:static;width:100%;height:auto;transform:none;object-fit:contain}.brand-tagline{text-align:center;font-size:11px;color:#cbd5e1;margin-top:5px;white-space:nowrap}.auth-tagline{display:block;text-align:center;margin:0 0 16px;color:var(--secondary);font-size:14px}body.dark{--surface:#263445;--page:#152030;--ink:#f8fafc;--secondary:#cbd5e1;--line:#526174}body.dark button:not(.primary):not(.fab):not(.logout):not(.active):not(.danger):not(:where(.schedule-dialog button,.schedule-time-control button)){background:#334155}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#9a3412}body.dark button:focus-visible,body.dark input:focus-visible,body.dark textarea:focus-visible,body.dark select:focus-visible{outline-color:#EB7232}@media(max-width:600px){.brand-tagline{font-size:9px}}

header .brand{flex-direction:column;gap:0}.brand-tagline{margin-top:5px}

/* Keep the wordmark and tagline inside the sticky header. */
header .header-banner{aspect-ratio:auto;height:auto}header .brand .header-banner img{display:block;max-height:48px;object-fit:contain}header .brand{transform:translateY(-4px)}header .brand-tagline{margin-top:3px;line-height:1.2}@media(max-width:600px){header .brand .header-banner img{max-height:40px}header .brand-tagline{margin-top:2px}}

/* Permanent deletion: readable in both display modes. */
#deleteAccountBtn{display:block;width:100%;margin-top:16px;padding:14px 18px;background:#b91c1c;color:#fff!important;border:2px solid #b91c1c;font-size:16px;font-weight:700;line-height:1.4;white-space:normal;min-height:48px}#deleteAccountBtn:hover{background:#991b1b;border-color:#991b1b}#deleteAccountBtn:disabled{background:#475569;border-color:#475569;color:#fff!important;opacity:1;cursor:wait}#deleteAccountBtn:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

/* Readable, persistent progress headings shared by web and native builds. */
.jobcols{position:sticky;top:148px;z-index:4;background:var(--page);padding:10px 8px 10px 13px;border-bottom:1px solid var(--line);align-items:center}
.jobcols span,.jobcols span:nth-child(n){color:var(--secondary);filter:none;font-size:10px;line-height:1.3}
.jobcheck{accent-color:#2563eb}
@media(max-width:600px){.jobcols{top:140px;padding-left:10px;padding-right:5px}.jobcols,.jobtop{grid-template-columns:minmax(0,1fr) repeat(5,44px);gap:4px}.jobcols span,.jobcols span:nth-child(n){font-size:9px}.jobname{overflow-wrap:anywhere}}

body.dark{--today-flash-ink:#fff;--today-flash-halo:rgba(255,255,255,.2)}

/* One compact month navigation row, with a single Today action. */
.monthbar{display:grid;grid-template-columns:64px minmax(0,1fr) 64px 88px;gap:8px;align-items:center;margin:4px 0 10px}
.monthbar strong{text-align:center;font-size:19px;line-height:1.25;overflow-wrap:anywhere}
.monthbar .arrow{width:100%;min-height:46px;padding:0;font-size:26px}
.monthbar .today-button{min-height:44px;padding:8px 12px;font-size:14px}
@media(max-width:360px){.monthbar{gap:4px;grid-template-columns:56px minmax(0,1fr) 56px 88px}.monthbar strong{font-size:17px}.monthbar .today-button{padding:8px}}

/* Calendar navigation stays together above the scrolling diary. */
:root{--planner-header:90px;--planner-tabs:58px}
.tabs{margin-bottom:0}
.calendar-tools{position:sticky;top:calc(var(--native-top,0px) + var(--planner-header) + var(--planner-tabs));z-index:3;background:var(--page);padding:4px 0 5px;border-bottom:1px solid var(--line)}
.calendar-tools .monthbar{margin:0 0 5px}
.calendar-tools .viewtoggle{margin-bottom:4px}
.calendar-tools .viewtoggle button{padding:7px;min-height:44px}
.calendar-tools .legend{margin:5px 2px;font-size:13px;line-height:1.4}
.calendar-tools .dow{margin:5px 0 0;line-height:1.4}
@media(max-width:600px){:root{--planner-header:82px}}

/* Compact month cards: wrap at words, with the full job available on tap. */
#monthView .day{min-height:96px;padding:3px}
#monthView .job{font-size:11.5px;line-height:1.15;padding:4px 3px;margin:2px 0;overflow-wrap:normal;word-break:normal}
#monthView .job b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:normal;word-break:normal}

#monthView .job b+br{display:none}
#monthView .job .kind{display:block;white-space:normal;overflow-wrap:normal;word-break:normal;font-size:10.5px;line-height:1.15;margin-top:2px}
#monthView .job.done{opacity:1;filter:saturate(.45);text-decoration:none}
#monthView .job.done b,#monthView .job.done .compact-todo{text-decoration:line-through;text-decoration-thickness:1px}
:root{--planner-header:76px}
header{height:76px;padding-top:6px;padding-bottom:6px}
.tabs{top:76px}
.settingsPanel{top:80px}
.jobcols{top:calc(var(--planner-header) + var(--planner-tabs))}
@media(max-width:600px){
 :root{--planner-header:68px}
 header{height:68px}
 .tabs{top:68px}
 .settingsPanel{top:72px}
 .brand .header-banner{width:128px}
 .brand-tagline{font-size:8px;margin-top:3px}
 #monthView .day{min-height:78px;padding:3px}
 #monthView .num{font-size:12px;margin-bottom:3px}
 #monthView .job{font-size:10.5px;padding:3px;line-height:1.15}
 #monthView .job .kind{font-size:10px}
 
}


/* Keep sharing clear of the floating Add button. */
.fab{width:64px;height:64px;padding:0;display:grid;place-items:center}
.add-plus{position:relative;width:24px;height:24px;display:block}
.add-plus::before,.add-plus::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:currentColor;border-radius:1px}
.add-plus::before{width:22px;height:4px}
.add-plus::after{width:4px;height:22px}

.skip-days{margin:10px 0 16px;padding:12px;border:1px solid var(--line);border-radius:10px}.skip-days summary{cursor:pointer;font-weight:600}.skip-days p{font-size:14px;line-height:1.4}.skip-day-option{display:flex;align-items:center;gap:10px;min-height:44px!important;margin:0!important;font-size:14px!important}.skip-day-option input{width:22px!important;height:22px!important;margin:0!important;accent-color:#EB7232}.skip-days #skipDaysList{max-height:250px;overflow:auto}

/* Optional crew picker follows the job editor's existing controls. */
.crew-picker{border:1px solid #94a3b8;border-radius:10px;padding:0;margin:0;min-width:0;background:var(--card,#fff)}
.crew-picker[hidden]{display:none}
.crew-picker summary{padding:12px;cursor:pointer;min-height:44px;overflow-wrap:anywhere;font-weight:600}
.crew-picker #crewPickerList{padding:0 10px;max-height:220px;overflow:auto}
.crew-choice{display:flex!important;align-items:center;gap:10px;min-height:44px;margin:0!important;cursor:pointer}
.crew-choice input{width:20px!important;height:20px;flex:0 0 20px;accent-color:#EB7232;margin:0}
.crew-choice span{overflow-wrap:anywhere;min-width:0}
.crew-picker>button{margin:8px;min-height:44px;max-width:calc(100% - 16px)}
.crew-manager{z-index:1300}
.crew-manager .trade-card{max-height:85dvh;overflow:auto}
.crew-roster-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #94a3b855}
.crew-roster-row span{overflow-wrap:anywhere;min-width:0}
.crew-roster-row button{flex-shrink:0;min-height:44px}
.crew-hint{font-size:14px;line-height:1.5;color:#596774}
body.dark .crew-picker{background:#152232;color:#f1f5f9}
body.dark .crew-hint{color:#cbd5e1}
.settingsPanel{max-height:70dvh;overflow-y:auto}

#onboardingPanel{z-index:1400}#onboardingPanel[hidden]{display:none!important}#onboardingPanel h2{margin:20px 0 8px}#onboardingSave{width:100%;margin-top:20px;min-height:48px}#onboardingMsg{min-height:24px}

.usage-notice{border:1px solid var(--line);border-left:4px solid #EB7232;border-radius:10px;padding:14px;margin:12px 0;background:var(--page);font-size:14px;line-height:1.5}.usage-notice p{margin:0 0 12px}.usage-notice a{color:#61bce5}.usage-notice>div{display:flex;gap:10px;flex-wrap:wrap}.usage-notice button{padding:9px 12px}

.usage-notice details{margin:8px 0 14px}.usage-notice summary{cursor:pointer;font-weight:700;min-height:36px}.usage-notice details[open] summary{margin-bottom:10px}.usage-notice summary:focus-visible{outline:3px solid #EB7232;outline-offset:3px}

.photo-upgrade{z-index:120}.photo-plan-label{font-size:14px;font-weight:700;color:var(--secondary);letter-spacing:.06em}.photo-plan-price{font-size:42px;font-weight:800;margin:16px 0}.photo-plan-price span{font-size:16px;font-weight:400}.photo-upgrade p{line-height:1.5}.photo-upgrade small{font-size:14px}.photo-preview-note{padding:12px;border:1px solid var(--line);border-radius:10px;font-size:14px}.photo-upgrade button{width:100%;margin:6px 0;min-height:44px}.photo-upgrade details{margin-top:16px;font-size:14px}.photo-upgrade summary{cursor:pointer;font-size:16px}.photo-plan-account{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.photo-plan-account p{font-size:14px;line-height:1.5}

#quickTour[hidden]{display:none!important}#quickTour{position:fixed;inset:0;z-index:2000;overflow:hidden;touch-action:none}#tourRing{position:fixed;border:3px solid #EB7232;border-radius:14px;box-shadow:0 0 0 9999px rgba(0,0,0,.72);pointer-events:none;box-sizing:border-box}#tourCard{position:fixed;width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:#1e293b;color:#f8fafc;border:1px solid #64748b;border-top:4px solid #EB7232;border-radius:16px;padding:18px;box-sizing:border-box;box-shadow:0 8px 32px #0008;touch-action:pan-y}#tourCard h2{font-size:21px;line-height:1.2;margin:14px 0 10px}#tourCard p{font-size:16px;line-height:1.45;margin:0 0 18px}#tourCard button{min-height:44px;font-size:15px}#tourCard button:focus-visible{outline:3px solid white;outline-offset:3px}.tour-top,.tour-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.tour-top span{color:#cbd5e1;font-size:14px}.tour-top button{background:transparent;color:#f8fafc;border:0;padding:4px 8px}.tour-actions button{min-width:90px}.tour-actions button:disabled{opacity:.45}body.tour-running{overscroll-behavior:none}

.entry-chooser{z-index:125}.entry-chooser button{display:block;width:100%;text-align:left;margin:12px 0;padding:16px}.entry-chooser strong{display:block;font-size:20px}.entry-chooser span{display:block;font-size:15px;font-weight:400;margin-top:6px;line-height:1.4}.task-done-control{display:flex;align-items:center;gap:10px;margin:16px 0}.task-done-control[hidden]{display:none}.task-done-control input{width:22px;height:22px}#panel [hidden]{display:none!important}

.entry-badge{display:inline-block;border:1px solid currentColor;border-radius:5px;padding:1px 5px;font-size:11px;font-weight:700;line-height:1.4;vertical-align:middle}.quote-badge{border-style:dashed}#taskAddDate{margin-bottom:8px}.job .entry-badge{font-size:10px}

.quote-work-choice{padding:14px;border:1px solid var(--line);border-radius:10px;margin:12px 0}.quote-work-choice>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.quote-work-choice button{flex:1;min-height:46px}#quoteVisitInfo{padding:10px 0}

.archive-secondary{display:block;margin:0 0 12px auto;padding:6px 10px;min-height:36px;font-size:14px;background:transparent;border:0;text-decoration:underline;color:var(--secondary)}


#panel .field textarea{overflow-y:hidden;resize:none;line-height:1.5;min-height:80px;max-height:none}


.job-search{margin:10px 0 14px}.job-search label{display:block;font-size:13px;color:var(--secondary);margin-bottom:6px}.job-search>div{display:flex;gap:8px}.job-search input{min-width:0;flex:1;width:100%;padding:12px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit}.search-location{display:inline-block;font-size:11px;font-weight:500;border-radius:4px;background:#ffffff9c;color:#334155;padding:2px 5px;margin:3px 0}

#notice.move-undo-notice{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(100px + env(safe-area-inset-bottom,0px));z-index:65;width:max-content;max-width:calc(100% - 30px);border-radius:12px;box-shadow:0 4px 18px #0005;background:var(--surface);color:var(--ink);border:1px solid var(--line)}

.move-undo-toast{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:150;display:flex;align-items:center;gap:18px;padding:20px 24px;max-width:calc(100% - 24px);white-space:nowrap;background:var(--surface);color:var(--ink);border:2px solid #EB7232;border-radius:14px;box-shadow:0 8px 30px #0006;font-size:18px;font-weight:700}.move-undo-toast button{background:#EB7232;color:#172333;font-size:17px;min-height:48px;padding:12px 18px}

.payment-filter{display:block;width:100%;margin:8px 0;border:1px solid var(--line);font-size:14px}.payment-filter.active{border-color:var(--line);border-bottom:3px solid #EB7232;background:#334155!important;color:white!important}

.followup-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.followup-filters .payment-filter{min-width:0;padding:12px 6px}

/* Keep everyday job filters together, with a quiet archive link below. */
#jobsTab .archive-filter{margin-bottom:8px}
.followup-filters .payment-filter{margin:0}
body #jobsTab #archivedJobsBtn{background:transparent;margin:4px 0 0 auto;padding:6px 4px;font-size:13px;min-height:36px}

.job-search>.job-search-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.job-search-heading label{margin-bottom:0}
body #jobsTab .job-search-heading #archivedJobsBtn{margin:0;padding:0 4px;min-height:32px}

.task-checklist{margin:12px 0}.task-checklist[hidden],#checklistEditor[hidden],#addChecklistBtn[hidden]{display:none}.checklist-item{display:flex;align-items:center;gap:8px;margin:8px 0}.checklist-item input[type="text"]{flex:1;min-width:0;padding:12px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;font:inherit}.checklist-item input[type="checkbox"]{width:22px;height:22px;flex-shrink:0}.checklist-item button{min-width:40px;min-height:44px}.task-checklist>button,#checklistEditor>button{margin:8px 0}

.compact-todo,.checklist-count{white-space:nowrap}.job .compact-todo{font-size:10px;padding:2px 3px}

/* Crew attendance stays alongside each selected name. */
.crew-picker #crewPickerList{max-height:none;overflow:visible}
.crew-member{margin:4px 0}
.crew-member-row{display:grid;grid-template-columns:minmax(0,1fr) 100px minmax(12px,.35fr);align-items:center;gap:8px;min-width:0}
.crew-member-row>.crew-choice{min-width:0}
.crew-days-toggle{grid-column:2;width:100%!important;min-height:44px;padding:6px 10px!important;font-size:13px!important;white-space:nowrap}
.crew-days-list{margin:2px 0 10px 30px;padding:8px 10px;border-left:2px solid var(--muted,#8995a4);max-height:230px;overflow:auto}
.crew-days-list>button{width:auto!important;min-height:44px;padding:6px 10px!important;font-size:13px!important}

.auth-company{font-size:12px;line-height:1.5;color:var(--muted);text-align:center;margin:16px 0 8px}

.address-row{display:flex;align-items:center;gap:8px;min-width:0}.address-row>input{flex:1;min-width:0;width:0}.address-actions{display:flex;gap:4px;flex-shrink:0}.address-actions[hidden]{display:none}.address-actions button,.address-actions a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:10px;margin:0;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);cursor:pointer}.address-actions svg{width:22px;height:22px}.address-actions a:focus-visible,.address-actions button:focus-visible{outline:2px solid #EB7232;outline-offset:2px}.address-action-msg{display:block;font-size:12px;line-height:1.5;margin-top:4px}.address-action-msg:empty{display:none}

.address-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.address-heading>label{margin:0}.address-heading>button{width:auto;min-height:44px;margin:0;padding:6px 0;font-size:13px}.address-heading>button[hidden],.address-finder[hidden]{display:none}.address-finder{padding:12px;margin:0 0 12px;border:1px solid var(--line);border-radius:10px}.postcode-search{display:flex;gap:8px;align-items:center}.postcode-search input{flex:1;min-width:0;text-transform:uppercase}.postcode-search button{width:auto;min-height:44px}.address-lookup-results{max-height:240px;overflow:auto}.address-lookup-results button{display:block;width:100%;min-height:44px;text-align:left;margin:5px 0;white-space:normal;overflow-wrap:anywhere}.address-finder p{font-size:13px;line-height:1.5}

.gift-section{margin:16px 0;padding:14px 0;border-top:1px solid #8885}.gift-section summary{cursor:pointer;font-weight:600}.gift-section p{font-size:13px;line-height:1.5}.gift-section input{width:100%;box-sizing:border-box}.gift-section button{margin-top:10px}

.account-tools{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.account-tools button{flex:1 1 140px}

/* Calendar key and the matching weekend setting share a row when space permits. */
.calendar-tools .calendar-legend{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.legend-key{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px}.legend-key>span{white-space:nowrap}.weekend-inline{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px;cursor:pointer;min-height:36px}.weekend-inline input{width:20px;height:20px;margin:0;accent-color:#EB7232}.weekend-inline input:focus-visible{outline:3px solid #EB7232;outline-offset:2px}@media(max-width:440px){.calendar-tools .calendar-legend{font-size:11px;gap:3px}.legend-key{gap:4px 5px}.weekend-inline{font-size:11px;gap:3px}}

/* Keep the calendar controls compact while retaining comfortable tap targets. */
.calendar-tools .viewtoggle button{padding:4px 8px;min-height:44px;line-height:1.15}
.weekend-inline{min-height:44px;gap:5px}
.weekend-inline input{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;width:36px;height:20px;flex:0 0 36px;border:1px solid #718096;border-radius:999px;background:#475569;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.weekend-inline input::after{content:"";position:absolute;width:14px;height:14px;top:2px;left:2px;border-radius:50%;background:#f8fafc;transition:transform .15s ease}
.weekend-inline input:checked{background:#EB7232;border-color:#EB7232}
.weekend-inline input:checked::after{transform:translateX(16px)}
@media(prefers-reduced-motion:reduce){.weekend-inline input,.weekend-inline input::after{transition:none}}
.calendar-tools .viewtoggle{align-items:center}
.calendar-tools .viewtoggle button{min-width:0}
.calendar-tools .viewtoggle .weekend-inline{flex:0 0 auto;margin-left:5px}
.calendar-tools .viewtoggle .weekend-inline{flex-direction:column;justify-content:center;gap:2px;min-width:76px;min-height:44px;margin-left:3px;font-size:12px;font-weight:600;line-height:1.1}
.calendar-tools .viewtoggle .weekend-inline input{width:42px;height:22px;flex:0 0 22px}
.calendar-tools .viewtoggle .weekend-inline input::after{width:16px;height:16px}
.calendar-tools .viewtoggle .weekend-inline input:checked::after{transform:translateX(20px)}
/* Align the weekend label with the view buttons and reserve room below for its switch. */
.calendar-tools .viewtoggle .weekend-inline{position:relative;z-index:1;flex-direction:row;justify-content:center;align-items:center;width:82px;min-width:82px;height:44px;font-size:14px;line-height:1.1}
.calendar-tools .viewtoggle .weekend-inline input{position:absolute;top:35px;left:4px;width:74px;height:22px;flex:none}
.calendar-tools .viewtoggle .weekend-inline input:checked::after{transform:translateX(52px)}
.calendar-tools .calendar-legend{padding-right:84px}

/* Weekend control sits with the calendar key. */
.calendar-tools .calendar-legend{padding-right:0;gap:4px;flex-wrap:wrap}
.calendar-tools .calendar-legend .weekend-inline{display:inline-flex;flex-direction:row;align-items:center;gap:4px;min-height:44px;margin:0;font-size:12px;font-weight:600}
.calendar-tools .calendar-legend .weekend-inline input{position:relative;width:56px;height:22px;flex:0 0 56px}
.calendar-tools .calendar-legend .weekend-inline input::after{width:26px;height:16px;border-radius:999px}
.calendar-tools .calendar-legend .weekend-inline input:checked::after{transform:translateX(24px)}
@media(max-width:440px){.calendar-tools .calendar-legend .weekend-inline{font-size:11px}}

.job-overview .trade-card{max-width:600px;max-height:90dvh;overflow:auto}.job-overview h2{margin:0}.overview-status{color:var(--secondary);margin:8px 0 16px}.overview-actions,.overview-next,.overview-footer{display:flex;gap:8px}.overview-actions>*{flex:1;text-align:center;border-radius:9px;background:#334155;color:#fff;padding:12px 4px;text-decoration:none;font-weight:600}.overview-actions [aria-disabled=true]{opacity:.45}.overview-hint{font-size:12px;color:var(--secondary)}.overview-action{width:100%;margin:12px 0}.overview-next{margin:12px 0}.overview-next button,.overview-footer button{flex:1}.overview-details section{border-top:1px solid var(--line);padding:10px 0}.overview-details h3{font-size:13px;color:var(--secondary);margin:0 0 5px}.overview-details p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.overview-photos{display:flex;flex-wrap:wrap;gap:8px}.overview-photo{padding:0;overflow:hidden;width:72px;height:72px}.overview-photo img{width:100%;height:100%;object-fit:cover}.overview-footer{margin-top:15px}

.contact-phone-row{display:flex;gap:8px}.contact-phone-row input{min-width:0;flex:1}.contact-phone-row button{flex:none}.contact-phone-row button[hidden]{display:none}

.overview-phone{margin:6px 0 0;overflow-wrap:anywhere}

.progress-dot{display:inline-block;width:15px;height:15px;border:2px solid #758391;border-radius:50%;background:transparent}.progress-dot.filled{background:#2563eb;border-color:#2563eb}.followup-filters{flex-wrap:wrap}.followup-filters button{min-width:100px}.overview-undo{width:100%;margin:3px 0 10px}

.job-filter-links{display:flex;gap:8px;margin-left:auto}.job-search-heading .job-filter-links .archive-secondary{margin:0;padding:0 4px;min-height:32px}.task-row{grid-template-columns:minmax(0,1fr)}.jobcheck{accent-color:#2563eb;cursor:pointer}.jobcheck:disabled{opacity:.45;cursor:default}

.quote-open-prompt{grid-column:3 / 7;align-self:start;min-height:36px;padding:5px 8px;border:0;border-radius:8px;background:rgba(255,255,255,.42);color:#253244;font-size:12px;font-weight:600}.quote-won-panel p{color:var(--secondary);line-height:1.45}.quote-won-panel .trade-actions button{min-height:44px}
body.dark .jobrow .quote-open-prompt{background:rgba(255,255,255,.42);color:#253244}

 .progress-dialog{z-index:150}.progress-dialog .trade-card{box-shadow:0 8px 30px #0006}.progress-dialog .trade-actions button{min-height:44px}.progress-dialog.paid-celebration .trade-card{animation:progress-celebrate .35s ease-out}@keyframes progress-celebrate{0%{opacity:0;transform:scale(.94)}65%{opacity:1;transform:scale(1.03)}100%{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.progress-dialog.paid-celebration .trade-card{animation:none}}

/* Today stays on brand; the Today button adds a brief, larger pulse. */
.today{outline:2px solid #EB7232;outline-offset:-2px}
.today-flash{position:relative;z-index:2;animation:todayOrangePulse 2.4s ease-in-out}
@keyframes todayOrangePulse{
  0%,50%,100%{box-shadow:inset 0 0 0 3px #EB7232,0 0 0 0 rgba(235,114,50,0)}
  25%,75%{box-shadow:inset 0 0 0 5px #EB7232,0 0 0 6px rgba(235,114,50,.3)}
}
@media(prefers-reduced-motion:reduce){.today-flash{animation:none;box-shadow:inset 0 0 0 4px #EB7232}}

.task-row{grid-template-columns:minmax(0,1fr) repeat(5,46px)}.task-done-flag{grid-column:4}@media(max-width:600px){.task-row{grid-template-columns:minmax(0,1fr) repeat(5,44px)}}@media(min-width:900px){.task-row{grid-template-columns:minmax(0,1fr) repeat(5,80px)}}

.message-options{z-index:100}.message-number{color:var(--secondary);overflow-wrap:anywhere}.message-choices{display:flex;gap:8px}.message-choices a{flex:1;text-align:center;text-decoration:none;background:#334155;color:#fff;padding:12px 6px;border-radius:8px;font-weight:600}.message-cancel{width:100%;margin-top:15px}.overview-actions button.overview-message{flex:1;padding:12px 4px;min-height:44px;border-radius:9px;background:#334155;color:#fff;font-weight:600}

/* Distinguish customer actions from the orange progress button. */
.overview-actions > a,.overview-actions > button.overview-message,body.dark .overview-actions > button.overview-message{background:#335984;color:#fff}

/* Customer actions use the same colour in both themes. */
body.dark .overview-actions > button.overview-message { background: #335984 !important; color: #fff; }

.quick-booking{z-index:150}.quick-booking .trade-card{max-width:480px}.quick-booking label{display:block;font-weight:600}.quick-booking #quickBookingError{color:#fca5a5;min-height:1.2em}.quick-booking .trade-actions button{min-height:44px}

/* Guided tour */
#tourRing{border-color:#F97316;border-radius:12px;box-shadow:0 0 0 4px rgba(249,115,22,.3),0 0 0 2000px rgba(3,7,14,.68);transition:top .3s,left .3s,width .3s,height .3s}#tourRing.circle{border-radius:50%}#tourCard{width:min(380px,calc(100vw - 28px));overflow:visible;background:#FFF8EF;color:#273547;border:0;border-radius:16px;padding:16px;box-shadow:0 14px 34px rgba(0,0,0,.5);transition:top .3s,left .3s}#tourCard:before{content:'';position:absolute;left:var(--pointer-x,50%);width:16px;height:16px;background:#FFF8EF;transform:translateX(-50%) rotate(45deg)}#tourCard.pointer-top:before{top:-7px}#tourCard.pointer-bottom:before{bottom:-7px}#tourCard h2{color:#142235;font-size:20px;font-weight:900;letter-spacing:-.02em;margin:12px 0 8px}#tourCard p{color:#273547;font-size:14.5px;line-height:1.42;margin:0 0 14px}#tourCard .tour-top button,#tourCard #tourBack{color:#5B6573;background:transparent;border:0;font-size:13px;font-weight:600;padding:4px;min-width:0}#tourCard #tourNext{background:#F97316;color:white;border:0;border-radius:11px;font-size:15px;font-weight:800;padding:11px 20px;min-width:0}#tourCard button:focus-visible{outline:3px solid #142235;outline-offset:2px}#tourCard [hidden],#tourScene[hidden]{display:none!important}#tourCount{display:flex;gap:4px;align-items:center}.tour-dot{width:7px;height:7px;border-radius:50%;background:#C4CEDA}.tour-dot.active{width:20px;border-radius:8px;background:#F97316}#tourScene{position:fixed;inset:0;background:#142235;padding:70px 14px 20px;box-sizing:border-box}.tour-example{max-width:520px;margin:auto;color:#f4f7fb}.tour-example strong,.tour-example small{display:block;margin-bottom:10px}.tour-example small{font-weight:700;color:#b9c5d4}#tourSampleAddress{display:flex;align-items:center;gap:8px;background:#273547;border-radius:8px;padding:10px;min-height:48px}#tourExampleAddress{flex:1}.tour-icon{position:relative;display:grid;place-items:center;width:36px;height:36px;border:2.5px solid white;border-radius:8px}.tour-tag{position:absolute;bottom:calc(100% + 9px);background:#F97316;color:white;padding:5px 9px;border-radius:8px;font-size:12.5px;font-weight:800}.tour-tag:after{content:'';position:absolute;top:100%;left:50%;border:5px solid transparent;border-top-color:#F97316;transform:translateX(-50%)}.tour-fake-job,.tour-fake-row{background:#dcecdc;color:#142235;border-left:5px solid #48a26a;border-radius:8px;padding:8px;font-weight:700;max-width:150px}.tour-fake-row{max-width:none}.tour-days-hint{color:#5B6573;font-size:12px}@media(prefers-reduced-motion:reduce){#tourRing,#tourCard{transition:none}}
#tourTip[hidden]{display:none!important}#tourTip{position:fixed;inset:0;z-index:2100;overflow:hidden}#tourTipRing{position:fixed;border:3px solid #F97316;border-radius:12px;box-shadow:0 0 0 4px rgba(249,115,22,.3),0 0 0 2000px rgba(3,7,14,.68);pointer-events:none}#tourTipCard{position:fixed;width:min(380px,calc(100vw - 28px));box-sizing:border-box;background:#FFF8EF;color:#273547;border-radius:16px;padding:16px;box-shadow:0 14px 34px rgba(0,0,0,.5)}#tourTipCard h2{color:#142235;font-size:20px;font-weight:900;margin:0 0 8px}#tourTipCard p{color:#273547;font-size:14.5px;line-height:1.42}#tourTipCard button{display:block;margin-left:auto;background:#F97316;color:white;border:0;border-radius:11px;padding:11px 20px;font-weight:800;min-height:44px}#tourTipCard button:focus-visible{outline:3px solid #142235;outline-offset:2px}
body.tour-address-active #copyAddressBtn,body.tour-address-active #addressMapLink{position:relative;outline:2.5px solid #fff;outline-offset:-3px}body.tour-address-active #copyAddressBtn:before,body.tour-address-active #addressMapLink:before{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:#F97316;color:#fff;font-size:12.5px;font-weight:800;line-height:1;padding:5px 9px;border-radius:8px;white-space:nowrap}body.tour-address-active #copyAddressBtn:before{content:'Copy'}body.tour-address-active #addressMapLink:before{content:'Maps'}body.tour-address-active #copyAddressBtn:after,body.tour-address-active #addressMapLink:after{content:'';position:absolute;bottom:100%;left:50%;transform:translateX(-50%);border:4px solid transparent;border-top-color:#F97316}
body.tour-address-active #copyAddressBtn:before,body.tour-address-active #addressMapLink:before,body.tour-address-active #copyAddressBtn:after,body.tour-address-active #addressMapLink:after{display:none}
body.tour-address-active #tourRing:before,body.tour-address-active #tourRing:after{position:absolute;bottom:calc(100% + 8px);background:#F97316;color:#fff;font-size:12.5px;font-weight:800;line-height:1;padding:5px 9px;border-radius:8px;white-space:nowrap}body.tour-address-active #tourRing:before{content:'Copy';right:55px}body.tour-address-active #tourRing:after{content:'Maps';right:3px}

/* Keep native iOS pickers, with the same comfortable field size. */
@supports (-webkit-touch-callout: none){.field select,.authbox select,.trade-card select,.field input[type="date"]{box-sizing:border-box;min-height:48px;width:100%;font-size:16px}}

/* Highlight the full proposed range while moving a job. */
.dropTarget{outline:2px solid #f97316;outline-offset:-2px;background-color:rgba(249,115,22,.18)}

/* A lightweight drag preview; the saved job remains in place until dropped. */
.moving-job-source{opacity:.35}
.moving-job-ghost{position:fixed!important;z-index:10000!important;margin:0!important;pointer-events:none!important;box-sizing:border-box;transform:translate(-50%,-50%) rotate(-4deg) scale(1.05);box-shadow:0 10px 22px #0006;opacity:.96;overflow:hidden}
@media(prefers-reduced-motion:reduce){.moving-job-ghost{transform:translate(-50%,-50%)}}

/* Brand-coloured, wrapping move message and choice, including narrow phones. */
.move-undo-toast{box-sizing:border-box;width:max-content;max-width:calc(100vw - 28px);white-space:normal;flex-wrap:wrap;justify-content:center;gap:12px;padding:16px;background:#fff8ef;color:#142235;border-color:#f97316;text-align:center}.move-undo-toast span{min-width:0;overflow-wrap:anywhere}.move-undo-toast button{flex:0 0 auto;background:#f97316;color:#fff;border-radius:9px}.move-choice{z-index:160}.move-choice .trade-card{background:#fff8ef;color:#142235}.move-choice p{color:#526174}.move-choice button{display:block;width:100%;margin-top:9px;min-height:48px}.move-choice button:first-of-type{background:#f97316;color:#fff}.move-choice-message{color:#9b3412!important}
.move-undo-toast[hidden]{display:none!important}

.moving-job-ghost{transform:translate3d(var(--drag-x,0px),var(--drag-y,0px),0) translate(-50%,-50%) rotate(-4deg) scale(1.05);will-change:transform;box-shadow:0 12px 24px #0008}
@media(prefers-reduced-motion:reduce){.moving-job-ghost{transform:translate3d(var(--drag-x,0px),var(--drag-y,0px),0) translate(-50%,-50%)}}

/* Keep the lifted job visible just above the finger and clearly mark its drop date. */
.touch-drag-ghost{min-width:120px;max-width:min(180px,65vw);height:auto!important;min-height:44px;padding:7px 8px!important;font-size:13px!important;line-height:1.15!important;transform:translate3d(var(--drag-x,0px),var(--drag-y,0px),0) translate(-50%,-125%) rotate(-4deg) scale(1.1);border-radius:8px;box-shadow:0 12px 26px #0009}
.dropAnchor{outline:3px solid #f97316!important;outline-offset:-3px;box-shadow:inset 0 0 0 2px #fff8ef;background-color:rgba(249,115,22,.28)!important}
@media(prefers-reduced-motion:reduce){.touch-drag-ghost{transform:translate3d(var(--drag-x,0px),var(--drag-y,0px),0) translate(-50%,-125%)}}

/* Lift all visible job days together; keep the grab day above the finger. */
.touch-drag-ghost{max-width:min(78vw,520px);overflow:visible;transform:translate3d(var(--drag-x,0px),var(--drag-y,0px),0) translate(var(--grab-x,-50%),-125%) rotate(var(--drag-tilt,-5deg)) scale(1.2);transform-origin:50% 85%}
.drag-multi{padding:6px!important}.drag-mini-row{display:flex;gap:3px;min-width:0}.drag-mini{display:block;min-width:0;flex:1;border:1px solid currentColor;border-radius:4px;text-align:center;font-size:10px;font-weight:800;line-height:20px;background:#fff5;color:#142235}.drag-mini-off{background:transparent;border-style:dashed;opacity:.65;font-size:8px}.drag-mini-grabbed{outline:2px solid #f97316}.drag-mini-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:800;margin-top:3px}.drag-length-badge{display:block;font-size:10px;font-weight:800;margin-top:3px}.drag-lift{animation:job-lift .22s cubic-bezier(.34,1.56,.64,1)}
@keyframes job-lift{from{opacity:.7;scale:.85}to{opacity:1;scale:1}}
.move-undo-toast:not([hidden]){box-shadow:0 10px 24px #0007,0 0 0 200vmax #03070e9c;animation:move-notice-in .25s ease-out}.move-undo-toast button{background:#f97316!important;color:#fff!important;border:0!important}
@keyframes move-notice-in{from{opacity:0;translate:0 -8px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.touch-drag-ghost{transform:translate3d(var(--drag-x,0px),var(--drag-y,0px),0) translate(var(--grab-x,-50%),-125%) scale(1.2)}.drag-lift,.move-undo-toast:not([hidden]){animation:none}}

.moving-job-ghost.drag-no-target{opacity:.7}

.move-undo-toast button[hidden]{display:none!important}

/* Trial pointer gestures. Native panning remains available until a drag is active. */
[data-job]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none}.moving-job-ghost{touch-action:none}

.drag-date-bubble{position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);white-space:nowrap;background:#fff8ef;color:#142235;border-radius:999px;padding:5px 9px;font:800 11px Inter,sans-serif;box-shadow:0 4px 10px #0006;pointer-events:none}.drag-date-bubble[hidden]{display:none}

.crew-chip-group{display:flex;gap:6px;flex-wrap:wrap}.crew-chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#273547;color:#fff;padding:5px 10px 5px 5px;font-size:12.5px;font-weight:600;margin:2px}.crew-chip-avatar{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;color:white;font-size:10px;font-weight:800}.crew-change{font-size:11px;color:var(--secondary)}.job-header-tag{display:inline-block;background:#dce8fa;color:#142235;font-size:10.5px;line-height:1.2;border-radius:5px;padding:3px 6px;vertical-align:middle}

.move-undo-toast:not([hidden]){top:160px;transform:translateX(-50%);background:#fff8ef;color:#142235;border:0;border-radius:12px;box-shadow:0 10px 24px #0007;font-size:13px;padding:9px 14px;gap:8px}.move-undo-toast:not([hidden])::before{content:'✓';display:inline-grid;place-items:center;flex:0 0 18px;width:18px;height:18px;border-radius:50%;background:#2f9e57;color:white;font-size:12px}.move-undo-toast button{background:transparent!important;color:#c45108!important;padding:4px 6px;min-height:40px;font-size:13px;font-weight:800}.move-undo-toast [data-move-one]{white-space:nowrap}

.md-edge-left{box-shadow:inset 14px 0 15px -14px #f97316}.md-edge-right{box-shadow:inset -14px 0 15px -14px #f97316}


.drag-live{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* Larger desktop controls; the phone arrangement remains unchanged. */
@media (min-width: 900px){
 .tabs{width:max-content;min-width:310px;padding:5px;background:#1e2d42;border-radius:14px;gap:3px}
 .tabs .tab{min-width:145px;min-height:44px;padding:8px 22px;color:#c4ceda;background:transparent}
 .tabs .tab.active{background:#fff;color:#142235}
 .calendar-tools .viewtoggle{position:absolute;right:0;top:-54px;width:auto;max-width:none;margin:0;padding:5px;background:#1e2d42;border-radius:14px;gap:3px}
 .calendar-tools .viewtoggle button{min-width:105px;min-height:44px;padding:8px 22px;color:#c4ceda;background:transparent}
 .calendar-tools .viewtoggle button.active{background:#fff;color:#142235}
 .calendar-tools .monthbar{display:flex;gap:8px;margin:10px 0;justify-content:flex-end}
 .calendar-tools .monthbar strong{order:-2;margin-right:auto;text-align:left;font-size:28px;font-weight:900}
 .calendar-tools .monthbar .arrow{width:68px;min-height:48px;background:#1e2d42;color:#fff}
 .calendar-tools .monthbar .today-button{order:0;min-width:150px;min-height:48px;background:#1e2d42;color:#fff}
 .calendar-tools .monthbar .arrow:first-child{order:-1;margin-left:auto}
 .calendar-tools .monthbar .arrow:nth-of-type(2){order:1}
}
.entry-chooser .trade-card{background:#142235;color:#fff;border-radius:22px;padding:24px 22px 22px}
.entry-chooser h2{font-size:26px;line-height:1.15;font-weight:900;letter-spacing:-.02em;margin:0 0 18px}
.entry-chooser .entry-option{display:flex;align-items:center;gap:14px;width:100%;min-height:74px;margin:10px 0;padding:15px 16px;border:0;border-radius:14px;background:#1e2d42;color:#fff;text-align:left;transition:transform 120ms,filter 120ms}
.entry-chooser .entry-option:active{transform:scale(.98);filter:brightness(.92)}
.entry-chooser .entry-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0;border-radius:11px;background:#f97316;color:#fff}
.entry-chooser .entry-icon svg{width:24px;height:24px}.entry-chooser .entry-quote .entry-icon{background:#fff8ef;color:#142235}.entry-chooser .entry-task .entry-icon{background:#7d8a9c}
.entry-chooser .entry-copy{flex:1;min-width:0;margin:0}.entry-chooser .entry-copy strong{font-size:19px;line-height:1.1;font-weight:900}.entry-chooser .entry-copy span{margin-top:3px;color:#c4ceda;font-size:14px;line-height:1.35}.entry-chooser .entry-chevron{margin:0;color:#fff9;font-size:28px}
.entry-chooser .trade-card > button:last-child{margin:14px 0 0;padding:14px;border:0;border-radius:14px;background:#1e2d42;color:#fff;text-align:center;font-size:15px}
.entry-chooser button:focus-visible{outline:2px solid #f97316;outline-offset:2px}

/* Use one compact controls row on wide screens, leaving more room for the diary. */
@media (min-width:1300px){
 .calendar-tools .monthbar{position:absolute;top:-54px;left:330px;right:240px;margin:0;min-height:54px;gap:8px}
 .calendar-tools .monthbar strong{font-size:clamp(20px,1.7vw,28px);white-space:nowrap}
 .calendar-tools .monthbar .today-button{min-width:110px}
}

/* Cover scrolling jobs behind the sticky desktop navigation row. */
@media (min-width:900px){
 .calendar-tools::before{content:"";position:absolute;z-index:-1;pointer-events:none;top:-60px;left:-18px;right:-18px;height:61px;background:var(--page)}
}

/* Jewel is a separate, device-local preference from light and dark mode. */
body.jewel-colours .job,body.jewel-colours .dayjob,body.jewel-colours .jobrow,body.jewel-colours .moving-job-ghost{color:#fff}
body.jewel-colours .jobmeta,body.jewel-colours .job .kind,body.jewel-colours .dayjob small,body.jewel-colours .photo-indicator{color:#e3eaf3;opacity:1}
body.jewel-colours .jobrow .badge{background:rgba(255,255,255,.16);color:#fff}
body.jewel-colours .jobrow .quote-open-prompt{background:rgba(255,255,255,.2);color:#fff}

/* Make the desktop All Jobs tab row opaque while the list scrolls underneath. */
@media (min-width:900px){
 body:has(#jobsTab[style*="block"]) .tabs::before{content:"";position:absolute;z-index:-1;pointer-events:none;top:0;bottom:0;left:-18px;width:100vw;background:var(--page)}
}

/* Cream picker and job editor. */
body .entry-chooser .trade-card{background:#fff8ef;color:#142235}
body .entry-chooser h2{color:#142235}
body .entry-chooser .entry-option{min-height:96px}
body .entry-chooser .trade-card > button:last-child{background:#eadfcc;color:#142235}
body #panel{background:rgba(3,11,22,.72)}
body #panel .card{inset:auto 0 0;top:auto;transform:none;margin:0 auto;width:min(100%,720px);height:auto;max-height:min(92dvh,100%);border-radius:22px 22px 0 0;background:#fff8ef;color:#142235;padding:25px 22px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -8px 35px #0004}
body #panel .card::before{content:"";display:block;width:42px;height:5px;border-radius:6px;background:#d8cbb6;margin:-13px auto 16px}
body #panel h2{color:#142235;font-weight:900;font-size:26px}
body #panel .hint,body #panel .crew-hint{color:#586779}
body #panel .field label,body #panel .section-label{color:#687282;font-weight:800}
body #panel .field input:not([type=checkbox]):not([type=radio]),body #panel .field select,body #panel .field textarea{background:#fff;color:#142235;border:1.5px solid #e7dccb;border-radius:12px;min-height:46px}
body #panel .actions{background:#fff8ef;border-top:1px solid #e7dccb;padding:12px 0 0}
body #panel .actions button{background:#eadfcc;color:#142235}
body #panel .actions .danger{background:#fff;border:1px solid #e3a097;color:#b83228}
body #panel .actions .primary{background:#f97316;color:#fff;flex:1.3}
body #panel .actions .unschedule{background:#e6eaf0;color:#142235}

/* Match crew selection and its expanded days to the cream editor trial. */
body #panel .crew-picker{background:#fff;color:#142235;border:1.5px solid #e7dccb;border-radius:12px}
body #panel .crew-picker summary,body #panel .crew-choice{color:#142235}
body #panel .crew-picker button{background:#eadfcc;color:#142235}
body #panel .crew-days-list{border-color:#d7c7ad}
body #panel .crew-picker input[type="checkbox"]{accent-color:#f97316}

.photo-elsewhere{grid-column:1 / -1;flex-basis:100%;width:100%;margin:2px 0 0;padding:10px 12px;border-radius:8px;background:rgba(125,145,170,.14);color:var(--secondary);font-size:13px;line-height:1.4;overflow-wrap:anywhere}
/* Photo notices must remain legible on the cream editor and dark overview. */
#panel .photo-elsewhere{color:#26374d;background:#eee4d6}
.job-overview .photo-elsewhere{color:#e7eef8;background:#33445b}

.photo-other-card{grid-column:1/-1;flex:1 1 100%;box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;min-width:0;background:#323e51;border:1px solid #3c4960;color:#fff}
#panel .photo-other-card{max-width:560px;background:#fff;border:1.5px solid #e7dccb;color:#142235}
.photo-other-icon{position:relative;flex:0 0 48px;height:48px}.photo-other-icon:before{content:"";position:absolute;inset:3px 3px 7px 7px;background:#3e4b62;border-radius:9px;transform:rotate(8deg)}.photo-other-icon>div{position:absolute;left:0;top:5px;width:38px;height:38px;border-radius:9px;background:#4a5873;color:#c9d1dd;display:grid;place-items:center}.photo-other-icon svg,.photo-other-tile svg{width:20px;height:20px}.photo-other-icon>b{position:absolute;bottom:0;right:0;display:grid;place-items:center;min-width:20px;height:20px;border-radius:10px;border:2px solid #323e51;background:#e8763a;color:#1b2433;font-size:11px;box-sizing:border-box}
#panel .photo-other-icon:before{background:#efe5d5}#panel .photo-other-icon>div{background:#e3d6c1;color:#142235}#panel .photo-other-icon>b{border-color:white;color:white}
.photo-other-text{min-width:0;flex:1}.photo-other-text>strong{display:block;font-size:15px;line-height:1.25}.photo-other-text>span{display:block;margin-top:3px;color:#aeb8c7;font-size:13px;line-height:1.35}.photo-other-text>small{display:block;margin-top:8px;color:#e8a57e;font-size:12px;font-weight:700}.photo-other-text>small b{display:inline-block;padding:2px 5px;border-radius:4px;background:#e8763a;color:#1b2433;font-size:10px;letter-spacing:.08em;margin-right:4px}
#panel .photo-other-text>span{color:#626f81}#panel .photo-other-text>small{color:#a64c16}#panel .photo-other-text>small b{background:#142235;color:#fff}
.photo-other-tile{box-sizing:border-box;width:72px;height:72px;border:1px dashed #56637c;border-radius:10px;background:#323e51;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.photo-other-tile strong{font-size:16px;line-height:1.1}.photo-other-tile small{font-size:9px;color:#aeb8c7;font-weight:700}.photo-other-caption{grid-column:1/-1;flex-basis:100%;margin:0!important;color:#aeb8c7;font-size:12.5px;line-height:1.4}#panel .photo-other-tile{background:#fff;border-color:#d2c5af;color:#142235}#panel .photo-other-tile small,#panel .photo-other-caption{color:#626f81}#panel .photo-other-caption strong{color:#a64c16}.photo-grid .photo-thumb{overflow:visible}.photo-grid .photo-thumb img{border-radius:8px}

#formTitle{touch-action:none}


.diary-filter-bar{display:flex;align-items:center;justify-content:flex-start;gap:6px;margin:8px 0;min-width:0}
.diary-chips{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:thin}
.diary-filter-bar button{font-family:inherit;font-size:13px;font-weight:700}
.diary-filter-bar button{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;gap:4px;white-space:nowrap;padding:4px 7px;min-height:30px;border:1.5px solid #34455c;border-radius:999px;background:#1e2b3e!important;color:#fff!important;font-size:13px}
.diary-filter-bar button[aria-pressed=true]{background:#fff!important;color:#142235!important}
.diary-filter-bar .diary-chip-muted{opacity:.45}
.diary-filter-bar #diaryFilterButton.diary-filter-active{border-color:#f97316}
.diary-filter-badge{border-radius:99px;background:#f97316;color:#142235;min-width:16px;font-size:11px;text-align:center;padding:0 3px}
.diary-filter-summary{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:4px 0 8px;font-size:13px}
.diary-filter-summary[hidden],.diary-filter-overlay[hidden]{display:none}
.diary-filter-summary button,.diary-person-list button{color:#ac4510;background:none!important;padding:4px 6px;min-height:28px}
body.dark .diary-filter-summary button{color:#ff9b58}
.diary-icon{display:inline-block;width:20px;height:20px;flex:none;vertical-align:middle}
.job b .diary-icon,.dayjob b .diary-icon,.jobname .diary-icon{width:18px;height:18px;margin-right:3px}
.diary-people-line{display:flex;min-width:0;align-items:center;gap:3px;margin-top:3px;font-size:.9em}
.diary-people-line .diary-icon{width:16px;height:16px}
.diary-people-line span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#monthView .job.diary-filter-faded,.dayjob.diary-filter-faded{opacity:.28}
@media(max-width:480px){.job b .diary-icon,.job .diary-people-line .diary-icon{width:14px;height:14px}}
.diary-filter-overlay{position:fixed;inset:0;z-index:1000;background:#050b16a8;display:flex;align-items:flex-end;justify-content:center}
.diary-filter-sheet{display:flex;flex-direction:column;gap:10px;width:min(100%,520px);max-height:92dvh;overflow:auto;overscroll-behavior:contain;background:#fff8ef;color:#142235;border-radius:22px 22px 0 0;padding:8px 16px max(14px,env(safe-area-inset-bottom))}
#diaryFilterGrip{touch-action:none}
.diary-grabber{display:block;width:44px;height:5px;background:#d5ccbf;border-radius:9px;margin:0 auto 9px}
.diary-sheet-heading{display:flex;align-items:center;gap:7px}
.diary-filter-sheet .diary-sheet-heading button{min-height:40px;padding:6px 10px;border:1px solid #dfc6ac;border-radius:10px;background:#fff!important;color:#ac4510!important;font-size:13px;white-space:nowrap}
.diary-filter-sheet .diary-sheet-heading button[aria-label]{min-width:40px;font-size:20px;line-height:1}
.diary-filter-sheet .diary-sheet-heading button:active{background:#fff1e4!important}

.diary-sheet-heading h2{margin:0 auto 0 0;font-size:22px}
.diary-filter-sheet h3{display:flex;justify-content:space-between;gap:8px;margin:12px 0 6px;text-transform:uppercase;letter-spacing:.09em;font-size:11px;color:#695b4a}
.diary-filter-sheet h3 small{text-transform:none;letter-spacing:0}
.diary-choice-grid,.diary-choice-row{display:grid;gap:6px}
.diary-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.diary-choice-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.diary-filter-sheet :is(.diary-choice-grid,.diary-choice-row) button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:5px 7px;background:white!important;color:#142235!important;border:1px solid #e7d9c9;border-radius:12px;font-size:13px}
.diary-filter-sheet .diary-choice-grid button{justify-content:flex-start}
.diary-choice-grid small{margin-left:auto}
.diary-choice-grid .diary-icon{width:24px;height:24px}
.diary-filter-sheet :is(.diary-choice-grid,.diary-choice-row) button[aria-pressed=true]{border-color:#f97316;background:#fff1e4!important}
.diary-choice-row i{width:10px;height:10px;border-radius:3px}
.diary-kind-job{background:#e9b93b}.diary-kind-quote{background:#f97316}.diary-kind-task{background:#7d8a9c}
.diary-person-list{border:1px solid #e7d9c9;border-radius:12px;background:white;overflow:hidden}
.diary-person-list label{display:grid;grid-template-columns:28px minmax(0,1fr) auto 20px;align-items:center;column-gap:8px;margin:0;padding:6px 10px;min-height:40px;border-bottom:1px solid #efe5d9;color:#142235}
.diary-person-list input{width:18px;height:18px;margin:0;accent-color:#f97316}
.diary-person-list button{width:100%;text-align:center}
.diary-avatar{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;color:white;font-size:10px;font-weight:800}
#diaryFilterApply{background:#f97316!important;color:#142235!important;font-weight:800;min-height:44px}


#diaryFilterButton>span:first-child{display:grid;place-items:center;width:20px;height:20px}
.diary-weekend-track{position:relative;display:block;flex:0 0 34px;height:16px;border-radius:999px;background:#3a4a60}
.diary-weekend-track::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#c4ceda;transition:transform 150ms ease}
.diary-weekend-pill[aria-checked=true] .diary-weekend-track{background:#f97316}
.diary-weekend-pill[aria-checked=true] .diary-weekend-track::after{background:#fff;transform:translateX(18px)}
@media(prefers-reduced-motion:reduce){.diary-weekend-track::after{transition:none}}

.tabs .tab,.calendar-tools .viewtoggle > button{box-sizing:border-box;height:44px;min-height:44px}
.calendar-tools .viewtoggle .diary-weekend-pill{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;border-radius:999px}
.calendar-tools .diary-weekend-track{flex-basis:36px;height:16px;border-radius:8px}
.calendar-tools .diary-weekend-track::after{top:3px;left:4px;width:12px;height:10px;border-radius:50%}
.calendar-tools .diary-weekend-pill[aria-checked=true] .diary-weekend-track::after{transform:translateX(16px)}
@media(max-width:375px){
 .calendar-tools .viewtoggle .diary-weekend-pill{padding-inline:3px;gap:4px}
 .calendar-tools .diary-weekend-track{flex-basis:32px}
 .calendar-tools .diary-weekend-pill[aria-checked=true] .diary-weekend-track::after{transform:translateX(12px)}
}
@media(min-width:1300px){
 .calendar-tools .monthbar{right:430px}
}
@media(max-width:520px){
 .diary-filter-bar,.diary-filter-bar .diary-chips{gap:3px}
 .diary-filter-bar button{position:relative;min-width:44px;min-height:44px;padding:0 5px;gap:3px;font-size:12px}
 .diary-filter-bar button .diary-icon{width:16px;height:16px}
 .diary-filter-bar #diaryFilterButton>span:first-child{width:15px;height:20px}
 .diary-filter-bar .diary-filter-badge{position:absolute;top:0;right:0;line-height:16px}
}
@media(max-width:375px){
 .diary-filter-bar,.diary-filter-bar .diary-chips{gap:2px}
 .diary-filter-bar button{padding-inline:4px;font-size:11px}
 .diary-filter-bar button .diary-icon{width:14px;height:14px}
}

.legacy-mark{display:inline-block;flex:none;vertical-align:baseline}
.legacy-solo,.legacy-crew{width:10px;height:10px;border-radius:2px}
.legacy-solo{background:#356a9a}
.legacy-crew{background:#4c8b5c}
.legacy-indoor,.legacy-outdoor{font-size:1em;line-height:1}
.kind .legacy-mark + .legacy-mark{margin-left:2px}
.job b.legacy-marked-title,.dayjob b.legacy-marked-title{position:relative;text-indent:12px}
.dayjob b.legacy-marked-title{display:block}
.legacy-marked-title > .legacy-mark{position:absolute;inset-inline-start:0;top:.22em;width:8px;height:8px;text-indent:0}

#diaryJobsFilters #calendarShareButton{display:none}
#calendarShareButton{margin-inline-start:auto;display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;min-width:44px;min-height:44px;border:1px solid #f97316;border-radius:10px;background:rgba(249,115,22,.08);color:var(--ink)}
.dark #calendarShareButton{color:#fff}
#calendarShareButton svg{width:16px;height:16px;color:#f97316;flex:none}
#calendarShareButton[aria-expanded=true],#calendarShareButton:active{background:rgba(249,115,22,.22)}
@media(max-width:375px){
 #calendarShareButton{width:44px;padding-inline:0}
 #calendarShareButton span{display:none}
}
@media(max-width:359px){
 .diary-filter-bar:has(#calendarShareButton):not(#diaryJobsFilters *) .diary-chips button,
 .diary-filter-bar:has(#calendarShareButton):not(#diaryJobsFilters *) #diaryFilterButton{padding-inline:2px;gap:2px;font-size:10px}
 .diary-filter-bar:has(#calendarShareButton):not(#diaryJobsFilters *) #diaryFilterButton>span:first-child{width:12px}
}
.share-picker.trade-overlay{padding:12px}
.share-picker .trade-card{width:min(420px,100%);padding:18px;max-height:calc(100dvh - 24px);overflow:auto}
.share-picker h2{margin:0 0 5px}
#shareGrip{touch-action:none}
.share-picker section[hidden],#pdfPlanMsg[hidden]{display:none}
.share-picker p{margin:0 0 12px;font-size:14px;line-height:1.4;color:#6d6151}
.share-picker .share-range{gap:0;padding:0 9px 0 0;min-height:88px}
.share-picker .share-range:active{transform:none;filter:none}
.share-picker .share-range-main{display:flex;align-items:center;gap:12px;flex:1;min-width:0;align-self:stretch;width:auto;margin:0;padding:11px 2px 11px 12px;border:0;background:none;color:#fff}
.share-picker .entry-copy strong{overflow-wrap:anywhere}
.share-stepper{display:flex;gap:4px;flex:none}
.share-picker .share-stepper button{display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:10px;background:#304158;color:#fff;font-size:24px;text-align:center}
.share-picker button:disabled{opacity:.4;cursor:default}
#sharePickStep[data-preparing] .share-range{opacity:.45;pointer-events:none}
#sharePickStep[data-preparing=week] .share-range.entry-job,#sharePickStep[data-preparing=month] .share-range.entry-quote{opacity:1}
#sharePickStep[data-preparing=week] .entry-job .share-stepper,#sharePickStep[data-preparing=month] .entry-quote .share-stepper{position:relative}
#sharePickStep[data-preparing=week] .entry-job .share-stepper button,#sharePickStep[data-preparing=month] .entry-quote .share-stepper button{visibility:hidden}
#sharePickStep[data-preparing=week] .entry-job .share-stepper::after,#sharePickStep[data-preparing=month] .entry-quote .share-stepper::after{content:'';position:absolute;inset:0;margin:auto;width:20px;height:20px;border:2px solid #fff5;border-top-color:#fff;border-radius:50%;animation:share-spinner .75s linear infinite}
@keyframes share-spinner{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.share-stepper::after{animation:none!important}}
.share-summary{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #eadfcc;border-radius:14px;background:#fff;margin-bottom:12px}
.share-picker .share-summary .entry-copy span{color:#6d6151}
.share-picker .share-ready-tick{display:grid;place-items:center;flex:none;width:28px;height:28px;margin:0;border-radius:50%;background:#2b9b54;color:#fff;font-weight:800}
.share-action-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.share-picker .share-action-row button,.share-picker .share-secondary{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:48px;margin:0;padding:8px 4px;text-align:center;border:0;border-radius:14px;font-size:14px;font-weight:800}
.share-picker .share-secondary{background:#eadfcc;color:#142235}
#pdfShareBtn{background:#f97316;color:#fff}
#pdfDownloadBtn{background:#1e2d42;color:#fff}
#pdfPlanMsg{margin:10px 0 0}

/* Cream settings and end-of-day check-in, matching the approved phone design. */
.settingsPanel{background:#fff8ef;color:#142235;border:1px solid #e8dac6;border-radius:16px;padding:18px;box-shadow:0 16px 42px #0006}
.settingsPanel>strong{display:block;font-size:21px;font-weight:800;margin-bottom:10px;color:#142235}
.settingsPanel>button{background:#ede1cd;color:#142235;border:0;border-radius:10px;font-weight:750;box-shadow:none}
.settingsPanel>label{margin:0;padding:13px 0;border-bottom:1px solid #eadfce;color:#142235}
.settingsPanel input[type=checkbox]{accent-color:#f97316;flex:none}
.settingsPanel a{color:#3973db}
.settingsPanel .checkin-setting{margin-top:12px;padding:11px;border:1px solid #f97316;border-radius:12px;background:#fff}
.settingsPanel .checkin-setting label{margin:0;display:flex;align-items:center;gap:10px;color:#142235}
.settingsPanel .checkin-setting label span{min-width:0}.settingsPanel .checkin-setting small{display:block;font-size:11px;line-height:1.35;color:#64748b;margin-top:2px}
.settingsPanel .checkin-setting-time{display:flex;align-items:center;gap:12px;color:#64748b;font-size:12px;font-weight:700}
.settingsPanel .checkin-setting-time select{width:auto;min-width:110px;margin:10px 0 0;padding:8px 26px 8px 10px;background:#fff8ef;color:#142235;border:1px solid #e4d4bf}
.settingsPanel .checkin-setting-time span{margin-top:10px}.settingsPanel #checkinReminderMessage:empty{display:none}.settingsPanel #checkinReminderMessage{font-size:12px;color:#a1362a}
#settingsPanel .checkin-open{width:100%;min-height:44px;margin:8px 0 0;padding:8px 10px;background:#eadfcc;color:#142235;border:1px solid #e7dccb;border-radius:9px;box-shadow:none;font-size:13px;text-align:center}
#checkinPanel{align-items:flex-end;justify-content:center;padding:0;background:#050d18b8;overflow:hidden}
#checkinPanel .checkin-sheet{position:relative;display:flex;flex-direction:column;width:min(100%,480px);max-height:min(90dvh,850px);padding:0;background:#fff8ef;color:#142235;border-radius:22px 22px 0 0;overflow:hidden;box-shadow:0 -12px 35px #0003}
.checkin-handle{flex:none;width:48px;height:5px;border-radius:10px;background:#d9cbb5;margin:12px auto 15px;touch-action:pan-y}
.checkin-content{overflow:auto;overscroll-behavior:contain;padding:0 20px 16px;flex:1;min-height:0}
.checkin-sheet *{box-sizing:border-box}
.checkin-sheet .checkin-content h2{font-size:26px;line-height:1.15;letter-spacing:-.02em;font-weight:900;margin:0;color:#142235}
.checkin-sheet #checkinSubtitle{font-size:14px;color:#6b7280;margin:4px 0 12px}
.checkin-sheet .checkin-card{background:#fff;border:1.5px solid #e7dccb;border-radius:14px;padding:12px;margin:0 0 9px}

/* The planner's dark button palette must not apply inside the cream sheet. */
#checkinPanel .checkin-sheet button{appearance:none;background:transparent;color:#142235;border:0;box-shadow:none;margin:0;cursor:pointer}
#checkinPanel .checkin-card-open{display:flex;align-items:flex-start;gap:10px;width:100%;min-height:44px;padding:0;text-align:left}
.checkin-sheet .checkin-card-copy{min-width:0;flex:1;overflow-wrap:anywhere}
.checkin-sheet .checkin-card-copy strong{display:block;font-size:16px;line-height:1.25;font-weight:800}
.checkin-sheet .checkin-card-copy small{display:block;color:#6b7280;font-size:12.5px;line-height:1.35;margin-top:2px;font-weight:400}
.checkin-sheet .checkin-card-copy b{color:#142235;font-weight:800}
.checkin-sheet .checkin-dot{display:inline-block;flex:none;width:12px;height:12px;background:var(--dot,#22c3d6);border-radius:4px;margin-top:4px}
.checkin-sheet .checkin-chevron{align-self:center;font-size:26px;line-height:1;color:#b7ab97}
.checkin-sheet .checkin-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
#checkinPanel .checkin-buttons button,
#checkinPanel .checkin-footer button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:8px 6px;border-radius:10px;font-size:14.5px;font-weight:800}
#checkinPanel .checkin-buttons [data-checkin-action="done"]{background:#3b74e0;color:#fff}
#checkinPanel .checkin-buttons [data-checkin-action="tomorrow"]{background:#fff;border:1.8px solid #142235}
#checkinPanel .checkin-sheet .checkin-check{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 2px;border-top:1px solid #f0e7d9;border-radius:0;text-align:left;font-size:14.5px;font-weight:600;overflow-wrap:anywhere}
.checkin-sheet .checkin-check span{width:24px;height:24px;border:2px solid #c9bba3;border-radius:7px;background:#fff;flex:none}
.checkin-sheet .checkin-hint{color:#6b7280;font-size:12px;text-align:center;line-height:1.45;margin:8px 0}
.checkin-sheet .checkin-status{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 20px;color:#142235;font-size:13px}
.checkin-sheet .checkin-status:has(#checkinUndo:not([hidden])){padding:9px 12px;margin-bottom:8px;border-radius:10px;background:#f0e4d2}
#checkinPanel .checkin-sheet #checkinUndo{background:#f97316;color:#fff;border-radius:8px;padding:7px 12px;font-weight:700}
.checkin-sheet .checkin-status:has(#checkinUndo[hidden]){display:none}
.checkin-sheet .checkin-footer{display:flex;gap:8px;flex:none;padding:12px 20px max(26px,env(safe-area-inset-bottom));border-top:1px solid #e7dccb;background:#fff8ef}
#checkinPanel .checkin-footer button{min-height:50px}
#checkinPanel .checkin-footer #checkinClose{flex:1;background:#eadfcc;font-size:16px}
#checkinPanel .checkin-footer #checkinMoveAll{flex:2.3;background:#f97316;color:#fff;box-shadow:0 3px #c2410c;font-size:15px}
.checkin-finished{text-align:center;padding:5px 0 18px}.checkin-finished-tick{display:grid;place-items:center;width:82px;height:82px;margin:0 auto 16px;border-radius:50%;background:#f97316;color:#fff;font-size:46px;box-shadow:0 5px #c2410c}.checkin-sheet .checkin-content .checkin-finished h2{font-size:30px}.checkin-finished p{font-size:13px;color:#697789}.checkin-counts{display:flex;justify-content:center;flex-wrap:wrap;gap:6px}.checkin-counts span{background:white;border:1px solid #e9d9c5;border-radius:8px;padding:7px 9px;font-weight:700;font-size:11px}
.checkin-tomorrow-title{font-size:11px;letter-spacing:.06em;color:#697789;text-transform:uppercase;margin:4px 0 8px}.checkin-tomorrow{background:#fff;border:1px solid #e9d9c5;border-radius:12px;overflow:hidden}.checkin-tomorrow>div{display:flex;gap:10px;align-items:flex-start;padding:12px}.checkin-tomorrow>div+div{border-top:1px solid #eee2d2}.checkin-tomorrow>div>span:nth-child(2){min-width:0;flex:1}.checkin-tomorrow strong,.checkin-tomorrow small{display:block}.checkin-tomorrow strong{font-size:13px}.checkin-tomorrow small{font-size:11px;color:#697789;margin-top:3px}.checkin-tomorrow b{font-size:11px;color:#697789}
.checkin-sheet [hidden],.checkin-setting [hidden]{display:none!important}
@media(min-width:700px){#checkinPanel{align-items:center;padding:20px}#checkinPanel .checkin-sheet{border-radius:22px}}

.settingsPanel .checkin-setting{position:relative}.settingsPanel .checkin-setting::before{content:"NEW";position:absolute;top:-10px;left:10px;border-radius:5px;background:#f97316;color:#fff;font-weight:800;font-size:9px;letter-spacing:.07em;padding:3px 6px}

@media(max-width:600px){.settingsPanel #checkinReminderMessage.checkin-reminder-phone-note{display:none}}

.share-picker .share-copy-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;margin:0 0 12px;padding:10px 12px;border:1.5px solid #eadfcc;border-radius:12px;background:#fff;color:#142235;cursor:pointer}
.share-picker .share-copy-option span,.share-picker .share-copy-option small{display:block;margin:0}
.share-picker .share-copy-option small{margin-top:3px;color:#6d6151;font-size:12px}
.share-picker .share-copy-option input{appearance:none;flex:0 0 44px;width:44px;height:26px;margin:0;padding:0;border:0;border-radius:99px;background:#d5cbbd;position:relative;cursor:pointer}
.share-picker .share-copy-option input::before{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:white;transition:transform .16s}
.share-picker .share-copy-option input:checked{background:#f97316}
.share-picker .share-copy-option input:checked::before{transform:translateX(18px)}
.share-picker .share-copy-option input:focus-visible{outline:2px solid #f97316;outline-offset:3px}
.share-inclusions{margin:0 0 12px}
.share-inclusions>strong{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#6d6151}
.share-inclusion-columns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px;margin-top:6px}
.share-inclusion-columns ul{display:grid;align-content:start;gap:5px;margin:0;padding:0;list-style:none}
.share-inclusion-columns li{display:flex;align-items:center;gap:7px;min-width:0;font-size:13.5px;font-weight:750;line-height:1.25}
.share-picker .share-inclusion-columns li span{margin:0;font:inherit}
.share-picker .share-inclusion-columns .share-inclusion-mark{display:grid;place-items:center;flex:0 0 20px;height:20px;border-radius:50%;background:#2b9b54;color:#fff;font-size:13px;font-weight:900}
.share-inclusion-columns li:has([aria-label="Excluded"]){color:#756958}
.share-picker .share-inclusion-columns .share-inclusion-mark[aria-label="Excluded"]{background:#cfc3b2;color:#142235}
@media(prefers-reduced-motion:no-preference){
 .share-picker section:not([hidden]){animation:share-step-in .16s ease-out}
 @keyframes share-step-in{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}
}

/* Keep All Jobs stages within reach while its search and filter controls scroll. */
:root{--jobs-nav-top:calc(var(--native-top,0px) + var(--native-header,var(--planner-header)) + var(--planner-tabs))}
#jobsTab > .followup-filters{position:sticky;top:var(--jobs-nav-top);z-index:3;background:var(--page);padding:0 0 6px;gap:6px}
#jobsTab > .followup-filters .payment-filter{min-height:44px;padding:8px 6px}
#jobsTab .jobcols{top:calc(var(--jobs-nav-top) + var(--jobs-followup-height,0px));z-index:2}
@media(min-width:900px){
 #jobsTab > .followup-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Schedule fields and Today sheets */
#panel .schedule-time-pair:not([hidden]){display:grid;grid-template-columns:minmax(0,57fr) minmax(0,43fr);gap:8px}
#panel .schedule-type-pair:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}
.schedule-time-hint{grid-column:1/-1;margin:0;color:#586577;font-size:.8rem}
.schedule-time-control{display:flex;position:relative;min-width:0}
#panel .schedule-time-control button:first-child{width:100%;min-height:44px;padding:8px;text-align:left;background:#fff;color:#152337;border:1px dashed #b9aa92;border-radius:10px}
#panel .schedule-time-control button.has-time{padding-right:40px;background:#fff0e3;border:1px solid #f97316;font-weight:800}
#panel .schedule-time-control button:disabled{opacity:.48}
#panel .schedule-time-control button:nth-child(2){position:absolute;inset:0 0 0 auto;width:40px;padding:0;background:transparent;color:#152337;font-size:1.25rem}
@media(max-width:339px){
 #panel .schedule-time-pair:not([hidden]),#panel .schedule-type-pair:not([hidden]){grid-template-columns:minmax(0,1fr)}
}

.schedule-dialog{position:fixed;inset:auto 0 0;margin:0 auto;padding:0;width:min(100%,590px);max-width:100%;max-height:100%;border:0;background:transparent;color:#152337;overflow:visible}
.schedule-dialog::backdrop{background:rgba(12,20,32,.64)}
.schedule-sheet{display:flex;flex-direction:column;max-height:92vh;max-height:92dvh;background:#fcf6ee;border-radius:24px 24px 0 0;box-shadow:0 -12px 40px #1115;overflow:hidden;animation:schedule-enter .22s ease-out}
@keyframes schedule-enter{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.schedule-sheet{animation:none}}
.schedule-sheet-header{padding:10px 16px 12px;touch-action:none}
.schedule-grab{width:36px;height:4px;background:#d5c8b1;border-radius:9px;margin:0 auto 12px}
.schedule-sheet h2{margin:0;color:#152337;font-size:1.65rem;line-height:1.12}
.schedule-subtitle{margin:4px 0 0;color:#586577}
.schedule-sheet-body{min-height:0;overflow:auto;padding:0 16px 14px;overscroll-behavior:contain}
.schedule-sheet-footer:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e4d7c4}
.schedule-sheet button{min-height:44px;border:0;border-radius:11px;background:#e9deca;color:#152337;font:inherit;font-weight:750;cursor:pointer}
.schedule-sheet .schedule-primary,.schedule-presets button[aria-pressed=true]{background:#f97316;color:#fff}
.schedule-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:8px}
.schedule-presets button{background:white;border:1px solid #e4d7c4;font-size:.82rem;padding:0 2px}
.schedule-wheels{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:100%;padding:0 8px;background:#fff;border:1px solid #e4d7c4;border-radius:14px}
.schedule-wheels::before{content:'';position:absolute;inset:44px 8px;background:#f1e6d4;border-radius:8px;pointer-events:none}
.schedule-wheel{position:relative;height:132px;padding:44px 0;box-sizing:border-box;overflow:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain}
.schedule-wheel button{display:block;width:100%;height:44px;scroll-snap-align:center;background:none;color:#687383}
.schedule-wheel button[aria-pressed=true]{color:#152337;font-size:1.35rem;font-weight:850}
.today-progress{display:flex;gap:4px;margin:2px 0 12px}
.today-progress span{flex:1;height:5px;border-radius:4px;background:#ece2d2}
.today-progress .filled{background:#396fd5}
.today-entry,.today-checklist,.schedule-sheet .today-next{display:flex;align-items:center;gap:8px;margin-bottom:8px;border:1px solid #e4d7c4;border-left:5px solid var(--today-strip,#808999);border-radius:14px;background:#fff;padding:8px}
.today-entry.today-done{background:#f4efe6}
.today-entry .today-entry-open{display:flex;align-items:center;text-align:left;gap:8px;min-width:0;flex:1;background:none;padding:0}
.today-entry-info{flex:1;min-width:0}
.today-entry-info strong,.today-detail>span:last-child,.today-next strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.today-time{width:3.3rem;flex-shrink:0;text-align:right;line-height:1.1}
.today-time small{display:block;color:#626e80}
.today-detail{display:flex;align-items:center;gap:4px;color:#626e80;font-size:.8rem;min-height:18px}
.today-badge,.today-quote{flex-shrink:0}
.today-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:50%;color:white;padding:0 2px}
.today-sun{background:#e49f13}
.today-solo{background:#ef7935}
.today-crew{background:#733dd0}
.today-quote{border:1px dashed #858f9f;border-radius:4px;padding:0 4px;text-transform:uppercase;color:#152337}
.today-done strong,.today-checklist .today-done span{color:#687383;text-decoration:line-through}
.schedule-sheet .today-tick{flex:0 0 44px;border-radius:50%;background:#fff;border:2px solid #c5b79f;font-size:1.4rem}
.schedule-sheet .today-tick[aria-pressed=true]{background:#396fd5;border-color:#396fd5;color:white}
.today-checklist{display:block}
.today-checklist h3{margin:0 0 5px}
.today-checklist small,.today-help,.today-next small,.today-empty p{color:#626e80}
.today-checklist label{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;border-top:1px solid #ece2d2}
.today-checklist input{width:22px;height:22px;flex:0 0 auto;accent-color:#396fd5}
.today-help{text-align:center;font-size:.85rem;margin:10px 0 0}
.today-empty{text-align:center;padding:10px 0}
.today-empty>span{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#f1e6d4;color:#a9430b;font-size:1.65rem;font-weight:850}
.today-empty h3{margin:14px 0 4px}
.today-empty p{margin:0 0 12px}
.today-empty button,.schedule-sheet .today-next{width:100%}
.schedule-sheet .today-next{justify-content:space-between;text-align:left;padding:10px}
.today-next>span:first-child{min-width:0}
.today-next small{display:block;text-transform:uppercase}
#panel .schedule-work-dates:not([hidden]){grid-template-columns:minmax(0,1fr)}
.schedule-sheet-footer:not([hidden]){padding-bottom:max(12px,var(--native-bottom,env(safe-area-inset-bottom,0px)))}
.schedule-sheet:has(.today-empty) .schedule-sheet-body{padding-bottom:max(14px,var(--native-bottom,env(safe-area-inset-bottom,0px)))}
#panel #quoteDateField:not([hidden]):not(.with-visit-time){display:block}
#quoteDateField:not(.with-visit-time)>:not(:first-child){display:none}
.today-empty>span b{border:2px solid currentColor;border-radius:3px;padding:2px 5px;line-height:1}
.schedule-sheet-footer.today-empty-footer{grid-template-columns:1fr}
#panel .schedule-time-control button:nth-child(2)::before{content:'';position:absolute;inset:50% auto auto 50%;translate:-50% -50%;width:26px;height:26px;border-radius:50%;background:#f9731630;pointer-events:none}

/* Keep Today aligned with the Weekends column on phones. */
@media(max-width:899px){
 .calendar-tools .monthbar{grid-template-columns:clamp(44px,14.5vw,64px) minmax(0,1fr) clamp(44px,14.5vw,64px) calc((100% - 10px)/3);gap:5px}
 .calendar-tools .monthbar strong{white-space:nowrap;font-size:clamp(15px,4.4vw,19px)}
 .calendar-tools .monthbar .today-button{min-height:44px}
}
.diary-filter-summary:not([hidden]){display:grid;grid-template-columns:minmax(0,var(--diary-clear-offset,1fr)) var(--diary-clear-width,max-content);gap:0;justify-content:start}
.diary-filter-summary>span{padding-right:8px;overflow-wrap:anywhere}
.diary-filter-summary>button{justify-self:stretch;min-height:36px;text-align:center}

/* Account calendar importer uses a scrolling cream sheet on every platform. */
.calendar-import-overlay{position:fixed;inset:0;z-index:1200;background:#07101cbf;display:flex;align-items:center;justify-content:center;padding:20px}
.calendar-import-overlay iframe{border:0;width:min(540px,100%);height:min(820px,calc(100dvh - 40px));background:#fff8ef;border-radius:24px}
@media(max-width:600px){.calendar-import-overlay{padding:0;align-items:flex-end}.calendar-import-overlay iframe{width:100%;height:calc(100dvh - env(safe-area-inset-top,0px) - 18px);border-radius:26px 26px 0 0}}
