:root{--nav-bg:#f5f6f8;--nav-card:#fff;--nav-ink:#202630;--nav-muted:#69717d;--nav-line:#e0e4e9;--nav-accent:#344f69}
:root[data-theme=dark]{color-scheme:dark;--nav-bg:#11151a;--nav-card:#1c222a;--nav-ink:#eff2f5;--nav-muted:#a8b2be;--nav-line:#35404d;--nav-accent:#9cc1df}
html{scroll-padding-top:90px!important;background:var(--nav-bg)!important}
html body[data-page]{display:block!important;min-height:100dvh!important;padding:0!important;background:var(--nav-bg)!important;color:var(--nav-ink)!important;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important}
html body[data-page] header{position:fixed!important;inset:0 0 auto!important;z-index:100!important;box-sizing:border-box!important;height:calc(68px + env(safe-area-inset-top))!important;padding:calc(10px + env(safe-area-inset-top)) 20px 10px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;background:var(--nav-card)!important;border-bottom:1px solid var(--nav-line)!important;box-shadow:none!important}
html body[data-page] .brand{color:var(--nav-ink)!important;gap:8px!important;white-space:nowrap}
.snap-camera-mark{width:29px!important;height:29px!important}
.snap-brand-title{font-size:19px!important;letter-spacing:-.7px!important}
.snap-brand-the{font-size:inherit!important}
html body[data-page] .header-actions{display:flex!important;gap:6px!important}
.header-actions button{font-family:inherit!important;font-weight:600!important;font-size:12px!important;line-height:1!important;min-height:36px!important;padding:8px 12px!important;border:1px solid var(--nav-line)!important;border-radius:10px!important;background:var(--nav-bg)!important;color:var(--nav-ink)!important;box-shadow:none!important;white-space:nowrap}
html body[data-page] main{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:960px!important;margin:0 auto!important;padding:calc(88px + env(safe-area-inset-top)) 16px calc(102px + env(safe-area-inset-bottom))!important;min-height:0!important;flex:none!important}
.page-heading{margin:0 2px 20px}
.page-heading h1{font-size:30px!important;line-height:1.15!important;letter-spacing:-1px!important;margin:5px 0 7px!important;color:var(--nav-ink)!important}
.page-heading p{font-size:14px;color:var(--nav-muted);margin:0;line-height:1.5}
.page-heading .eyebrow{font-size:10px;letter-spacing:1.6px;color:var(--nav-muted)}
html body[data-page] .extra-options,html body[data-page] #detailsBack,html body[data-page] #backToDetails,html body[data-page] .ws-bottom-note{display:none!important}
html body[data-page] .workspace{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:0!important}
html body[data-page] .basics,html body[data-page] .work-card,html body[data-page] .draft-card,html body[data-page] .tools-page{display:none!important}
html body[data-page=details] .basics,html body[data-page=photos] .work-card,html body[data-page=week] .draft-card,html body[data-page=tools] .tools-page{display:block!important;position:static!important;min-height:0!important;height:auto!important;max-width:none!important;width:100%!important;box-sizing:border-box!important;margin:0!important;padding:22px!important;border:1px solid var(--nav-line)!important;border-radius:18px!important;background:var(--nav-card)!important;box-shadow:0 4px 24px #00000004!important}
html body[data-page] .section-title{margin:0 0 18px!important}
html body[data-page] .basics .section-title{display:none!important}
html body[data-page] .basics .grid.three{display:grid!important;grid-template-columns:1fr!important;gap:18px!important}
html body[data-page] .week-choice-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important}
html body[data-page] .foreman-row,html body[data-page] .foreman-basic{display:block!important;width:100%!important;margin:0!important}
html body[data-page] label{font-size:13px!important;color:var(--nav-ink)!important;line-height:1.4!important;gap:7px!important}
html body[data-page] input,html body[data-page] select,html body[data-page] textarea,html body[data-page] #chooseMonday{box-sizing:border-box!important;background:var(--nav-bg)!important;color:var(--nav-ink)!important;border:1px solid var(--nav-line)!important;border-radius:10px!important;min-height:46px!important;font-size:16px!important;padding:10px 12px!important;box-shadow:none!important}
html body[data-page] .mobile-detail-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:24px 0 0!important}
html body[data-page] .button{font-size:14px!important;min-width:0!important;min-height:46px!important;height:auto!important;padding:12px 14px!important;border-radius:10px!important;line-height:1.35!important;box-shadow:none!important}
html body[data-page] .button.primary{background:#344f69!important;color:#fff!important;border:1px solid #344f69!important}
html body[data-page] .button.secondary{background:var(--nav-bg)!important;color:var(--nav-ink)!important;border:1px solid var(--nav-line)!important}
html body[data-page=photos] .photo-day-picker{display:block!important;margin:0 0 16px!important}
html body[data-page=photos] #days{display:flex!important;gap:5px!important;overflow:auto!important}
html body[data-page=photos] #days button{flex:1!important;min-width:32px!important;min-height:42px!important}
html body[data-page=photos] .upload-box{display:block!important;padding:24px 12px!important;background:var(--nav-bg)!important;border:1px dashed var(--nav-line)!important;border-radius:14px!important;min-height:0!important}
html body[data-page=photos] .upload-box h3{font-size:20px!important;margin:10px 0!important}
html body[data-page=photos] .upload-box p{font-size:13px!important;color:var(--nav-muted)!important}
html body[data-page=photos] .analyse-actions{position:static!important;padding:0!important;margin:14px 0!important;background:none!important;box-shadow:none!important}
html body[data-page=photos] #analyse:not([hidden]),html body[data-page=photos] #analysisStatus,html body[data-page=photos] #review:not([hidden]){display:block!important}
html body[data-page=photos] #photoContinue{margin:16px 0 0!important}
html body[data-page] #analysisStatus:empty{display:none!important}
.bottom-nav{position:fixed;z-index:100;inset:auto 0 0;display:grid;grid-template-columns:repeat(4,1fr);padding:8px max(10px,calc((100vw - 700px)/2)) calc(8px + env(safe-area-inset-bottom));background:var(--nav-card);border-top:1px solid var(--nav-line);box-shadow:0 -4px 22px #00000005}
.bottom-nav button{border:0;background:transparent;color:var(--nav-muted);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:52px;border-radius:12px;font-family:inherit;font-weight:600;font-size:11px;line-height:1.3;cursor:pointer}
.bottom-nav svg{width:23px;height:23px}
.bottom-nav button[aria-current=page]{background:var(--nav-bg);color:var(--nav-accent)}
.bottom-nav button[aria-current=page]:before{content:'';height:3px;width:18px;background:var(--nav-accent);position:absolute;top:0;border-radius:0 0 4px 4px}
#toolsGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.tools-help{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tools-page h2{font-size:19px;margin:0}
.tools-page .small{color:var(--nav-muted);line-height:1.6}
#clearDraft{color:#b64545!important;background:var(--nav-bg)!important;border:1px solid var(--nav-line)!important}
html body[data-page] #saveState{margin-bottom:0}
html body[data-page] .quick-review-actions{display:none!important}
html body[data-page] dialog{max-height:calc(100dvh - 40px)!important;overscroll-behavior:contain;box-sizing:border-box}
body:has(dialog[open]){overflow:hidden!important}
html[data-theme=dark] body[data-page] :is(dialog,.main-day-card,.main-sheet-day,.spv-week-total,.timesheet-signoff,.about-feature,.pdf-readable-preview){background:var(--nav-card)!important;color:var(--nav-ink)!important;border-color:var(--nav-line)!important}
html[data-theme=dark] body[data-page] :is(h1,h2,h3,h4,p,strong,summary,label,.small){color:inherit}
html[data-theme=dark] body[data-page] .draft-card *{border-color:var(--nav-line)!important}
html[data-theme=dark] body[data-page] .draft-card :is(details,summary,section,article){background-color:var(--nav-card)!important;color:var(--nav-ink)!important}
@media(max-width:600px){html body[data-page] header{padding-left:14px!important;padding-right:14px!important}
html body[data-page] main{padding-left:12px!important;padding-right:12px!important}
.snap-brand-title{font-size:17px!important}
.snap-camera-mark{display:none!important}
html body[data-page=details] .basics,html body[data-page=photos] .work-card,html body[data-page=week] .draft-card,html body[data-page=tools] .tools-page{padding:18px!important}
html body[data-page] .week-choice-row{grid-template-columns:1fr!important;gap:18px!important}
html body[data-page] .mobile-detail-actions{grid-template-columns:1fr!important}
.page-heading{margin-bottom:16px}
#toolsGrid,.tools-help{grid-template-columns:1fr}
.bottom-nav button{font-size:11px}
.header-actions button{font-size:12px!important}}
.details-intro{display:none}
html body[data-page=details] .details-intro{display:block;margin:0 0 16px;padding:22px 24px;border-radius:18px;background:linear-gradient(120deg,#273541,#17232e);color:#fff;overflow:hidden;position:relative}
.details-intro:after{content:'';position:absolute;width:150px;height:150px;border:1px solid #ffffff12;border-radius:50%;right:-48px;top:-40px;pointer-events:none}
.intro-kicker{font-size:9px;font-weight:600;letter-spacing:1.8px;color:#c2ced8}
html body[data-page=details] .details-intro h2{font-size:clamp(25px,4vw,34px)!important;font-weight:700!important;line-height:1.12!important;letter-spacing:-1px!important;margin:10px 0!important;color:#fff!important}
html body[data-page=details] .details-intro h2 span{color:#b8cad8!important}
html body[data-page=details] .details-intro p{font-size:13px!important;line-height:1.55!important;font-weight:400!important;color:#d5dde5!important;margin:0!important}
html body[data-page=details] #detailsBack{display:flex!important;align-items:center!important;justify-content:center!important}
html body[data-page=details] .mobile-detail-actions :is(#detailsBack,#detailsContinue){min-height:48px!important;height:auto!important;font-size:14px!important;font-weight:600!important;padding:12px 14px!important}
html body[data-page=details] .basics :is(label,.local-pill){font-family:inherit!important;font-weight:500!important}
html body[data-page=details] .basics input::placeholder{font-weight:400!important;color:var(--nav-muted)!important;opacity:1}
html body[data-page=photos] .photo-explainer{margin:20px 0 0!important;border:1px solid var(--nav-line);border-radius:14px;overflow:hidden;background:var(--nav-bg);display:grid;grid-template-columns:180px 1fr}
.photo-explainer-image{position:relative;min-height:190px;overflow:hidden}
.photo-explainer-image img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.photo-explainer-image:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#0009)}
.photo-explainer-image>span{position:absolute;bottom:14px;left:14px;right:10px;color:#fff;font-size:9px;font-weight:600;letter-spacing:1.2px;z-index:1}
.photo-explainer-copy{padding:18px}
html body[data-page=photos] .photo-explainer h2{font-size:17px!important;line-height:1.3!important;font-weight:650!important;letter-spacing:-.3px!important;margin:0 0 14px!important;color:var(--nav-ink)!important}
.photo-explainer ol{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.photo-explainer li{display:flex;align-items:flex-start;gap:10px;color:var(--nav-ink);font-size:13px;line-height:1.5;font-weight:400}
.photo-explainer li b{display:flex;align-items:center;justify-content:center;flex:0 0 23px;height:23px;border-radius:7px;background:var(--nav-card);border:1px solid var(--nav-line);color:var(--nav-accent);font-size:11px;font-weight:600}
html body[data-page=photos] .photo-optional{border-top:1px solid var(--nav-line);padding-top:12px;margin:14px 0 0!important;font-size:12px!important;line-height:1.6!important;color:var(--nav-muted)!important;font-weight:400!important}
.photo-optional strong{font-weight:600;color:var(--nav-ink)}
html body[data-page] #aboutDialog :is(p,.about-feature span,.about-demo-text p,.about-demo-note){font-family:inherit!important;font-size:14px!important;line-height:1.65!important;font-weight:400!important;color:var(--nav-ink)!important}
html body[data-page] #aboutDialog :is(.about-feature strong,.about-lead strong,.about-punch strong,.about-caution strong){font-family:inherit!important;font-size:14px!important;line-height:1.65!important;font-weight:600!important;color:var(--nav-ink)!important}
@media(max-width:600px){html body[data-page=details] .details-intro{padding:19px 20px!important}
html body[data-page=details] .mobile-detail-actions{gap:9px!important;margin-top:20px!important}
html body[data-page=photos] .photo-explainer{grid-template-columns:1fr}
.photo-explainer-image{height:132px;min-height:132px}
.photo-explainer-image img{object-position:center 56%}
.photo-explainer-copy{padding:16px}}
html{scroll-behavior:auto!important}
html body[data-page=photos] .photo-explainer{grid-template-columns:minmax(105px,34%) minmax(0,1fr)!important;margin:0 0 20px!important;max-width:600px}
html body[data-page=photos] .photo-explainer-image{height:auto!important;min-height:162px!important}
html body[data-page=photos] .photo-explainer-copy{min-width:0;padding:16px 14px!important}
html body[data-page=photos] .photo-explainer h2{font-size:16px!important;margin:0 0 12px!important}
html body[data-page=photos] .photo-explainer ol{gap:10px}
html body[data-page=photos] .photo-explainer li{font-size:12px;gap:8px;line-height:1.45}
html body[data-page=photos] .photo-explainer li b{flex-basis:21px;height:21px;font-size:10px}
html body[data-page=photos] .photo-explainer-image>span{font-size:8px;line-height:1.5;left:10px;bottom:10px;letter-spacing:.7px}
html body[data-page=photos] .photo-optional{grid-column:1/-1;margin:0!important;padding:12px 14px!important;background:var(--nav-card);font-size:12px!important}
@media(max-width:360px){html body[data-page=photos] .photo-explainer{grid-template-columns:95px minmax(0,1fr)!important}
html body[data-page=photos] .photo-explainer-copy{padding:14px 10px!important}}
html body[data-page=photos] .photo-explainer-image{min-height:142px!important}
html body[data-page=photos] .photo-explainer-image:after{display:none}
html body[data-page=photos] .photo-explainer-copy{padding:12px 14px!important}
html body[data-page=photos] .photo-explainer h2{margin-bottom:9px!important}
html body[data-page=photos] .photo-explainer ol{gap:8px}
html body[data-page=photos] .photo-optional{padding:10px 14px!important}
html body[data-page=photos] .photo-explainer{margin-bottom:16px!important}
html body[data-page=week] .day-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
html body[data-page=week] .day-editor-actions .weekend-work-toggle{margin:0!important;flex:1;min-width:0}
html body[data-page=week] .day-collapse{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:40px;padding:8px 12px;border:1px solid var(--nav-line);border-radius:9px;background:var(--nav-bg);color:var(--nav-ink);font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;cursor:pointer}
html body[data-page=week] .day-collapse:focus-visible{outline:2px solid var(--nav-accent);outline-offset:3px}
html body[data-page=week] .day-editor-footer{display:flex;justify-content:flex-end;padding-top:4px}
html body[data-page=week] .day-editor-footer .day-collapse{min-height:44px;padding:10px 16px}
html body[data-page=tools] .tools-help{grid-template-columns:1fr}
.tools-version{margin:20px 0 8px!important}
.review-invitation{border-top:1px solid var(--nav-line);padding-top:14px;margin-top:12px}
.review-invitation p{font-size:13px;line-height:1.6;color:var(--nav-muted);margin:0 0 12px}
.unified-guide{padding:16px;border:1px solid var(--nav-line);border-radius:12px;margin-bottom:18px;background:var(--nav-bg)}
.unified-guide h3{margin:0 0 10px;font-size:17px}
.unified-guide ol{padding-left:20px;line-height:1.7;font-size:14px}
.review-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.review-dialog-head h2{margin:0}
.review-dialog-head button{min-width:40px;min-height:40px;border:1px solid var(--nav-line);border-radius:10px;background:var(--nav-bg);color:var(--nav-ink);font-size:23px}
#reviewForm{display:grid;gap:14px}
#reviewForm label{display:flex;flex-direction:column}
#reviewForm .small{margin:0;color:var(--nav-muted);font-size:12px;line-height:1.6}
#reviewForm #reviewSendStatus:empty{display:none}
#reviewSendStatus{font-size:13px;line-height:1.5;margin:0}
.review-trap{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
#sendReview:disabled{opacity:.6;cursor:wait}
html body[data-page=tools] #toolsGrid{grid-template-columns:1fr;gap:10px;margin-bottom:16px}
html body[data-page=tools] #clearDraft{color:var(--nav-ink)!important;font-weight:600!important}
html body[data-page=tools] .tools-help{margin-top:10px}
html body[data-page=tools] .review-invitation{margin-top:0;padding-top:12px}
html body[data-page=tools] .tools-version{margin:0 0 5px!important}
html body[data-page=tools] .review-invitation>p:not(.tools-version){white-space:nowrap;margin-bottom:12px}
html body[data-page=tools] #toolsGrid>button{font-family:inherit!important;font-size:14px!important;font-weight:600!important;line-height:1.35!important}
html body[data-page=tools] #toolsGrid>#clearDraft{color:#bd3535!important}
html[data-theme=dark] body[data-page=tools] #toolsGrid>#clearDraft{color:#ff9999!important}
.tools-version-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px;white-space:nowrap;margin:0 0 12px;color:var(--nav-muted);font-size:12px;line-height:1.5}
html body[data-page=details] .details-intro{padding:15px 20px!important;margin-bottom:12px!important}
html body[data-page=details] .details-intro h2{margin:8px 0 0!important}
@media(max-width:360px){.tools-version-line{font-size:11px;gap:6px}}
@media(display-mode:browser) and (max-width:600px) and (max-height:740px){html body[data-page] main{padding-top:calc(80px + env(safe-area-inset-top))!important}
.page-heading{margin-bottom:12px}
.page-heading h1{font-size:27px!important;margin-top:3px!important;margin-bottom:4px!important}
.page-heading p{font-size:13px;line-height:1.4}
html body[data-page=details] .details-intro{padding:12px 18px!important;margin-bottom:10px!important}
html body[data-page=details] .details-intro h2{font-size:25px!important;margin-top:6px!important}
html body[data-page=details] .basics{padding:15px!important}
html body[data-page=details] .basics .grid.three,html body[data-page=details] .week-choice-row{gap:12px!important}
html body[data-page=details] .mobile-detail-actions{margin-top:14px!important;gap:8px!important}}
html body[data-page=week] .day-collapse-close{width:42px;min-height:42px;padding:4px!important;font-size:25px;font-weight:400}
html body[data-page] :is(input,textarea,select){scroll-margin-top:110px;scroll-margin-bottom:100px}
@media(display-mode:browser) and (max-width:600px){html body[data-page] main{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}}
@media(max-width:600px){html.ws-keyboard body[data-page] .bottom-nav{visibility:hidden;pointer-events:none}
html.ws-keyboard body[data-page] main{padding-bottom:calc(24px + var(--ws-keyboard-inset,0px))!important}}
@media(display-mode:browser) and (max-width:600px) and (max-height:740px){html body[data-page=photos] .photo-explainer-copy{padding:10px 12px!important}
html body[data-page=photos] .photo-explainer-image{min-height:130px!important}
html body[data-page=photos] .upload-box{padding:16px 10px!important}
html body[data-page=photos] .photo-explainer{margin-bottom:12px!important}}
@media(max-width:600px){html body[data-page=details] .basics .grid.three,html body[data-page=details] .basics .week-choice-row{gap:12px!important}
html body[data-page=details] .basics .mobile-detail-actions{margin-top:15px!important}}
@media(display-mode:browser) and (max-width:600px) and (max-height:740px){html body[data-page=details] .basics .grid.three,html body[data-page=details] .basics .week-choice-row{gap:9px!important}
html body[data-page=details] .basics .mobile-detail-actions{margin-top:11px!important}}
@media(max-width:600px){html body[data-page=week] .timesheet-signoff #openSignature,html body[data-page=week] .export-actions #previewPDF{box-sizing:border-box!important;height:58px!important;min-height:58px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:11px 12px!important}}

html body[data-page=week] .day-editor-footer{justify-content:space-between;gap:10px}
html body[data-page=week] .day-editor-footer .day-repeat{margin-right:auto}
html body[data-page=week] .day-repeat:disabled{opacity:.45;cursor:default}
@media(max-width:360px){html body[data-page=week] .day-editor-footer .day-collapse{font-size:11px;padding:10px}}

/* Update 15: SPV helmet mascot portrait. */
html body[data-page=details] .details-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px!important;background:linear-gradient(120deg,#30363c,#1c2025)}
html body[data-page=details] .details-intro h2{font-size:clamp(32px,8.2vw,44px)!important;line-height:1.08!important;margin:0!important;letter-spacing:-1.2px!important;min-width:0}
html body[data-page=details] .details-intro h2 span{color:#c8cfd5!important}
.details-intro:after{display:none}
.intro-portrait{display:block;box-sizing:border-box;width:88px;height:88px;flex:0 0 88px;border-radius:50%;background:#252b32 url('assets/spv-meerkat.png') 12% 0 / 220% auto no-repeat;border:2px solid #bfc7cd66;box-shadow:0 5px 18px #0004}
@media(max-width:360px){html body[data-page=details] .details-intro{padding:18px!important;gap:8px}.intro-portrait{width:64px;height:64px;flex-basis:64px}}

/* Update 16: consistent primary action dimensions across all three steps. */
:root{--ws-action-height:48px}
html body[data-page=details] .basics .mobile-detail-actions :is(#detailsBack,#detailsContinue),
html body[data-page=photos] .work-card #photoContinue,
html body[data-page=week] .draft-card .timesheet-signoff #openSignature,
html body[data-page=week] .draft-card .export-actions #previewPDF,
html body[data-page=week] .draft-card .spv-week-total{
 box-sizing:border-box!important;height:var(--ws-action-height)!important;min-height:var(--ws-action-height)!important;
 padding:10px 14px!important;display:flex!important;align-items:center!important;justify-content:center!important;
 font-family:inherit!important;font-size:14px!important;font-weight:600!important;line-height:1.35!important;border-radius:10px!important;
}
html body[data-page=week] .draft-card .spv-week-total{justify-content:space-between!important;flex-wrap:nowrap!important;gap:8px!important}
html body[data-page=week] .draft-card .spv-week-total strong{font-size:18px!important;white-space:nowrap}
html body[data-page=week] .draft-card .spv-week-total .spv-lodge-total{font-size:12px!important;white-space:nowrap}
.action-choice-separator{display:flex;align-items:center;justify-content:center;color:var(--nav-ink);font-family:inherit;font-size:14px;font-weight:600;line-height:1.35;text-align:center}
html body[data-page=details] .basics .mobile-detail-actions{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important}
html body[data-page=photos] .work-card #photoContinue{margin-top:24px!important}
@media(max-width:600px){
 html body[data-page=details] .basics .mobile-detail-actions{grid-template-columns:1fr!important;gap:5px!important}
}

/* Update 18: muted dark-theme controls and an inverse theme switch. */
html body[data-page] .header-actions #themeToggle{background:#303c49!important;color:#f0f3f6!important;border-color:#465564!important}
html[data-theme=dark] body[data-page] .header-actions #themeToggle,
html[data-theme=dark] body[data-page=photos] .work-card #days button:not([aria-pressed=true]){background:#a5b5c5!important;color:#1b2a39!important;border-color:#8eA2b6!important;box-shadow:none!important}
html[data-theme=dark] body[data-page=photos] .work-card #days button[aria-pressed=true]{background:#275fb5!important;color:#f0f4fa!important;border-color:#4276c4!important;box-shadow:none!important}
html[data-theme=dark] body[data-page] .header-actions #themeToggle:hover,
html[data-theme=dark] body[data-page=photos] .work-card #days button:not([aria-pressed=true]):hover{background:#b3c1cf!important}

/* Update 19: readable labels and dates on dark surfaces. */
html[data-theme=dark] body[data-page] header .brand.snapvegraft-brand .snap-brand-title{color:var(--nav-ink)!important}
html[data-theme=dark] body[data-page] header .brand.snapvegraft-brand .snap-brand-title .snap-brand-the{color:#9cc1df!important}
html[data-theme=dark] body[data-page] .work-card .photo-day-picker-heading,
html[data-theme=dark] body[data-page] .work-card .photo-day-picker-heading :is(strong,span),
html[data-theme=dark] body[data-page] #sheetMainBody :is(.preview-day-heading,.aligned-day-title,.aligned-weekday,.aligned-date,.main-day-status),
html[data-theme=dark] body[data-page] .timesheet-signoff>label{color:var(--nav-ink)!important}
html[data-theme=dark] body[data-page] #sheetMainBody .main-day-status small{color:#e5bc78!important}
html[data-theme=dark] body[data-page] #sheetMainBody .main-day-status small.idle-label,
html[data-theme=dark] body[data-page] #sheetMainBody .preview-day-idle .main-day-status{color:var(--nav-muted)!important}
html[data-theme=dark] body[data-page] .timesheet-signoff #openSignature{background:var(--nav-bg)!important;color:#afcce9!important;border-color:#526a83!important}

/* Update 20: week total opens the existing timesheet check. */
html body[data-page] .spv-week-total[role=button]{cursor:pointer}
html body[data-page] .spv-week-total[role=button]:focus-visible{outline:2px solid var(--nav-accent);outline-offset:3px}

/* Update 22: show only the centered check prompt until complete. */
html body[data-page=week] .draft-card .spv-week-total.needs-check{justify-content:center!important}
html body[data-page=week] .draft-card .spv-week-total.needs-check :is(#premiumTotal,#premiumLodge){display:none!important}

.page-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.page-title-row #stepHelpOpen{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:9px;border-radius:50%;border:1px solid var(--nav-line);background:var(--nav-bg);color:var(--nav-ink);cursor:pointer}
#stepHelpOpen svg{width:24px;height:24px}#stepHelpOpen:focus-visible{outline:3px solid var(--nav-ink);outline-offset:3px}
body[data-page=tools] #stepHelpOpen{display:none}
.step-help-dialog{box-sizing:border-box;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:24px;border:1px solid #89939c55;border-radius:22px;background:#f5f6f8;color:#232a31;box-shadow:0 20px 70px #0005}
.step-help-dialog::backdrop{background:#111922a8}.step-help-head{display:flex;align-items:center;gap:12px;justify-content:space-between}.step-help-head h2{font-size:21px;margin:0}.step-help-head button{width:44px;height:44px;flex:0 0 44px;border-radius:50%;border:1px solid #89939c55;background:transparent;color:inherit;font-size:28px}.step-help-dialog p{font-size:16px;line-height:1.65;margin:18px 0 24px}
html[data-theme=dark] .step-help-dialog{background:#242a31;color:#eef1f4}

/* Stronger page help and numbered navigation. */
.page-title-row #stepHelpOpen{width:48px;height:48px;flex-basis:48px;padding:8px;border-width:2px;box-shadow:0 2px 6px #00000012}
#stepHelpOpen svg{width:28px;height:28px;stroke-width:2.5}
html body .bottom-nav{gap:6px}
html body .bottom-nav button{position:relative;font-weight:800;font-size:12px;color:var(--nav-ink);border:1px solid var(--nav-line);background:var(--nav-bg);gap:3px;box-shadow:0 2px 4px #00000009}
html body .bottom-nav .nav-step-number{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;font-size:21px;line-height:1;font-weight:850;letter-spacing:-.5px}
html body .bottom-nav button[aria-current=page]{background:#303840;color:#fff;border-color:#303840;box-shadow:0 3px 8px #0003}
html body .bottom-nav button[aria-current=page]:before{display:none}
html body .bottom-nav svg{width:26px;height:26px;stroke-width:2.2}
html[data-theme=dark] body .bottom-nav button[aria-current=page]{background:#d9e0e6;color:#17212b;border-color:#d9e0e6}

/* Keep page guides clear without pushing page content down. */
.page-title-row{position:relative;display:block;padding-right:58px}
.page-title-row #stepHelpOpen{position:absolute;right:0;top:50%;transform:translateY(-50%);background:#303840!important;color:#fff!important;border-color:#303840!important}
@media(max-width:600px){
 html body[data-page=details] .basics{padding:16px!important}
 html body[data-page=details] .basics .mobile-detail-actions{margin-top:10px!important}
 html body[data-page=photos] .work-card{padding:16px!important}
 html body[data-page=photos] .work-card #photoContinue{margin-top:12px!important}
 html body[data-page=photos] .upload-box{padding:14px 10px!important}
 html body[data-page=photos] .photo-explainer{margin-bottom:10px!important}
 html body[data-page=photos] .photo-explainer-image{min-height:120px!important}
 html body[data-page=week][data-sheet-view=new] .draft-card{padding:14px!important}
 html body[data-page=week][data-sheet-view=new] .main-day-card{margin-bottom:6px!important}
 html body[data-page=week][data-sheet-view=new] .preview-day-heading{padding:10px!important;min-height:44px!important}
 html body[data-page=week][data-sheet-view=new] .timesheet-signoff{margin-top:10px!important}
 html body[data-page=week][data-sheet-view=new] .export-actions{margin-top:10px!important}
}
html body[data-page] #wsFieldPicker .ws-picker-head{position:sticky;top:-18px;z-index:5;box-sizing:border-box;margin:-18px -18px 14px;padding:14px 18px;background:#303840;color:#fff;border-bottom:2px solid #626e79;box-shadow:0 3px 9px #0002;font-size:19px;line-height:1.35}
#wsFieldPicker .ws-picker-head strong{font-weight:750;letter-spacing:.1px}
#wsFieldPicker .ws-picker-head button{flex:0 0 44px;width:44px;height:44px;padding:0;background:#ffffff1c;color:#fff;border:1px solid #ffffff60;border-radius:50%;font-size:23px}
.step-guide-views{margin:16px 0 20px;padding-top:16px;border-top:1px solid #89939c55}
.step-guide-views>p{margin:0 0 10px;font-size:14px;font-weight:700}
.step-guide-view-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.step-guide-view-buttons button[aria-pressed=true]{outline:2px solid #61778b;outline-offset:2px}

/* Empty photo controls must not reserve space for analysis or previews. */
html body[data-page=photos] #photoPreviews:empty{display:none!important;margin:0!important;padding:0!important}
html body[data-page=photos] .analyse-actions:has(#analyse[hidden]){display:none!important;margin:0!important;padding:0!important}
html body[data-page=photos] #analysisStatus:empty{display:none!important;margin:0!important;padding:0!important}

.ws-picker-work-actions{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 12px}
.ws-picker-work-actions button{padding:10px 12px;min-height:44px;border:1px solid #89939c55;border-radius:9px;background:#eef1f4;color:#27323c;font:700 13px/1.3 inherit;cursor:pointer}
.ws-picker-work-actions button:first-child{background:#303840;color:#fff}
.ws-picker-work-actions button:last-child{color:#a32f34}
.ws-picker-current-work{white-space:pre-wrap;font-size:15px;line-height:1.5;padding:12px;border:1px solid #b7c0c9;border-radius:10px;background:#eef1f4;color:#26333e;margin:8px 0 14px}

.ws-work-action-question{font-size:18px;font-weight:750;line-height:1.4;margin:16px 0 10px}
.ws-picker-action-menu{display:grid;grid-template-columns:1fr;gap:10px}
.ws-picker-action-menu button{width:100%;font-family:inherit;font-size:15px;font-weight:700;text-align:center;min-height:48px}

/* WorkSnap tagline below the header name. */
html body[data-page] header .brand.snapvegraft-brand .snap-brand-tagline{display:flex;justify-content:space-between;gap:5px;width:100%;box-sizing:border-box;margin-top:4px;font-size:12px;font-weight:500;line-height:1.2;letter-spacing:.15px;color:var(--nav-muted);white-space:nowrap}
