:root{--navy:#0b3555;--blue:#5c84bc;--blue-dark:#355f98;--pale:#edf4fb;--secondary:#769ccf;--ink:#19354b;--muted:#62788b;--line:#d9e3ec;--green:#207056;--red:#ab3543;--amber:#946126}*{box-sizing:border-box}body{margin:0;background:#f5f7fa;color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:15px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #6f9bda;outline-offset:3px}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}header{height:99px;padding:0 4.5%;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.logo{width:300px;height:auto;display:block}header .right{display:flex;align-items:center;gap:18px}.private{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;background:#f1f5f8;border:1px solid var(--line);border-radius:20px;padding:8px 12px}.nav{display:flex;gap:8px}.nav button{border:0;background:transparent;color:var(--muted);padding:11px 16px;border-radius:8px;font-weight:600}.nav button.active{background:var(--pale);color:var(--navy)}.nav svg{vertical-align:-3px;margin-right:6px}.shell{max-width:1300px;margin:auto;padding:42px 48px 130px}.eyebrow{color:var(--blue-dark);font-size:11px;font-weight:750;letter-spacing:1.8px;text-transform:uppercase;margin:0 0 12px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;margin-bottom:28px}h1{font-size:34px;font-weight:700;letter-spacing:-1px;line-height:1.15;margin:0 0 10px}h2{font-size:20px;letter-spacing:-.4px;margin:0 0 6px}h3{font-size:15px;margin:0 0 16px}p{line-height:1.6;margin:0}.sub{color:var(--muted)}.record-pill{font-size:12px;border:1px solid var(--line);border-radius:7px;padding:10px 14px;color:var(--muted);background:#fff;white-space:nowrap}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#e7edf3;border-radius:10px;padding:5px;margin-bottom:28px}.step{border:0;background:transparent;text-align:left;padding:13px 18px;color:var(--muted);border-radius:7px;font-weight:650;display:flex;gap:12px;align-items:center}.step.active{background:#fff;color:var(--navy);box-shadow:0 2px 5px #16354b0c}.step .num{width:26px;height:26px;background:#dce5ee;border-radius:50%;display:grid;place-items:center;font-size:12px}.step.active .num{background:var(--navy);color:#fff}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:28px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px;margin-bottom:20px;box-shadow:0 3px 12px #19354b03}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:16px}.card-title{display:flex;align-items:center;gap:12px}.icon-box{width:38px;height:38px;background:var(--pale);border-radius:9px;display:grid;place-items:center;color:var(--blue-dark);flex-shrink:0}svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.small{font-size:12px;color:var(--muted)}.grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 18px}.span2{grid-column:1/-1}.field{display:block;min-width:0}.field-label{font-size:12px;font-weight:650;display:block;margin-bottom:8px;color:#344e63}.required{color:var(--blue-dark);margin-left:3px}input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;min-height:46px;border:1px solid #cfdbe6;background:#fff;border-radius:7px;color:var(--ink);padding:11px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #5c84bc20}textarea{min-height:94px;resize:vertical}.invalid{border-color:var(--red)!important}.error-text{display:block;color:var(--red);font-size:12px;margin-top:6px}.hint{color:var(--muted);font-size:12px;margin-top:8px;line-height:1.6}.water-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.toggle-line{display:flex;align-items:center;gap:9px;font-size:13px;min-height:40px;margin-bottom:16px}input[type=checkbox]{width:19px;height:19px;accent-color:var(--blue-dark);flex-shrink:0}.chemical-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.chemical{border:1px solid var(--line);border-radius:8px;padding:10px 12px}.chemical>label{display:flex;gap:10px;align-items:center;min-height:28px;font-size:13px}.chemical.selected{border-color:#99b5d9;background:#f6faff}.dose{display:grid;grid-template-columns:1fr 86px;gap:8px;margin-top:10px}.dose input,.dose select{min-height:38px!important;font-size:13px;padding:7px!important}.aside-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:16px}.aside-card h3{font-size:12px;text-transform:uppercase;letter-spacing:1.3px;color:var(--muted)}.aside-row{padding:12px 0;border-bottom:1px solid #edf1f5;display:flex;justify-content:space-between;gap:10px;font-size:12px}.aside-row:last-child{border:0}.aside-row strong{font-size:12px;text-align:right}.save-status{display:flex;gap:8px;align-items:center;font-size:12px;line-height:1.5;color:var(--green)}.dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0}.aside-note{padding:20px;border-radius:10px;background:#e8f0f9;border:1px solid #d5e3f1;color:var(--navy)}.aside-note svg{margin-bottom:12px}.aside-note strong{display:block;font-size:13px;margin-bottom:7px}.aside-note p{font-size:12px;color:#5b748c}.progress-bar{height:5px;background:#e6edf4;border-radius:4px;margin:12px 0;overflow:hidden}.progress-bar i{display:block;height:100%;background:var(--blue);transition:width .2s}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #cedce8;border-radius:7px;background:#fff;color:var(--ink);padding:11px 16px;min-height:44px;text-decoration:none;font-size:13px;font-weight:650;white-space:nowrap}.btn.primary{background:var(--navy);color:white;border-color:var(--navy)}.btn.primary:hover{background:#164969}.btn:hover{border-color:#7d9abc}.btn.quiet{border-color:transparent;background:transparent}.btn.danger{color:var(--red)}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.bottom-bar{position:fixed;bottom:0;left:0;right:0;background:#ffffffed;backdrop-filter:blur(10px);border-top:1px solid var(--line);z-index:10;padding:16px max(24px,calc((100vw - 1204px)/2));display:flex;justify-content:space-between;gap:18px;align-items:center;padding-bottom:max(16px,env(safe-area-inset-bottom))}.bottom-left{display:flex;gap:12px;align-items:center}.bottom-left p{font-size:12px;color:var(--muted)}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.check-group{border:1px solid var(--line);border-radius:10px;overflow:hidden}.group-head{padding:15px 16px;background:#f6f9fc;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.group-head h3{margin:0;font-size:14px}.group-count{font-size:11px;color:var(--muted)}.check-row{padding:14px 16px;border-bottom:1px solid #edf1f5}.check-row:last-child{border:0}.check-label{font-size:13px;margin-bottom:9px;line-height:1.4}.segments{display:flex;border:1px solid var(--line);border-radius:6px;overflow:hidden;max-width:340px}.segments button{min-height:40px;flex:1;border:0;border-right:1px solid var(--line);background:#fff;font-size:12px;color:var(--muted);padding:8px 6px}.segments button:last-child{border:0}.segments button.selected{background:#e7f2ec;color:var(--green);font-weight:700}.segments button.selected.issue,.segments button.selected.Poor{background:#fff0ee;color:var(--red)}.segments button.selected.na{background:#edf1f5;color:var(--muted)}.segments button.selected.Fair{background:#fbf3e3;color:var(--amber)}.condition-row{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:15px;padding:9px 0;border-bottom:1px solid #edf1f5;font-size:13px}.condition-row .segments{max-width:none}.condition-row:last-child{border:0}.package-checks{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.error-banner{background:#fff0ef;border:1px solid #efbcc0;border-radius:8px;padding:16px;margin-bottom:20px;color:var(--red);font-size:13px}.error-banner a{color:var(--red)}.review-banner{display:flex;gap:12px;background:#edf5fc;border:1px solid #c9ddee;border-radius:10px;padding:18px;margin-bottom:20px}.review-banner strong{display:block;font-size:14px;margin-bottom:3px}.review-banner p{font-size:12px;color:var(--muted)}.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.summary-field dt{font-size:11px;color:var(--muted);margin-bottom:5px}.summary-field dd{font-size:14px;font-weight:550;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.summary-field{margin:0}.review-table{width:100%;border-collapse:collapse;font-size:12px}.review-table th{text-align:left;color:var(--muted);font-weight:550}.review-table th,.review-table td{padding:10px 0;border-bottom:1px solid #edf1f5}.review-table td:last-child{text-align:right}.badge{display:inline-block;padding:5px 8px;border-radius:5px;background:#eef3f7;color:var(--muted);font-size:11px;font-weight:650}.badge.done,.badge.Good,.badge.completed{color:var(--green);background:#e7f2ec}.badge.issue,.badge.Poor{color:var(--red);background:#fff0ee}.badge.Fair{color:var(--amber);background:#fbf3e3}.review-notes{white-space:pre-wrap;font-size:13px;line-height:1.7}.signature{width:100%;height:110px;border:1px dashed #aac0d4;border-radius:8px;touch-action:none;background:#fafcfe;display:block}.signature-title{display:flex;justify-content:space-between;align-items:center;margin:10px 0 6px}.signature-title span{font-size:11px;color:var(--muted)}.signature-title button{border:0;background:transparent;font-size:11px;color:var(--blue-dark);padding:8px}.sign-image{max-width:100%;height:85px;object-fit:contain;object-position:left}.archive-toolbar{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:22px}.search{max-width:420px;flex:1}.archive-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:28px}.stat{border:1px solid var(--line);border-radius:10px;background:#fff;padding:20px 24px}.stat span{font-size:12px;color:var(--muted)}.stat strong{display:block;font-size:28px;font-weight:650;margin-top:8px}.archive-table{width:100%;border-collapse:collapse}.archive-table th{text-align:left;font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);padding:18px;border-bottom:1px solid var(--line)}.archive-table td{padding:18px;font-size:13px;border-bottom:1px solid #edf1f5}.archive-table td strong{display:block;margin-bottom:4px}.archive-table td small{color:var(--muted)}.table-card{padding:0;overflow:hidden}.empty{text-align:center;padding:65px 25px}.empty svg{width:36px;height:36px;color:var(--blue);margin-bottom:18px}.empty p{max-width:380px;margin:10px auto 24px;color:var(--muted);font-size:13px}.archive-table .btn{padding:8px 12px;min-height:38px}.footer{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding-top:10px;gap:20px}.footer a{color:inherit;text-decoration:none}#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:96px;border-radius:8px;background:var(--navy);color:#fff;padding:13px 20px;z-index:30;max-width:90vw;font-size:13px;display:none;box-shadow:0 5px 25px #15364a25}dialog{border:1px solid var(--line);border-radius:12px;padding:28px;max-width:420px;width:90%;color:var(--ink)}dialog::backdrop{background:#0b243c70}dialog p{margin:15px 0 22px;color:var(--muted);font-size:14px}.saved-heading{background:#e9f4ee;border:1px solid #c5dfd1;color:var(--green);padding:18px;border-radius:10px;margin-bottom:24px}.saved-heading h2{font-size:17px}.print-brand{display:none}
@media(min-width:901px){.aside{position:sticky;top:24px;align-self:start}}@media(max-width:1050px){.shell{padding:32px 28px 130px}.workspace{grid-template-columns:minmax(0,1fr) 225px;gap:20px}.card{padding:22px}.check-grid{grid-template-columns:1fr}.private{display:none}.logo{width:270px}.water-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){header{height:auto;min-height:87px;padding:16px 20px;flex-wrap:wrap;gap:14px}.logo{width:245px}header .right{width:100%}.nav{width:100%;border-top:1px solid #edf1f5;padding-top:10px}.nav button{flex:1;padding:10px}.shell{padding:26px 18px 155px}.page-heading{align-items:flex-start;margin-bottom:22px}h1{font-size:28px}.page-heading .record-pill{display:none}.steps{margin-bottom:20px}.step{padding:12px 8px;gap:7px;font-size:11px}.step .num{width:21px;height:21px;font-size:10px;flex-shrink:0}.workspace{display:block}.aside{display:none}.card{padding:20px 16px;border-radius:10px}.card-head{gap:10px}.card-head .small{display:none}.card-title h2{font-size:18px}.grid{gap:18px 12px}.chemical-grid,.package-checks{grid-template-columns:1fr}.water-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-bar{padding:12px 18px max(12px,env(safe-area-inset-bottom));flex-wrap:wrap;gap:8px}.bottom-left{width:100%;justify-content:space-between}.bottom-bar>.actions{width:100%;justify-content:space-between}.bottom-bar>.actions .primary{flex:1}.bottom-left p{font-size:11px}.footer{display:block;line-height:1.9}.archive-toolbar{flex-wrap:wrap}.search{max-width:none;min-width:100%}.archive-toolbar .actions{width:100%}.archive-stats{gap:8px}.stat{padding:15px 12px}.stat span{font-size:10px}.stat strong{font-size:23px}.archive-table thead{display:none}.archive-table,.archive-table tbody,.archive-table tr,.archive-table td{display:block}.archive-table tr{position:relative;padding:16px;border-bottom:1px solid var(--line)}.archive-table td{border:0;padding:4px 0}.archive-table td:last-child{position:absolute;right:16px;top:17px}.archive-table td:nth-child(2){max-width:65%}.archive-table td:nth-child(3){display:none}.review-grid{gap:16px}.condition-row{grid-template-columns:88px 1fr;gap:8px}.segments button{font-size:11px}.error-banner ul{padding-left:18px}.signature{height:100px}}
@media(max-width:400px){.grid{grid-template-columns:1fr}.span2{grid-column:auto}.step{font-size:10px;padding:10px 5px}.step .num{display:none}.water-grid{gap:15px 10px}}
@media print{@page{size:A4;margin:14mm}body{background:white;color:#16354b;font-size:10pt}header,.nav,.steps,.aside,.bottom-bar,.footer,.no-print,#toast,.review-banner,.saved-heading,dialog{display:none!important}.shell{padding:0;max-width:none}.workspace{display:block}.page-heading{margin-bottom:18px}h1{font-size:22pt}h2{font-size:14pt}.print-brand{display:block;width:230px;margin:0 0 20px}.card{border:1px solid #d9e3ec;border-radius:5px;box-shadow:none;padding:14px;margin-bottom:14px;break-inside:avoid}.card-head{margin-bottom:14px}.icon-box{display:none}.check-grid{grid-template-columns:1fr 1fr}.review-table{font-size:8.5pt}.review-table td,.review-table th{padding:5px 0}.badge{padding:2px 5px;font-size:8pt}.review-grid{gap:12px}.summary-field dd{font-size:10pt}.summary-field dt{font-size:8pt}.record-pill{font-size:9pt}.sign-image{height:65px}.review-notes{font-size:9pt}.btn{display:none!important}}
.office-shell{max-width:1000px}.office-shell .connection-word{font-size:1.35rem}.setup-steps{margin:20px 0;padding-left:24px;line-height:1.65}.setup-steps li{padding-left:6px;margin-bottom:12px}.setup-steps code{font-size:.875rem;overflow-wrap:anywhere}.office-shell .card{margin-bottom:24px}.transfer-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.transfer-row:last-child{border:0}.transfer-row p{margin-top:6px}.office-shell .review-notes{margin-bottom:12px}.office-shell .hint{margin-top:12px}header .nav{flex-wrap:wrap}@media(max-width:650px){header .nav button{font-size:.875rem;padding:8px 10px}.office-shell .archive-stats{grid-template-columns:1fr}.office-shell .actions{flex-wrap:wrap}}

/* Native date controls must shrink within the form grid, including iOS Safari. */
input[type=date]{display:block;width:100%;min-width:0;max-width:100%;height:46px;min-height:46px;overflow:hidden;appearance:none;-webkit-appearance:none;line-height:22px;text-align:left}input[type=date]::-webkit-date-and-time-value{min-height:22px;text-align:left}input[type=date]::-webkit-datetime-edit{padding:0}
.segments button.selected.next_visit,.badge.next_visit{background:#fbf3e3;color:var(--amber);font-weight:700}
.nav a{display:flex;align-items:center;color:var(--muted);padding:11px 16px;border-radius:8px;font-weight:600;text-decoration:none}@media(max-width:650px){.nav a{font-size:.875rem;padding:8px 10px}}

header{height:auto;min-height:99px;padding-top:16px;padding-bottom:16px}header .right{max-width:100%}header .nav{justify-content:flex-end}.office-shell input[type=checkbox]{width:auto;min-height:0}
@media(max-width:760px){header .nav{justify-content:flex-start;gap:4px}.nav a{min-height:40px}}
