:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#172b40;background:#eef2f5}*{box-sizing:border-box}body{margin:0}header{padding:27px 32px 23px;background:#10283d;color:white;display:flex;justify-content:space-between;align-items:center;gap:20px}h1{font-size:29px;letter-spacing:-.8px;margin:6px 0}header p{color:#afc0ce;font-size:14px;margin:0}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:#56c7c1}.actions{display:flex;gap:8px;flex-wrap:wrap}button{font:inherit;font-size:12px;padding:10px 13px;background:white;border:1px solid #d3dde5;border-radius:6px;color:#18394e;cursor:pointer}button:hover{background:#e6f3fa}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #e9a72a;outline-offset:2px}header button{background:#203c53;color:#fff;border-color:#456075}main{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;padding:22px}.workspace{min-width:0}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}.stat{background:white;padding:15px 20px;border:1px solid #dce4ea;border-radius:8px}.stat strong{font-size:26px;display:block}.stat span{font-size:12px;color:#657b8d}.stat progress{width:100%;height:5px;accent-color:#1685df;display:block;margin-top:9px}.toolbar{background:white;padding:12px;display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #dce4ea;border-radius:8px 8px 0 0}.legend{display:flex;gap:13px;flex-wrap:wrap;font-size:11px}.legend span{display:flex;gap:5px;align-items:center}i{display:inline-block;width:9px;height:9px;border-radius:50%}output{font-size:11px;padding:6px}.viewport{background:#d4dce2;overflow:auto;height:calc(100vh - 330px);min-height:410px;border:1px solid #dce4ea;overscroll-behavior:contain}svg{display:block;width:100%;height:auto;min-height:100%;background:#fff}.weld{cursor:pointer;outline:none}.weld .leader{fill:none;stroke-width:5;stroke-linejoin:round;stroke-linecap:round;pointer-events:none;opacity:.7}.weld .tube{stroke-width:3;fill-opacity:.3;pointer-events:none}.weld .bubble{stroke-width:3;fill-opacity:.13}.weld:hover .bubble,.weld:focus .bubble{stroke-width:6;fill-opacity:.3}.weld.selected .bubble{stroke-width:6;stroke-dasharray:7 4}.footnote{color:#697b88;font-size:11px;line-height:1.5}aside{background:white;border:1px solid #dce4ea;border-radius:9px;overflow:hidden;align-self:start}.panel-head{display:flex;justify-content:space-between;padding:17px 18px;border-bottom:1px solid #edf1f4}.panel-head .eyebrow{color:#507387}#save{font-size:10px;color:#6b7e8c}.detail{padding:20px 18px;min-height:230px}.detail h2{margin:0 0 9px;font-size:26px}.detail p{font-size:13px;line-height:1.6;color:#627789}.check{display:flex;gap:10px;padding:14px 9px;margin:9px 0;background:#f1f6fa;border-radius:6px;font-size:13px;align-items:center}.check input{width:18px;height:18px;accent-color:#1489c6}.detail textarea{width:100%;min-height:65px;border:1px solid #d5dfe7;border-radius:5px;padding:8px;font:inherit;font-size:12px;margin-top:6px}.detail label.notes{font-size:12px}.updated{font-size:10px!important}.list-heading{padding:15px 18px;background:#f5f8fa}.list-heading h3{font-size:13px;margin:0 0 10px}.list-heading input{width:100%;padding:9px;border:1px solid #d4dfe7;border-radius:5px}#register{max-height:260px;overflow:auto;padding:5px 12px}.row{display:flex;width:100%;justify-content:space-between;border:0;border-bottom:1px solid #ecf0f4;border-radius:0;align-items:center}.row.active{background:#e5f2fc}.row small{color:#637788;font-size:10px}.local-note{font-size:11px;color:#6c7e8c;line-height:1.6;padding:0 18px 8px}#message{position:fixed;bottom:20px;left:24px;background:#16364b;color:white;padding:12px 20px;border-radius:7px;display:none;font-size:13px}@media(max-width:950px){header{align-items:flex-start;flex-direction:column;padding:20px}main{grid-template-columns:1fr;padding:12px}aside{width:100%}.viewport{height:60vh}.toolbar{flex-wrap:wrap}.summary{gap:7px}.stat{padding:12px}}@media print{header{background:white;color:black}header p{color:black}.actions,.toolbar button,#register,.list-heading,.local-note,.panel-head,#detail{display:none}main{display:block;padding:0}.viewport{height:auto;overflow:visible;min-height:0}svg{width:100%!important}aside{display:none}.summary{margin:0}header{padding:0}.footnote{font-size:9px}@page{size:landscape;margin:10mm}}

