:root{--ink:#10233b;--muted:#4e637b;--paper:#f3f6fb;--line:#cbd7e5;--green:#1d5dd7;--lime:#dcecff}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}header{max-width:1440px;margin:auto;padding:25px 40px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}a{color:inherit}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}.brand{text-decoration:none;display:flex;align-items:center;gap:17px}.brand b{font:800 35px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial;letter-spacing:-2px}.brand b span{color:#2563eb;font-size:29px}.brand>span{max-width:100px;font-size:10px;line-height:1.4;font-weight:700;letter-spacing:1.7px;border-left:1px solid #c4d3e6;padding-left:17px;box-sizing:content-box}.timesheet-link{font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}main{max-width:1440px;padding:0 40px;margin:auto}.hero{display:flex;justify-content:space-between;align-items:center;padding:60px 4px 42px;gap:40px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.7px;color:#31659e}h1,h2,h3{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.15}h1{font-size:clamp(42px,5.5vw,76px);letter-spacing:-3px;margin:18px 0 20px}h1 em{font-style:normal;color:#2563eb}h2{font-size:23px;letter-spacing:-.8px;margin:6px 0 0}h3{font-size:17px;margin:10px 0}.hero p{font-size:17px;line-height:1.55;color:var(--muted)}.steps{display:flex;gap:16px;font-size:12px;font-weight:700;flex-wrap:wrap;margin-top:28px}.hero-mark{width:230px;padding:23px;background:#eaf2ff;border-radius:40px;transform:rotate(3deg);color:#2d70b7}.hero-mark svg{width:100%}.hero-mark span{display:block;padding:2px 16px 12px;font-size:10px;font-weight:700;letter-spacing:1.7px}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 5px 25px #10233b05}.basics{margin-bottom:24px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.local-pill,.count{font-size:11px;background:#eaf2ff;border:1px solid #b9d0ef;border-radius:20px;padding:6px 11px;color:#285692;font-weight:700;white-space:nowrap}.grid{display:grid;gap:16px}.three{grid-template-columns:repeat(3,minmax(0,1fr))}label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700}input,select,textarea{width:100%;border:1px solid #aabdd4;border-radius:9px;background:#fbfcff;color:var(--ink);padding:11px 12px;min-height:46px;min-width:0}input::placeholder,textarea::placeholder{color:#62738a;opacity:1}textarea{resize:vertical;font-weight:400}.workspace{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.85fr);gap:24px;align-items:start}.work-card,.draft-card{min-width:0}.draft-card{position:sticky;top:20px}.date-label{font-size:12px;color:var(--muted);text-align:right}.button{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;min-height:46px;border-radius:9px;border:1px solid transparent;font-weight:700;font-size:13px;text-decoration:none;text-align:center;line-height:1.5}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#164bb2}.secondary{background:#edf3ff;color:#234e8b;border-color:#b7c9e3}.secondary:hover{background:#dfeaff}.full{width:100%}button:disabled{cursor:wait;background:#e8edf4;color:#5b6d83;border-color:#c2cedd}#days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:24px}#days button{border:1px solid #b7c8dd;background:#f0f5fc;color:#315375;border-radius:8px;padding:9px 2px;min-height:45px;font-size:12px;font-weight:700}#days button[aria-pressed=true]{background:#1d5dd7;color:#fff;border-color:#1d5dd7}.upload-box{margin:24px 0 20px;border:1px dashed #9db6d8;padding:25px 18px 12px;text-align:center;border-radius:14px;background:#f6f9ff}.upload-box>svg{display:block;margin:auto}.upload-box p{font-size:13px;color:var(--muted);margin:8px 0 15px}.upload-label{position:relative;cursor:pointer;overflow:hidden;display:inline-flex}.upload-label input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer;font-size:16px}.small{font-size:12px;color:var(--muted);line-height:1.65}.optional{font-weight:400;color:var(--muted)}.notice{font-size:12px;border-left:3px solid #4486dd;background:#edf4ff;padding:12px 14px;margin-top:18px;border-radius:0 8px 8px 0}#analysisStatus{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}#review{border-top:1px solid var(--line);padding-top:22px;margin-top:24px}#review>p{font-size:13px}.previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.photo{position:relative;min-width:0}.photo img{width:100%;height:110px;object-fit:cover;border-radius:8px;border:1px solid #a7bba9}.photo button{position:absolute;right:4px;top:4px;width:30px;height:30px;border:1px solid #fff;border-radius:50%;background:#10233b;color:#fff;font-size:20px;line-height:1}.suggestion{border:1px solid #bad0ec;border-radius:12px;padding:16px;margin:14px 0;background:#f7faff}.suggestion .check-row{flex-direction:row;align-items:center;font-size:14px;margin-bottom:12px}.check-row input{width:21px;height:21px;min-height:21px;accent-color:#1d5dd7}.suggestion textarea{margin-bottom:10px}.suggestion p{font-size:12px;margin:7px 0;color:var(--muted)}.suggestion select{font-size:13px}.draft-day{padding:15px 0;border-top:1px solid #d4e0ee}.draft-day h3{font-size:14px;margin:0 0 5px}.draft-day .site-info{font-size:12px;color:var(--muted);margin:0 0 10px;white-space:pre-line}.draft-job{border:1px solid #c5d5e8;background:#f3f7ff;border-radius:9px;padding:10px;margin:9px 0}.draft-job textarea{min-height:70px;font-size:13px;background:#fff}.draft-job .job-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px;font-size:11px}.danger{color:#8d3633;border:1px solid #c88f85;background:#fff4f0;border-radius:7px;padding:7px 11px;min-height:38px;font-size:12px}.empty{color:#5b6d83;font-size:13px;border:1px dashed #bdcde2;border-radius:10px;padding:20px;text-align:center}.export-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.export-actions>a{grid-column:1/-1}.privacy{margin-top:24px;font-size:13px}.privacy summary{cursor:pointer;font-weight:700;min-height:30px}.privacy p{max-width:850px;color:var(--muted)}footer{display:flex;justify-content:space-between;gap:15px;font-size:10px;font-weight:700;letter-spacing:1.5px;padding:30px 0;color:#526880}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#10233b;color:#fff;padding:13px 20px;border-radius:10px;max-width:90%;font-size:13px;z-index:30}[hidden]{display:none!important}:focus-visible{outline:3px solid #2563eb;outline-offset:3px}@media(max-width:950px){.workspace{grid-template-columns:1fr}.draft-card{position:static}.hero-mark{width:190px}.card{padding:23px}}@media(max-width:600px){header{padding:20px 18px}.brand{gap:10px}.brand b{font-size:30px}.brand>span{font-size:8px;letter-spacing:1.1px;padding-left:10px}.timesheet-link{font-size:11px;white-space:normal;text-align:right;max-width:105px}main{padding:0 16px}.hero{padding:35px 0 26px;gap:10px}.hero-mark{display:none}h1{font-size:47px;letter-spacing:-2.3px;margin-top:13px}.hero p{font-size:15px}.steps{gap:8px;font-size:10px;justify-content:space-between}.card{padding:19px;border-radius:16px}.three{grid-template-columns:1fr}.grid{gap:13px}.section-title{align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}.local-pill{font-size:10px}.basics .local-pill{display:none}h2{font-size:22px}#days{gap:4px}#days button{font-size:11px}.upload-box{padding:20px 12px 10px}.photo img{height:90px}footer{font-size:8px;letter-spacing:.8px}.export-actions{grid-template-columns:1fr}.export-actions>a{grid-column:auto}input,select,textarea{font-size:16px}.draft-job textarea{font-size:16px}}

.hours-box{margin-top:18px;padding:15px;border:1px solid #b9cde6;border-radius:11px;background:#f2f7ff}.hours-box summary{font-size:13px;font-weight:700;cursor:pointer}.hours-total{display:flex;gap:15px;align-items:center;margin-top:14px;font-size:13px}.export-actions #downloadPDF{grid-column:1/-1}@media(max-width:600px){.hours-total{flex-wrap:wrap}}

/* SPV Timesheet Online premium visual family. */
html{background:#fff;scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;letter-spacing:-.01em}
header{background:#fff;max-width:none;border-bottom:1px solid #dce5ef;padding-left:max(28px,calc((100vw - 1360px)/2));padding-right:max(28px,calc((100vw - 1360px)/2));min-height:84px}
.brand>span{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#213d61}.brand b{font-size:36px;letter-spacing:-2px}.brand b span{color:#2563eb}
.timesheet-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;min-height:42px;background:#eef4ff;border:1px solid #b9cceb;border-radius:11px;color:#214f92;font-size:12px}
.hero{margin:28px 0 24px;padding:38px 40px;background:linear-gradient(125deg,#0d1f36 0%,#142f50 64%,#173c69 100%);border:1px solid #203e61;border-radius:24px;box-shadow:0 16px 40px #0e23401a;color:#fff;gap:30px}
.hero h1{font-size:clamp(42px,4.6vw,65px);font-weight:750;line-height:1.04;letter-spacing:-2.4px;margin:18px 0}
.hero h1 em{color:#8fcfff}.hero p{color:#d7e5f5;font-size:16px}.hero .eyebrow{color:#b9dafb}
.steps{gap:10px;margin-top:25px}.steps span{padding:8px 10px;border:1px solid #ffffff30;border-radius:8px;background:#ffffff0a;color:#e3efff;font-size:11px}
.hero-mark{transform:none;background:#ffffff0a;border:1px solid #ffffff2b;border-radius:22px;color:#8dc5ff;width:210px;padding:18px}.hero-mark span{color:#daebff;letter-spacing:1.4px;line-height:1.6}
.card{border-color:#d0dce9;border-radius:19px;box-shadow:0 7px 26px #0e234009;padding:26px}
h2{color:#10233b;font-weight:750;letter-spacing:-.6px}h3{color:#1c3859}.eyebrow{font-size:10px;color:#31659e;letter-spacing:1.6px}.section-title{margin-bottom:20px}
.basics{border-top:3px solid #2a6cdd}.local-pill,.count{background:#eaf2ff;border-color:#c1d5f3;color:#245796}
input,select,textarea{background:#fbfcff;border-color:#b0c2d8;border-radius:10px;color:#172f4d;transition:border-color .15s,box-shadow .15s}input:hover,select:hover,textarea:hover{border-color:#7f9ebf}input:focus,select:focus,textarea:focus{border-color:#2563eb;outline:0;box-shadow:0 0 0 3px #2563eb20}
label{color:#263f5b;font-weight:650}.button{border-radius:11px;min-height:46px;transition:background .15s,box-shadow .15s,transform .15s}
.primary{background:#1d5dd7;border-color:#1d5dd7;box-shadow:0 4px 12px #1d5dd71c}.primary:hover{background:#164bb2;box-shadow:0 6px 16px #1d5dd72b}.primary:active{transform:translateY(1px)}
.secondary{color:#244d88;background:#eef4ff;border-color:#b9cce8}.secondary:hover{background:#e0ebfc;border-color:#89a9d1}
#days{gap:6px}#days button{background:#f0f5fc;color:#315375;border-color:#b9cbe1;border-radius:10px;min-height:46px;font-weight:750}#days button:hover{background:#e2edfc}#days button[aria-pressed=true]{background:#1d5dd7;border-color:#1d5dd7;color:#fff;box-shadow:0 3px 9px #1d5dd724}
.upload-box{background:#f4f8ff;border:1.5px dashed #8caedb;border-radius:15px}.upload-box>svg{color:#1d5dd7}.upload-box h3{font-weight:750}.photo img{border-color:#adc3df;border-radius:10px}
.notice{background:#edf4ff;color:#365777;border-left-color:#2d75db;line-height:1.7}.hours-box{background:#f5f8fd;border-color:#bfd0e7}.hours-box summary{color:#234c86}
.suggestion{background:#f6f9ff;border-color:#b6cdec;box-shadow:0 4px 16px #194c8c06}.suggestion .check-row{color:#203f65}.check-row input{accent-color:#1d5dd7}
.draft-card{border-top:3px solid #2a6cdd}.draft-job{background:#f1f6ff;border-color:#c5d6ed}.draft-day h3{font-size:15px;color:#214b82}.draft-day .site-info{color:#4b6480}.draft-job .job-tools>span{font-weight:650;color:#365778}
.danger{color:#8d343c;background:#fff3f4;border-color:#d1a1a8;border-radius:9px}.danger:hover{background:#ffe6e9}.empty{background:#f7faff;color:#506a86;border-color:#b9cce4}.small,.date-label{color:#4e637b}
.privacy{border-color:#cbd9e9}.privacy summary{color:#284e7b}.privacy a{color:#1d5dd7;text-underline-offset:3px}
footer{color:#46627e;letter-spacing:1.1px}#toast{background:#122b49;box-shadow:0 8px 30px #10233b24}.button:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(min-width:1100px){.workspace{grid-template-columns:minmax(0,1.2fr) minmax(350px,.8fr)}}
@media(max-width:600px){header{padding:17px 16px;min-height:77px;gap:10px}.brand{gap:9px}.brand b{font-size:31px}.brand>span{font-size:8px;letter-spacing:1.1px;max-width:85px;padding-left:9px}.timesheet-link{font-size:10px;padding:8px;max-width:106px;min-height:40px;line-height:1.45}.hero{margin:18px 0;padding:26px 22px;border-radius:19px}.hero h1{font-size:45px;letter-spacing:-1.9px;margin:14px 0}.hero p{font-size:14px}.hero .eyebrow{font-size:8px;letter-spacing:1.25px}.steps{gap:6px;margin-top:20px}.steps span{font-size:9px;padding:6px 7px}.card{padding:19px}.workspace{gap:18px}h2{font-size:23px}.section-title{gap:10px}#days{gap:4px}#days button{font-size:11px;min-height:45px}.upload-box{margin-top:20px}.basics{margin-bottom:18px}.eyebrow{font-size:9px}.button{min-height:47px}.previews{gap:8px}}
@media(max-width:360px){.hero{padding:23px 18px}.hero h1{font-size:40px}.steps{flex-direction:column;align-items:flex-start}.steps span{font-size:10px}.brand>span{max-width:75px;font-size:7px}.timesheet-link{max-width:91px}.card{padding:16px}#days{gap:3px}#days button{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
@media(max-width:600px){.steps{display:grid;grid-template-columns:1fr;gap:3px;margin-top:18px}.steps span{padding:2px 0;background:none;border:0;border-radius:0;font-size:11px;line-height:1.5;color:#dcecff}}



/* Phone-first three-step workflow; desktop stays unchanged. */
.mobile-wizard,.mobile-only{display:none!important}
.photo-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
@media(max-width:600px){
 .mobile-wizard{display:block!important;margin:12px 0 14px;padding:0 4px;font-weight:750;font-size:12px;color:#315375}
 .wizard-track{height:5px;background:#dce7f5;border-radius:8px;overflow:hidden;margin-top:7px}
 .wizard-track i{display:block;width:33.333%;height:100%;background:#2563eb;border-radius:8px;transition:width .2s}
 body[data-mobile-step="details"] .wizard-track i{width:66.666%}
 body[data-mobile-step="week"] .wizard-track i{width:100%}
 .mobile-only{display:flex!important}
 .hero{padding:18px 18px;margin:10px 0 12px}
 .hero h1{font-size:34px;margin:5px 0 6px;line-height:1.05}
 .hero .eyebrow,.hero p,.hero .steps{display:none}
 .card{padding:17px}
 .work-card .section-title{margin-bottom:11px}
 .work-card .section-title h2{font-size:20px}
 #days{margin-bottom:10px}
 .upload-box{margin:10px 0 12px;padding:16px 12px 12px}
 .upload-box h3{margin:5px 0}
 .upload-box p{margin:4px 0 10px}
 .photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .photo-actions .upload-label{width:100%;padding:10px 5px}
 #photoContinue{margin-top:10px}
 body[data-mobile-step="photos"] .basics,
 body[data-mobile-step="photos"] .details-fields,
 body[data-mobile-step="photos"] .hours-box,
 body[data-mobile-step="photos"] .notes-field,
 body[data-mobile-step="photos"] .ai-notice,
 body[data-mobile-step="photos"] .ai-explanation,
 body[data-mobile-step="photos"] #analyse,
 body[data-mobile-step="photos"] #analysisStatus,
 body[data-mobile-step="photos"] #review,
 body[data-mobile-step="photos"] #backToPhotos,
 body[data-mobile-step="photos"] .draft-card,
 body[data-mobile-step="details"] .upload-box,
 body[data-mobile-step="details"] .draft-card,
 body[data-mobile-step="details"] #backToDetails,
 body[data-mobile-step="week"] .basics,
 body[data-mobile-step="week"] .work-card{display:none!important}
 body[data-mobile-step="details"] .basics{margin-bottom:12px}
 body[data-mobile-step="details"] #days{margin-bottom:14px}
 body[data-mobile-step="week"] .draft-card{display:block}
 body[data-mobile-step="week"] .workspace{display:block}
 body[data-mobile-step="photos"] .workspace{display:block}
 #backToPhotos,#backToDetails{margin-bottom:12px}
 .privacy{margin-top:13px}
}

/* Refined photo workflow — About is in a dialog, not a long landing-page section. */
.about-trigger{appearance:none;border:1px solid #a8c6ed;border-radius:999px;background:#eaf3ff;color:#1c4d90;font-weight:750;font-size:12px;padding:7px 14px;cursor:pointer}
.about-dialog{width:min(530px,calc(100vw - 28px));max-height:min(82dvh,740px);border:1px solid #b6cbe5;border-radius:18px;padding:22px;background:#fff;color:#172f4d;box-shadow:0 20px 80px #0a203966;overflow-y:auto}
.about-dialog::backdrop{background:#071d38a8}
.about-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.about-heading h2{margin:0 0 12px}.about-heading button{min-width:38px;min-height:38px;border:1px solid #ccd9eb;background:#f0f5fc;border-radius:9px;cursor:pointer}
.about-dialog p{color:#475f7b;font-size:13px;line-height:1.6}.about-dialog a{color:#1d5dd7}.install-help{border-top:1px solid #d5e1ee;padding:12px 0;margin-top:12px;font-size:13px}.install-help summary{cursor:pointer;font-weight:700}.about-dialog>#aboutDone{margin-top:12px}
.analyse-actions{display:flex;flex-direction:column;gap:9px;margin-top:10px}
@media(max-width:600px){
 .hero{position:relative}.about-trigger{margin:4px 0 0;font-size:11px;padding:5px 12px}
 body[data-mobile-step="details"] .ai-notice,body[data-mobile-step="details"] .ai-explanation{display:none!important}
 body[data-mobile-step="details"] .work-card{padding-bottom:4px}
 body[data-mobile-step="details"] .basics .section-title{margin-bottom:9px}
 body[data-mobile-step="details"] .basics .section-title h2{font-size:18px}
 body[data-mobile-step="details"] .basics .grid{gap:9px}
 body[data-mobile-step="details"] .basics input,body[data-mobile-step="details"] .basics select{min-height:39px;padding:8px 11px}
 body[data-mobile-step="details"] .details-fields{gap:9px}
 body[data-mobile-step="details"] .details-fields input{min-height:39px;padding:8px 11px}
 body[data-mobile-step="details"] .notes-field textarea{min-height:67px;max-height:140px}
 body[data-mobile-step="details"] .analyse-actions{position:fixed;z-index:20;bottom:0;left:0;right:0;display:flex;flex-direction:column;gap:6px;background:#fffffff5;backdrop-filter:blur(10px);padding:9px 16px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #c9d7e9;box-shadow:0 -6px 20px #10233b10;margin:0}
 body[data-mobile-step="details"] .analyse-actions .button{min-height:43px;padding:8px 12px}
 body[data-mobile-step="details"]{padding-bottom:118px}
 body[data-mobile-step="details"] #backToPhotos{margin-bottom:0}
 body[data-mobile-step="details"] #review:not([hidden]){padding-bottom:10px}
}

/* SPV-style weekly timesheet and simple editable hours templates */
.timesheet-panel{border:1px solid #bfd0e7;border-radius:14px;background:#f8fbff;padding:15px;margin:15px 0 22px}
.timesheet-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.timesheet-title h3{margin:3px 0 7px;font-size:19px}.timesheet-title strong{font-size:18px;color:#1d5dd7;white-space:nowrap}
.template-controls{display:flex;align-items:end;gap:8px;margin:12px 0 15px}.template-controls label{flex:1;min-width:0;font-size:12px}.template-controls select{width:100%;font-size:12px;min-height:42px}.template-controls button{min-width:120px;white-space:nowrap}
.timesheet-scroll{overflow-x:auto;max-width:100%;border:1px solid #d3dfed;border-radius:9px;background:white}
.time-table{width:100%;border-collapse:collapse;min-width:650px;font-size:12px}.time-table th,.time-table td{padding:7px 5px;border-bottom:1px solid #e0e9f5;vertical-align:middle}.time-table thead th{background:#eaf2ff;color:#285487;font-size:10px;text-transform:uppercase;text-align:left}.time-table tbody th{background:#f5f8fc;text-align:left;white-space:nowrap;font-weight:750}.time-table input{width:100%;min-width:0;border-radius:6px;padding:6px 5px;min-height:35px;font-size:12px}.time-table td:nth-child(2){min-width:75px}.time-table td:nth-child(3){min-width:100px}.time-table td:nth-child(4),.time-table td:nth-child(5){min-width:96px}.time-table td:nth-child(6){min-width:58px}.time-table .net-cell{font-weight:750;color:#1e5db5}
@media(max-width:600px){.timesheet-panel{padding:10px;margin:12px 0}.timesheet-panel .small{font-size:11px}.template-controls{flex-direction:column;align-items:stretch}.template-controls button{width:100%}.time-table{min-width:630px}.timesheet-scroll{scrollbar-width:thin}}

/* Unified navigation: brand and About live in the same header at every screen size. */
.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}
.header-about{margin:0;display:inline-flex;align-items:center;justify-content:center;min-height:40px;background:#f1f6ff;border-color:#b8cce8;color:#1a467f;font-size:12px;white-space:nowrap;padding:8px 14px}
.about-dialog{width:min(600px,calc(100vw - 24px));max-height:86dvh;padding:clamp(18px,4vw,28px)}
.about-heading{align-items:center}.about-heading h2{margin:7px 0 12px;font-size:clamp(24px,4vw,31px);letter-spacing:-.8px}
.about-dialog .about-lead{font-size:15px;color:#253e5a;line-height:1.65}
.about-feature{display:flex;flex-direction:column;gap:5px;padding:12px 14px;border:1px solid #dce8f7;border-radius:12px;margin:10px 0;background:#f7faff;font-size:13px;line-height:1.55}
.about-feature strong{font-size:14px;color:#1c467f}.about-feature span{color:#405a76}
.about-dialog .about-punch{font-size:15px;font-weight:650;color:#1c467f}
.about-dialog .about-caution{padding:12px 14px;border-left:3px solid #8aaacf;background:#f2f6fc;border-radius:8px}
@media(max-width:600px){.header-actions{gap:6px}.header-about{padding:7px 9px;font-size:11px;min-height:38px}.timesheet-link{max-width:97px;padding:7px!important;font-size:10px}.about-dialog{max-height:88dvh}.about-dialog .about-lead{font-size:14px}}
@media(max-width:360px){.header-actions{gap:4px}.header-about{font-size:10px;padding:7px}.timesheet-link{max-width:80px;font-size:9px}}

/* Simplified actions: one clear decision per screen. */
.export-actions{display:flex;flex-direction:column;gap:10px;margin-top:21px}
.export-actions .button{width:100%;min-height:51px;font-size:14px}
.extra-options{margin-top:14px;border:1px solid #cbd9e9;border-radius:12px;background:#f7faff;overflow:hidden}
.extra-options>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer;min-height:46px;padding:12px 16px;font-weight:750;color:#365c89}
.extra-options>summary::-webkit-details-marker{display:none}
.extra-options[open]>summary span{transform:rotate(180deg)}
.extra-options-inner{padding:0 14px 14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.extra-options-inner .small,.extra-options-inner .danger{grid-column:1/-1}
.extra-options-inner .button{width:100%}
.export-footnote{margin:12px 0 4px}
.review-buttons{display:flex;flex-direction:column;gap:10px;margin-top:16px}
@media(max-width:600px){
 body[data-mobile-step="details"][data-mobile-review="true"] .analyse-actions{display:none!important}
 body[data-mobile-step="details"][data-mobile-review="true"] .basics,
 body[data-mobile-step="details"][data-mobile-review="true"] .work-card>.section-title,
 body[data-mobile-step="details"][data-mobile-review="true"] #days,
 body[data-mobile-step="details"][data-mobile-review="true"] .details-fields,
 body[data-mobile-step="details"][data-mobile-review="true"] .hours-box,
 body[data-mobile-step="details"][data-mobile-review="true"] .notes-field,
 body[data-mobile-step="details"][data-mobile-review="true"] #analysisStatus{display:none!important}
 body[data-mobile-step="details"][data-mobile-review="true"]{padding-bottom:env(safe-area-inset-bottom)}
 body[data-mobile-step="details"][data-mobile-review="true"] .work-card{padding:18px 16px}
 body[data-mobile-step="details"][data-mobile-review="true"] #review{border-top:0;margin:0;padding:0}
 body[data-mobile-step="details"][data-mobile-review="true"] #review>p:first-of-type{margin-top:4px}
 .export-actions{gap:9px}.extra-options-inner{grid-template-columns:1fr}
}

/* 2026-11-06: compact details step on iPhone Pro Max; the photo step is unchanged. */
.header-actions .timesheet-link,
.header-actions .header-about{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  border-radius:11px!important;min-height:40px;height:40px;
  padding:8px 11px!important;border:1px solid #b9cceb;
  background:#eef4ff;color:#214f92;font-size:12px;line-height:1.1;
  font-weight:750;text-align:center;white-space:nowrap;margin:0;
}
@media(max-width:600px){
 .header-actions{gap:6px}
 .header-actions .timesheet-link,.header-actions .header-about{
    min-height:36px;height:36px;border-radius:9px!important;
    padding:5px 8px!important;font-size:10px!important;max-width:none;
 }
 /* Only step two receives the dense, single-screen layout. */
 body[data-mobile-step="details"] .hero{display:none!important}
 body[data-mobile-step="details"] main{padding:0 10px}
 body[data-mobile-step="details"] .basics{padding:10px 12px 9px;margin:0 0 5px;border-radius:12px}
 body[data-mobile-step="details"] .basics .section-title{margin-bottom:6px}
 body[data-mobile-step="details"] .basics .section-title .eyebrow{display:none}
 body[data-mobile-step="details"] .basics .section-title h2{font-size:15px;margin:0}
 body[data-mobile-step="details"] .basics .grid.three{display:grid;grid-template-columns:1.08fr .92fr;gap:5px 8px}
 body[data-mobile-step="details"] .basics .grid.three>label:first-child{grid-column:1/-1}
 body[data-mobile-step="details"] label{font-size:11px;gap:2px;line-height:1.2}
 body[data-mobile-step="details"] input,
 body[data-mobile-step="details"] select{font-size:16px;min-height:34px;padding:5px 8px;border-radius:8px}
 body[data-mobile-step="details"] .mobile-wizard{margin:3px 0 6px;padding:0 5px;font-size:10px}
 body[data-mobile-step="details"] .wizard-track{height:3px;margin-top:3px}
 body[data-mobile-step="details"] .workspace{gap:0}
 body[data-mobile-step="details"] .work-card{padding:10px 12px 12px;border-radius:12px}
 body[data-mobile-step="details"][data-mobile-review="false"] .work-card>.section-title{display:none!important}
 body[data-mobile-step="details"] #days{gap:3px;margin:0 0 6px}
 body[data-mobile-step="details"] #days button{min-height:31px;padding:3px 1px;font-size:10px;border-radius:6px}
 body[data-mobile-step="details"] .details-fields{display:grid;grid-template-columns:1fr 1fr;gap:5px 8px}
 body[data-mobile-step="details"] .details-fields label:last-child{grid-column:1/-1}
 body[data-mobile-step="details"] .details-fields input{min-height:34px;padding:5px 8px}
 body[data-mobile-step="details"] .hours-box{margin:6px 0!important;padding:0!important}
 body[data-mobile-step="details"] .hours-box summary{min-height:27px;font-size:11px;padding:4px 7px}
 body[data-mobile-step="details"] .hours-box p.small{font-size:10px}
 body[data-mobile-step="details"] .notes-field{margin:5px 0 0}
 body[data-mobile-step="details"] .notes-field textarea{font-size:14px;min-height:57px;height:57px;max-height:90px;padding:6px 8px;line-height:1.3}
 body[data-mobile-step="details"] .analyse-actions{position:static!important;z-index:auto;bottom:auto;left:auto;right:auto;
    background:none;backdrop-filter:none;box-shadow:none;border:0;padding:0;
    display:flex;flex-direction:column;gap:5px;margin:8px 0 0}
 body[data-mobile-step="details"] .analyse-actions .button{min-height:38px;padding:7px 10px;font-size:12px}
 body[data-mobile-step="details"] #backToPhotos{margin:0}
 body[data-mobile-step="details"]{padding-bottom:0!important}
 body[data-mobile-step="details"] #analysisStatus{font-size:11px;margin:5px 0;line-height:1.3}
 body[data-mobile-step="details"][data-mobile-review="true"] .hero{display:none!important}
}
@media(max-width:360px){.header-actions .timesheet-link,.header-actions .header-about{font-size:9px!important;padding:5px!important}}

/* Compact About: get the four benefits into view right away */
.about-dialog .about-lead{margin:5px 0 9px;line-height:1.45;font-size:13px}
.about-dialog .about-feature{padding:8px 11px;margin:6px 0;gap:2px;line-height:1.4}
.about-dialog .about-feature strong{font-size:13px}
.about-dialog .about-feature span{font-size:12px}
.about-heading h2{margin-bottom:5px}
.extra-options-inner>a.button{width:100%;text-decoration:none}
@media(max-width:600px){.about-dialog{padding:16px;max-height:90dvh}.about-heading h2{font-size:24px}.about-dialog .about-lead{font-size:12.5px}.about-dialog .about-feature{padding:7px 10px;margin:5px 0}.about-dialog .about-feature span{font-size:11.5px}}


/* 2026-11-06: reclaim bottom space on mobile by removing footer and stretching content cards */
footer{display:none!important}
@media(max-width:600px){
  main{padding-bottom:8px!important}
  .workspace{gap:10px}
  body[data-mobile-step="photos"] .work-card,
  body[data-mobile-step="details"] .work-card{
    min-height:calc(100dvh - 220px);
  }
  body[data-mobile-step="photos"] .work-card{
    min-height:calc(100dvh - 250px);
  }
  body[data-mobile-step="details"] .work-card{
    min-height:calc(100dvh - 205px);
  }
}

/* 2026-11-06: genuine mobile full-height reflow. Fill available room with controls,
   not just a taller blank card. No desktop changes. */
@media (max-width:600px) {
 html,body {min-height:100%;}
 body[data-mobile-step="photos"],body[data-mobile-step="details"] {min-height:100dvh;display:flex;flex-direction:column;padding-bottom:0!important;}
 body[data-mobile-step="photos"]>header,body[data-mobile-step="details"]>header {width:100%;flex:none;}
 body[data-mobile-step="photos"]>main,body[data-mobile-step="details"]>main {width:100%;max-width:100%;flex:1;min-height:0;display:flex;flex-direction:column;padding:0 11px max(12px,env(safe-area-inset-bottom))!important;}
 body[data-mobile-step="photos"] .workspace,body[data-mobile-step="details"] .workspace {display:flex;flex:1;min-height:0;flex-direction:column;gap:0;}
 body[data-mobile-step="photos"] .work-card,body[data-mobile-step="details"][data-mobile-review="false"] .work-card {width:100%;min-height:0;flex:1;display:flex;flex-direction:column;padding:18px 15px;border-radius:17px;}
 body[data-mobile-step="photos"] .hero {margin:12px 0 10px;flex:none;}
 body[data-mobile-step="photos"] .mobile-wizard {margin:10px 2px 12px;flex:none;}
 body[data-mobile-step="photos"] .work-card .section-title {margin-bottom:15px;}
 body[data-mobile-step="photos"] #days {gap:5px;margin-bottom:14px;}
 body[data-mobile-step="photos"] #days button {min-height:45px;font-size:12px;border-radius:9px;}
 body[data-mobile-step="photos"] .upload-box {flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch;margin:0;padding:20px 12px 16px;}
 body[data-mobile-step="photos"] .upload-box>svg{flex:none;}
 body[data-mobile-step="photos"] .photo-actions .button {min-height:52px;font-size:13px;}
 body[data-mobile-step="photos"] #photoContinue {min-height:51px;margin-top:12px;font-size:13px;}
 body[data-mobile-step="photos"] .previews {margin-top:18px;}
 body[data-mobile-step="photos"] .upload-box>p.small {margin-top:auto;padding-top:14px;line-height:1.45;}

 /* Details: no overlapping trade/date controls, spacious readable vertical rhythm. */
 body[data-mobile-step="details"] .hero {display:none!important;}
 body[data-mobile-step="details"] .basics {flex:none;padding:13px 15px 14px;margin:10px 0 9px;border-radius:16px;}
 body[data-mobile-step="details"] .basics .section-title {margin-bottom:10px;}
 body[data-mobile-step="details"] .basics .section-title h2 {font-size:18px;}
 body[data-mobile-step="details"] .basics .grid.three {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 12px;}
 body[data-mobile-step="details"] .basics .grid.three>label:first-child {grid-column:1/-1;}
 body[data-mobile-step="details"] .basics .grid.three>label {min-width:0;overflow:hidden;}
 body[data-mobile-step="details"] .basics input,body[data-mobile-step="details"] .basics select {box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:45px;height:45px;padding:9px 9px;font-size:15px;}
 body[data-mobile-step="details"] .basics select {font-size:13px;padding-left:7px;padding-right:3px;text-overflow:ellipsis;}
 body[data-mobile-step="details"] label {font-size:12px;gap:4px;line-height:1.35;min-width:0;}
 body[data-mobile-step="details"] .mobile-wizard {margin:2px 4px 11px;font-size:12px;flex:none;}
 body[data-mobile-step="details"] .wizard-track {height:4px;margin-top:6px;}
 body[data-mobile-step="details"][data-mobile-review="false"] .work-card {gap:0;}
 body[data-mobile-step="details"] #days {margin:0 0 15px;gap:5px;}
 body[data-mobile-step="details"] #days button {min-height:46px;font-size:12px;border-radius:9px;}
 body[data-mobile-step="details"] .details-fields {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px 12px;margin-bottom:12px;}
 body[data-mobile-step="details"] .details-fields label:last-child {grid-column:1/-1;}
 body[data-mobile-step="details"] .details-fields input {min-height:44px;height:44px;padding:9px 10px;font-size:16px;}
 body[data-mobile-step="details"] .hours-box {margin:7px 0 13px!important;}
 body[data-mobile-step="details"] .hours-box summary {min-height:38px;padding:9px 10px;font-size:12px;}
 body[data-mobile-step="details"] .notes-field {margin:4px 0 12px;}
 body[data-mobile-step="details"] .notes-field textarea {height:auto;min-height:95px;max-height:200px;padding:11px 12px;font-size:15px;line-height:1.45;}
 body[data-mobile-step="details"] .analyse-actions {margin-top:auto;gap:10px;padding-top:12px;flex-shrink:0;}
 body[data-mobile-step="details"] .analyse-actions .button {min-height:50px;padding:12px;font-size:14px;}
 body[data-mobile-step="details"] #analysisStatus {font-size:12px;min-height:0;line-height:1.4;margin:8px 0 0;}
 body[data-mobile-step="details"][data-mobile-review="true"] .work-card {display:block;min-height:0;flex:initial;}
 body[data-mobile-step="details"][data-mobile-review="true"] .workspace {display:block;flex:initial;}
}
/* On compact phones allow scrolling rather than overlapping fields. */
@media (max-width:390px), (max-height:740px) {
 body[data-mobile-step="details"] .basics .grid.three {grid-template-columns:minmax(0,1fr);}
 body[data-mobile-step="details"] .basics .grid.three>label {grid-column:1/-1;}
 body[data-mobile-step="details"] .basics select {font-size:15px;}
}

/* Final iPhone alignment: equal date/trade fields, clean native date boundaries. */
@media (max-width:600px){
 body[data-mobile-step="details"] .basics .grid.three{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:12px;align-items:end}
 body[data-mobile-step="details"] .basics .grid.three>label{min-width:0;overflow:visible;display:flex;flex-direction:column}
 body[data-mobile-step="details"] .basics .grid.three>label:first-child{grid-column:1/-1}
 body[data-mobile-step="details"] .basics input#week,body[data-mobile-step="details"] .basics select#trade{
  box-sizing:border-box!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  height:48px!important;min-height:48px!important;max-height:48px!important;margin:0!important;
  padding:9px 8px!important;border:1px solid #aabdd4!important;border-radius:9px!important;
  background-color:#fbfcff!important;line-height:28px!important;font-size:14px!important;
 }
 body[data-mobile-step="details"] .basics input#week{-webkit-appearance:none;appearance:none;text-align:center;}
 body[data-mobile-step="details"] .basics input#week::-webkit-date-and-time-value{min-width:0;text-align:center;}
 body[data-mobile-step="details"] .basics input#week::-webkit-datetime-edit{padding:0;min-width:0;}
 body[data-mobile-step="details"] .basics select#trade{text-overflow:ellipsis;white-space:nowrap;padding-right:17px!important;}
 body[data-mobile-step="details"] #analysisStatus:not(:empty){
   border:1px solid #b6ccef;border-radius:10px;background:#edf4ff;color:#163b70;
   padding:11px 12px;font-size:13px;line-height:1.45;margin:10px 0 2px;scroll-margin-top:16px;
 }
}
@media(max-width:360px){
 body[data-mobile-step="details"] .basics .grid.three{grid-template-columns:1fr}
 body[data-mobile-step="details"] .basics .grid.three>label{grid-column:1/-1}
}

/* Original SPV Timesheet Online work-week fields and mobile-friendly day cards. */
.spv-premium-week{background:#fff;border-color:#c4d3e6}
.spv-week-meta,.premium-time-grid,.premium-site-grid,.premium-description-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.spv-week-meta{margin:12px 0}
.spv-template-note{background:#edf4ff;border:1px solid #ccddf4;color:#315477;padding:10px 12px;border-radius:10px;font-size:12px;line-height:1.5;margin-bottom:15px}
.premium-day-list{display:grid;gap:9px}
.premium-day-card{border:1px solid #c9d8eb;border-radius:12px;overflow:hidden;background:#fff}
.premium-day-card>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;list-style:none;cursor:pointer;padding:13px 14px;background:#edf3fc;font-weight:750}
.premium-day-card>summary::-webkit-details-marker{display:none}
.premium-day-card>summary::before{content:'▸';color:#275baa}
.premium-day-card[open]>summary::before{content:'▾'}
.spv-day-name{flex:1}.spv-day-hours{color:#1b5ac3;font-variant-numeric:tabular-nums}
.premium-day-content{padding:13px;display:grid;gap:12px}
.premium-time-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.premium-time-grid label{min-width:0}
.premium-day-content label{font-size:12px;gap:5px}
.premium-day-content input,.premium-day-content textarea{min-width:0;width:100%}
.spv-net-hours{grid-column:1/-1;text-align:right;font-size:13px;font-weight:750;color:#21528c}
.premium-site-grid{grid-template-columns:1fr 1.5fr 1.2fr}
.premium-description-grid textarea{min-height:84px;font-size:14px}
.spv-week-total{margin:14px 0 6px;background:#152f50;color:white;border-radius:12px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.spv-week-total>span:first-child{font-size:10px;letter-spacing:1px;font-weight:750}
.spv-week-total strong{font-size:20px}.spv-lodge-total{font-size:12px;color:#d2e7ff}
@media(max-width:600px){
.spv-week-meta{grid-template-columns:1fr}
.premium-time-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.premium-site-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.premium-site-grid label:last-child{grid-column:1/-1}
.premium-description-grid{grid-template-columns:1fr}
.premium-day-card>summary{padding:13px 11px}
.premium-day-content{padding:11px}
.spv-week-total strong{font-size:18px}
}

/* Real foreman sign-off, collapsed until needed. */
.foreman-signature-panel{margin:12px 0 16px;border:1px solid #c5d4e8;border-radius:12px;background:#fff}
.foreman-signature-panel>summary{padding:13px 15px;font-weight:750;color:#214e88;cursor:pointer}
.signature-inside{padding:2px 15px 15px;display:flex;align-items:flex-start;flex-direction:column;gap:10px}
.signature-inside canvas{width:100%;height:125px;border:1px solid #9fb6d4;background:#fff;border-radius:9px;touch-action:none}
@media(max-width:600px){body[data-mobile-step="week"] .hero{display:none!important}.signature-inside canvas{height:110px}}

/* Optional weekend work flag for SPV auto lodge */
.weekend-work-toggle{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;margin:9px 0 12px;font-weight:700;color:#254970}
.weekend-work-toggle input{width:21px!important;height:21px!important;min-height:21px!important;accent-color:#1d5dd7;flex-shrink:0}

/* 2026-11-06: usable step-two actions and compact review by day */
.notes-field{display:block}
.notes-field .optional{display:inline;font-size:.9em;white-space:nowrap}
.week-jobs-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:18px 0 8px}
.week-jobs-heading span{font-size:11px;color:var(--muted)}
.draft-day-fold{border:1px solid #ccdaeb;border-radius:12px;padding:0;margin:9px 0;overflow:hidden;background:white}
.draft-day-fold summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:12px 14px;list-style:none}
.draft-day-fold summary::-webkit-details-marker{display:none}
.draft-day-fold summary::after{content:'⌄';font-size:19px;color:#3566aa;line-height:1}
.draft-day-fold[open] summary::after{content:'⌃'}
.draft-day-title{font-size:14px;font-weight:750;color:#234c80}
.draft-day-count{font-size:11px;background:#e9f1ff;padding:4px 7px;border-radius:7px;color:#2359a0;margin-left:auto;white-space:nowrap}
.draft-day-inner{border-top:1px solid #e1eaf5;padding:10px 12px 14px}
.draft-day-inner .site-info{margin:2px 0 6px}
.draft-day-inner .draft-job{margin:10px 0;padding:10px}
.draft-job-heading{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#31547b;margin-bottom:6px}
.draft-job-heading span{font-size:11px;color:#5b6d83}
.draft-day-inner .job-tools{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;align-items:center}
.draft-day-inner .job-tools select{min-width:0;width:100%;min-height:38px;padding:6px;font-size:12px}
.draft-day-inner .job-tools .danger{min-height:38px}
.day-overflow-warning{font-size:12px;line-height:1.5;color:#79510d;background:#fff4da;border:1px solid #f0d599;border-radius:9px;padding:9px 10px;margin:10px 0}
@media(max-width:600px){
 body[data-mobile-step="details"] .notes-field{margin:2px 0 5px!important}
 body[data-mobile-step="details"] .notes-field textarea{min-height:67px!important;height:67px!important;max-height:110px!important;margin-top:4px;padding:8px 10px!important}
 body[data-mobile-step="details"] .analyse-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:9px!important;margin:8px 0 2px!important;padding-top:0!important}
 body[data-mobile-step="details"] .analyse-actions .button{min-width:0;width:100%;min-height:46px!important;padding:9px 5px!important;font-size:12px!important;line-height:1.2}
 body[data-mobile-step="details"] .analyse-actions #backToPhotos{grid-column:1;grid-row:1}
 body[data-mobile-step="details"] .analyse-actions #analyse{grid-column:2;grid-row:1}
 body[data-mobile-step="details"][data-mobile-review="true"] .analyse-actions{display:none!important}
 .draft-day-inner .job-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
 .draft-day-inner .job-tools .danger{grid-column:1/-1;width:100%}
}

/* Mobile actions: use available vertical space rather than flattening buttons. */
@media(max-width:600px){
 body[data-mobile-step="details"]:not([data-mobile-review="true"]) .analyse-actions{
   margin:14px 0 12px!important;gap:12px!important;
 }
 body[data-mobile-step="details"]:not([data-mobile-review="true"]) .analyse-actions .button{
   height:auto!important;min-height:64px!important;
   padding:15px 9px!important;font-size:14px!important;line-height:1.35!important;
   border-radius:12px;white-space:normal;
 }
}

/* Premium week: readable, compact, consistent controls, no tiny explanatory paragraphs */
.spv-premium-week .timesheet-title{margin-bottom:12px}
.spv-premium-week .timesheet-title h3{font-size:21px;margin:0}
.spv-premium-week .spv-week-meta{gap:12px;margin:12px 0 15px}
.spv-premium-week .template-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:14px 0 18px}
.spv-premium-week .template-controls .button{min-height:52px;width:100%;font-size:15px;border-radius:10px;padding:12px 15px}
.spv-premium-week .template-controls select{font-size:16px;min-height:52px;height:52px;padding:10px 12px;border-radius:10px}
.spv-premium-week .spv-week-meta input{min-height:52px;font-size:16px}
.spv-premium-week .premium-time-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:16px}
.spv-premium-week .premium-day-content{gap:18px;padding:16px}
.spv-premium-week .premium-time-grid label{min-width:0;max-width:100%;overflow:hidden;gap:7px}
.spv-premium-week .premium-time-grid input{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:52px;font-size:16px;padding:10px 9px;border-radius:10px}
.spv-premium-week .premium-day-card>summary{min-height:58px;padding:14px}
.spv-premium-week .premium-day-list{gap:11px}
.spv-premium-week .spv-week-total{padding:16px;gap:8px}
.spv-premium-week .spv-week-total .spv-lodge-total{font-size:15px;font-weight:700}
.foreman-signature-panel>summary{font-size:16px;min-height:53px;display:flex;align-items:center;padding:13px 15px}
.draft-card>#backToDetails,.draft-card .export-actions .button,.draft-card .extra-options .button{min-height:54px;border-radius:10px;font-size:15px;padding:12px 15px;width:100%}
@media(max-width:600px){
  .spv-premium-week{padding:13px;margin:10px 0}
  .spv-premium-week .premium-time-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:15px}
  .spv-premium-week .premium-time-grid input{font-size:16px;min-height:54px;padding:9px 8px}
  .spv-premium-week .premium-time-grid label{font-size:13px;line-height:1.4}
  .spv-premium-week .premium-day-content{padding:13px 12px;gap:16px}
  .spv-premium-week .premium-site-grid{column-gap:12px}
}

/* Desktop: focused stages rather than an uneven two-column form. */
@media(min-width:601px){
 body .workspace{display:block;max-width:1060px;margin:0 auto;}
 body .workspace .draft-card{display:none!important;position:static;width:100%;}
 body .workspace .work-card{width:100%;}
 body .basics{max-width:1060px;margin-left:auto;margin-right:auto;}
 body .hero{max-width:1060px;margin-left:auto;margin-right:auto;}
 body[data-desktop-step="week"] .workspace .draft-card{display:block!important;}
 body[data-desktop-step="week"] .workspace .work-card,
 body[data-desktop-step="week"] .hero,
 body[data-desktop-step="week"] .basics{display:none!important;}
 body .mobile-wizard{display:block!important;max-width:1060px;margin:16px auto;font-weight:750;color:#315375;}
 body .mobile-wizard .wizard-track{height:4px;}
 body #photoContinue{display:flex!important;width:100%;min-height:50px;margin-top:14px;}
 body #backToDetails{display:flex!important;width:100%;min-height:54px;margin-bottom:20px;}
 body .analyse-actions{display:flex;gap:12px;}
 body .analyse-actions #analyse{flex:1;}
 body .draft-card .spv-premium-week{max-width:100%;margin:0 0 18px;}
}

/* 2026-11-06: visible primary controls and tappable A4-inspired preview */
@media(max-width:600px){
 body[data-mobile-step="details"] .analyse-actions{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)!important;}
 body[data-mobile-step="details"] .analyse-actions .button{min-height:52px!important;max-height:58px!important;padding:8px 9px!important;font-size:13px!important;border-radius:11px!important;}
 body[data-mobile-step="details"] .notes-field textarea{min-height:104px!important;height:104px!important;max-height:180px!important;line-height:1.4;}
}
.sheet-preview-dialog{border:0;border-radius:18px;padding:18px;width:min(900px,97vw);max-height:94dvh;overflow:auto;background:#f1f5fb;color:#152b46;box-shadow:0 30px 90px #14253e66;}
.sheet-preview-dialog::backdrop{background:#0a1728aa;}
.sheet-preview-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px;}
.sheet-preview-top h2{font-size:22px;margin:3px 0;}
#closeSheetPreview{border:1px solid #bbcee5;border-radius:9px;background:white;padding:8px 13px;min-height:42px;}
.sheet-preview-help{font-size:13px;margin:8px 0 13px;color:#425875;}
.preview-missing-key{background:#fff1b5;border:1px solid #e4c56e;border-radius:4px;padding:1px 4px;color:#493b12;}
.preview-paper{background:white;border:1px solid #bbcee0;padding:18px;border-radius:8px;}
.preview-paper>h3{text-align:center;letter-spacing:1px;font-size:19px;margin:3px 0 16px;}
.preview-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:16px;}
.preview-field{display:flex;flex-direction:column;gap:4px;min-width:0;border:1px solid #ced9e8;border-radius:7px;padding:6px;background:white;font-weight:600;}
.preview-field-label{font-size:11px;font-weight:700;color:#4b607a;}
.preview-field input,.preview-field textarea{background:transparent;border:0;box-shadow:none;width:100%;min-height:32px;padding:3px 5px;font-size:14px;line-height:1.4;resize:vertical;}
.preview-field:focus-within{outline:2px solid #2d6bcd;}
.preview-field.preview-missing,.preview-signature.preview-missing{background:#fff2c8;border-color:#e6ba43;}
.preview-field.preview-missing input,.preview-field.preview-missing textarea{background:#fff8e4;}
.preview-day-row{border-top:1px solid #aabed6;padding:10px 0 12px;}
.preview-day-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:7px;color:#174374;}
.preview-day-heading span{font-size:12px;}
.preview-day-fields{display:grid;gap:8px;}
.preview-time-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}
.preview-site-fields,.preview-descriptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
.preview-day-idle .preview-day-heading{opacity:.7;}
.preview-total{font-size:17px;font-weight:800;border-top:2px solid #244c83;padding:12px 0;}
.preview-signature{cursor:pointer;border:1px solid #b5c9e4;border-radius:9px;padding:12px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:14px;}
.sheet-preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;}
.sheet-preview-actions .button{min-height:52px;}
@media(max-width:600px){.sheet-preview-dialog{padding:10px;width:98vw;max-height:96dvh;}.preview-paper{padding:10px;}.preview-meta{gap:6px;}.preview-time-fields{grid-template-columns:repeat(2,minmax(0,1fr));}.preview-site-fields,.preview-descriptions{gap:5px;}.preview-field input,.preview-field textarea{font-size:16px;}.sheet-preview-actions .button{font-size:12px;padding:9px 5px;}}


/* Main weekly timesheet: yellow-cell first editing, compact day accordion. */
#premiumDays[hidden]{display:none!important}
.main-sheet-tip{font-size:13px;color:#354c68;margin:5px 0 12px;line-height:1.5}
.main-missing-dot{display:inline-block;width:12px;height:12px;border-radius:3px;background:#ffe49a;border:1px solid #d6af46;vertical-align:-1px}
#sheetMainBody .main-sheet-paper{padding:12px;border-radius:12px;border-color:#bdcee4}
#sheetMainBody .preview-meta{margin-bottom:13px}
#sheetMainBody .main-day-card{margin:9px 0;border:1px solid #c7d8ec;border-radius:10px;padding:0;overflow:visible}
#sheetMainBody .main-day-card>summary{cursor:pointer;list-style:none;min-height:58px;padding:12px;display:flex;justify-content:space-between;align-items:center;gap:8px;background:#edf4ff;border-radius:10px;font-weight:750}
#sheetMainBody .main-day-card>summary::-webkit-details-marker{display:none}
#sheetMainBody .main-day-card[open]>summary{border-radius:10px 10px 0 0;border-bottom:1px solid #c7d8ec}
#sheetMainBody .main-day-card>summary::before{content:'▸';color:#1d5dd7;font-size:14px}
#sheetMainBody .main-day-card[open]>summary::before{content:'▾'}
#sheetMainBody .main-day-card>summary strong{flex:1}
#sheetMainBody .main-day-card .preview-day-fields{padding:12px;gap:12px}
#sheetMainBody .preview-field{position:relative;padding:7px;gap:5px}
#sheetMainBody .preview-field input,#sheetMainBody .preview-field textarea{min-height:43px;font-size:16px}
#sheetMainBody .preview-field textarea{min-height:82px}
#sheetMainBody .preview-field-label{font-size:12px}
#sheetMainBody .preview-time-fields{gap:10px}
#sheetMainBody .preview-site-fields,#sheetMainBody .preview-descriptions{gap:10px}
#sheetMainBody .preview-day-idle{opacity:1}
#sheetMainBody .preview-day-idle>summary{background:#f3f5f9;color:#52657d}
#sheetMainBody .preview-day-idle .main-day-status{color:#6f7c90}
#sheetMainBody .main-day-status{font-size:13px;white-space:nowrap}
#sheetMainBody .main-day-status small{display:block;font-size:11px;color:#a26500}
#sheetMainBody .main-day-status small.idle-label{color:#697a8b}
#sheetMainBody .preview-signature{margin:9px 0 2px}
.legacy-job-tools{margin:12px 0;border:1px solid #d0dded;border-radius:11px;padding:12px}
.legacy-job-tools>summary{font-size:14px;font-weight:750;cursor:pointer;color:#315782}
.job-pick-list{display:grid;gap:2px;padding:4px 0;max-height:210px;overflow-y:auto;background:#fff;border:1px solid #bbcee5;border-radius:8px;margin-top:5px;box-shadow:0 7px 17px #10233b16}
.job-pick-list[hidden]{display:none!important}
.job-pick-item{background:white;border:0;border-bottom:1px solid #edf2f8;text-align:left;color:#223f63;font-size:14px;line-height:1.35;padding:10px;min-height:42px;cursor:pointer}
.job-pick-item:last-child{border-bottom:0}
.job-pick-item:focus,.job-pick-item:hover{background:#eaf2ff}
@media(max-width:600px){
 #sheetMainBody .main-sheet-paper{padding:9px}
 #sheetMainBody .preview-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #sheetMainBody .preview-meta .preview-field:nth-child(3),#sheetMainBody .preview-meta .preview-field:nth-child(4){grid-column:1/-1}
 #sheetMainBody .preview-time-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #sheetMainBody .preview-descriptions{grid-template-columns:1fr}
 #sheetMainBody .main-day-card .preview-day-fields{padding:10px;gap:10px}
 #sheetMainBody .main-day-card>summary{min-height:56px}
 #sheetMainBody .preview-field input,#sheetMainBody .preview-field textarea{font-size:16px}
}
/* The main editable sheet already has these fields, so don't display duplicate fields above it. */
.spv-premium-week > .spv-week-meta{display:none!important}

/* One foreman field; each workday owns its site and town. */
.spv-week-meta{grid-template-columns:minmax(0,1fr)!important}
.preview-site-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.preview-site-fields .preview-field:last-child{grid-column:1/-1}

/* Two-step flow, mobile and desktop. First page = basics/photos; second = editable sheet. */
.trade-hidden{display:none!important}
.basics .grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.foreman-basic{display:flex}
@media(min-width:601px){
 body[data-desktop-step="photos"] .workspace .draft-card{display:none!important}
 body[data-desktop-step="week"] .workspace .draft-card{display:block!important}
 body[data-desktop-step="photos"] .workspace .work-card{display:block!important}
 .work-card .analyse-actions{display:flex;flex-direction:row;gap:10px}
 .work-card #analyse{min-width:210px}
}
@media(max-width:600px){
 .basics .grid.three{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important}
 .basics .grid.three>label:first-child{grid-column:1/-1}
 .basics .grid.three>.foreman-basic{grid-column:1/-1}
 body[data-mobile-step="photos"] .basics,
 body[data-mobile-step="photos"] .details-fields,
 body[data-mobile-step="photos"] .notes-field,
 body[data-mobile-step="photos"] #analyse,
 body[data-mobile-step="photos"] #analysisStatus,
 body[data-mobile-step="photos"] #review{display:block!important}
 body[data-mobile-step="photos"] .basics{display:block!important}
 body[data-mobile-step="photos"] .details-fields{display:grid!important}
 body[data-mobile-step="photos"] #analyse{display:flex!important}
 body[data-mobile-step="photos"] #review[hidden]{display:none!important}
 body[data-mobile-step="photos"] #days{display:none!important}
 body[data-mobile-step="photos"] .hours-box,
 body[data-mobile-step="photos"] .ai-notice,
 body[data-mobile-step="photos"] .ai-explanation,
 body[data-mobile-step="photos"] #backToPhotos{display:none!important}
 body[data-mobile-step="photos"] .hero{display:none!important}
 body[data-mobile-step="photos"] .basics{margin:10px 0 12px}
 body[data-mobile-step="photos"] .upload-box{margin:12px 0}
 body[data-mobile-step="photos"] .work-card{min-height:auto!important}
 body[data-mobile-step="photos"] .analyse-actions{position:static!important;display:block!important;margin:9px 0 0!important;padding:0!important;background:none!important;box-shadow:none!important;border:none!important;}
 body[data-mobile-step="photos"] #analyse{min-height:48px!important}
 body[data-mobile-step="photos"] .notes-field textarea{min-height:72px!important;height:72px!important}
 body[data-mobile-step="photos"] .wizard-track i{width:50%}
 body[data-mobile-step="week"] .wizard-track i{width:100%}
 body[data-mobile-step="week"] .draft-card{display:block!important}
 .foreman-signature-panel{margin:10px 0 14px}
 .export-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important}
 .export-actions .button{min-height:54px;font-size:14px}
}
@media(min-width:601px){.export-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.export-actions .button{min-height:54px}}
.foreman-signature-panel{border:1px solid #bcd0e6;border-radius:10px;overflow:hidden;background:#f4f8ff}
.foreman-signature-panel>summary{cursor:pointer;padding:13px 14px;font-weight:800;color:#224e84}
.foreman-signature-panel .signature-inside{padding:12px;background:white}
.foreman-signature-panel canvas{width:100%;touch-action:none;display:block;max-height:140px;background:#fff;border:1px solid #b4c8e1;border-radius:8px}

/* Two-step workflow: balanced first page, editable sheet as the only second page. */
@media(min-width:601px){
 body[data-desktop-step="week"] .basics,body[data-desktop-step="week"] .hero{display:none!important}
 body[data-desktop-step="week"] .workspace .draft-card{display:block!important}
 body[data-desktop-step="week"] .workspace .work-card{display:none!important}
 .basics>.template-controls{margin-top:17px;max-width:680px}
}
.basics>.template-controls{margin-top:16px}
.basics>.template-controls label{flex:1;min-width:0}
.basics>.template-controls select{min-height:49px}
.foreman-basic{min-width:0}
.foreman-signature-panel{margin:14px 0 18px}
.foreman-signature-panel>summary{min-height:49px;display:list-item}
.foreman-signature-panel .signature-inside{padding:12px}
.export-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.export-actions .button{width:100%;min-height:56px;font-size:15px}
@media(max-width:600px){
 .basics .grid.three{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .basics .grid.three>.foreman-basic{grid-column:1/-1}
 .basics>.template-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
 .basics>.template-controls .button{min-width:100px;padding:10px}
 .preview-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .preview-meta .preview-field:nth-child(3){grid-column:1/-1}
 .draft-card .section-title{margin-bottom:12px}
 .export-actions .button{min-height:58px!important;font-size:15px!important;padding:10px 12px!important}
}

/* Only Monday is entered on the first screen; the full week lives in Step 2. */
#days{display:none!important}
@media(max-width:600px){
 #sheetMainBody .preview-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #sheetMainBody .preview-meta .preview-field{grid-column:auto!important}
 .foreman-signature-panel canvas{min-height:125px}
}

/* Final two-step flow: primary continue after optional photo/AI tools. */
.step-one-next{margin-top:20px;min-height:56px;font-size:16px;width:100%}
#sheetMainBody .preview-meta{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#sheetMainBody .preview-meta .preview-field{min-width:0}
@media(max-width:600px){
  .step-one-next{min-height:54px;margin-top:16px}
  #sheetMainBody .preview-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #sheetMainBody .preview-meta .preview-field:nth-child(3){grid-column:1/-1!important}
  .export-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .export-actions .button{min-height:56px!important}
}


/* Clean two-step layout (single final source of truth). */
body[data-mobile-step="week"] .basics,body[data-mobile-step="week"] .work-card{display:none!important}
body[data-desktop-step="week"] .basics,body[data-desktop-step="week"] .work-card,body[data-desktop-step="week"] .hero{display:none!important}
body[data-mobile-step="photos"] .draft-card,body[data-desktop-step="photos"] .draft-card{display:none!important}
body[data-mobile-step="week"] .draft-card,body[data-desktop-step="week"] .draft-card{display:block!important}
.basics .grid.three{display:flex!important;flex-direction:column;gap:15px!important}
.basics .grid.three>label,.basics .grid.three>div{width:100%;min-width:0}
.week-choice-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}
.week-choice-row label{min-width:0;display:flex;flex-direction:column;gap:6px;font-size:13px}
.week-choice-row select{width:100%;min-width:0;height:53px;min-height:53px;padding:9px 31px 9px 11px;font-size:14px;font-weight:650;text-overflow:ellipsis}
.week-picker-cell{position:relative;min-width:0}
.week-picker-cell label{width:100%}
.week-picker-cell select{padding-right:58px;appearance:none;-webkit-appearance:none;font-weight:750}
.week-arrows{position:absolute;right:6px;bottom:6px;display:flex;gap:4px}
.week-arrow{border:1px solid #b8cdec;background:#e9f2ff;color:#1e55a0;border-radius:7px;min-width:22px;height:41px;font-size:23px;font-weight:750;padding:0;line-height:1}
.foreman-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.foreman-row>label{min-width:0}
.foreman-row input{height:53px}
.foreman-row .foreman-signature-panel{margin:0;min-width:0;align-self:start}
.foreman-row .foreman-signature-panel>summary{min-height:53px;display:flex;align-items:center;padding:12px 10px;font-size:13px}
.foreman-row .foreman-signature-panel .signature-inside{padding:7px}
.foreman-row .foreman-signature-panel canvas{height:95px;min-height:95px;max-height:95px}
#applyHoursTemplate,.work-card .notes-field,.work-card .hours-box,.work-card .ai-notice,.work-card .ai-explanation,#days,.legacy-job-tools,.draft-card>.section-title,.timesheet-title,.main-sheet-tip{display:none!important}
.work-card .section-title{margin-bottom:13px}
.work-card .section-title .eyebrow{color:#2665af}
.work-card .section-title h2{font-size:20px}
#analyse[hidden],#review[hidden]{display:none!important}
.work-card .analyse-actions{position:static!important;display:block!important;margin:10px 0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.work-card #analyse{width:100%;min-height:50px;font-size:14px}
#photoContinue{margin:12px 0 0;min-height:56px;font-size:16px}
body .workspace{display:block!important;max-width:none!important;width:100%;margin:0 auto}
body .draft-card{position:static!important;max-width:none!important;width:100%;border:0!important;border-radius:0!important;padding:4px 0 18px!important;box-shadow:none!important;background:transparent!important}
body[data-desktop-step="week"] main,body[data-mobile-step="week"] main{max-width:1600px!important;padding-left:clamp(12px,2vw,34px)!important;padding-right:clamp(12px,2vw,34px)!important}
body[data-desktop-step="week"] .workspace,body[data-mobile-step="week"] .workspace{max-width:100%!important}
.draft-card .spv-premium-week{max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#sheetMainBody .main-sheet-paper{background:transparent!important;border:0!important;padding:0!important;max-width:none!important}
#sheetMainBody .main-day-card{margin:10px 0 13px;border:1px solid #b7cdea;border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 5px 18px #1b4a810c}
#sheetMainBody .main-day-card>summary{background:#dceaff!important;color:#174b8a!important;min-height:68px!important;padding:15px 17px!important;border-radius:0!important;gap:12px;font-size:17px;font-weight:800}
#sheetMainBody .main-day-card[open]>summary{background:#c8defc!important;border-bottom:1px solid #aac8ed}
#sheetMainBody .main-day-card .preview-day-fields{padding:16px!important}
#sheetMainBody .preview-field.preview-missing{background:#fff2c8!important;border:1px solid #e0b957!important}
#sheetMainBody .preview-field textarea{min-height:93px}
#sheetMainBody .preview-time-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#sheetMainBody .preview-site-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#sheetMainBody .preview-site-fields .preview-field:last-child{grid-column:auto}
#sheetMainBody .preview-descriptions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.draft-card .back-to-basics{display:block;width:100%;min-height:54px;margin:18px 0 14px}
.draft-card .export-actions{display:flex!important;flex-direction:column!important;gap:11px!important;margin:14px 0!important}
.draft-card .export-actions .button{width:100%!important;min-height:58px!important;font-size:16px!important;padding:13px!important}
.draft-card #sendPDF{order:1}
.draft-card #downloadPDF{order:2}
.draft-card .extra-options{margin-top:8px}
@media(min-width:701px){body[data-desktop-step="week"] .workspace{width:100%!important} #sheetMainBody .preview-time-fields{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){
 .week-choice-row{gap:9px}
 .week-choice-row select{font-size:13px;height:52px;min-height:52px;padding-left:7px}
 .week-picker-cell select{padding-right:53px}
 .foreman-row{gap:9px}
 .foreman-row .foreman-signature-panel>summary{font-size:12px;padding:8px}
 .foreman-row .foreman-signature-panel canvas{height:80px;min-height:80px;max-height:80px}
 body[data-mobile-step="photos"] .basics{display:block!important}
 body[data-mobile-step="photos"] .details-fields{display:grid!important}
 body[data-mobile-step="photos"] .work-card{display:block!important}
 #sheetMainBody .preview-time-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #sheetMainBody .preview-site-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #sheetMainBody .preview-site-fields .preview-field:last-child{grid-column:1/-1!important}
 #sheetMainBody .preview-descriptions{grid-template-columns:1fr!important}
 #sheetMainBody .main-day-card>summary{font-size:15px;min-height:61px!important;padding:13px!important}
 #sheetMainBody .main-day-card .preview-day-fields{padding:11px!important}
}

/* Accessibility and previous mobile-rule conflict fixes */
body[data-mobile-step="photos"] #analyse[hidden],body[data-desktop-step="photos"] #analyse[hidden],body[data-mobile-step="photos"] #review[hidden]{display:none!important}
body[data-mobile-step="week"] .mobile-wizard{display:block!important}
body[data-desktop-step="week"] .mobile-wizard{display:block!important;max-width:none!important}
body[data-mobile-step="week"] .draft-card .spv-week-total,body[data-desktop-step="week"] .draft-card .spv-week-total{margin-top:14px}
body[data-mobile-step="photos"] .work-card .notes-field{display:none!important}
.draft-card .extra-options>summary{display:flex;align-items:center;justify-content:center;text-align:center;min-height:58px;border:1px solid #b8cdec;border-radius:11px;background:#eff5ff;color:#1f528f;font-size:16px;font-weight:750;cursor:pointer;padding:12px}
.draft-card .extra-options>summary span{margin-left:8px}


/* Critical layout hotfix — remove legacy conflicting layouts. */
html,body{overflow-x:hidden!important}
*,*::before,*::after{box-sizing:border-box}
body .basics,body .work-card{max-width:900px;width:100%;margin-left:auto;margin-right:auto}
body .basics .grid.three{display:flex!important;flex-direction:column!important;gap:17px!important;min-width:0}
body .basics .grid.three>label{display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important;width:100%!important}
body .basics input,body .basics select{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;min-height:54px!important;height:54px!important;border-radius:11px!important;padding:10px 12px!important;font-size:16px!important}
body .basics .week-choice-row,body .basics .foreman-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;align-items:start!important}
body .basics .week-choice-row>label,body .basics .week-picker-cell,body .basics .foreman-row>label{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;gap:7px!important;font-size:14px!important;overflow:visible!important}
body .basics .week-choice-row select{font-size:13px!important;padding-left:9px!important;padding-right:35px!important;min-height:54px!important;height:54px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body .basics .week-picker-cell{position:relative!important}
body .basics .week-picker-cell select{padding-right:55px!important}
body .basics .week-arrows{position:absolute!important;right:4px!important;bottom:5px!important;display:flex!important;gap:3px!important;z-index:2}
body .basics .week-arrow{min-width:22px!important;width:22px!important;height:42px!important;padding:0!important;border-radius:7px!important;font-size:21px!important;line-height:1!important}
body .basics .foreman-signature-panel{display:block!important;min-width:0!important;width:100%!important;margin:0!important;border-radius:11px!important}
body .basics .foreman-signature-panel>summary{display:flex!important;align-items:center!important;width:100%!important;min-height:54px!important;padding:10px!important;font-size:13px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
body .basics .foreman-signature-panel .signature-inside{padding:8px!important}
body .basics .foreman-signature-panel canvas{width:100%!important;min-height:95px!important;height:95px!important}
body .basics #clearForemanSignature{width:100%!important;min-height:44px!important;padding:7px!important;font-size:12px!important}
body .work-card .analyse-actions{display:block!important;position:static!important;box-shadow:none!important;border:0!important;padding:0!important;margin:10px 0!important;background:transparent!important}
body #backToPhotos{display:none!important}
body #analyse[hidden]{display:none!important}
body #analyse,body #photoContinue{display:flex!important;align-items:center!important;justify-content:center!important;max-width:100%!important;width:100%!important;min-height:55px!important;margin:12px 0 0!important;font-size:15px!important;padding:12px!important}
body #review[hidden]{display:none!important}
body .mobile-wizard.compact-steps{display:none!important}
body .hero{padding-bottom:18px!important}
body .basics{margin-bottom:14px!important}
body .work-card{margin-top:0!important}
body .work-card .section-title h2{font-size:20px!important}
body .work-card .upload-box{margin-top:16px}
body #days,body #applyHoursTemplate,body .hours-box,body .notes-field,body .legacy-job-tools{display:none!important}
body[data-mobile-step="photos"] .draft-card,body[data-desktop-step="photos"] .draft-card{display:none!important}
body[data-mobile-step="week"] .draft-card,body[data-desktop-step="week"] .draft-card{display:block!important}
body[data-mobile-step="week"] .basics,body[data-mobile-step="week"] .work-card,body[data-mobile-step="week"] .hero,
body[data-desktop-step="week"] .basics,body[data-desktop-step="week"] .work-card,body[data-desktop-step="week"] .hero{display:none!important}
body[data-mobile-step="week"] .workspace,body[data-desktop-step="week"] .workspace{display:block!important;width:100%!important;max-width:100%!important}
body[data-mobile-step="week"] .draft-card,body[data-desktop-step="week"] .draft-card{width:100%!important;max-width:none!important;margin:0!important;padding:6px 0 18px!important}
body .draft-card .export-actions{display:flex!important;flex-direction:column!important;gap:12px!important}
body .draft-card .export-actions button,body .draft-card .back-to-basics,body .draft-card .extra-options>summary{min-height:56px!important;width:100%!important;font-size:16px!important}
body .draft-card .spv-week-total{margin-top:18px!important}
@media(max-width:600px){
 body main{padding:0 14px!important}
 body .basics,body .work-card{padding:19px 15px!important}
 body .basics .week-choice-row,body .basics .foreman-row{gap:10px!important}
 body .basics .week-choice-row>label,body .basics .week-picker-cell>label,body .basics .foreman-row>label{font-size:13px!important}
 body .basics .week-choice-row select{font-size:12px!important}
 body .basics .foreman-signature-panel>summary{font-size:12px!important}
 body .photo-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body .photo-actions .button{min-height:52px!important;min-width:0!important;padding:9px!important;font-size:13px!important}
 body #sheetMainBody .preview-time-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body #sheetMainBody .preview-descriptions{grid-template-columns:1fr!important}
}

/* First page refined: two simple dropdowns, matching foreman fields, large signature dialog. */
body .basics .week-arrows, body .basics .week-arrows[hidden]{display:none!important}
body .basics .week-picker-cell select{padding-right:12px!important}
body .basics .week-choice-row select{appearance:none!important;-webkit-appearance:none!important;background-image:none!important;padding-right:10px!important;text-overflow:ellipsis!important;font-size:13px!important;cursor:pointer}
body .basics .week-choice-row select::-ms-expand{display:none}
body .basics .week-choice-row>label,body .basics .week-picker-cell>label{display:flex;flex-direction:column;min-width:0;gap:7px}
body .basics .foreman-row{align-items:end!important}
body .basics .foreman-row .foreman-basic,body .basics .foreman-row .foreman-signature-launch{min-width:0;width:100%;margin:0!important}
body .basics .foreman-signature-launch{height:54px!important;min-height:54px!important;display:flex;align-items:center;justify-content:space-between;gap:6px;text-align:left;border:1px solid #b6c5d7;border-radius:11px;background:#f5f9ff;color:#25456e;padding:8px 12px;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:none}
body .basics .foreman-signature-launch span:last-child{font-size:11px;white-space:nowrap;color:#5574a0;font-weight:600}
body .work-card .details-fields,body .work-card .details-fields[hidden],body .work-card>.section-title[hidden]{display:none!important}
body .work-card .upload-box{margin-top:0!important}
body .work-card{padding-top:18px!important}
.spv-signature-dialog{border:0;border-radius:20px;box-shadow:0 20px 80px #081e4366;background:#fff;color:#1e3558;width:min(94vw,760px);max-height:90dvh;padding:22px;overflow:auto}
.spv-signature-dialog::backdrop{background:#091c3f99;backdrop-filter:blur(3px)}
.signature-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px}
.signature-dialog-head h2{font-size:22px;margin:0}
.signature-dialog-head button{width:42px;height:42px;border:1px solid #cbd8e8;border-radius:10px;background:#f5f8ff;font-size:21px}
.spv-signature-dialog>p{margin:12px 0;color:#50637c;font-size:14px}
.spv-signature-pad{width:100%;border:2px dashed #9ab6d9;border-radius:14px;background:#fff;overflow:hidden}
.spv-signature-pad canvas{display:block;width:100%!important;height:clamp(180px,28vh,260px)!important;max-height:none!important;min-height:180px!important;touch-action:none;cursor:crosshair}
.signature-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.signature-dialog-actions .button{min-height:55px;min-width:0;width:100%}
@media(max-width:600px){body .basics .foreman-signature-launch{padding:6px 9px;font-size:12px}body .basics .foreman-signature-launch span:last-child{font-size:10px}body .basics .week-choice-row select{font-size:12px!important;padding-left:8px!important}.spv-signature-dialog{padding:16px;width:95vw}}

/* Monday selector: consistent two-line selectable date rows, accessible large touch targets. */
body .basics .foreman-row{display:block!important;width:100%!important}
body .basics .foreman-row .foreman-basic{display:flex!important;width:100%!important;flex-direction:column!important}
body .basics .foreman-row input{min-height:54px!important;width:100%!important}
body .basics .week-picker-cell select#week{display:none!important}
body .basics .monday-choice-trigger{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-height:54px!important;padding:10px 12px!important;border:1px solid #b6c5d7!important;border-radius:11px!important;background:#fff!important;color:#274367!important;text-align:left!important;font:650 13px/1.25 inherit!important;cursor:pointer!important}
.spv-monday-dialog{width:min(92vw,440px);max-height:82dvh;padding:16px;border:0;border-radius:18px;background:#fff;color:#203955;box-shadow:0 20px 75px #0a25555e;overflow:hidden}
.spv-monday-dialog::backdrop{background:#0a193c99}
.monday-dialog-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;gap:12px}
.monday-dialog-head h2{font-size:19px;margin:0}
.monday-dialog-head button{min-width:42px;min-height:42px;border-radius:10px;border:1px solid #d0dbeb;background:white;font-size:19px}
.monday-options{display:flex;flex-direction:column;gap:6px;max-height:calc(82dvh - 105px);overflow-y:auto;overscroll-behavior:contain;padding:2px 3px 8px}
.monday-option{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:100%;min-height:70px;padding:11px 17px;border:1px solid #cfdded;background:#f8faff;border-radius:12px;text-align:left;color:#234169;cursor:pointer;line-height:1.3}
.monday-option .monday-day{font-size:17px;font-weight:750}
.monday-option .monday-month{font-size:15px;font-weight:550;color:#56718f}
.monday-option.monday-current{border:2px solid #3264dd;background:#e9f0ff}
.timesheet-signoff{margin:15px 0 20px;padding:15px;border:1px solid #c8d7e9;border-radius:14px;background:#f8fbff;display:flex;flex-direction:column;gap:8px}
.timesheet-signoff>label{font-size:16px;font-weight:750;color:#24486e}
.timesheet-signoff .foreman-signature-launch{display:flex;align-items:center;justify-content:center;width:100%;min-height:58px;padding:12px;border:1px solid #a9bedc;border-radius:11px;background:#fff;color:#2458a8;font-size:16px;font-weight:750;cursor:pointer}
.timesheet-signoff .foreman-signature-launch:focus-visible{outline:3px solid #4778de;outline-offset:2px}

/* Brand clarity: readable single-line Photo Timesheet alongside SPV. */
header .brand{gap:12px;min-width:0;flex-shrink:1}
header .brand b{flex:none;white-space:nowrap}
header .brand>span{max-width:none!important;white-space:nowrap!important;letter-spacing:-.65px!important;line-height:1.1!important;font-weight:800!important;font-size:clamp(21px,2.25vw,30px)!important;padding-left:12px!important;min-width:0;text-transform:none!important}
@media(max-width:600px){
 header{gap:7px!important;padding-left:12px!important;padding-right:12px!important}
 header .brand{gap:6px!important}
 header .brand b{font-size:28px!important}
 header .brand b span{font-size:23px!important}
 header .brand>span{font-size:clamp(15px,4.2vw,19px)!important;letter-spacing:-.5px!important;padding-left:7px!important}
 header .header-actions{flex-shrink:0}
 header .header-about{font-size:12px!important;padding:8px 10px!important}
}
@media(max-width:360px){header .brand b{font-size:26px!important}header .brand>span{font-size:14px!important}}

/* 2026-11-06: real PDF preview and consistently sized More options controls */
.pdf-file-preview{width:min(1120px,98vw);max-height:96dvh;padding:14px!important;}
.pdf-file-preview .pdf-frame-wrap{height:min(72dvh,850px);min-height:330px;background:#e2e8f0;border:1px solid #c2d0e1;border-radius:10px;overflow:hidden;margin:12px 0;}
.pdf-file-preview iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.pdf-preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.pdf-preview-actions .button{min-height:54px;width:100%;font-size:15px}
.pdf-preview-actions #editSheetPreview{grid-column:1/-1}
.draft-card .export-actions #previewPDF{width:100%;min-height:59px;font-size:17px}
.draft-card .extra-options-inner{display:grid!important;gap:10px!important}
.draft-card .extra-options-inner>*{display:flex!important;justify-content:center;align-items:center;width:100%!important;min-height:54px!important;box-sizing:border-box;font-size:15px!important;border-radius:11px;text-align:center}
.work-draft-dialog{width:min(500px,95vw);border:0;border-radius:17px;padding:22px;color:#142944;box-shadow:0 25px 70px #14294455}
.work-draft-dialog label{display:block;margin:12px 0;font-weight:700}
.work-draft-dialog select,.work-draft-dialog textarea{display:block;width:100%;margin-top:7px;box-sizing:border-box;border:1px solid #b3c8df;border-radius:9px;padding:12px;font:inherit}
.work-draft-buttons{display:grid;gap:10px}.work-draft-buttons button{min-height:52px}
@media(max-width:600px){.pdf-file-preview{padding:8px!important}.pdf-file-preview .pdf-frame-wrap{height:67dvh;min-height:300px}.pdf-preview-actions .button{font-size:14px!important;padding:10px 5px!important}}

/* Fixed one-hour unpaid break: editable site occupies the former break position. */
#sheetMainBody .preview-time-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
#sheetMainBody .preview-site-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.draft-card .export-actions{margin:4px 0 12px!important;}
.draft-card .back-to-basics{display:flex;align-items:center;justify-content:center;margin:0 0 12px!important;}
.draft-card .extra-options{scroll-margin-top:18px;}
@media(max-width:600px){#sheetMainBody .preview-time-fields,#sheetMainBody .preview-site-fields{gap:10px!important;}}

/* Reliable timesheet preview for iPhone and desktop: never an empty PDF iframe. */
.pdf-file-preview .pdf-frame-wrap{height:min(69dvh,850px);min-height:310px;overflow:auto!important;background:#eef3f9;padding:12px;box-sizing:border-box;-webkit-overflow-scrolling:touch;}
.pdf-file-preview #pdfPreviewFrame[hidden]{display:none!important}
.pdf-readable-preview{width:100%;min-width:0;}
.pdf-readable-paper{background:#fff;border:1px solid #b7c6d5;padding:18px;color:#142538;box-shadow:0 2px 10px #1a365014;max-width:100%;box-sizing:border-box}
.pdf-readable-paper h3{text-align:center;font-size:17px;letter-spacing:.5px;margin:4px 0 13px}
.pdf-readable-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
.pdf-readable-meta-item{display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere;font-size:13px}
.pdf-readable-meta-item strong{font-size:11px;color:#60748a}
.pdf-readable-table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.pdf-readable-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;line-height:1.4}
.pdf-readable-table th,.pdf-readable-table td{border:1px solid #b7c6d5;padding:7px 5px;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}
.pdf-readable-table th{background:#e9f0f9;font-size:10px}.pdf-readable-table th:nth-child(1){width:10%}
.pdf-readable-idle{color:#8996a5;background:#fafbfc}
.pdf-readable-totals{text-align:right;font-size:13px;font-weight:700;margin:12px 0}
.pdf-readable-signature{display:flex;gap:14px;align-items:center;border-top:1px solid #b7c6d5;padding-top:9px;font-size:12px}
.pdf-readable-signature img{display:block;max-width:150px;max-height:55px;object-fit:contain}
.pdf-preview-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media(max-width:600px){.pdf-file-preview .pdf-frame-wrap{padding:5px;height:65dvh}.pdf-readable-paper{padding:9px}.pdf-readable-paper h3{font-size:14px}.pdf-readable-meta-item{font-size:11px}.pdf-readable-table{min-width:620px}.pdf-readable-meta{gap:5px}}

/* Uniform six-field daily layout — 3 rows × 2 columns on every screen. */
#sheetMainBody .preview-time-fields{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  column-gap:12px!important;
  row-gap:12px!important;
  align-items:stretch;
}
#sheetMainBody .preview-time-fields>.preview-field{
  grid-column:auto!important;
  min-width:0;
  min-height:104px;
  height:100%;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
#sheetMainBody .preview-time-fields>.preview-field input{
  width:100%;min-width:0;box-sizing:border-box;
}
@media(max-width:600px){
  #sheetMainBody .preview-time-fields{column-gap:10px!important;row-gap:10px!important}
  #sheetMainBody .preview-time-fields>.preview-field{min-height:99px}
}

/* Compact daily cells: keep the original input height; only use a 2 x 3 layout. */
#sheetMainBody .preview-time-fields{column-gap:10px!important;row-gap:9px!important;align-items:start!important}
#sheetMainBody .preview-time-fields>.preview-field{min-height:0!important;height:auto!important;justify-content:flex-start!important;padding:7px!important;gap:4px!important}
#sheetMainBody .preview-time-fields>.preview-field input{min-height:43px!important;height:43px!important;margin:0!important;padding:8px 9px!important;font-size:16px!important}
#sheetMainBody .preview-time-fields>.preview-field .preview-field-label{line-height:1.3!important;min-height:16px!important}
#sheetMainBody .main-day-card>summary{scroll-margin-top:12px}

/* Photo day selector: present above the camera area on the first step. */
body .work-card .photo-day-picker{display:block!important;margin:4px 0 14px;padding:0;}
body .work-card .photo-day-picker-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px;font-size:13px;color:#284f80;}
body .work-card .photo-day-picker-heading strong{font-size:14px;font-weight:800;}
body .work-card #days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:0!important;width:100%;}
body .work-card #days .photo-day-button{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:6px 0;font-size:12px;font-weight:800;border-radius:10px;}
body .work-card #days .photo-day-button[aria-pressed="true"]{background:#1d5dd7;color:white;}
body .work-card #days .photo-day-count{position:absolute;top:-6px;right:-4px;border-radius:12px;background:#14643c;color:white;font-weight:800;font-size:10px;line-height:18px;min-width:18px;height:18px;text-align:center;border:2px solid white;}
@media(max-width:600px){body .work-card #days{gap:4px!important;}body .work-card #days .photo-day-button{min-height:44px!important;font-size:11px!important;padding:5px 0!important;}}
/* Keep the expanded More options menu neat and consistent on all devices. */
body .draft-card .extra-options-inner{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding:12px!important;}
body .draft-card .extra-options-inner>*{width:100%!important;min-height:54px!important;margin:0!important;padding:12px 14px!important;box-sizing:border-box;border-radius:11px!important;font-size:15px!important;line-height:1.35!important;font-weight:750!important;text-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important;}
body .draft-card .extra-options-inner .danger{background:#fff4f0;color:#8d3633;}

/* Six compact daily inputs: equal-height two-column layout on mobile/desktop. */
#sheetMainBody .preview-time-fields{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  align-items:stretch!important;
}
#sheetMainBody .preview-time-fields>.preview-field{
  height:63px!important;
  min-height:63px!important;
  max-height:63px!important;
  padding:5px 8px!important;
  gap:2px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  overflow:hidden;
}
#sheetMainBody .preview-time-fields>.preview-field .preview-field-label{
  font-size:11px!important;
  min-height:0!important;
  line-height:14px!important;
  white-space:nowrap;
}
#sheetMainBody .preview-time-fields>.preview-field input{
  min-height:30px!important;
  height:30px!important;
  max-height:30px!important;
  padding:1px 4px!important;
  margin:0!important;
  font-size:16px!important; /* Avoid iPhone Safari input zoom */
  line-height:1.2!important;
  box-sizing:border-box!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#sheetMainBody .main-day-card .preview-day-fields{padding:9px!important;gap:9px!important}

/* Mobile first-step height trim: retain the same layout and minimum touch targets. */
@media (max-width:600px){
  body[data-mobile-step="photos"] .basics,
  body[data-mobile-step="photos"] .work-card{padding:13px 14px!important;}
  body[data-mobile-step="photos"] .basics .section-title{margin-bottom:12px!important;}
  body[data-mobile-step="photos"] .basics .grid.three{gap:10px!important;}
  body[data-mobile-step="photos"] .basics .grid.three>label,
  body[data-mobile-step="photos"] .basics .week-choice-row>label,
  body[data-mobile-step="photos"] .basics .week-picker-cell>label,
  body[data-mobile-step="photos"] .basics .foreman-row>label{gap:5px!important;}
  body[data-mobile-step="photos"] .basics input,
  body[data-mobile-step="photos"] .basics select,
  body[data-mobile-step="photos"] .basics .monday-choice-trigger{height:48px!important;min-height:48px!important;}
  body[data-mobile-step="photos"] .basics{margin-bottom:10px!important;}
  body[data-mobile-step="photos"] .work-card .photo-day-picker{margin:1px 0 9px!important;}
  body[data-mobile-step="photos"] .work-card .photo-day-picker-heading{margin-bottom:5px!important;}
  body[data-mobile-step="photos"] .work-card .upload-box{padding:12px 11px 9px!important;margin:0!important;}
  body[data-mobile-step="photos"] .work-card .upload-box>svg{height:27px;width:27px;}
  body[data-mobile-step="photos"] .work-card .upload-box h3{margin:5px 0!important;font-size:16px!important;}
  body[data-mobile-step="photos"] .work-card .upload-box p{margin:4px 0 9px!important;font-size:12px!important;}
  body[data-mobile-step="photos"] .work-card .photo-actions .button{min-height:46px!important;}
  body[data-mobile-step="photos"] #photoContinue{min-height:50px!important;margin-top:9px!important;padding:9px 12px!important;}
}

/* Step 2: more of the collapsed week visible without scrolling. */
#sheetMainBody .main-day-card{margin:6px 0 8px!important;border-radius:12px!important;}
#sheetMainBody .main-day-card>summary{min-height:53px!important;padding:10px 13px!important;gap:8px!important;}
#sheetMainBody .main-day-card .preview-day-fields{padding:8px!important;gap:8px!important;}
body[data-mobile-step="week"] .draft-card,body[data-desktop-step="week"] .draft-card{padding-top:2px!important;}
body[data-mobile-step="week"] .mobile-wizard{margin-top:5px!important;margin-bottom:7px!important;}
@media (max-width:600px){
 #sheetMainBody .main-day-card>summary{min-height:51px!important;padding:9px 11px!important;font-size:14px!important;}
 #sheetMainBody .main-day-card{margin:5px 0 7px!important;}
}

/* Compact overview of the seven collapsed days on small phones.
   Keep each day a comfortable 46px tap target; hide the duplicated plain-text
   week total, since the blue total banner immediately below has the same data. */
@media(max-width:600px){
  #sheetMainBody .main-day-card{margin:3px 0 5px!important;border-radius:10px!important;}
  #sheetMainBody .main-day-card>summary{min-height:46px!important;padding:7px 11px!important;gap:7px!important;font-size:14px!important;}
  #sheetMainBody .main-day-status{font-size:12px!important;}
  #sheetMainBody .main-day-status small{font-size:10px!important;line-height:1.12!important;}
  #sheetMainBody .preview-total{display:none!important;}
  body[data-mobile-step="week"] .draft-card .spv-week-total{margin-top:9px!important;}
  body[data-mobile-step="week"] .timesheet-signoff{margin:9px 0 12px!important;padding:10px!important;gap:6px!important;}
  body[data-mobile-step="week"] .timesheet-signoff .foreman-signature-launch{min-height:48px!important;padding:8px!important;}
  body[data-mobile-step="week"] .draft-card .export-actions{margin:7px 0 9px!important;}
}

/* Personal reusable work descriptions dialog */
.work-draft-dialog{width:min(92vw,620px);max-height:85dvh;overflow:auto;border:1px solid #cbd9e9;border-radius:18px;padding:22px;box-shadow:0 18px 80px #10254a55;box-sizing:border-box}
.work-draft-dialog::backdrop{background:#0d213a99}
.my-work-header,.my-work-library-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.my-work-header h2{margin:0}.my-work-header .button{min-height:42px}
.work-draft-dialog .my-work-label{display:block;margin:12px 0 8px}
.work-draft-dialog textarea{width:100%;box-sizing:border-box;min-height:88px;font-size:16px}
.my-work-actions{display:flex;gap:8px;margin:10px 0 16px}
.my-work-actions>.button{flex:1;min-height:48px}
.my-work-day-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.my-work-day-fields select{display:block;width:100%;min-width:0;min-height:48px;font-size:16px}
#saveWorkDraft{width:100%;min-height:52px}
.my-work-library-header{margin:18px 0 8px}.my-work-library-header h3{margin:0}
.my-work-library-items{display:grid;gap:9px}
.my-work-library-item{border:1px solid #d4e0ed;border-radius:11px;padding:12px;background:#f9fbff}
.my-work-phrase{margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}
.my-work-item-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.my-work-item-actions .button{min-width:0;padding:8px 5px;min-height:42px;font-size:14px}
@media(max-width:600px){.work-draft-dialog{padding:15px;max-height:88dvh}.my-work-header h2{font-size:21px}.my-work-day-fields{gap:7px}}

/* Active and clearly actionable More options buttons */
body .draft-card .extra-options-inner #copyWeek,
body .draft-card .extra-options-inner #downloadWeek,
body .draft-card .extra-options-inner #editWorkDraft{
  background:#e7f0ff!important;
  color:#164b9a!important;
  border:1.5px solid #7aa7e9!important;
  box-shadow:0 2px 5px rgba(29,93,215,.10)!important;
  opacity:1!important;
  cursor:pointer!important;
  font-weight:750!important;
}
body .draft-card .extra-options-inner #copyWeek:active,
body .draft-card .extra-options-inner #downloadWeek:active,
body .draft-card .extra-options-inner #editWorkDraft:active{background:#cbdfff!important;transform:translateY(1px)}

/* Four focused optional tools; touch-friendly and visually consistent. */
.draft-card .extra-options-inner #copyPreviousWeek,
.draft-card .extra-options-inner #recentJobSites,
.draft-card .extra-options-inner #checkMissingDetails,
.draft-card .extra-options-inner #editWorkDraft{
 border:1.5px solid #86b2ea!important;
 background:#eef5ff!important;color:#174a90!important;
 opacity:1!important;cursor:pointer!important;
}
.spv-options-dialog{width:min(520px,94vw);max-height:86dvh;overflow-y:auto;box-sizing:border-box;background:#fff;color:#172c49;border:1px solid #bfd0e4;border-radius:18px;padding:20px;box-shadow:0 24px 70px #10254a66}
.spv-options-dialog::backdrop{background:#0b244b99}
.spv-options-dialog h2{margin:0 0 10px;font-size:22px}
.spv-options-dialog .small{color:#526783;line-height:1.45}
.spv-options-dialog-actions{display:grid;gap:9px;margin-top:15px}
.spv-options-dialog-actions .button,.spv-options-dialog>.button{width:100%;min-height:51px;box-sizing:border-box}
.spv-options-label{display:block;font-weight:700;margin:14px 0}
.spv-options-label select{display:block;margin-top:6px;width:100%;height:49px;padding:10px;font:inherit;color:#172c49;background:#fff;border:1px solid #b2c6de;border-radius:10px}
.spv-options-list{display:grid;gap:8px;margin:12px 0 18px}
.spv-options-list button{width:100%;min-height:51px;text-align:left;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 13px;border:1px solid #bad0e8;border-radius:11px;background:#f0f6fe;color:#164477;font:inherit;cursor:pointer}
.spv-options-list button strong{min-width:85px}
.spv-options-list button:active{background:#d7e7ff}

/* Independent saved job sites: compact controls matching More options */
.recent-site-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px;margin:12px 0}
.recent-site-form .spv-options-label{margin:0;min-width:0;font-size:13px}
.recent-site-form input{display:block;width:100%;min-width:0;box-sizing:border-box;min-height:46px;margin-top:5px;border:1px solid #b2c6de;border-radius:10px;padding:8px 10px;font:inherit;font-size:16px;background:#fff;color:#172c49}
.recent-site-form .button{min-height:48px;width:100%;box-sizing:border-box}
.recent-site-subtitle{font-size:15px;margin:16px 0 4px;color:#203f65}
.saved-site-item{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f2f7ff;border:1px solid #c2d4eb;border-radius:12px;padding:9px 10px;min-width:0}
.saved-site-details{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.saved-site-details span{font-size:13px;color:#526783}
.saved-site-item button{width:auto!important;min-width:65px;min-height:42px!important;flex:none;padding:8px 10px!important}
.saved-site-actions{display:flex;gap:6px;flex:none}
@media(max-width:420px){.recent-site-form{grid-template-columns:1fr 1fr}}

/* WorkSnap mobile field alignment: allow full descenders and visible values. */
.spv-premium-week .premium-time-grid label{overflow:visible!important;display:flex;flex-direction:column;align-items:stretch;line-height:1.45!important}
.spv-premium-week .premium-time-grid input,.spv-premium-week .premium-time-grid select,
.spv-premium-week .premium-site-grid input{height:58px!important;min-height:58px!important;line-height:normal!important;padding:12px 14px!important;box-sizing:border-box!important;overflow:visible!important;font-size:16px!important}
.spv-premium-week .premium-time-grid select{appearance:auto;-webkit-appearance:menulist}
.spv-premium-week .premium-time-grid{align-items:start;row-gap:18px!important}
.spv-premium-week .premium-day-content label{padding-bottom:2px}
.ws-choice-field{cursor:pointer;background-color:var(--surface,#fff)!important}
.ws-field-picker{border:0;border-radius:18px;padding:18px;width:min(92vw,440px);max-height:78dvh;overflow-y:auto;box-shadow:0 18px 70px #0004;color:#172b46;background:white}
.ws-field-picker::backdrop{background:#07172b88}
.ws-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:18px}
.ws-picker-head button{background:#eef2f8;border:0;border-radius:9px;padding:8px 12px;font-size:18px}
.ws-picker-option{display:block;width:100%;text-align:left;border:1px solid #dbe3ed;border-radius:11px;background:#f8fafc;color:#183455;padding:14px;margin:8px 0;font-size:16px;line-height:1.35;white-space:normal}
.ws-picker-subtitle{font-size:13px;font-weight:700;color:#66788e;margin:16px 0 6px}
.ws-picker-manual{display:block;width:100%;box-sizing:border-box;min-height:54px;padding:12px;border:1px solid #aebdd0;border-radius:10px;font-size:16px;margin:12px 0}
.ws-picker-save{width:100%;background:#194b87;color:white;border:0;border-radius:10px;min-height:50px;font-size:16px;font-weight:700}

/* Final override: iPhone Safari native select text and all six day fields. */
#sheetMainBody .preview-time-fields>.preview-field{height:auto!important;min-height:91px!important;max-height:none!important;overflow:visible!important;padding:10px!important;gap:7px!important;justify-content:flex-start!important;}
#sheetMainBody .preview-time-fields>.preview-field .preview-field-label{font-size:13px!important;line-height:19px!important;min-height:19px!important;}
#sheetMainBody .preview-time-fields>.preview-field input,
#sheetMainBody .preview-time-fields>.preview-field select{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;height:49px!important;min-height:49px!important;max-height:none!important;line-height:normal!important;padding:10px 9px!important;margin:0!important;font-size:17px!important;border:1px solid #c2cddd!important;border-radius:10px!important;background:#fff!important;color:#172c49!important;overflow:visible!important;}
#sheetMainBody .preview-time-fields>.preview-field select{-webkit-appearance:menulist!important;appearance:auto!important;padding-right:5px!important;}
#sheetMainBody .preview-descriptions textarea.ws-choice-field{cursor:pointer;min-height:88px!important;}

/* WorkSnap: compact left-aligned date; consistent weekday column without pushing date to centre. */
#sheetMainBody .main-day-card > summary.preview-day-heading .aligned-day-title{display:inline-flex;align-items:baseline;gap:0;min-width:0;flex:1 1 auto;font-size:inherit;}
#sheetMainBody .aligned-weekday{display:inline-block;width:100px;flex:0 0 100px;white-space:nowrap;}
#sheetMainBody .aligned-date{white-space:nowrap;color:inherit;}
#sheetMainBody .main-day-status{flex:0 0 auto;white-space:nowrap;text-align:right;}
@media(max-width:390px){#sheetMainBody .aligned-weekday{width:90px;flex-basis:90px;}#sheetMainBody .aligned-day-title{font-size:13px!important;}}
/* Back and Check share one compact row; Preview remains full width below. */
.draft-card .quick-review-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 9px;}
.draft-card .quick-review-actions .button{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:52px!important;margin:0!important;font-size:15px!important;padding:10px 8px!important;}
.draft-card .export-actions{margin-top:0!important;}

/* Hide conditional manual fields unless explicitly selected. */
#sheetMainBody .preview-field input[hidden]{display:none!important;}

/* Large, legible success state for Check */
.missing-success{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;padding:22px 12px 28px;color:#166534}.missing-success-icon{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:#16a34a;color:#fff;font-size:54px;font-weight:800;line-height:1;box-shadow:0 5px 18px rgba(22,163,74,.2)}.missing-success strong{font-size:27px;line-height:1.2}.missing-success span:last-child{font-size:17px;font-weight:600;color:#267245}

/* WorkSnap iPhone: keep the week preview button clear of Safari's bottom toolbar.
   Only step two gets the additional scroll room; step one stays unchanged. */
@media(max-width:600px){
  body[data-mobile-step="week"] .draft-card{
    padding-bottom:calc(112px + env(safe-area-inset-bottom, 0px))!important;
  }
  body[data-mobile-step="week"] .draft-card .export-actions #previewPDF{
    position:relative;
    z-index:1;
  }
}
/* Accessible dismiss button for missing-details dialog. */
.missing-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.missing-dialog-heading h2{margin:0;min-width:0}
.missing-dialog-x{display:inline-flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border:1px solid #cbd7e5;border-radius:50%;background:#f4f7fc;color:#243c5a;font-size:27px;line-height:1;padding:0;cursor:pointer}
.missing-dialog-x:focus-visible{outline:3px solid #2563eb;outline-offset:2px}

/* Header typography: WorkSnap is as prominent as SPV, without affecting the About control. */
.brand{gap:9px}
.brand>span{max-width:none;font-size:clamp(24px,5.5vw,35px);line-height:1;font-weight:800;letter-spacing:-1.4px;padding-left:11px;white-space:nowrap}
@media(max-width:390px){.brand b{font-size:30px}.brand b span{font-size:23px}.brand>span{font-size:26px;padding-left:8px}.brand{gap:6px}}
/* Safari bottom address bar: leave real scroll clearance under step two, and
   keep Preview accessible above the floating toolbar when it reaches the viewport. */
@media(max-width:600px){
 body[data-mobile-step="week"] main{padding-bottom:calc(160px + env(safe-area-inset-bottom,0px))!important}
 body[data-mobile-step="week"] .draft-card{padding-bottom:24px!important}
 body[data-mobile-step="week"] .draft-card .export-actions{position:sticky;bottom:calc(94px + env(safe-area-inset-bottom,0px));z-index:8;background:#fff;padding:3px 0 5px;border-radius:10px}
}

/* FIX: undo broken sticky Preview control; keep normal flow and Safari scroll clearance. */
@media(max-width:600px){
 body[data-mobile-step="week"] .draft-card .export-actions{position:static!important;bottom:auto!important;z-index:auto!important;background:transparent!important;padding:0!important;}
 body[data-mobile-step="week"] .draft-card .export-actions #previewPDF{position:static!important;z-index:auto!important;transform:none!important;}
 body[data-mobile-step="week"] .draft-card{padding-bottom:calc(155px + env(safe-area-inset-bottom,0px))!important;}
}

/* Header name only; keep all page layouts and app logic unchanged. */
header .brand.snapvegraft-brand{gap:0;min-width:0}header .brand.snapvegraft-brand>span{font-size:clamp(22px,5.6vw,32px)!important;letter-spacing:-1px!important;padding-left:0!important;line-height:1.1!important;font-weight:800!important;white-space:nowrap!important}

/* Snap the graft: header branding only. No form, page or action layout changes. */
header .brand.snapvegraft-brand{display:inline-flex;align-items:center;gap:10px;min-width:0;text-decoration:none}
header .brand.snapvegraft-brand .snap-camera-mark{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;background:#eaf2ff;color:#205cbd;border:1px solid #c7daf8;border-radius:13px;box-shadow:0 2px 7px rgba(24,64,120,.08)}
header .brand.snapvegraft-brand .snap-camera-mark svg{display:block;width:28px;height:28px}
header .brand.snapvegraft-brand .snap-brand-title{padding:0!important;border:0!important;max-width:none!important;white-space:nowrap!important;font-size:clamp(21px,3vw,30px)!important;letter-spacing:-1.05px!important;line-height:1.1!important;font-weight:850!important;color:#17314e}
header .brand.snapvegraft-brand .snap-brand-title .snap-brand-the{color:#2563eb}
@media(max-width:600px){header .brand.snapvegraft-brand{gap:8px}header .brand.snapvegraft-brand .snap-camera-mark{width:36px;height:36px;flex-basis:36px;border-radius:11px}header .brand.snapvegraft-brand .snap-camera-mark svg{width:24px;height:24px}header .brand.snapvegraft-brand .snap-brand-title{font-size:clamp(18px,5vw,23px)!important;letter-spacing:-.8px!important}}
@media(max-width:360px){header .brand.snapvegraft-brand{gap:6px}header .brand.snapvegraft-brand .snap-camera-mark{width:32px;height:32px;flex-basis:32px}header .brand.snapvegraft-brand .snap-brand-title{font-size:18px!important}}

/* Non-interactive promotional examples */
.worksnap-demo{display:flex;align-items:center;gap:12px;margin:10px 10px 14px;padding:10px;border:1px solid #b7d4ee;border-radius:12px;background:#eff7ff}.worksnap-demo img{width:100px;height:78px;object-fit:cover;border-radius:8px;flex-shrink:0}.worksnap-demo-copy{min-width:0;font-size:13px;line-height:1.4}.worksnap-demo-copy strong{color:#11623b}.worksnap-demo-copy p{margin:4px 0}.worksnap-demo-copy small{color:#576b7d;font-size:11px}@media(max-width:420px){.worksnap-demo img{width:82px;height:76px}}

#clearRecentSites{background:#c93636!important;color:#fff!important;border:1px solid #a92727!important;font-weight:700}
#clearRecentSites:hover{background:#aa2929!important}

/* About: read-only examples, using the same photos as the initial five-day template */
.about-demo-gallery{margin:14px 0 18px;padding:14px;border:1px solid #b7d4ee;border-radius:15px;background:#f0f7ff;color:#183c69}
.about-demo-heading{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}.about-demo-heading strong{font-size:16px}.about-demo-heading span{font-size:11px;color:#526b86;font-weight:650}
.about-demo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.about-demo-item{min-width:0;overflow:hidden;border-radius:12px;background:#fff;border:1px solid #d7e5f5}.about-demo-item img{display:block;width:100%;height:128px;object-fit:cover}.about-demo-text{padding:11px}.about-demo-text strong{display:block;font-size:13px;color:#153d69}.about-demo-text p{margin:6px 0;font-size:12px;line-height:1.45;color:#314c65}.about-demo-text small{font-size:10px;font-weight:700;color:#14764d}.about-demo-note{font-size:11px;line-height:1.5;color:#526b86;margin:11px 0 0}@media(max-width:520px){.about-demo-grid{grid-template-columns:1fr}.about-demo-item{display:grid;grid-template-columns:112px minmax(0,1fr)}.about-demo-item img{height:100%;min-height:120px}.about-demo-text{padding:10px}}

/* Equal-size example photo frames, irrespective of source image aspect ratio. */
.about-demo-item img{width:100%;height:160px;object-fit:cover;object-position:center center;aspect-ratio:auto}
@media(max-width:520px){.about-demo-item img{width:112px;height:140px;min-height:140px;object-fit:cover}}

/* Desktop hero: real work photograph replaces decorative picture icon. */
.hero-mark .hero-work-photo{display:block;width:100%;height:126px;object-fit:cover;object-position:center;border-radius:12px;margin:0 0 12px;border:1px solid #ffffff35}
.hero-mark span{padding:2px 4px 5px}
@media(max-width:600px){.hero-mark{display:none}}

/* SPV WorkSnap TEST: mobile-only 3-step journey. Desktop untouched. */
.mobile-detail-actions{display:none}
@media(max-width:600px){
 body[data-mobile-step="photos"] .basics{display:none!important}
 body[data-mobile-step="details"] .basics{display:block!important}
 body[data-mobile-step="details"] .work-card,body[data-mobile-step="details"] .hero{display:none!important}
 body[data-mobile-step="details"] .draft-card{display:none!important}
 body[data-mobile-step="photos"] .work-card{display:block!important}
 body[data-mobile-step="photos"] .hero{display:block!important;padding:12px 0 6px!important;margin:0!important}
 body[data-mobile-step="photos"] .hero>div:first-child{width:100%!important}
 body[data-mobile-step="photos"] .hero .eyebrow{display:none!important}
 body[data-mobile-step="photos"] .hero h1{font-size:clamp(27px,7vw,36px)!important;line-height:1.1!important;margin:4px 0 7px!important}
 body[data-mobile-step="photos"] .hero p{font-size:13px!important;line-height:1.4!important;margin:0 0 7px!important}
 body[data-mobile-step="photos"] .hero .steps{display:none!important}
 body[data-mobile-step="photos"] .hero-mark{display:none!important}
 body[data-mobile-step="details"] .mobile-detail-actions{display:grid!important;grid-template-columns:1fr;gap:10px;margin-top:18px}
 body[data-mobile-step="details"] .mobile-detail-actions button{width:100%;min-height:52px}
 body[data-mobile-step="details"] .basics .section-title .eyebrow{display:inline!important}
 body[data-mobile-step="photos"] .work-card .upload-box{margin-top:7px!important}
 body[data-mobile-step="details"] .basics{margin-top:8px!important}
 body[data-mobile-step="week"] .hero,body[data-mobile-step="week"] .basics,body[data-mobile-step="week"] .work-card{display:none!important}
}
@media(min-width:601px){.mobile-detail-actions{display:none!important}}

/* Mobile TEST only; desktop untouched */
.mobile-photo-example,.mobile-basic-options{display:none}
@media(max-width:600px){
body[data-mobile-step="photos"] .mobile-photo-example{display:block!important;padding:12px!important;margin:5px 0 12px!important}
.example-photo-row{display:grid;grid-template-columns:42% minmax(0,1fr);gap:12px;align-items:center}
.example-photo-row img{width:100%;height:136px;object-fit:cover;border-radius:10px}
.example-photo-row strong{display:block;font-size:14px;line-height:1.25;margin:5px 0}
.example-photo-row p{font-size:12px;line-height:1.4;margin:5px 0}
.example-photo-row small{display:block;font-size:10px;line-height:1.35;color:#58718a}
.example-photo-row .eyebrow{font-size:9px;letter-spacing:.05em}
body[data-mobile-step="details"] .mobile-basic-options{display:block!important;margin:16px 0 8px;padding:12px;border:1px solid #d7e5f5;border-radius:12px}
.mobile-basic-options summary{cursor:pointer;font-weight:750;padding:5px}
.mobile-basic-option-buttons{display:grid;gap:8px;padding-top:12px}
.mobile-basic-option-buttons button{width:100%;min-height:44px}
body[data-mobile-step="photos"] .work-card{margin-top:0!important}
}

/* WorkSnap TEST: richer first-screen showcase, mobile only. Photo input card untouched. */
@media (max-width:600px){
 body[data-mobile-step="photos"] .hero{
   position:relative;overflow:hidden;display:block!important;
   padding:24px 22px 26px!important;margin:8px 0 0!important;
   border-radius:22px 22px 0 0!important;border-bottom:0!important;
   background:radial-gradient(circle at 90% 5%,#356caa 0%,transparent 52%),linear-gradient(135deg,#0b203d,#173f70)!important;
   box-shadow:0 10px 26px #173c6926!important;
 }
 body[data-mobile-step="photos"] .hero::after{content:"";position:absolute;width:160px;height:160px;border:1px solid #a9d5ff35;border-radius:50%;right:-78px;top:-65px;pointer-events:none}
 body[data-mobile-step="photos"] .hero h1{
   font-size:clamp(33px,8.6vw,44px)!important;line-height:1.04!important;
   letter-spacing:-1.6px!important;margin:3px 0 14px!important;
 }
 body[data-mobile-step="photos"] .hero h1 em{color:#a5ddff!important}
 body[data-mobile-step="photos"] .hero p{display:block!important;font-size:13px!important;line-height:1.5!important;color:#e1edff!important;margin:0!important;max-width:290px}
 body[data-mobile-step="photos"] .mobile-photo-example{
   display:block!important;position:relative;
   margin:0 0 16px!important;padding:16px!important;
   border-radius:0 0 22px 22px!important;
   background:linear-gradient(160deg,#e8f3ff,#ffffff 68%)!important;
   border:1px solid #d3e6fb!important;border-top:0!important;
   box-shadow:0 12px 24px #193b6614!important;
 }
 body[data-mobile-step="photos"] .example-photo-row{display:grid!important;grid-template-columns:46% minmax(0,1fr)!important;gap:14px!important;align-items:center!important}
 body[data-mobile-step="photos"] .example-photo-row img{
   width:100%!important;height:190px!important;object-fit:cover!important;
   border-radius:14px!important;border:3px solid white!important;
   box-shadow:0 8px 18px #142d4a2e!important;
 }
 body[data-mobile-step="photos"] .example-photo-row .eyebrow{display:block!important;font-size:10px!important;letter-spacing:.07em!important;color:#3268aa!important;font-weight:800!important;line-height:1.4!important}
 body[data-mobile-step="photos"] .example-photo-row strong{display:block!important;font-size:17px!important;line-height:1.2!important;color:#112d4c!important;margin:10px 0!important}
 body[data-mobile-step="photos"] .example-photo-row p{font-size:13px!important;line-height:1.45!important;color:#405a75!important;margin:0 0 10px!important}
 body[data-mobile-step="photos"] .example-photo-row small{font-size:10px!important;line-height:1.4!important;color:#667b91!important}
 body[data-mobile-step="photos"] .work-card{margin-top:0!important}
}
@media(max-width:360px){body[data-mobile-step="photos"] .example-photo-row img{height:162px!important}body[data-mobile-step="photos"] .example-photo-row{gap:10px!important}body[data-mobile-step="photos"] .example-photo-row strong{font-size:15px!important}}

/* Mobile TEST refinement: keep desktop completely untouched. */
@media(max-width:600px){
 body[data-mobile-step="details"] main{min-height:calc(100dvh - 85px);display:flex;flex-direction:column}
 body[data-mobile-step="details"] .basics{display:flex!important;flex-direction:column;flex:1;min-height:calc(100dvh - 132px)!important;padding:20px 18px 24px!important;border-radius:20px!important;background:linear-gradient(180deg,#f4f9ff 0%,#fff 44%)!important}
 body[data-mobile-step="details"] .basics .section-title{padding:8px 0 16px!important}
 body[data-mobile-step="details"] .basics .section-title h2{font-size:clamp(25px,7vw,34px)!important;line-height:1.13!important}
 body[data-mobile-step="details"] .basics .grid.three{gap:17px!important}
 body[data-mobile-step="details"] .basics input,body[data-mobile-step="details"] .basics select,body[data-mobile-step="details"] .basics .monday-choice-trigger{min-height:50px!important}
 body[data-mobile-step="details"] .mobile-basic-options{margin-top:auto!important;margin-bottom:15px!important;background:#eaf3ff!important;border:1px solid #cbdff8!important;border-radius:15px!important;padding:16px!important}
 body[data-mobile-step="details"] .mobile-basic-options summary{font-size:16px!important;color:#173e6c!important}
 body[data-mobile-step="details"] .mobile-detail-actions{margin-top:0!important}
 body[data-mobile-step="week"] .draft-card .extra-options{display:none!important}
 body[data-mobile-step="week"] .mobile-wizard{margin-top:10px!important}
}

/* TEST polish 2026-11-07: mobile-only spacing, no desktop modifications. */
@media(max-width:600px){
 /* A modest reduction of the showcase, without touching the photo controls. */
 body[data-mobile-step="photos"] .hero{padding-top:19px!important;padding-bottom:18px!important}
 body[data-mobile-step="photos"] .hero h1{margin-bottom:10px!important}
 body[data-mobile-step="photos"] .mobile-photo-example{padding-top:12px!important;padding-bottom:12px!important;margin-bottom:12px!important}
 body[data-mobile-step="photos"] .example-photo-row img{height:177px!important}
 /* Distribute the details form naturally; no artificial gap before More options. */
 body[data-mobile-step="details"] .basics .grid.three{flex:1 1 auto;display:flex!important;flex-direction:column!important;justify-content:space-evenly!important;gap:clamp(14px,2.5dvh,24px)!important}
 body[data-mobile-step="details"] .basics .grid.three>label,
 body[data-mobile-step="details"] .basics .grid.three>.week-choice-row,
 body[data-mobile-step="details"] .basics .grid.three>.foreman-row{flex:0 0 auto}
 body[data-mobile-step="details"] .mobile-basic-options{margin-top:14px!important;margin-bottom:14px!important}
}
@media(max-width:360px){body[data-mobile-step="photos"] .example-photo-row img{height:156px!important}}

/* Mobile TEST step 2 only: normal form spacing, four equal quick-action tiles. */
@media(max-width:600px){
 body[data-mobile-step="details"] .basics .grid.three{flex:0 0 auto!important;display:grid!important;grid-template-columns:1fr!important;justify-content:initial!important;gap:12px!important;margin-bottom:0!important}
 body[data-mobile-step="details"] .basics .grid.three>label,body[data-mobile-step="details"] .basics .grid.three>.week-choice-row,body[data-mobile-step="details"] .basics .grid.three>.foreman-row{flex:initial!important}
 body[data-mobile-step="details"] .mobile-basic-options{display:block!important;flex:0 0 auto!important;margin:18px 0 16px!important;padding:14px!important;border-radius:16px!important;background:#eef5ff!important}
 body[data-mobile-step="details"] .mobile-basic-options summary{display:none!important}
 body[data-mobile-step="details"] .mobile-basic-option-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:0!important}
 body[data-mobile-step="details"] .mobile-basic-option-buttons button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:64px!important;height:64px!important;padding:8px 7px!important;border-radius:12px!important;font-size:12px!important;font-weight:700!important;line-height:1.25!important;text-align:center!important;white-space:normal!important}
 body[data-mobile-step="details"] .mobile-detail-actions{margin-top:4px!important}
}

/* Desktop three-step workflow. Phone styles deliberately unchanged. */
@media(min-width:601px){
 .mobile-wizard{display:block!important;margin:18px 0;padding:0 4px;font-size:13px;font-weight:750;color:#315375}
 .wizard-track{height:6px;background:#dce7f5;border-radius:10px;overflow:hidden;margin-top:9px}
 .wizard-track i{display:block;width:33.333%;height:100%;background:#2563eb;transition:width .2s}
 body[data-desktop-step="details"] .wizard-track i{width:66.666%}
 body[data-desktop-step="week"] .wizard-track i{width:100%}
 body[data-desktop-step="photos"] .basics,body[data-desktop-step="photos"] .draft-card{display:none!important}
 body[data-desktop-step="photos"] .workspace{grid-template-columns:minmax(0,1fr)!important;max-width:1080px;margin:0 auto 26px}
 body[data-desktop-step="photos"] .work-card{display:block!important}
 body[data-desktop-step="photos"] .mobile-photo-example{display:block!important;max-width:1080px;margin:0 auto 20px;padding:16px 22px}
 body[data-desktop-step="photos"] .example-photo-row{display:grid;grid-template-columns:230px minmax(0,1fr);align-items:center;gap:22px}
 body[data-desktop-step="photos"] .example-photo-row img{width:230px;height:155px;object-fit:cover;border-radius:12px}
 body[data-desktop-step="photos"] .example-photo-row strong{display:block;font-size:20px;color:#153d69;margin:5px 0}
 body[data-desktop-step="photos"] .example-photo-row p{margin:4px 0;font-size:14px}
 body[data-desktop-step="photos"] .example-photo-row small{color:#58718a}
 body[data-desktop-step="photos"] .details-fields,body[data-desktop-step="photos"] .hours-box,body[data-desktop-step="photos"] .notes-field,body[data-desktop-step="photos"] .ai-notice,body[data-desktop-step="photos"] .ai-explanation{display:none!important}
 body[data-desktop-step="details"] .hero,body[data-desktop-step="details"] .mobile-photo-example,body[data-desktop-step="details"] .workspace{display:none!important}
 body[data-desktop-step="details"] .basics{display:block!important;max-width:1040px;margin:24px auto 30px;padding:34px}
 body[data-desktop-step="details"] .mobile-basic-options{display:block!important;margin:25px 0;padding:18px;background:#eef5ff;border:1px solid #cbdff8;border-radius:15px}
 body[data-desktop-step="details"] .mobile-basic-options summary{display:none!important}
 body[data-desktop-step="details"] .mobile-basic-option-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
 body[data-desktop-step="details"] .mobile-basic-option-buttons button{min-height:65px;white-space:normal;padding:10px}
 body[data-desktop-step="details"] .mobile-detail-actions{display:flex!important;justify-content:space-between;gap:14px;margin-top:24px}
 body[data-desktop-step="details"] .mobile-detail-actions button{min-width:205px}
 body[data-desktop-step="week"] .hero,body[data-desktop-step="week"] .mobile-photo-example,body[data-desktop-step="week"] .basics,body[data-desktop-step="week"] .work-card{display:none!important}
 body[data-desktop-step="week"] .workspace{display:block!important;max-width:1100px;margin:0 auto}
 body[data-desktop-step="week"] .draft-card{display:block!important;position:static!important}
 body[data-desktop-step="week"] .back-to-basics{display:inline-flex!important}
}

.about-three-step-guide{margin:18px 0 22px;padding:17px;border:1px solid #bed5f2;border-radius:15px;background:#f0f7ff}.about-three-step-guide h3{margin:0 0 13px;color:#173e6c}.about-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.about-guide-grid>div{background:white;border:1px solid #d8e5f5;border-radius:11px;padding:12px}.about-guide-grid b{color:#205cbd;font-size:13px}.about-guide-grid p{font-size:12px;line-height:1.5;margin:7px 0 0}@media(max-width:600px){.about-guide-grid{grid-template-columns:1fr}}
/* v12: Remove obsolete oversized bottom spacer on mobile step 3 only. */
@media (max-width:600px){
 body[data-mobile-step="week"] main{padding-bottom:16px!important;min-height:0!important;}
 body[data-mobile-step="week"] .draft-card{padding-bottom:16px!important;min-height:0!important;}
}

/* v13: mobile first-page promotional picture only; preserve desktop and About demo */
@media(max-width:600px){body[data-mobile-step="photos"] .example-photo-row picture{display:block;width:100%;min-width:0}body[data-mobile-step="photos"] .example-photo-row picture img{display:block;width:100%;object-fit:cover}}

/* v14: explicit attendance on all seven days; unobtrusive day-off watermark */
.preview-day-row.ws-day-off{position:relative;isolation:isolate;}
.ws-dayoff-watermark{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-13deg);font-size:clamp(24px,5vw,42px);font-weight:900;letter-spacing:.16em;color:#73869b;opacity:.14;pointer-events:none;white-space:nowrap;z-index:1;}
.ws-day-off .preview-day-fields{position:relative;z-index:2;}
.weekend-work-toggle{display:inline-flex;align-items:center;gap:8px;cursor:pointer;}
.weekend-work-toggle input[type=checkbox]{accent-color:#16a34a;width:19px;height:19px;cursor:pointer;}
.ws-day-off .weekend-work-toggle input[type=checkbox]{accent-color:#16a34a;}

/* v16: clear, accessible workday indicators beside each date */
.aligned-day-title{display:inline-flex;align-items:center;flex-wrap:wrap;gap:7px}
.ws-work-status-dot{display:inline-block;flex:0 0 auto;width:12px;height:12px;border-radius:50%;vertical-align:middle;box-shadow:0 0 0 2px rgba(255,255,255,.85),0 1px 3px rgba(0,0,0,.14)}
.ws-work-status-on{background:#18a65a;border:1px solid #0b8042}
.ws-work-status-off{background:#e24b50;border:1px solid #b52c36}

/* v17: status circle in its own fixed column BETWEEN weekday and date */
#sheetMainBody .aligned-day-title{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:0}
#sheetMainBody .aligned-weekday{flex-shrink:0}
#sheetMainBody .aligned-day-title .ws-work-status-dot{width:13px;height:13px;flex:0 0 13px;margin-right:12px;align-self:center}
#sheetMainBody .aligned-date{white-space:nowrap}

/* v18: amber means a worked day still needs attention */
.ws-work-status-warning{background:#f5c542;border:1px solid #c48b09}

/* v29: afternoon is already filled by the morning-work continuation rule */
.ws-auto-continue{border-color:#9ac9ad!important;background:rgba(46,150,91,.07)!important}.ws-auto-continue-hint{display:block;font-size:11px;line-height:1.4;color:#207c4b;font-weight:650;margin-top:5px}.ws-auto-continue textarea{background:transparent!important}

/* v30: keep day/work confirmation checkboxes white and outlined on iOS/Android. */
input[type="checkbox"], .check-row input[type="checkbox"], .weekend-work-toggle input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-grid !important;
  place-content: center !important;
  width: 21px !important;
  height: 21px !important;
  min-width: 21px !important;
  min-height: 21px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 2px solid #8da4bd !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
  flex: 0 0 21px !important;
  vertical-align: middle;
  cursor: pointer;
}
input[type="checkbox"]:checked {background:#1d5dd7 !important;border-color:#1d5dd7 !important;}
input[type="checkbox"]:checked::after {content:"";width:10px;height:6px;border-left:2px solid white;border-bottom:2px solid white;transform:translateY(-1px) rotate(-45deg);}
input[type="checkbox"]:focus-visible {outline:3px solid #8bb8ff;outline-offset:3px;}

.ws-picker-search{display:block;width:100%;box-sizing:border-box;padding:13px 14px;border:2px solid #9eb4d0;border-radius:11px;background:#fff;color:#183455;font-size:16px;margin:8px 0 12px}.ws-picker-search:focus{outline:2px solid #3878bf;outline-offset:1px}.ws-field-picker [hidden]{display:none!important}

/* v41: explicit light palette for personal work list on iOS and Android */
.work-draft-dialog{background:#ffffff!important;color:#172f4d!important;color-scheme:light;}
.work-draft-dialog h2,.work-draft-dialog h3,.work-draft-dialog p,.work-draft-dialog label,.work-draft-dialog .my-work-library-header,.work-draft-dialog #workLibraryCount{color:#172f4d;}
.work-draft-dialog input,.work-draft-dialog select,.work-draft-dialog textarea{background:#fbfcff!important;color:#172f4d!important;color-scheme:light;border-color:#b3c8df;}
.work-draft-dialog input::placeholder,.work-draft-dialog textarea::placeholder{color:#60758d;opacity:1;}
.work-draft-dialog .my-work-library-item{background:#f9fbff;color:#172f4d;}
.work-draft-dialog .button.secondary{background:#eef4ff;color:#244d88;border-color:#b9cce8;}
.work-draft-dialog .button.primary{background:#1d5dd7;color:#fff;}

/* WorkSnap 56: compact shopfitting guide */
.ws-guide-card{border:1px solid #d7e7f8!important;box-shadow:0 8px 26px rgba(15,68,128,.09)!important}.ws-guide-copy .eyebrow{color:#2868b9!important;font-size:10px!important;letter-spacing:.08em}.ws-guide-copy strong{color:#102d58!important}.ws-guide-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.ws-guide-actions .button{font-size:12px!important;padding:10px 12px!important;min-height:38px!important;flex:1 1 auto}.ws-guide-details{margin-top:12px;padding:15px;background:#eff6ff;border-radius:13px;color:#193b62;font-size:13px;line-height:1.5}.ws-guide-details[hidden]{display:none!important}.ws-guide-details ol{padding-left:20px;margin:8px 0}.ws-guide-details li{margin-bottom:7px}.ws-guide-details p{margin:9px 0 0}.ws-guide-card .example-photo-row img{object-fit:cover!important;object-position:center!important}@media(max-width:600px){body[data-mobile-step="photos"] .ws-guide-card .example-photo-row{align-items:center!important}body[data-mobile-step="photos"] .ws-guide-card .example-photo-row img{height:185px!important}body[data-mobile-step="photos"] .ws-guide-card .example-photo-row p{font-size:12px!important;line-height:1.4!important}body[data-mobile-step="photos"] .ws-guide-actions{flex-direction:column}body[data-mobile-step="photos"] .ws-guide-actions .button{width:100%!important;padding:8px!important;min-height:34px!important;font-size:11px!important}}

/* WorkSnap v58: compact, aligned shopfitting guide */
body[data-mobile-step="photos"] .ws-guide-card,body[data-desktop-step="photos"] .ws-guide-card{background:#eaf3ff!important;border:1px solid #bdd7f8!important}
body[data-mobile-step="photos"] .ws-guide-card .example-photo-row,body[data-desktop-step="photos"] .ws-guide-card .example-photo-row{align-items:stretch!important}
.ws-guide-card .ws-guide-copy{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;min-width:0!important}
.ws-guide-card .ws-guide-copy strong{margin:0 0 7px!important;line-height:1.18!important}
.ws-guide-card .ws-guide-copy p{margin:0 0 8px!important;line-height:1.35!important}
.ws-guide-card .ws-guide-actions{margin-top:auto!important;display:block!important}
.ws-guide-card .ws-guide-actions .button{width:100%!important;background:linear-gradient(135deg,#0867f4,#0644c6)!important;color:white!important;border:0!important;font-weight:700!important;box-shadow:0 3px 10px rgba(0,70,170,.17)!important}
@media(max-width:600px){body[data-mobile-step="photos"] .ws-guide-card .example-photo-row{grid-template-columns:43% minmax(0,1fr)!important;gap:12px!important}body[data-mobile-step="photos"] .ws-guide-card .example-photo-row img{height:180px!important}body[data-mobile-step="photos"] .ws-guide-card .example-photo-row strong{font-size:15px!important}body[data-mobile-step="photos"] .ws-guide-card .example-photo-row p{font-size:11.5px!important;line-height:1.3!important}body[data-mobile-step="photos"] .ws-guide-actions .button{font-size:12px!important;min-height:36px!important;padding:8px 6px!important}}
@media(max-width:380px){body[data-mobile-step="photos"] .ws-guide-card .example-photo-row img{height:188px!important}body[data-mobile-step="photos"] .ws-guide-card .example-photo-row strong{font-size:14px!important}body[data-mobile-step="photos"] .ws-guide-card .example-photo-row p{font-size:11px!important}}

/* v59: compact aligned guide and functioning help dialog */
.ws-guide-card{background:#eef6ff!important;padding:16px!important;border-radius:22px!important}
.ws-guide-card .example-photo-row{display:grid!important;grid-template-columns:43% minmax(0,1fr)!important;gap:14px!important;align-items:stretch!important}
.ws-guide-card .example-photo-row picture{min-width:0!important;height:100%!important}
.ws-guide-card .example-photo-row picture img{width:100%!important;height:100%!important;min-height:235px!important;max-height:290px!important;object-fit:cover!important;border-radius:15px!important}
.ws-guide-card .ws-guide-copy{display:flex!important;flex-direction:column!important;min-width:0!important;gap:10px!important}
.ws-guide-card .ws-guide-copy strong{font-size:clamp(16px,2.3vw,23px)!important;line-height:1.18!important;margin:0!important;color:#092856!important}
.ws-guide-steps{display:grid;gap:10px;margin:0!important}
.ws-guide-steps>div{display:flex;align-items:center;gap:9px;font-size:clamp(12px,1.7vw,16px);font-weight:600;line-height:1.27;color:#19385d}
.ws-guide-steps b{flex:0 0 25px;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#c5e2ff;color:#0754b9;font-size:14px}
.ws-guide-card .ws-guide-open{margin-top:auto!important;min-height:48px!important;height:48px!important;width:100%!important;padding:8px 10px!important;font-size:15px!important;border-radius:12px!important;background:linear-gradient(135deg,#0869f7,#0846c6)!important;color:#fff!important;cursor:pointer!important}
.ws-guide-overlay[hidden]{display:none!important}.ws-guide-overlay{position:fixed;inset:0;background:rgba(7,23,49,.65);z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px}
.ws-guide-modal{position:relative;width:min(100%,480px);max-height:85dvh;overflow:auto;border-radius:20px;background:white;padding:26px;color:#173454;box-shadow:0 25px 90px #001b4670}
.ws-guide-modal h2{margin:0 32px 15px 0;color:#0b3471}.ws-guide-modal ol{padding-left:23px;line-height:1.5}.ws-guide-modal li{margin:0 0 12px}.ws-guide-modal p{padding:12px;background:#eaf4ff;border-radius:12px;line-height:1.45}.ws-guide-modal .button{min-height:48px;width:100%;margin-top:8px}.ws-guide-close{position:absolute;right:16px;top:13px;border:0;background:#edf4fc;color:#173d70;border-radius:50%;width:35px;height:35px;font-size:25px;cursor:pointer}.ws-guide-modal-open{overflow:hidden}
@media(max-width:600px){.ws-guide-card{padding:12px!important}.ws-guide-card .example-photo-row{grid-template-columns:42% minmax(0,1fr)!important;gap:11px!important}.ws-guide-card .example-photo-row picture img{height:100%!important;min-height:220px!important;max-height:270px!important}.ws-guide-card .ws-guide-copy strong{font-size:16px!important}.ws-guide-steps{gap:9px}.ws-guide-steps>div{font-size:12px!important;line-height:1.25!important}.ws-guide-steps b{width:23px;height:23px;flex-basis:23px;font-size:12px}.ws-guide-card .ws-guide-open{min-height:46px!important;height:46px!important;font-size:13px!important;padding:7px 4px!important}}
@media(max-width:370px){.ws-guide-card .example-photo-row{grid-template-columns:39% minmax(0,1fr)!important;gap:8px!important}.ws-guide-steps>div{font-size:11.5px!important}}

/* v60: shorter image, aligned guide and native accessible modal */
.ws-guide-card .example-photo-row picture,.ws-guide-card .example-photo-row picture img{height:205px!important;min-height:0!important;max-height:205px!important}
.ws-guide-card .ws-guide-copy{gap:6px!important;justify-content:space-between!important}
.ws-guide-card .ws-guide-copy strong{font-size:17px!important;margin:0!important}
.ws-guide-card .ws-guide-steps{gap:5px!important}
.ws-guide-card .ws-guide-steps>div{font-size:13px!important;line-height:1.22!important}
.ws-guide-card .ws-guide-open{height:46px!important;min-height:46px!important;max-height:46px!important;margin-top:4px!important;font-size:14px!important}
.ws60-dialog{position:fixed;inset:0;margin:auto;border:0;border-radius:20px;width:min(440px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:24px;background:#fff;color:#183456;box-shadow:0 20px 65px #001b465c}
.ws60-dialog::backdrop{background:rgba(7,23,49,.65)}
.ws60-dialog h2{margin:0 38px 16px 0;font-size:24px;color:#0b3471}
.ws60-dialog ol{padding-left:24px;line-height:1.45}.ws60-dialog li{margin-bottom:12px;font-size:15px}
.ws60-dialog p{padding:12px;border-radius:12px;background:#eaf4ff;line-height:1.4;font-size:14px}
.ws60-close{position:absolute;top:12px;right:14px;border:0;border-radius:50%;width:36px;height:36px;background:#eaf4ff;font-size:25px;color:#164a87}
.ws60-done{width:100%;min-height:46px;margin-top:8px}
@media(max-width:600px){body[data-mobile-step="photos"] .ws-guide-card .example-photo-row picture img,.ws-guide-card .example-photo-row picture img{height:205px!important;min-height:0!important;max-height:205px!important}.ws-guide-card .ws-guide-steps>div{font-size:12.5px!important}.ws-guide-card .ws-guide-open{height:46px!important;min-height:46px!important}}

#wsGuideOverlay[hidden]{display:none!important}
#wsGuideOverlay:not([hidden]){display:flex!important}
#wsGuideOverlay{z-index:2147483000!important}
#wsHowWorks{pointer-events:auto!important}

#wsGuideDialog.ws-guide-native{border:0;border-radius:20px;background:#fff;color:#183657;width:min(calc(100% - 30px),440px);max-height:85dvh;overflow:auto;padding:26px;box-shadow:0 22px 90px #001b4666;position:fixed}#wsGuideDialog.ws-guide-native::backdrop{background:rgba(8,25,51,.72)}#wsGuideDialog.ws-guide-native h2{color:#0a3475;margin:0 32px 20px 0}#wsGuideDialog.ws-guide-native ol{padding-left:23px;line-height:1.55}#wsGuideDialog.ws-guide-native li{margin-bottom:12px}#wsGuideDialog.ws-guide-native p{background:#eaf4ff;border-radius:12px;padding:13px;line-height:1.5}#wsGuideDialog.ws-guide-native .button{min-height:48px}

/* v64: Compact only the shopfitting example on mobile Safari.
   Leave Photo day, photo controls, and all workflow buttons unchanged. */
@media (max-width:600px) {
 body[data-mobile-step="photos"] .mobile-photo-example.ws-guide-card {
   padding:9px 12px!important;
   margin-bottom:8px!important;
 }
 body[data-mobile-step="photos"] .ws-guide-card .example-photo-row {
   align-items:stretch!important;
   gap:10px!important;
 }
 body[data-mobile-step="photos"] .ws-guide-card .example-photo-row picture,
 body[data-mobile-step="photos"] .ws-guide-card .example-photo-row picture img {
   height:150px!important;
   min-height:0!important;
   max-height:150px!important;
 }
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-copy {
   gap:3px!important;
   justify-content:space-between!important;
 }
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-copy strong {
   font-size:16px!important;
   line-height:1.1!important;
 }
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-steps {
   gap:2px!important;
 }
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-steps>div {
   font-size:12px!important;
   line-height:1.15!important;
 }
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-steps b {
   width:19px!important;height:19px!important;flex-basis:19px!important;
   font-size:11px!important;
 }
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-open {
   height:46px!important;min-height:46px!important;max-height:46px!important;
   margin-top:1px!important;
 }
}

/* WorkSnap v66 - mobile-only, step 3 micro-spacing; step 1 untouched. */
@media(max-width:600px){
 body[data-mobile-step="week"] #sheetMainBody .main-day-card{margin:2px 0 3px!important;}
 body[data-mobile-step="week"] #sheetMainBody .main-day-card>summary{min-height:43px!important;padding:6px 11px!important;}
 body[data-mobile-step="week"] .draft-card .spv-week-total{margin-top:6px!important;}
 body[data-mobile-step="week"] .timesheet-signoff{margin:6px 0 8px!important;padding:8px!important;}
 body[data-mobile-step="week"] .draft-card .export-actions{margin:5px 0 6px!important;}
}

/* v68: single reminder at the BOTTOM of each step, installed app only.
   Safari browser remains identical to v66. */
.ws-bottom-note{display:none!important}
@media (display-mode:standalone) and (max-width:600px){
 .ws-bottom-note{display:block!important;margin:12px 4px 0!important;padding:0!important;
 font-size:12px!important;line-height:1.55!important;color:#8b96a6!important;text-align:left!important}
 .ws-bottom-note span{display:block}
 #saveState{white-space:normal!important}
}

/* v69: third-step reminder: one complete sentence per line, installed mobile only. */
@media (display-mode:standalone) and (max-width:600px){#saveState span{display:block!important}}

/* SPV TEST v1 — independent premium usability experiment.
   Presentation only: no changes to timesheet, photo, AI or PDF logic. */
@media(max-width:600px){
  html{scroll-behavior:smooth}
  body{overscroll-behavior-y:contain}
  body[data-mobile-step] .card{box-shadow:0 9px 28px rgba(21,54,102,.075)!important}
  body[data-mobile-step] button,body[data-mobile-step] .button,
  body[data-mobile-step] input,body[data-mobile-step] select,
  body[data-mobile-step] textarea{touch-action:manipulation}
  body[data-mobile-step] button:focus-visible,
  body[data-mobile-step] .button:focus-visible,
  body[data-mobile-step] input:focus-visible,
  body[data-mobile-step] select:focus-visible{
    outline:3px solid #7eb4ff!important;outline-offset:2px!important
  }
  body[data-mobile-step] .button.primary{
    background:linear-gradient(120deg,#1454ba,#2878e6)!important;
    box-shadow:0 5px 15px rgba(28,91,190,.18)!important;
    transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important
  }
  body[data-mobile-step] .button.primary:active{transform:scale(.985);filter:brightness(.96)}
  body[data-mobile-step] .button.secondary:active{transform:scale(.985)}
  body[data-mobile-step] .mobile-wizard .wizard-track{
    height:7px!important;border-radius:100px!important;background:#dce8f8!important
  }
  body[data-mobile-step] .wizard-track i{
    background:linear-gradient(90deg,#1e60ce,#45a5ff)!important;
    border-radius:100px!important;transition:width .35s cubic-bezier(.2,.8,.2,1)!important
  }
  body[data-mobile-step="photos"] .work-card,
  body[data-mobile-step="details"] .basics,
  body[data-mobile-step="week"] .draft-card{
    animation:spvTestStepIn .24s ease-out both
  }
  body[data-mobile-step="details"] .mobile-detail-actions .button,
  body[data-mobile-step="photos"] .step-one-next{
    min-height:50px!important
  }
  body[data-mobile-step="week"] #sheetMainBody .main-day-card>summary{
    transition:background-color .2s ease,box-shadow .2s ease!important
  }
  body[data-mobile-step="week"] #sheetMainBody .main-day-card[open]>summary{
    background:#edf5ff!important
  }
}
@keyframes spvTestStepIn{from{opacity:.7;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
  body[data-mobile-step] .work-card,body[data-mobile-step] .basics,
  body[data-mobile-step] .draft-card{animation:none!important}
  body[data-mobile-step] .wizard-track i{transition:none!important}
}

/* SPV TEST v2 — isolated premium layout layer. Production remains unchanged. */
:root{--spv-accent:#2064d5;--spv-ink:#172b48}
.spv-theme-toggle{border:1px solid #c8d6ea;border-radius:999px;background:#fff;color:#19345d;padding:9px 14px;font:700 13px/1.2 inherit;cursor:pointer;white-space:nowrap}
.spv-theme-toggle:focus-visible{outline:3px solid #68a6ff;outline-offset:2px}
@media(max-width:600px){
 body[data-mobile-step]{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
 body[data-mobile-step] .mobile-wizard{position:sticky;top:0;z-index:20;background:rgba(245,249,255,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:12px 16px;border-bottom:1px solid #dce7f5}
 body[data-mobile-step] .mobile-detail-actions,
 body[data-mobile-step] .step-one-next{scroll-margin-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
 body[data-mobile-step] .button{border-radius:14px!important;min-height:48px}
 body[data-mobile-step] .card{border-radius:22px!important;border-color:#dce6f2!important}
 body[data-mobile-step] .section-title h2{letter-spacing:-.035em}
 body[data-mobile-step] input,body[data-mobile-step] select,body[data-mobile-step] textarea{border-radius:12px!important;min-height:44px}
 body[data-mobile-step] .work-card,body[data-mobile-step] .basics,body[data-mobile-step] .draft-card{animation:spvTestStepIn .22s ease-out both}
 .spv-theme-toggle{padding:8px 10px;font-size:12px}
}
body.spv-dark{background:#0c1422!important;color:#e9f1ff!important;--spv-ink:#e9f1ff}
body.spv-dark header{background:#101d30!important;color:#edf4ff!important;border-color:#283b54!important}
body.spv-dark .card,body.spv-dark .basics,body.spv-dark .work-card,body.spv-dark .draft-card,body.spv-dark .timesheet-panel{background:#15243a!important;color:#e9f1ff!important;border-color:#31445f!important}
body.spv-dark .mobile-wizard{background:#101d30!important;color:#e9f1ff!important;border-color:#31445f!important}
body.spv-dark .spv-theme-toggle{background:#243c5d;color:#fff;border-color:#48668e}
body.spv-dark input,body.spv-dark select,body.spv-dark textarea{background:#20334d!important;color:#f5f8ff!important;border-color:#4b6686!important}
body.spv-dark input::placeholder,body.spv-dark textarea::placeholder{color:#b1c0d5!important}
body.spv-dark .button.secondary{background:#273e5b!important;color:#fff!important;border-color:#4d6687!important}
body.spv-dark .small,body.spv-dark .ws-bottom-note{color:#b5c6db!important}
@media(prefers-reduced-motion:reduce){body[data-mobile-step] .work-card,body[data-mobile-step] .basics,body[data-mobile-step] .draft-card{animation:none!important}}
/* SPV TEST v3 additive interface enhancements */
.spv-v3-panel,.spv-v3-weektools{border:1px solid #b6cbe5;border-radius:18px;padding:15px;margin:16px 0;background:linear-gradient(135deg,rgba(224,239,255,.85),rgba(255,255,255,.92));color:#19344f;box-shadow:0 8px 25px rgba(12,47,91,.06)}
.spv-v3-heading,.spv-v3-modalhead{display:flex;align-items:center;justify-content:space-between;gap:12px}.spv-v3-heading span,.spv-v3-weektools>span{font-size:12px;letter-spacing:.06em;font-weight:800;color:#5579a6}.spv-v3-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.spv-v3-actions button,.spv-v3-weektools button,.spv-v3-restore button{border:1px solid #8aadd9;background:#fff;color:#174b82;border-radius:12px;padding:12px 8px;font-weight:750;min-height:48px;cursor:pointer}.spv-v3-panel p,.spv-v3-weektools small{font-size:12px;line-height:1.5;display:block;margin:10px 0 0}.spv-v3-dialog{border:0;border-radius:20px;padding:20px;max-width:min(92vw,700px);max-height:85dvh;overflow:auto;color:#152c45;background:#fff}.spv-v3-dialog::backdrop{background:rgba(5,20,42,.76)}.spv-v3-dialog figure{margin:14px 0}.spv-v3-dialog img{display:block;max-width:100%;max-height:48dvh;margin:auto;border-radius:12px;object-fit:contain}.spv-v3-dialog figcaption{text-align:center;margin-top:8px;font-weight:700}.spv-v3-modalhead button{font-size:24px;background:transparent;border:0;cursor:pointer}.spv-v3-network{position:fixed;top:0;left:0;right:0;z-index:9999;background:#7e3912;color:white;padding:12px;text-align:center}.spv-v3-network[hidden],.spv-v3-restore[hidden]{display:none!important}.spv-v3-restore{margin:10px auto;padding:12px 16px;max-width:900px;border:1px solid #8aadd9;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eaf3ff;color:#173c68}.spv-v3-version{text-align:center;font-size:11px;opacity:.55;padding:12px}.spv-dark .spv-v3-panel,.spv-dark .spv-v3-weektools{background:linear-gradient(135deg,#1d304b,#15243b);border-color:#42638b;color:#f0f6ff}.spv-dark .spv-v3-panel p,.spv-dark .spv-v3-weektools small{color:#d2e0f2}.spv-dark .spv-v3-restore{background:#193554;color:#fff}@media(max-width:520px){.spv-v3-actions{grid-template-columns:1fr}.spv-v3-restore{flex-direction:column;align-items:stretch}}

/* SPV TEST v4: compact photo options without adding page height. */
.spv-v4-options{position:relative;margin:8px 0 4px;z-index:6}
.spv-v4-options>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;border:1px solid #b9cce5;border-radius:13px;background:#f5f9ff;color:#1b4f91;font-weight:750;cursor:pointer}
.spv-v4-options>summary::-webkit-details-marker{display:none}
.spv-v4-options[open]>summary span{transform:rotate(180deg)}
.spv-v4-option-content{position:absolute;left:0;right:0;top:calc(100% + 5px);padding:12px;border:1px solid #b5cbe5;border-radius:16px;background:#fff;box-shadow:0 16px 35px rgba(10,35,80,.22);z-index:60}
.spv-v4-choose{display:flex!important;align-items:center;justify-content:center;min-height:46px;width:100%;margin:0 0 8px!important}
.spv-v4-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.spv-v4-tools button{min-height:44px;padding:8px 5px;border-radius:11px;background:#edf5ff;border:1px solid #c6d8ef;color:#1b4f91;font-weight:700}
#v3PhotoMessage:empty{display:none}.spv-v4-options p{font-size:12px;margin:8px 0 0}
body.spv-dark .spv-v4-option-content{background:#182b44;border-color:#46688d;color:#fff}
body.spv-dark .spv-v4-options>summary,body.spv-dark .spv-v4-tools button{background:#243c5d;color:#fff;border-color:#48668e}
@media(max-width:600px){body[data-mobile-step="photos"] .photo-actions{display:flex!important;justify-content:center!important}body[data-mobile-step="photos"] .photo-actions>label{width:100%!important}body[data-mobile-step="photos"] .spv-v4-options{margin:6px 0 2px!important}body[data-mobile-step="photos"] .step-one-next{min-height:52px!important}}

/* SPV TEST v5: mobile step 1 and step 3 sized to the approved Basic Details step.
   Step 2 intentionally untouched. No fixed controls underneath Safari chrome. */
@media(max-width:600px){
  /* Remove marketing material from the work-entry screen, not from the About dialog. */
  body[data-mobile-step="photos"] .hero,
  body[data-mobile-step="photos"] .mobile-photo-example{display:none!important}
  body[data-mobile-step="photos"] main{padding-top:8px!important}
  body[data-mobile-step="photos"] .work-card{padding:16px!important;margin-top:0!important}
  body[data-mobile-step="photos"] .photo-day-picker{margin-top:0!important;margin-bottom:10px!important}
  body[data-mobile-step="photos"] .upload-box{padding:14px 12px!important;margin:8px 0!important}
  body[data-mobile-step="photos"] .upload-box>svg{width:26px!important;height:26px!important}
  body[data-mobile-step="photos"] .upload-box h3{margin:5px 0!important}
  body[data-mobile-step="photos"] .upload-box p{margin:4px 0 10px!important}
  body[data-mobile-step="photos"] .photo-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;width:100%!important}
  body[data-mobile-step="photos"] .photo-actions>label{display:flex!important;width:100%!important;min-width:0!important;align-items:center!important;justify-content:center!important;font-size:12px!important;min-height:48px!important;padding:8px 4px!important}
  body[data-mobile-step="photos"] .step-one-next{display:block!important;position:static!important;margin:12px 0 0!important;min-height:52px!important}
  body[data-mobile-step="photos"] .spv-v4-options{display:none!important}
  body[data-mobile-step="photos"] .spv-v3-restore{margin:8px 0!important}
  body[data-mobile-step="week"] main{padding-top:8px!important}
  body[data-mobile-step="week"] .draft-card{padding:12px!important;margin-top:0!important}
  body[data-mobile-step="week"] #sheetMainBody .main-day-card{margin:1px 0 3px!important}
  body[data-mobile-step="week"] #sheetMainBody .main-day-card>summary{min-height:41px!important;padding:5px 10px!important}
  body[data-mobile-step="week"] .timesheet-signoff{padding:8px!important;margin:7px 0!important}
  body[data-mobile-step="week"] .foreman-signature-launch{min-height:44px!important}
  body[data-mobile-step="week"] .draft-card .export-actions{margin:6px 0!important}
  body[data-mobile-step="week"] .quick-review-actions{margin:6px 0!important;gap:8px!important}
  body[data-mobile-step="week"] .quick-review-actions button{min-height:46px!important}
  /* Safari's floating toolbar must never cover the final action or reminder. */
  body[data-mobile-step="photos"] .work-card,
  body[data-mobile-step="week"] .draft-card{margin-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
}

/* SPV TEST v6 — accessible dark palette. Colours only; layout unchanged. */
body.spv-dark header .brand.snapvegraft-brand .snap-brand-title{color:#f5f9ff!important;text-shadow:none!important}
body.spv-dark header .brand.snapvegraft-brand .snap-brand-the{color:#70b9ff!important}
body.spv-dark header .brand.snapvegraft-brand .snap-camera-mark{background:#243c5d!important;color:#b9dcff!important;border-color:#52769f!important}
body.spv-dark .ws-guide-card,body.spv-dark[data-mobile-step="photos"] .ws-guide-card{background:#192c46!important;border-color:#4b688c!important}
body.spv-dark .ws-guide-card .ws-guide-copy strong{color:#ffffff!important}
body.spv-dark .ws-guide-card .ws-guide-steps>div,body.spv-dark .ws-guide-card .ws-guide-steps span{color:#e5efff!important}
body.spv-dark .ws-guide-card .ws-guide-steps b{background:#325e92!important;color:#ffffff!important;border:1px solid #79b7ff!important}
body.spv-dark .work-card .photo-day-picker-heading,body.spv-dark .work-card .photo-day-picker-heading strong{color:#eaf3ff!important}
body.spv-dark .section-title h2,body.spv-dark h2,body.spv-dark h3{color:#f3f8ff!important}
body.spv-dark label,body.spv-dark .date-label,body.spv-dark .small{color:#cbdcf0!important}
body.spv-dark .upload-box{background:#203551!important;border-color:#668bb8!important}
body.spv-dark .upload-box h3{color:#f5f9ff!important}
body.spv-dark .upload-box p{color:#d0e0f4!important}
body.spv-dark .upload-box>svg{color:#a8d2ff!important}
body.spv-dark .hero p,body.spv-dark .hero .eyebrow{color:#e3efff!important}
body.spv-dark .ws-bottom-note,body.spv-dark .spv-v3-version{color:#b9cbe2!important;opacity:1!important}
body.spv-dark .spv-theme-toggle{color:#fff!important}
body.spv-dark #days button:not([aria-pressed="true"]){background:#283e5d!important;color:#e7f1ff!important;border-color:#55749a!important}
body.spv-dark .local-pill,body.spv-dark .count{background:#294668!important;color:#dcecff!important;border-color:#547ca7!important}

/* SPV TEST v7: restore complete original first-page story; preserve both themes. */
@media(max-width:600px){
 body[data-mobile-step="photos"] .hero{display:block!important;margin:8px 0 10px!important;padding:17px 19px!important}
 body[data-mobile-step="photos"] .hero h1{font-size:clamp(27px,7vw,38px)!important;line-height:1.08!important;margin:4px 0 9px!important}
 body[data-mobile-step="photos"] .hero p{font-size:12px!important;line-height:1.4!important;margin:5px 0!important}
 body[data-mobile-step="photos"] .hero .steps{display:none!important}
 body[data-mobile-step="photos"] .hero-mark{display:none!important}
 body[data-mobile-step="photos"] .mobile-photo-example.ws-guide-card{display:block!important;margin:0 0 10px!important;padding:10px!important}
 body[data-mobile-step="photos"] .ws-guide-card .example-photo-row{grid-template-columns:41% minmax(0,1fr)!important;gap:9px!important}
 body[data-mobile-step="photos"] .ws-guide-card .example-photo-row picture img{height:148px!important;min-height:0!important;max-height:148px!important;object-fit:cover!important}
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-copy{gap:3px!important}
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-copy strong{font-size:13px!important}
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-steps{gap:3px!important}
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-steps>div{font-size:10px!important;line-height:1.15!important}
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-steps b{width:19px!important;height:19px!important;flex-basis:19px!important;font-size:10px!important}
 body[data-mobile-step="photos"] .ws-guide-card .ws-guide-open{min-height:32px!important;height:32px!important;font-size:11px!important;padding:4px!important;margin-top:3px!important}
 body[data-mobile-step="photos"] .work-card{padding:12px!important}
 body[data-mobile-step="photos"] .photo-day-picker{margin-bottom:5px!important}
 body[data-mobile-step="photos"] .upload-box{padding:9px 10px!important;margin:5px 0!important}
 body[data-mobile-step="photos"] .upload-box>svg{width:22px!important;height:22px!important}
 body[data-mobile-step="photos"] .upload-box h3{margin:2px 0!important}
 body[data-mobile-step="photos"] .upload-box p{margin:2px 0 7px!important;font-size:11px!important}
 body[data-mobile-step="photos"] .step-one-next{margin-top:8px!important}
}
/* Dark mode must use dark surfaces throughout, never bright white panels. */
body.spv-dark .mobile-basic-options,body.spv-dark .mobile-basic-option-buttons,
body.spv-dark .timesheet-signoff,body.spv-dark .signoff-card,
body.spv-dark .spv-premium-week,body.spv-dark .quick-review-actions,
body.spv-dark .main-day-card,body.spv-dark .main-day-card>summary,
body.spv-dark .foreman-signature-launch{background:#1b304a!important;color:#f0f6ff!important;border-color:#4b6689!important;box-shadow:none!important}
body.spv-dark .mobile-basic-option-buttons button,body.spv-dark .mobile-basic-options button,
body.spv-dark .quick-review-actions button{background:#2a4263!important;color:#f2f7ff!important;border:1px solid #56769b!important}
body.spv-dark .mobile-basic-option-buttons button.danger{background:#463344!important;color:#ffe3e7!important;border-color:#815365!important}
body.spv-dark .timesheet-signoff label,body.spv-dark label[for="openSignature"],
body.spv-dark .foreman-signature-launch span,body.spv-dark #signatureStatus{color:#f4f8ff!important;opacity:1!important}
body.spv-dark .main-day-card,body.spv-dark .main-day-card *{color:#eaf2ff}
body.spv-dark .main-day-card .status-warning{color:#ffd595!important}
body.spv-dark .ws-guide-card{background:#192c46!important;border-color:#4b688c!important}
body.spv-dark .ws-guide-card .ws-guide-copy strong,body.spv-dark .ws-guide-card .ws-guide-steps span{color:#f0f6ff!important}
body.spv-dark .ws-guide-card .ws-guide-steps b{background:#345c88!important;color:white!important}
body.spv-dark .ws-bottom-note span{display:block!important;color:#cbdaf0!important}
body.spv-dark .timesheet-panel label,body.spv-dark .timesheet-signoff label{color:#edf5ff!important}

/* SPV TEST v8: WEEK STEP ONLY. Override high-specificity legacy light day cards. */
body.spv-dark[data-mobile-step="week"] #sheetMainBody details.main-day-card,
body.spv-dark #sheetMainBody details.main-day-card{background:#192d47!important;border:1px solid #49698e!important;box-shadow:none!important;color:#f2f7ff!important}
body.spv-dark[data-mobile-step="week"] #sheetMainBody details.main-day-card>summary,
body.spv-dark #sheetMainBody details.main-day-card>summary,
body.spv-dark #sheetMainBody details.main-day-card.preview-day-idle>summary,
body.spv-dark #sheetMainBody .preview-day-idle>summary{background:#233b59!important;color:#f3f8ff!important;border-color:#49698e!important;opacity:1!important}
body.spv-dark #sheetMainBody details.main-day-card[open]>summary{background:#2b486c!important;border-bottom:1px solid #597da6!important}
body.spv-dark #sheetMainBody details.main-day-card>summary strong,
body.spv-dark #sheetMainBody details.main-day-card>summary span,
body.spv-dark #sheetMainBody details.main-day-card>summary .main-day-status{color:#f4f8ff!important;opacity:1!important;text-shadow:none!important}
body.spv-dark #sheetMainBody details.main-day-card>summary .main-day-status small{color:#ffcf89!important;opacity:1!important}
body.spv-dark #sheetMainBody details.main-day-card>summary .main-day-status small.idle-label{color:#b9c9de!important}
body.spv-dark #sheetMainBody details.main-day-card .preview-day-fields{background:#192d47!important;color:#f2f7ff!important}
body.spv-dark #sheetMainBody details.main-day-card .preview-field-label{color:#e5efff!important}
body.spv-dark #sheetMainBody details.main-day-card .preview-field.preview-missing{background:#453b29!important;border-color:#957343!important;color:#ffe7b6!important}
body.spv-dark #sheetMainBody details.main-day-card>summary::before{color:#9dcaff!important}
/* Make the note readable in two lines without being covered by Safari. */
body.spv-dark[data-mobile-step="week"] .ws-bottom-note{color:#d4e2f5!important;line-height:1.4!important;margin-bottom:calc(22px + env(safe-area-inset-bottom,0px))!important}

/* SPV HUMOR: compact hero selector, no change to functional form layout */
.banter-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:7px}.banter-picker{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:#e8f1ff;font-weight:750;font-size:11px;letter-spacing:.01em}.banter-picker select{appearance:auto;border:1px solid rgba(255,255,255,.55);background:#fff;color:#14274e;border-radius:10px;padding:7px 6px;font:700 12px system-ui;max-width:160px}.hero #banterTitle{overflow-wrap:normal}.hero #banterIntro{min-height:2.8em}@media(max-width:430px){.banter-head{align-items:flex-start}.banter-picker{font-size:10px}.banter-picker select{max-width:148px;font-size:11px;padding:6px 4px}.hero #banterTitle{font-size:clamp(26px,8vw,39px);line-height:1.07}.hero #banterIntro{font-size:12px;line-height:1.4}}

/* SPV HUMOR: clearly tappable banter selector in the blue hero */
.banter-head{align-items:flex-start!important;flex-wrap:nowrap!important}.banter-picker{flex:0 0 auto;display:flex;flex-direction:column;align-items:stretch;gap:4px;background:#2365dc;border:1px solid #91b6ff;border-radius:13px;padding:8px 10px;box-shadow:0 3px 12px #061b4166;color:#fff;font-size:11px!important;cursor:pointer}.banter-picker select{width:100%;min-width:105px;max-width:155px;border:0!important;background:#fff!important;color:#102441!important;border-radius:8px!important;padding:7px!important;font-weight:800!important;cursor:pointer}.hero #banterTitle em{font-size:.86em}@media(max-width:430px){.banter-head{gap:5px!important}.banter-picker{padding:6px 7px;font-size:10px!important}.banter-picker select{min-width:95px;max-width:118px;font-size:11px!important}.hero #banterTitle{font-size:clamp(23px,6.7vw,34px)!important}}

/* SPV HUMOR v2: compact, top-right floating banter picker. */
.hero{position:relative!important}
.hero .banter-head{display:block!important;margin:0!important;padding:0!important}
.hero .banter-picker{position:absolute!important;top:15px;right:15px;z-index:3;display:flex!important;align-items:center;flex-direction:column;gap:3px!important;width:123px!important;padding:7px!important;box-sizing:border-box;white-space:nowrap;font-size:10px!important;background:#2466df!important;box-shadow:0 4px 12px #061a3d66!important}
.hero .banter-picker select{min-width:0!important;max-width:none!important;width:100%!important;min-height:30px!important;padding:4px!important;font-size:11px!important}
.hero #banterEyebrow{display:none!important}
.hero #banterTitle{max-width:calc(100% - 116px);font-size:clamp(20px,5.1vw,32px)!important;letter-spacing:-.8px!important;line-height:1.12!important;margin:0 0 9px!important;overflow-wrap:break-word!important}
.hero #banterTitle em{font-size:.9em!important}
.hero #banterIntro{margin:0!important;font-size:12px!important;line-height:1.35!important;min-height:0!important}
@media(max-width:600px){body[data-mobile-step="photos"] .hero{padding:17px 14px 14px!important}.hero .banter-picker{top:13px;right:12px;width:116px!important}.hero #banterTitle{max-width:calc(100% - 111px)}}
@media(min-width:601px){.hero #banterTitle{max-width:calc(100% - 150px)}.hero .banter-picker{width:146px!important}}

/* HUMOR v3: larger readable banter control; fixed inside existing hero height */
.hero .banter-picker{width:160px!important;padding:10px!important;gap:6px!important;border-radius:16px!important;font-size:13px!important;line-height:1.2!important;border:2px solid #a9c9ff!important;box-shadow:0 6px 20px #071e5099!important}
.hero .banter-picker select{font-size:16px!important;min-height:40px!important;padding:7px 5px!important;font-weight:850!important}
@media(max-width:430px){.hero .banter-picker{width:145px!important;right:10px!important;top:10px!important;padding:8px!important;font-size:12px!important}.hero .banter-picker select{font-size:15px!important;min-height:37px!important}.hero #banterTitle{max-width:calc(100% - 126px)!important}}
