:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#183c36;background:#f4f5f0;font-synthesis:none}*{box-sizing:border-box}body{margin:0;padding-bottom:env(safe-area-inset-bottom)}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;border-radius:9px;min-height:44px;padding:11px 16px;color:#254c42;background:#e9eee6;font-weight:650}button:hover{filter:brightness(.97)}button:disabled{opacity:.5;cursor:wait}a{color:inherit}header{background:#163c36;color:#fff;padding:18px 30px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:max(18px,env(safe-area-inset-top))}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;font-size:22px;font-weight:650;letter-spacing:-.5px}.brand small{display:block;font-size:9px;letter-spacing:2.6px;margin-top:3px;color:#b7cebd}.brand-icon{font-weight:800;font-size:25px;letter-spacing:-4px;border:1px solid #769086;border-radius:9px;padding:8px 15px 8px 11px}.brand-icon span{color:#c4dc9f}.header-right{display:flex;gap:16px;align-items:center;font-size:12px;color:#bed0c7}.light{background:#ffffff14;color:#fff;font-size:12px}.shell{max-width:1500px;margin:auto;display:grid;grid-template-columns:300px minmax(0,1fr);min-height:calc(100vh - 88px)}.sidebar{padding:28px 22px;border-right:1px solid #dce3d7;background:#eef1e9}.aside-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.aside-head h2{font-size:16px;margin:0}.count{background:#dfe7d7;padding:4px 9px;border-radius:5px;font-size:12px}.primary{background:#244f40;color:white}.secondary{border:1px solid #c8d3c1;background:white}.wide{width:100%;margin-bottom:9px}.sidebar input{margin:15px 0 18px;font-size:12px;padding:12px}input,select,textarea{width:100%;min-height:46px;padding:12px;border:1px solid #cbd6c5;border-radius:8px;background:#fff;color:#183c36}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid #65894f;outline-offset:3px}textarea{resize:vertical;line-height:1.6;min-height:100px}label{font-size:12px;font-weight:650;display:block;margin:0 0 7px}label small{font-weight:400;color:#7b8777}.job{display:block;text-align:left;background:transparent;border:1px solid transparent;width:100%;padding:15px 12px;margin-bottom:7px;font-weight:400;border-radius:10px}.job.active{background:white;border-color:#c5d4bb;box-shadow:0 2px 5px #294b3a06}.job strong{display:block;font-size:14px;margin:9px 0 5px;overflow-wrap:anywhere}.job .reason{font-size:12px;color:#65735f;margin-bottom:10px;overflow-wrap:anywhere}.job-meta{font-size:10px;color:#7c8775;display:flex;justify-content:space-between}.tag{font-size:9px;letter-spacing:.6px;text-transform:uppercase;background:#eaf0dd;color:#4b6639;border-radius:4px;padding:4px 6px}.tag.closed{background:#e7eeeb;color:#477264}.local-note{font-size:11px;color:#61735a;margin:28px 8px 0;line-height:1.7}.local-note p{color:#7a8572;margin:6px 0}.dot{display:inline-block;width:6px;height:6px;background:#789a55;border-radius:50%;margin-right:6px}main{padding:36px 40px 70px;min-width:0;max-width:1100px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#7a876e}.titlebar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:10px 0 24px}h1{font-size:30px;letter-spacing:-1px;margin:0 0 6px;overflow-wrap:anywhere}p{line-height:1.6}.sub{font-size:13px;color:#71806b;margin:0}.save{font-size:11px;color:#64834e;white-space:nowrap}.tabs{display:flex;border-bottom:1px solid #d5dece;gap:25px;margin-bottom:26px}.tabs button{padding:14px 0;border-radius:0;background:transparent;color:#89917e;font-size:13px;border-bottom:3px solid transparent;display:flex;align-items:center;gap:8px}.tabs button.selected{border-color:#355e45;color:#244d3c}.step{font-size:10px;border:1px solid #d3dccc;border-radius:50%;width:20px;height:20px;display:grid;place-items:center}.selected .step{background:#355e45;color:white;border-color:#355e45}.card{background:white;border:1px solid #dce3d6;border-radius:13px;padding:25px;margin-bottom:18px;box-shadow:0 3px 15px #193c3003}.card h2{font-size:17px;margin:0 0 7px}.card>p{color:#7a8673;font-size:12px;margin:0 0 24px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field.full{grid-column:1/-1}.card-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.card-heading h2{margin:0}.mini-label{color:#89927d;font-size:10px;letter-spacing:1px}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:22px}.actions .spacer{flex:1}.text-btn{background:transparent;padding:8px;font-size:12px}.danger{color:#a04e3d}.muted{font-size:12px;color:#7b8574}.empty{padding:45px 20px;text-align:center;color:#77836b;font-size:13px;line-height:1.7}.empty h2{color:#264d3d;font-size:22px}.empty-icon{font-size:32px;color:#8fa37a;margin:10px}.dropzone{border:1px dashed #b6c8a5;background:#f7f9f2;border-radius:10px;text-align:center;padding:24px 16px;margin-top:20px}.dropzone p{font-size:12px;color:#7b8773}.photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:24px}.photo{border:1px solid #d9e1d3;border-radius:10px;overflow:hidden}.photo img{width:100%;height:220px;object-fit:contain;background:#eef1e8;display:block}.photo-body{padding:14px}.photo-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.photo-top strong{font-size:12px}.photo-top button{padding:4px 9px;min-height:36px;font-size:12px}.photo textarea{font-size:12px;min-height:70px}.review{border-top:3px solid #244f40}.review-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dbe2d4;padding-bottom:20px;margin-bottom:22px}.review-head h2{font-size:24px;margin:0}.review-head small{font-size:10px;color:#7a8772}.review-meta{display:grid;grid-template-columns:1fr 1fr;gap:18px;font-size:13px;margin-bottom:24px}.review-meta small{display:block;font-size:10px;color:#7b8670;margin-bottom:5px}.review h3{font-size:11px;text-transform:uppercase;letter-spacing:1.3px;border-bottom:1px solid #e2e7dc;padding-bottom:10px}.prose{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}.note{background:#eaf0e2;border-radius:9px;padding:14px;font-size:12px;line-height:1.6;color:#5c7250}.download-link{display:block;border:1px solid #bdceb0;background:#edf4e4;border-radius:9px;padding:15px;font-size:13px;font-weight:650;margin-top:12px;overflow-wrap:anywhere}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}dialog{border:1px solid #d4dec9;border-radius:16px;padding:26px;max-width:540px;width:calc(100% - 30px);color:#264837;max-height:85vh}dialog::backdrop{background:#0b271fc0}dialog h2{margin:0;font-size:21px}dialog h3{font-size:15px;margin-top:24px}dialog p,dialog li{font-size:13px;line-height:1.7}dialog li{margin-bottom:9px}.dialog-top{display:flex;justify-content:space-between;align-items:center}#toast{display:none;position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90%;background:#183d31;color:white;padding:14px 20px;border-radius:10px;box-shadow:0 6px 24px #0002;font-size:13px;z-index:10}.error-banner{background:#fff0df;border:1px solid #d6a05c;padding:16px;border-radius:9px;color:#863e21;font-size:13px;margin-bottom:18px}.welcome{margin-top:40px}.welcome h1{font-size:38px}.welcome p{max-width:470px;color:#75806b}.welcome .card{margin-top:35px}.welcome-number{font-size:32px;color:#a0b58a;font-weight:300}.welcome-row{display:flex;gap:22px;align-items:center;margin:20px 0}.welcome-row b{display:block;font-size:14px}.welcome-row small{color:#7b8772;font-size:12px}
@media(max-width:900px){.shell{grid-template-columns:240px 1fr}.sidebar{padding:24px 16px}main{padding:28px 24px}.tabs{gap:15px}.tabs button{font-size:12px}.grid{gap:16px}.photo-grid{grid-template-columns:1fr}}@media(max-width:650px){header{padding:16px 18px}.brand{font-size:20px}.header-right>span{display:none}.header-right button{font-size:11px;padding:8px 11px}.shell{display:block}.sidebar{padding:17px 18px;border-right:0;border-bottom:1px solid #d8e1cf}.aside-head{margin-bottom:12px}.sidebar .wide{width:auto;font-size:12px;padding:10px 13px;margin-right:5px}.sidebar input{margin:8px 0;font-size:13px}#reportList{display:flex;gap:8px;overflow:auto;max-height:180px}.job{min-width:210px;max-width:240px;margin:6px 0}.local-note{display:none}main{padding:24px 18px 50px}.titlebar{align-items:flex-start;margin-bottom:17px}h1{font-size:25px}.save{font-size:10px;margin-top:7px}.tabs{gap:20px;margin-bottom:20px}.card{padding:20px 16px}.grid{grid-template-columns:1fr}.field.full{grid-column:auto}.photo-grid{grid-template-columns:1fr}.actions>button{flex:1}.actions .spacer{display:none}.review-meta{gap:14px}.welcome{margin-top:8px}.welcome h1{font-size:30px}.photo img{height:260px}}

/* Keep editable text readable and avoid iOS focus zoom, including photo captions. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
input,select,textarea,.sidebar input,.photo textarea{font-size:16px}
.field,.photo,.photo-body,.titlebar>div{min-width:0}
.photo img{max-width:100%}
@media(max-width:650px){
  .tabs{gap:8px}
  .tabs button{flex:1;min-width:0;gap:5px;text-align:left}
  .tabs .step{flex-shrink:0}
  .review-meta{grid-template-columns:repeat(2,minmax(0,1fr));overflow-wrap:anywhere}
}
@media(max-width:360px){header{flex-wrap:wrap}.titlebar{flex-wrap:wrap}}

/* The report preview follows the navy PDF branding; the app keeps its own identity. */
.report-logo{display:block;width:250px;max-width:100%;height:auto;margin:0 0 20px}
.review{color:#17364d;border-top-color:#103047}
.review .eyebrow,.review-meta small{color:#768b9c}
.review-head{border-color:#d8e2ea}
.review .tag{background:#e5edf4;color:#375c77}
.review h3{color:#103047;border-bottom-color:#dde5ed}
@media(max-width:650px){.review-head{align-items:flex-start}.report-logo{width:210px}}

/* Shared notebook mark for app header and installed icon. */
img.brand-icon{display:block;width:48px;height:48px;padding:0;border:0;border-radius:11px;flex-shrink:0}

/* Saved jobs and per-report plan location. */
.report-row{display:flex;align-items:center;gap:16px;width:100%;text-align:left;background:#f7f9f3;border:1px solid #dde5d6;margin:10px 0;padding:15px}.report-row>span:first-child{flex:1;min-width:0}.report-row strong,.report-row small{display:block;overflow-wrap:anywhere}.report-row small{font-size:12px;color:#72816b;margin-top:6px}.plan-scroll{width:100%;overflow:auto;border:1px solid #d5dfcf;border-radius:8px;background:#f7f8f4;margin:16px 0}.plan-sheet{position:relative;width:100%;line-height:0;user-select:none;-webkit-user-select:none}.plan-sheet img{display:block;width:100%;height:auto;pointer-events:none}.plan-sheet[role=button]{cursor:crosshair;touch-action:pan-x pan-y pinch-zoom}.plan-marker{position:absolute;transform:translate(-50%,-50%);border:3px solid #d62f24;border-radius:50%;background:#ffdb0040;pointer-events:none;box-sizing:border-box;box-shadow:0 0 0 1px #fff9}.marker-size{font-size:12px;max-width:220px;margin:0}.marker-size input{min-height:44px;padding:0}#backToJob{margin:0 0 18px}.card>button{margin-top:10px}#jobNewReport{margin:0}.plan-sheet:focus-visible{outline:3px solid #65894f;outline-offset:-3px}
@media(max-width:650px){.report-row{gap:8px;padding:12px}.report-row strong{font-size:14px}.card-heading{flex-wrap:wrap;gap:12px}.plan-marker{border-width:2px}}
.location-card{margin:24px 0;padding-top:12px;border-top:1px solid #d5dfe2}.plan-sheet{position:relative}.freehand-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.location-card select{font-size:16px;padding:10px}.location-card .plan-sheet{cursor:crosshair;user-select:none}
.plan-sheet{background:white;isolation:isolate}.plan-white-mask{position:absolute;inset:0;background:white;z-index:1;pointer-events:none}.plan-marker,.freehand-overlay{z-index:2}.plan-options{display:flex;gap:24px;flex-wrap:wrap;align-items:center;margin-top:16px}.plan-options label{font-size:14px}.plan-options input[type=checkbox]{width:20px;min-height:20px;vertical-align:middle}.plan-options input[type=range]{display:block;min-width:180px}.plan-zoom-dialog{width:98vw;max-width:none;height:96dvh;max-height:96dvh;padding:12px;overflow:auto}.zoom-toolbar{position:sticky;top:-12px;z-index:5;background:white;display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px;border-bottom:1px solid #ccd5d8}.zoom-toolbar label{font-size:14px}.zoom-toolbar input{max-width:180px;min-height:30px}.plan-zoom-dialog .location-card{margin:0;border:0}.plan-zoom-dialog .plan-scroll{height:60dvh;overflow:auto;overscroll-behavior:contain}.plan-zoom-dialog .plan-sheet{max-width:none;min-width:100%;touch-action:pan-x pan-y pinch-zoom}.plan-zoom-dialog .plan-sheet img{max-width:none}
.plan-zoom-dialog [data-delete-location]{display:none}
.plan-open{display:block;padding:0;width:100%;background:white;border:1px solid #d5dfe2;overflow:hidden;text-align:left}.plan-open .plan-scroll{margin:0;border:0}.plan-open-hint{display:block;padding:12px;text-align:center;color:#163c36;background:#f1f5f3}.plan-open .plan-sheet{cursor:zoom-in}.plan-editor{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#f7f9f8;overflow:hidden}.plan-editor[open]{display:flex;flex-direction:column}.editor-top{display:flex;justify-content:space-between;gap:8px;padding:10px max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left));background:white;border-bottom:1px solid #d5dfdc;flex-shrink:0}.editor-tools,.editor-global,.editor-options{display:flex;align-items:center;gap:6px}.plan-editor button{min-width:44px;min-height:44px;margin:0;touch-action:manipulation;padding:8px 12px}.editor-icon{width:48px;height:48px;border:2px solid transparent;background:#f0f4f2;padding:9px!important}.editor-icon svg{display:block;width:28px;height:28px;fill:none;stroke:#163c36;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}.editor-icon[aria-pressed=true]{border-color:#163c36;background:#dcebe5}.editor-options{padding:8px 10px;background:white;flex-shrink:0;min-height:60px;overflow-x:auto}.editor-options button{flex-shrink:0;background:#f0f4f2}.editor-options [aria-pressed=true]{background:#dcebe5;box-shadow:inset 0 0 0 2px #163c36}.editor-options [data-width]{display:flex;align-items:center;gap:8px}.width-icon{display:inline-block;width:20px;background:#d62e24;border-radius:4px}.tool-separator{width:1px;align-self:stretch;background:#d5dfdc;margin:4px}.editor-viewport{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#dce3e0;touch-action:none}.editor-stage{min-width:100%;min-height:100%;padding:12px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:max-content}.editor-stage .plan-sheet{flex:none;width:100%;max-width:none;line-height:0;touch-action:none!important}.editor-stage img{width:100%;max-width:none;display:block}.editor-mask{padding:8px 12px;background:white}.editor-mask[hidden]{display:none}.editor-mask label{display:flex;align-items:center;gap:10px;font-size:13px}.editor-mask input{flex:1;min-height:30px;padding:0}.editor-status{margin:0;padding:8px 12px max(8px,env(safe-area-inset-bottom));font-size:12px;flex-shrink:0;background:white}.plan-editor::backdrop{background:#163c36}@media(max-width:450px){.editor-top{gap:3px}.plan-editor button{padding:7px 9px}.editor-global{gap:3px}.editor-options{gap:3px;padding:6px}.editor-options button{min-width:40px}.editor-icon{width:44px;height:44px}}
@font-face{font-family:'Field Narrow';src:local('Arial Narrow'),url('assets/plan-narrow.otf') format('opentype');font-weight:400;font-display:swap}.plan-sheet{container-type:inline-size}.plan-text{position:absolute;z-index:3;white-space:pre;left:0;top:0;font-family:'Field Narrow','Arial Narrow',Arial,sans-serif;font-size:calc(var(--text-size) * .1cqw);font-weight:400;line-height:1.2;text-transform:uppercase;pointer-events:none;user-select:none}.plan-sheet[data-tool=text] .plan-text{pointer-events:auto;cursor:move;outline:1px dashed #163c3670;outline-offset:2px}.editor-colour,.editor-size{display:flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap}.editor-colour input[type=color]{width:42px;height:38px;min-height:38px;padding:3px;border:1px solid #d5dfdc}.editor-size input{width:110px;min-height:36px;padding:0}.text-box-editor{width:min(92vw,480px);max-height:90dvh;overflow:auto}.text-box-editor label{display:block;margin:12px 0}.text-box-editor textarea{font-family:'Field Narrow','Arial Narrow',Arial,sans-serif;font-size:22px;text-transform:uppercase;min-height:110px}.text-box-editor [type=color]{width:70px;padding:4px}.text-box-editor output{margin-left:8px}.editor-viewport{touch-action:none!important}@media(max-width:450px){.editor-top{flex-wrap:wrap}.editor-tools{gap:3px}.editor-global{margin-left:auto}.editor-tools .editor-icon{min-width:40px;width:40px;padding:7px!important}.editor-global button{min-width:38px;padding:7px}.editor-global [data-mask-toggle],.editor-global [data-undo]{min-width:34px;width:34px;padding:4px}.editor-top .primary{font-size:13px}}
.saved-reports-dialog{width:min(640px,calc(100% - 24px))}
.saved-report-row{display:flex;align-items:center;gap:8px}
.saved-report-row .report-row{flex:1;min-width:0}
.saved-report-row [data-remove-report]{flex:none}
.plan-sheet[data-tool=eraser] .freehand-overlay polyline{pointer-events:stroke}
.plan-sheet[data-tool=eraser] :is(.plan-text,.plan-marker){pointer-events:auto}
