: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%}
}