.vector-leader{fill:none;stroke-linejoin:round;stroke-linecap:round;pointer-events:none}.weld .bubble{fill-opacity:1;stroke-width:2}.weld:hover .bubble,.weld:focus .bubble{stroke-width:4;fill-opacity:.22}.weld .tube{fill-opacity:.6;stroke-width:2}.inspection-stage{border:1px solid #dce5ec;border-radius:8px;padding:0 12px 10px;margin:12px 0;background:#fbfdff}.inspection-stage .check{margin:0 -12px 12px;padding:14px 10px;border-radius:8px 8px 0 0;font-weight:600}.field{display:block;font-size:11px;font-weight:600;color:#506b7e;margin:10px 0 5px}.stage-input{width:100%;font:inherit;font-size:13px;padding:9px;border:1px solid #cfdae4;border-radius:5px;background:white;color:#19384d}.stage-input:disabled{background:#edf2f6;color:#8195a4}.detail p.stage-time{font-size:10px;margin:8px 0 0;line-height:1.5;color:#718696}aside{max-height:calc(100vh - 165px);overflow:auto}#register{max-height:230px}.detail{padding:18px}.viewport{background:#eef4f8}@media(max-width:950px){aside{max-height:none}}@media print{svg{background:#fff}}

.weld.highlighted .bubble{fill-opacity:.2}.weld.selected .bubble{fill-opacity:.32;stroke:#008cff;stroke-width:5;stroke-dasharray:none}.weld.selected .tube{fill:#008cff;stroke:#008cff;fill-opacity:1}.weld.selected text{fill:#003a70}.inspection-stage:has(#before) .check{background:#fff2e6}.inspection-stage:has(#before) input[type=checkbox]{accent-color:#f58220}.inspection-stage:has(#after) .check{background:#e7f7ef}.inspection-stage:has(#after) input[type=checkbox]{accent-color:#16a56d}.stat:nth-child(2) progress{accent-color:#f58220}.stat:nth-child(3) progress{accent-color:#16a56d}

.weld .tube,.weld.selected .tube{fill:none;fill-opacity:0;stroke-width:3}.weld.selected .tube{stroke:#008cff;stroke-width:4}.weld.rejected .bubble,.weld.selected.rejected .bubble{stroke:#dc2626;fill:#dc2626;fill-opacity:.13}.weld.rejected text:first-of-type{fill:#dc2626}.weld.selected.rejected text:first-of-type{fill:#dc2626}.rt-results{display:flex;gap:12px;border-top:1px solid #dce5ec;margin-top:12px;padding-top:12px;font-size:12px}.rt-results label{display:flex;align-items:center;gap:5px}.rt-results input{width:17px;height:17px;accent-color:#16a56d}.rt-results label:last-child input{accent-color:#dc2626}.repair-child{border-left:3px solid #dc2626;margin:14px 0 0 6px;padding:0 0 0 12px}.repair-child h4{font-size:12px;color:#b91c1c;margin:0 0 12px}.repair-check{display:flex;align-items:center;gap:7px;font-size:12px}.repair-child[hidden]{display:none}

.effective-result{font-size:11px!important;font-weight:600;line-height:1.5;margin:10px 0!important}.repair-child{margin-top:16px;padding-top:4px}.repair-child .rt-results{flex-wrap:wrap}.blank-callout{pointer-events:none}

#map{margin-inline:auto}.workspace{margin-inline:auto;width:100%}

body.map-focus header,body.map-focus .summary,body.map-focus .legend,body.map-focus .footnote{display:none}body.map-focus main{padding:8px;gap:10px}body.map-focus .toolbar{padding:6px;position:sticky;top:0;z-index:5;justify-content:flex-end}body.map-focus .viewport{height:calc(100dvh - 66px);min-height:250px}body.map-focus aside{max-height:calc(100dvh - 16px)}#focus-map[aria-pressed="true"]{background:#dcefff;border-color:#008cff;color:#005a9e}@media(max-width:950px){body.map-focus aside{max-height:none}body.map-focus .toolbar{justify-content:center}body.map-focus .viewport{height:calc(100dvh - 100px)}}

[hidden]{display:none!important}.auth-gate{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#eef3f7}.auth-card{background:white;border:1px solid #d5e1ea;border-radius:14px;box-shadow:0 16px 50px #17384d12;width:min(440px,100%);padding:32px}.auth-card .eyebrow{color:#257b80}.auth-card h1{font-size:28px;margin:12px 0}.auth-card p{font-size:13px;color:#546d80;line-height:1.6}.auth-card label{display:block;font-size:12px;font-weight:600;margin:16px 0 6px}.auth-card input{width:100%;padding:12px;font:inherit;border:1px solid #bfceda;border-radius:6px}.auth-card form button{margin-top:20px;width:100%;background:#123d5c;color:white;padding:12px;font-weight:600}.auth-card>button{margin-top:8px;width:100%}#auth-message{min-height:22px}#auth-message.error{color:#b91c1c}button:disabled{cursor:default;opacity:.55}.cloud-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 24px;background:#e8f2f6;border-bottom:1px solid #cadce6;font-size:12px}.cloud-bar strong{margin-right:12px;color:#153b54}.cloud-bar span{color:#386779}.cloud-actions{display:flex;gap:6px;flex-wrap:wrap}.cloud-bar[data-state="error"]{background:#fff0e9}.cloud-bar[data-state="error"] span{color:#9c3c16}.cloud-bar[data-state="saved"] span{color:#16704a}.conflict-panel{padding:16px 18px;background:#fff1e9;border-block:1px solid #f0c5ad;font-size:12px;line-height:1.5}.conflict-panel p{color:#713e29}.conflict-panel button{margin:4px 4px 0 0}.detail input:disabled,.detail textarea:disabled{opacity:.65;cursor:default}body.map-focus .cloud-bar{padding:6px 12px}body.map-focus .viewport{height:calc(100dvh - 113px)}@media(max-width:950px){.cloud-bar{align-items:flex-start;flex-direction:column;padding:10px 14px}.cloud-bar strong{display:block;margin-bottom:5px}body.map-focus .viewport{height:calc(100dvh - 185px)}}@media print{.cloud-bar,.auth-gate,.conflict-panel{display:none!important}}

.auth-card h2{font-size:21px;margin:20px 0 8px}.auth-card .auth-link{background:none;border:0;color:#176899;text-decoration:underline;font-size:12px;padding:10px 0;margin-top:6px;width:auto}#password-account{font-weight:600;overflow-wrap:anywhere}#password-help{font-size:11px;margin:6px 0 0}#auth-back{margin-top:16px}

/* Authenticated project list */
body.projects-view #app-shell{display:none!important}.project-home{min-height:100dvh;background:#f1f5f8;color:#172f43}.project-header{min-height:82px;padding:18px max(28px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:24px;background:#10283d;color:white}.project-brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:white;font-size:18px;font-weight:650}.brand-mark{display:grid;place-items:center;width:36px;height:39px;border:1px solid #46838f;border-radius:8px;color:#7fddd4;background:#193e52;font-size:22px;font-weight:500}.project-account{display:flex;gap:18px;align-items:center;font-size:12px;color:#c2d0dc}.project-account button{color:#d9e5ed;border-color:#456075;background:#203c53}.project-content{max-width:1180px;margin:auto;padding:46px 0 72px}.project-content h1{font-size:30px;font-weight:650;letter-spacing:-.8px;margin:0 0 24px}.project-list{max-width:720px}.project-name{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;padding:24px 26px;background:white;border:1px solid #cfdee8;border-radius:9px;color:#193f5b;font-size:20px;font-weight:600;text-align:left;box-shadow:0 3px 12px #17384d04}.project-name:hover{background:#f8fcff;border-color:#75a6c0}.project-name span{font-size:28px;color:#668a9f;font-weight:400}.project-status{font-size:12px;color:#9b4b2f;line-height:1.6;margin-top:22px}.projects-view #message{z-index:10}@media(max-width:1240px){.project-content{margin-inline:28px}.project-header{padding-inline:28px}}@media(max-width:600px){.project-header{padding:18px;gap:15px;flex-wrap:wrap}.project-account{gap:12px;justify-content:space-between;flex-wrap:wrap}.project-account>span{overflow-wrap:anywhere}.project-content{margin-inline:18px;padding-top:32px}.project-name{font-size:18px;padding:21px}.project-content h1{font-size:27px}}@media print{.project-home{display:none!important}}

.blank-callout{pointer-events:auto;cursor:pointer;outline:none}.blank-callout:hover circle,.blank-callout:focus-visible circle{stroke:#008cff;stroke-width:4}.blank-error{color:#b45309!important;font-size:12px!important}#blank-weld-save{width:100%;background:#123d5c;color:white;margin-top:10px}#numbering-shared,#numbering-draft{margin:5px 0;width:100%}

/* Compact map controls; the zoom value stays available to the existing zoom logic. */
#focus-map{font-size:0;width:34px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
#focus-map::before{content:"";display:block;width:9px;height:9px;border-top:2px solid currentColor;border-left:2px solid currentColor;transform:translateY(3px) rotate(45deg)}
#focus-map[aria-pressed="true"]::before{transform:translateY(-3px) rotate(225deg)}
#focus-map:focus-visible{outline:2px solid #008cff;outline-offset:2px}

.actions-menu{position:relative;margin-left:auto;align-self:flex-start;z-index:20}
.actions-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:18px;background:#fff;color:#19384d;border:1px solid #d5e1ea;border-radius:6px;padding:9px 13px;font-size:13px;font-weight:600;user-select:none}
.actions-menu summary::-webkit-details-marker{display:none}
.actions-menu summary:focus-visible{outline:2px solid #008cff;outline-offset:3px}
.actions-menu .actions{position:absolute;right:0;top:calc(100% + 7px);display:flex;flex-direction:column;flex-wrap:nowrap;gap:3px;padding:6px;width:190px;background:#fff;border:1px solid #d5e1ea;border-radius:8px;box-shadow:0 8px 24px #17384d26}
.actions-menu .actions button{text-align:left;white-space:nowrap;width:100%;border:0;background:#fff;padding:10px 12px;color:#19384d}
.actions-menu .actions button:hover,.actions-menu .actions button:focus-visible{background:#e5f2fc}
@media(max-width:950px){#page-header{flex-direction:row;align-items:center;gap:10px}.actions-menu{align-self:center}#page-header h1{font-size:24px}}
@media print{.actions-menu{display:none!important}}

.header-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;flex-shrink:0}
.header-controls .actions-menu{margin:0;align-self:center}
.header-controls .header-icon,.header-controls .actions-menu summary{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:7px;background:#fff;color:#19384d;border:1px solid #d5e1ea;border-radius:6px}
.header-controls svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-controls .header-signout{font-size:12px;padding:7px 10px;min-height:32px;white-space:nowrap}
.header-controls .header-icon:hover,.header-controls summary:hover{background:#e5f2fc}
.header-controls button:focus-visible{outline:2px solid #008cff;outline-offset:3px}
@media(max-width:600px){#page-header{flex-wrap:wrap}.header-controls{margin-left:auto}#page-header h1{font-size:21px}.header-controls{gap:5px}}
@media print{.header-controls{display:none!important}}

/* Keep the small map controls on the right edge of the legend panel. */
.toolbar,body.map-focus .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;row-gap:6px;align-items:start}
.toolbar .legend{grid-column:1;grid-row:1 / 3;align-self:start;padding-top:5px}
.zoom-controls{grid-column:2;grid-row:1;display:flex;gap:4px;justify-content:flex-end}
.zoom-controls #minus,.zoom-controls #plus{width:25px;height:25px;padding:0;font-size:17px;line-height:1;border-radius:4px}
.toolbar #focus-map{grid-column:2;grid-row:2;justify-self:end;width:25px;height:22px;border-radius:4px}
#focus-map::before{width:7px;height:7px;border-width:1.5px}
.header-controls .header-icon,.header-controls .actions-menu summary{background:#203c53;color:#fff;border-color:#456075}
.header-controls .header-icon:hover,.header-controls .actions-menu summary:hover{background:#2c4b63}
.header-controls svg{min-height:0;background:transparent}

.reports-section{margin:0 22px 28px;padding:24px;background:#fff;border:1px solid #dce4ea;border-radius:9px}
.reports-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.reports-heading h2{margin:0;font-size:21px}.reports-heading p,.report-help,#reports-status,#reports-setup{font-size:12px;line-height:1.6;color:#637788}.reports-heading p{margin:7px 0 0}
#report-form{max-width:760px}#report-form fieldset{border:1px solid #dce4ea;border-radius:6px;padding:12px;margin:16px 0}#report-form legend{font-size:12px;font-weight:600;padding:0 5px}#report-file{max-width:100%;font:inherit;font-size:13px}#report-weld-search{width:100%;max-width:260px;padding:9px;border:1px solid #cfdae4;border-radius:5px}
.report-welds{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;margin-top:12px;max-height:180px;overflow:auto;padding:3px}.report-welds label{display:flex;gap:6px;align-items:center;font-size:12px;cursor:pointer;padding:6px;border:1px solid #e0e8ef;border-radius:4px}.report-welds input{accent-color:#008cff}#report-upload{background:#203c53;color:#fff}#reports-status.error{color:#b91c1c}.reports-list{margin-top:20px;display:grid;gap:12px;font-size:13px;color:#637788}.reports-list article{border-top:1px solid #e0e8ef;padding-top:14px}.reports-list h3{font-size:14px;color:#19384d;margin:0;overflow-wrap:anywhere}.reports-list p{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin:7px 0}
@media(max-width:950px){.reports-section{margin:0 12px 20px;padding:18px}.reports-heading{align-items:flex-start;flex-wrap:wrap}}
@media print{.reports-section{display:none!important}}
