:root{color-scheme:light;--ink:#373435;--muted:#5f6062;--line:#e0e1e2;--paper:#fff;--canvas:#f5f5f5;--charcoal:#373435;--silver:#a9abae;--brand-green:#009933;--action:#00782a;--action-hover:#006423;--mint:#e3f4e8;--shadow:0 2px 4px #3734350d;--radius:15px;font-family:Arial,Helvetica,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--canvas);color:var(--ink);font-size:15px}
button,input,textarea{font:inherit}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
button,.file-button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
.export-download[hidden]{display:none}
:focus-visible{outline:3px solid var(--action);outline-offset:3px}
button,.primary,.secondary,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;font-weight:650;line-height:1.3;white-space:nowrap}
.primary,.secondary,.text-button{min-height:42px;padding:9px 14px}
.primary{border:1px solid transparent;background:var(--action);color:#fff}
.primary:hover:not(:disabled){background:var(--action-hover)}
.secondary{border:1px solid #ccd9d0;background:#fff;color:#20482c}
.secondary:hover{background:#eef5ef}
.text-button,.icon-button{border:0;background:transparent;color:#006a27}
.text-button:hover,.icon-button:hover{background:#e8f1e9}
.icon-button{width:38px;height:38px;padding:0}
.loading{min-height:90vh;display:grid;place-items:center;color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.brand{width:min(100%,220px);padding:11px 13px;background:#fff;border:1px solid var(--line);border-radius:12px}
.brand img{display:block;width:100%;height:auto}
.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.65px;display:flex;align-items:center;gap:8px;color:#516057}
.eyebrow span,.connection i,.pill i{display:inline-block;width:7px;height:7px;background:currentColor;border-radius:50%;flex:none}
.auth-shell{display:grid;grid-template-columns:minmax(385px,45%) 1fr;min-height:100dvh}
.auth-panel{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;min-height:100%;padding:46px clamp(32px,5.2vw,86px);overflow:hidden;background:linear-gradient(145deg,var(--charcoal),#20432b);color:#fff}
.auth-panel::before,.hero-art{content:"";position:absolute;z-index:-1;inset:0;background:repeating-radial-gradient(ellipse at 92% 58%,transparent 0 27px,#a9abae35 28px 29px,transparent 30px 42px);mask-image:linear-gradient(105deg,transparent 24%,#000 84%);pointer-events:none}
.auth-copy{padding:60px 0}
.auth-copy .eyebrow,.hero .eyebrow{color:#a7edbb}
.auth-copy h1{font-size:clamp(43px,5.7vw,88px);letter-spacing:-.062em;line-height:.98;margin:20px 0 25px}
.auth-copy p{max-width:38ch;color:#ebefec;font-size:17px;line-height:1.6;margin-bottom:28px}
.auth-feature{display:flex;align-items:center;gap:10px;color:#e8ede9;margin:14px 0}
.auth-feature svg{color:#a7edbb}
.auth-footer{display:flex;justify-content:space-between;gap:16px;color:#d3d5d7;font-size:10px;font-weight:700;letter-spacing:1.4px}
.auth-main{display:grid;place-items:center;padding:26px;background:radial-gradient(ellipse at 74% 18%,#ebf2ec,transparent 58%),var(--canvas)}
.auth-card{width:min(100%,460px);padding:40px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 65px #37343512}
.auth-card h2{font-size:38px;letter-spacing:-1.6px;margin:10px 0}
.auth-card p,dialog>p{line-height:1.6;color:var(--muted);margin-bottom:20px}
.auth-card form,.auth-card .primary{width:100%}
.auth-card .primary{justify-content:space-between}
.auth-card .text-button{margin-top:10px;padding-left:0}
.auth-help{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;border-top:1px solid var(--line);padding-top:16px;margin-top:22px}
.auth-help svg{width:17px;flex:none}
.auth-card .setup-notice{margin:14px 0 0;color:#694d12;font-size:13px}
form label{display:grid;gap:7px;margin:0 0 15px;font-size:14px;font-weight:650}
input,textarea{min-height:44px;border:1px solid #cbd8ce;border-radius:8px;background:#fff;color:var(--ink);padding:10px 12px;width:100%;font-weight:400}
textarea{resize:vertical}
.address-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:12px}
.address-note{overflow-wrap:anywhere;margin:0 0 15px;color:var(--muted);font-size:13px}
.form-error{color:#a52f30;font-size:14px;margin:0 0 10px;min-height:0}
.form-error:empty{display:none}
.workspace{min-height:100dvh;display:grid;grid-template-columns:234px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;background:var(--charcoal);padding:27px 17px 16px;color:#f1f1f2}
.sidebar .brand{width:100%}
.side-label{color:var(--silver);font-size:10px;letter-spacing:1.65px;font-weight:750;margin:44px 0 11px 10px}
.sidebar nav{display:grid;gap:5px}
.sidebar nav a{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:9px;font-weight:650}
.sidebar nav a[aria-current]{background:#255637;color:#d1f7dc}
.sidebar nav a:hover{background:#255637}
.side-bottom{margin-top:auto}
.connection{display:flex;gap:8px;align-items:center;font-size:12px;color:#d3d5d7;margin:0 0 16px 8px}
.connection i{color:#77e39a}
.profile{display:flex;align-items:center;gap:8px;border-top:1px solid #626064;padding-top:14px}
.avatar{width:34px;height:34px;border-radius:10px;background:#d0efd9;color:#21442d;display:grid;place-items:center;flex:none;font-weight:750;font-size:13px}
.profile-name{min-width:0;flex:1}
.profile-name strong,.profile-name small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-name strong{font-size:13px}
.profile-name small{color:#d3d5d7;font-size:11px;margin-top:3px}
.profile .icon-button{color:#d3d5d7;flex:none;width:31px}
.profile .icon-button:hover{background:#255637}
.topbar{height:64px;padding:0 clamp(22px,4vw,56px);display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.topbar b{color:var(--silver);margin:0 8px}
.top-account{display:flex;align-items:center;gap:6px;font-weight:650}
.mobile-logout{display:none}
.content{padding:28px clamp(22px,4vw,56px) 45px;max-width:1600px;margin:auto}
.hero{position:relative;isolation:isolate;display:flex;align-items:flex-end;justify-content:space-between;gap:22px;overflow:hidden;padding:29px 32px;border-radius:var(--radius);background:linear-gradient(111deg,var(--charcoal),#20432b);color:#fff}
.hero h1,.job-head h1{font-size:clamp(35px,4vw,55px);line-height:1.04;letter-spacing:-.055em;margin:9px 0}
.hero p{color:#ebefec;line-height:1.55;max-width:56ch}
.hero .primary{min-height:46px;border-color:#ffffff5c}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:16px 0 22px}
.stat{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:var(--shadow)}
.stat-icon,.empty-icon{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;color:#006a27;background:#e5f2e9;flex:none}
.stat-icon.amber{background:#fcf0d5;color:#8a5e0d}
.stat-icon.green{background:#e0f4e7;color:#006a27}
.stat p{font-size:13px;color:var(--muted);margin-bottom:1px}
.stat strong{display:block;font-size:25px;line-height:1.1}
.list-panel,.job-head,.check-section,.summary{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.list-top{padding:21px 22px 14px;display:flex;align-items:center;justify-content:space-between;gap:15px}
h2{font-size:21px;letter-spacing:-.45px}
.list-top p,.empty p{font-size:14px;color:var(--muted);margin-top:5px}
.search{width:min(100%,248px);display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #d7e2d8;border-radius:9px;color:var(--muted)}
.search input{min-height:38px;border:0;padding:7px 0;background:transparent}
.tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:0 22px 10px}
.tabs button{border:0;background:transparent;color:var(--muted);padding:7px 11px;min-height:36px;font-size:13px}
.tabs button[aria-pressed="true"]{background:var(--mint);color:#17552b}
.empty{text-align:center;padding:32px 14px 35px}
.empty-icon{margin:0 auto 12px;width:48px;height:48px}
.empty h3{font-size:18px}
.empty .secondary{margin-top:15px}
.table-wrap{position:relative;overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left}
th,td{padding:13px 11px;border-bottom:1px solid var(--line);font-size:13px}
th:first-child,td:first-child{padding-left:22px}
th:last-child,td:last-child{padding-right:22px}
th{background:#f7faf6;font-weight:650;color:#50665c}
tr:last-child td{border-bottom:0}
td:first-child{min-width:180px}
td small,.team-row small{display:block;margin-top:4px;color:var(--muted);overflow-wrap:anywhere}
.row-link{font-weight:750;font-size:15px}
.row-link:hover,.back-link:hover{text-decoration:underline}
.row-progress{display:flex;align-items:center;gap:6px;white-space:nowrap}
.row-progress progress{width:48px;height:6px}
progress{appearance:none;border:0;border-radius:10px;overflow:hidden;background:#e6eee6;color:var(--brand-green)}
progress::-webkit-progress-bar{background:#e6eee6}
progress::-webkit-progress-value{background:var(--brand-green)}
progress::-moz-progress-bar{background:var(--brand-green)}
.open-row{display:inline-grid;place-items:center;color:#3a6757;min-width:30px;height:34px}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;padding:6px 10px}
.pill.complete{color:#225b44;background:#e4f3e8}
.pill.draft{color:#74510c;background:#faf0d5}
.back-link{display:inline-flex;align-items:center;gap:7px;margin-bottom:15px;color:#3b6658;font-weight:650}
.job-head{padding:22px 25px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:17px}
.job-head h1{overflow-wrap:anywhere}
.job-status{display:grid;justify-items:end;gap:10px}
.job-address{display:flex;gap:6px;align-items:center;overflow-wrap:anywhere}
.job-address svg{flex:none}
.job-meta{font-size:13px;color:var(--muted);margin-top:9px}
.job-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(225px,270px);gap:15px;align-items:start}
.checklist{display:grid;gap:14px}
.check-section{scroll-margin-top:12px}
.check-section header{display:flex;align-items:center;gap:9px;padding:14px 15px;background:#f7faf6;border-radius:15px 15px 0 0;border-bottom:1px solid var(--line)}
.check-section header h2{font-size:17px}
.check-section header small{color:var(--muted);margin-left:auto;white-space:nowrap}
.section-index{color:#4a6d60;font-size:11px;font-weight:750}
.stage{display:flex;align-items:center;gap:11px;padding:15px;border-bottom:1px solid var(--line)}
.stage:last-child{border:0}
.stage-current{box-shadow:inset 3px 0 var(--action);background:#f5fbf6}
.stage-lock{color:var(--muted);font-size:12px;max-width:13em}
.stage-number{width:37px;height:37px;border-radius:8px;display:grid;place-items:center;background:#eef2ed;color:#44675b;font-size:12px;font-weight:750;flex:none}
.stage-done .stage-number{background:#e2f3e7}
.stage-copy{flex:1;min-width:0}
.stage h3{font-size:15px;margin-bottom:3px}
.stage p{font-size:13px;color:var(--muted);line-height:1.4}
.stage-action,.photo-controls,.damage-options{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.photo-controls{justify-content:flex-end}
@media(min-width:721px){#stage-3 .stage-action{max-width:min(48%,240px);justify-content:flex-end}}
.stage-action .secondary,.stage-action .text-button,.damage-options button{font-size:12px;min-height:40px;padding:7px 9px}
.stage-action svg{width:17px}
.file-button{position:relative}
.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer;min-height:0;padding:0}
.file-button:focus-within{outline:3px solid var(--action);outline-offset:3px}
.file-button.uploading{opacity:.55;cursor:wait}
.photo-preview{width:48px;height:48px;padding:0;overflow:hidden;border:1px solid #c7d8cb;background:#e7eee8}
.photo-preview img{width:100%;height:100%;object-fit:cover}
.stage-check,.stage-result{display:inline-flex;align-items:center;gap:5px;color:#2c7854;font-size:13px}
.stage-result,.damage-options{margin-top:8px}
.damage-options button[aria-pressed="true"]{background:#dcefdc;border-color:#5e927b}
.summary{padding:17px;position:sticky;top:14px}
.summary h2{font-size:17px}
.summary-count{margin:9px 0;color:var(--muted)}
.summary-count strong{font-size:27px;color:var(--ink)}
.summary progress{width:100%;height:8px}
.summary nav{display:grid;gap:2px;margin:14px 0}
.summary nav a{display:flex;justify-content:space-between;align-items:center;padding:7px 0;font-size:13px;color:#345b4f}
.summary nav a:hover{text-decoration:underline}
.summary nav svg{width:16px}
.summary .primary{width:100%;font-size:13px}
.summary>small{display:block;margin-top:9px;color:var(--muted);line-height:1.45}
.team-create{display:flex;flex-wrap:wrap;gap:8px}
.team-panel{margin-top:17px}
.team-row{padding:14px 22px;border-top:1px solid var(--line);display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.team-member{display:flex;align-items:center;gap:10px;flex:1;min-width:160px;overflow-wrap:anywhere}
.team-avatar{width:42px;height:42px;flex:none;border-radius:10px;background:var(--mint);object-fit:cover}
.team-initials{display:grid;place-items:center;color:var(--action);font-size:13px;font-weight:750}
.team-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.team-row button{font-size:13px}
dialog{border:1px solid var(--line);border-radius:16px;padding:22px;width:min(calc(100% - 30px),490px);max-height:90dvh;color:var(--ink);box-shadow:0 20px 70px #37343550}
dialog::backdrop{background:#37343588}
.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dialog-head{margin-bottom:10px}
.dialog-actions{justify-content:flex-end;margin-top:15px}
.large-photo{display:block;width:100%;max-height:70dvh;object-fit:contain;background:#eef3ed;border-radius:8px}
#toast{position:fixed;z-index:4;right:20px;bottom:20px;max-width:min(390px,calc(100% - 40px));color:#fff;background:#235332;border-radius:10px;padding:12px 15px;box-shadow:0 5px 18px #37343530;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s}
#toast.visible{opacity:1;visibility:visible}
#toast.error{background:#823738}
@media(max-width:1180px){.job-layout{grid-template-columns:minmax(0,1fr) 225px}.stage-action{max-width:165px;justify-content:flex-end}}
@media(max-width:950px){.workspace{grid-template-columns:180px minmax(0,1fr)}.job-layout{grid-template-columns:1fr}.summary{position:static}.summary nav{display:none}.summary .primary{margin-top:9px}.stage-action{max-width:none}}
@media(max-width:720px){.auth-shell{grid-template-columns:1fr}.auth-panel{padding:20px 22px}.auth-copy,.auth-footer{display:none}.auth-main{padding:20px 15px;align-items:start}.auth-card{padding:24px}.auth-card h2{font-size:32px}.workspace{display:block}.sidebar{position:static;height:auto;padding:13px 15px;display:flex;flex-direction:row;gap:14px;align-items:center;justify-content:space-between}.sidebar .brand,.auth-panel .brand{width:118px;padding:6px 8px;flex:none}.sidebar nav{display:flex;flex-wrap:wrap;gap:3px;justify-content:flex-end}.sidebar nav a{padding:8px;font-size:12px;gap:5px}.sidebar nav svg{width:16px}.side-bottom,.side-label{display:none}.topbar{height:47px;padding:0 15px}.mobile-logout{display:inline-flex}.content{padding:13px 12px 26px}.hero{padding:19px;align-items:flex-start;flex-direction:column;gap:14px}.hero h1,.job-head h1{font-size:36px}.hero p{font-size:14px}.stats{gap:6px;margin:10px 0 13px}.stat{gap:7px;padding:10px 7px}.stat-icon{width:27px;height:27px;border-radius:7px}.stat-icon svg{width:15px}.stat p{font-size:11px}.stat strong{font-size:19px}.list-top{padding:14px;align-items:flex-start;flex-direction:column}.tabs{padding:0 8px 8px;gap:3px}.tabs button{padding:6px 8px;font-size:12px}th:first-child,td:first-child{padding-left:13px}th,td{padding:8px}.job-head{padding:14px;flex-wrap:wrap}.job-status{display:flex;align-items:center;flex-wrap:wrap}.job-status .secondary{font-size:12px;min-height:35px}.stage{display:grid;grid-template-columns:34px minmax(0,1fr);padding:12px;gap:8px}.stage-number{width:34px;height:34px}.stage-action{grid-column:2;justify-content:flex-start}.stage-action:empty{display:none}.photo-controls{justify-content:flex-start}.check-section header{padding:12px;gap:6px}.check-section header h2{font-size:16px}.check-section header small{font-size:11px}}
@media(max-width:365px){.sidebar nav a svg,.stat-icon{display:none}.sidebar{gap:6px}.sidebar nav a{padding:7px}.stat{padding-left:8px}}

.pill.deleted{background:#f3eeee;color:#793835}
.danger-button{color:#973e38}
.danger-button:hover{background:#faf0ef}

.danger-primary{background:#9a3b35;color:#fff}
.danger-primary:hover:not(:disabled){background:#7f2e2a}
.purge-customer{overflow-wrap:anywhere;margin:0 0 14px}

.visit-evidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:15px}
.visit-evidence>div{min-width:0;display:grid;justify-items:start;align-content:start;gap:9px}
.visit-evidence p,.extra-photos p{color:var(--muted);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.visit-evidence button{white-space:normal}
.visit-portrait{width:78px;height:78px}
#add-extra-photo{margin-left:auto}
.extra-photos{display:grid;gap:12px;padding:15px}
.extra-photo{display:flex;align-items:flex-start;gap:12px}
.extra-photo .photo-preview{width:64px;height:64px;flex:none}
.extra-photo p{white-space:pre-wrap}
@media(max-width:420px){.visit-evidence{grid-template-columns:1fr}.dialog-actions{flex-wrap:wrap}}
