@font-face{font-family:AsBuilt;src:url('./vendor/pdf-fonts/LiberationSans-Regular.ttf') format('truetype');font-display:swap;font-weight:400}@font-face{font-family:AsBuilt;src:url('./vendor/pdf-fonts/LiberationSans-Bold.ttf') format('truetype');font-display:swap;font-weight:700}
:root{color-scheme:light;--ink:#223a37;--muted:#677570;--line:#d8dfda;--paper:#fff;--bg:#edf0ec;--accent:#226d5d;--accent-light:#e0eee8;--warm:#e8b276;--danger:#ac3b2b;--warn:#825716;--sidebar:350px;font-family:AsBuilt,Arial,sans-serif;color:var(--ink);font-size:13px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit;color:inherit}button,select,label.upload{cursor:pointer}button{border:1px solid var(--line);background:#fff;border-radius:5px;min-height:33px;padding:6px 11px;font-weight:700}button:hover{background:#f3f6f3;border-color:#a8b7ae}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}button.primary:hover{background:#195947}button.ghost{background:transparent}button.small{min-height:27px;padding:3px 8px;font-size:11px}button.danger{color:var(--danger)}button.icon{width:32px;min-width:32px;padding:3px;font-size:18px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #d49d56;outline-offset:2px}button:focus:not(:focus-visible){outline:0}input,select,textarea{min-width:0;width:100%;border:1px solid #cdd6cf;border-radius:4px;background:#fff;padding:7px 8px;min-height:32px}input[type=color]{height:32px;padding:3px;width:40px;flex:0 0 40px}input[type=checkbox]{width:14px;min-height:14px;margin:0;accent-color:var(--accent)}input[aria-invalid=true]{border-color:var(--danger);background:#fff5f2}textarea{resize:vertical;min-height:74px;line-height:1.4}.skip-link{position:fixed;top:-60px;background:#fff;padding:12px;z-index:10}.skip-link:focus{top:8px}a{color:var(--accent)}.app-shell{height:100dvh;display:grid;grid-template-rows:64px 46px minmax(0,1fr) 29px;overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 20px;gap:18px;background:#193936;color:#f8faf7;border-bottom:1px solid #2b4c45}.identity{display:flex;align-items:center;gap:12px;min-width:190px}.brand{display:grid;place-items:center;background:#e6b67e;color:#173931;width:35px;height:35px;border-radius:7px;font-weight:700;font-size:15px;text-decoration:none}.identity h1{font-size:16px;margin:0;font-weight:700;letter-spacing:-.3px}.eyebrow{font-size:9px;letter-spacing:2px;text-transform:uppercase;color:#bdcec5;margin-top:4px}.project-chip{border-left:1px solid #48605a;padding-left:18px;flex:1;min-width:0}.project-chip strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px;font-size:12px}.project-chip span{font-size:10px;color:#bdcec5}.top-actions{display:flex;align-items:center;gap:7px}.topbar button,.topbar select{background:#274640;border-color:#48605a;color:#f9faf7;min-height:32px}.topbar button:hover{background:#36574e}.topbar .primary{background:#e8b276;color:#173931;border-color:#e8b276}.topbar .primary:hover{background:#f0bf8d}.topbar select{width:112px;font-weight:700;padding:6px}.toolbar{display:flex;align-items:center;gap:8px;padding:0 17px;border-bottom:1px solid var(--line);background:#fafbf9}.toolbar .separator{height:22px;width:1px;background:var(--line);margin:0 6px}.toolbar .hint{font-size:11px;color:var(--muted);flex:1}.toolbar .small-select{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;color:var(--muted)}.toolbar select{width:77px;min-height:29px;padding:4px 6px;font-size:11px}.layout{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:0}.inspector{background:#f9faf7;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.tabs{display:flex;gap:4px;padding:10px 13px 0;border-bottom:1px solid var(--line);background:#f4f7f2}.tabs button{flex:1;border:0;border-radius:4px 4px 0 0;background:transparent;color:var(--muted);font-size:12px;padding-bottom:11px}.tabs button[aria-selected=true]{color:var(--accent);box-shadow:inset 0 -3px var(--accent);background:#edf3ed}.inspector-content{padding:0 14px 22px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.section{border-bottom:1px solid var(--line);padding:11px 0}.section>summary{font-size:12px;font-weight:700;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:25px}.section>summary:after{content:'+';font-size:17px;color:#6e8178}.section[open]>summary:after{content:'−'}.section-content{padding-top:12px}.field{display:flex;flex-direction:column;gap:5px;margin:0 0 10px}.field>span,.field>label{font-size:11px;font-weight:700}.field .help,.help{color:var(--muted);font-size:10.5px;line-height:1.45;font-weight:400}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.inline{display:flex;align-items:center;gap:7px}.inline>input:not([type=color]),.inline>select{flex:1}.inline .grow{flex:1}.check-line{display:flex;align-items:center;gap:8px;font-size:11px;line-height:1.4;margin-bottom:9px}.row-card{padding:10px;background:#fff;border:1px solid var(--line);border-radius:5px;margin:0 0 9px;position:relative}.row-card>summary{display:flex;gap:8px;align-items:center;cursor:pointer;font-size:11px;font-weight:700;list-style:none;min-height:22px}.row-card>summary:before{content:'›';font-size:18px;font-weight:400;color:var(--muted)}.row-card[open]>summary:before{content:'⌄'}.row-card>summary .swatch{width:9px;height:9px;border-radius:2px;flex-shrink:0}.row-card>summary .grow{flex:1}.row-card .card-body{margin-top:12px}.row-card .field:last-child{margin-bottom:0}.row-card>summary .row-measure{font-size:10px;color:var(--muted);font-weight:400;white-space:nowrap}.row-card .remove-row{width:25px;min-height:24px;border:0;background:#f5f5f1;color:#6b756f;font-size:16px;padding:1px}.row-card .remove-row:hover{color:var(--danger);background:#fff1ed}.row-card .compact-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.row-card .length-field{background:#eff5f1;padding:8px;border-radius:4px;margin-top:2px}.row-card .length-field .field{margin-bottom:0}.section-action{display:flex;justify-content:space-between;align-items:center;margin-top:9px}.empty{font-size:11px;line-height:1.5;color:var(--muted);padding:2px 0 8px}.type-row{display:flex;gap:6px;align-items:center;margin:0 0 8px}.type-row input[type=text]{flex:1}.type-row .remove-row{min-height:30px}.info-box{background:#edf3ec;border:1px solid #d8e3d6;border-radius:5px;padding:10px 11px;color:#4d6358;font-size:11px;line-height:1.5;margin-top:12px}.info-box>summary{font-weight:700;cursor:pointer}.info-box p{margin:8px 0 0}.media-row{display:flex;gap:8px;align-items:center;margin-bottom:8px}.media-row img{max-width:85px;max-height:45px;object-fit:contain;background:white;border:1px solid var(--line);padding:4px}.media-row .placeholder{display:grid;place-items:center;width:75px;height:42px;border:1px dashed #bdcbbf;font-size:10px;color:var(--muted)}.upload input{position:absolute;width:1px;height:1px;opacity:0}.upload{display:inline-flex;align-items:center;border:1px solid var(--line);background:#fff;padding:7px 10px;border-radius:4px;font-size:11px;font-weight:700}.upload:focus-within{outline:3px solid #d49d56;outline-offset:2px}.draft-warning{padding:9px 13px;background:#fff0cf;color:#76550f;font-size:11px;border-bottom:1px solid #e9d3a2}.draft-warning:empty{display:none}.workspace{display:flex;flex-direction:column;min-height:0;min-width:0;background:#e5eae4}.preview-heading{padding:11px 23px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted)}.preview-heading strong{font-weight:700;color:#455b50}.page-badge{padding:3px 6px;border:1px solid #c3d0c2;border-radius:4px;font-size:9px;text-transform:uppercase;letter-spacing:.8px;background:#eff3ec}.preview-scroll{overflow:auto;padding:5px 26px 24px;flex:1;min-height:0;scrollbar-width:thin}.paper-stack{width:100%;max-width:1260px;margin:0 auto;display:grid;gap:23px;transition:max-width .12s}.paper{background:#fff;box-shadow:0 2px 8px #263d3320,0 0 0 1px #ccd5cb;line-height:0}.paper svg{display:block;width:100%;height:auto}.preview-error{background:#fff6ee;border:1px solid #d5ad86;border-radius:6px;padding:25px;line-height:1.5}.preview-error h2{font-size:16px;margin:0 0 8px}.preview-error p{font-size:12px;margin:0;color:#805132}.analysis-panel{background:#fafcf8;border-top:1px solid #ccd6cb;max-height:230px;overflow:auto;flex-shrink:0}.totals-strip{display:flex;gap:18px;align-items:center;padding:11px 20px;min-height:55px}.total-number{font-size:22px;font-weight:700;letter-spacing:-.5px;color:#214d3d;white-space:nowrap}.total-number small{font-size:12px;margin-left:3px;font-weight:400}.total-caption{font-size:10px;color:var(--muted);margin-top:1px}.coating-totals{display:flex;flex-wrap:wrap;gap:7px;flex:1}.total-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #d3dfd3;border-radius:4px;padding:4px 7px;font-size:10px;background:#fff}.total-chip i{width:7px;height:7px;border-radius:2px}.total-chip strong{margin-left:4px}.validation-toggle{font-size:11px;white-space:nowrap}.validation-toggle.ok{color:var(--accent);background:#e7f1e8;border-color:#c8ddcb}.validation-toggle.error{color:var(--danger);background:#fff2eb;border-color:#dfbcae}.validation-toggle.warning{color:var(--warn);background:#fff8df;border-color:#e4d29e}.validation-details{padding:0 20px 13px}.validation-details[hidden]{display:none}.issue-list{list-style:none;padding:0;margin:0;display:grid;gap:5px}.issue-list li{padding:7px 9px;border-radius:4px;background:#fff6eb;color:#77531f;font-size:11px;line-height:1.4;border:1px solid #eadbc3}.issue-list li.error{background:#fff0ea;border-color:#ebc9bb;color:#a0402d}.issue-list li.ok{background:#eef5ed;border-color:#d4e2d1;color:#43664e}.measure-table{border-collapse:collapse;width:100%;font-size:10px;margin-top:9px}.measure-table th,.measure-table td{padding:6px 7px;text-align:left;border-bottom:1px solid #dce4d8}.measure-table th{color:#5c7163;font-size:9px;text-transform:uppercase;letter-spacing:.7px}.measure-table .match{color:#286449}.measure-table .mismatch{color:var(--danger)}.statusbar{background:#eef3ec;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 16px;color:#637568;font-size:10px}.statusbar .status{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.statusbar .local{white-space:nowrap}.status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#79a082;margin-right:5px}.mobile-panel-toggle{display:none}.modal-backdrop{position:fixed;inset:0;background:#16372f80;display:grid;place-items:center;z-index:20;padding:22px}.modal-backdrop[hidden]{display:none}.modal{background:#fff;border-radius:10px;box-shadow:0 16px 70px #122d3a50;padding:24px;width:440px;max-width:100%}.modal h2{font-size:19px;margin:0 0 11px}.modal p{color:#637368;font-size:13px;line-height:1.5;margin:0 0 19px}.modal-actions{display:flex;justify-content:flex-end;gap:8px}.hidden-input{display:none}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.readonly-value{padding:8px;background:#edf3ec;border-radius:4px;font-size:11px;color:#4b6556}.mini-heading{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#68806e;margin:14px 0 8px}.section-content>.help{margin:0 0 10px}.header-custom-row .field{margin-bottom:7px}.transition-summary{font-size:10px;background:#f3f6ef;color:#556e54;padding:7px;border-radius:4px;margin:7px 0 0;line-height:1.5}.sidebar-open .inspector{display:flex}
@media(min-width:1600px){:root{--sidebar:380px}.preview-scroll{padding-left:40px;padding-right:40px}.paper-stack{max-width:1380px}}
@media(max-width:1000px){:root{--sidebar:320px}.project-chip{display:none}.topbar{padding:0 12px}.top-actions{gap:5px}.topbar button{padding:5px 8px}.preview-scroll{padding:5px 15px 20px}.preview-heading{padding-left:16px;padding-right:16px}.toolbar .hint{font-size:10px}.totals-strip{gap:12px;padding:10px 14px}.coating-totals{display:none}.total-number{font-size:19px}.validation-toggle{margin-left:auto}}
@media(max-width:740px){.app-shell{grid-template-rows:auto 44px minmax(0,1fr) 29px}.topbar{min-height:95px;align-items:flex-start;padding:11px 12px;gap:8px;flex-wrap:wrap}.identity{flex:1}.identity h1{font-size:14px}.top-actions{width:100%;justify-content:flex-end}.top-actions .new-select{margin-right:auto}.topbar .brand{width:30px;height:30px}.eyebrow{font-size:8px;margin-top:2px}.top-actions button{font-size:11px;min-height:29px}.top-actions select{min-height:29px;font-size:11px}.toolbar{padding:0 10px;gap:5px}.toolbar .hint{display:none}.toolbar .separator{margin:0 2px}.toolbar .small-select{font-size:10px}.toolbar select{width:60px}.mobile-panel-toggle{display:inline-flex;align-items:center;font-size:11px;min-height:30px;padding:4px 9px}.layout{display:block;position:relative}.inspector{display:none;position:absolute;inset:0 auto 0 0;width:min(360px,92vw);z-index:5;box-shadow:9px 0 25px #19392f20}.workspace{height:100%}.preview-heading{padding:10px 12px}.preview-heading .page-badge{font-size:8px}.preview-scroll{padding:3px 12px 17px}.paper-stack{min-width:600px}.preview-scroll{overflow-x:auto}.totals-strip{padding:9px 12px}.validation-details{padding:0 12px 12px}.statusbar{padding:0 10px}.statusbar .local{display:none}}
@media print{body{background:white}.topbar,.toolbar,.inspector,.preview-heading,.analysis-panel,.statusbar{display:none}.app-shell,.layout,.workspace,.preview-scroll{display:block;height:auto;overflow:visible;padding:0}.paper-stack{max-width:none;width:100%;gap:0}.paper{box-shadow:none;break-after:page}.paper:last-child{break-after:auto}}
/* The drawing tools are local UI; none of these marks are exported. */
.draw-palette{flex-shrink:0;padding:13px 14px 10px;border-bottom:1px solid #ccd8cd;background:#eef4ed}.palette-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.palette-heading strong{font-size:12px}.palette-heading span{font-size:9px;color:var(--muted)}.draw-tools{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.draw-tools button{grid-column:span 2;display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 4px;font-size:10px;min-height:33px;background:#fdfefb;font-weight:700}.draw-tools button:nth-last-child(-n+2){grid-column:span 3}.draw-tools button span{font-size:18px;line-height:1;font-weight:400}.draw-tools button[aria-pressed=true]{background:var(--accent);color:white;border-color:var(--accent);box-shadow:0 1px 3px #173f3620}.draw-options{display:flex;gap:8px;margin-top:9px;align-items:center}.draw-options label{display:flex;align-items:center;gap:5px;font-size:10px;min-width:0;flex:1;color:#53695b}.draw-options label[hidden]{display:none}.draw-options select{font-size:10px;min-height:27px;padding:3px 4px;flex:1;width:auto}.draw-palette p{font-size:10.5px;line-height:1.4;margin:8px 0;color:#51685a;min-height:29px}.selection-strip{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #d8e2d6;padding-top:7px;font-size:10px}.selection-strip span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.selection-strip .small{padding:2px 5px;min-height:23px;font-size:10px}.inspector-content{flex:1;min-height:0}.tabs{flex-shrink:0}.row-card.selected-row{border-color:#348974;box-shadow:0 0 0 2px #338b7020}.feature-chooser{margin:0 20px 9px;background:#fbfff9;border:1px solid #a9c9b3;border-radius:6px;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;box-shadow:0 3px 10px #223d3310}.feature-chooser[hidden]{display:none}.feature-chooser strong{font-size:10px;margin-right:4px}.feature-chooser button{font-size:10px;min-height:27px;padding:4px 8px}.editor-pipe-target,.editor-body-target,.direct-handle{touch-action:none}.editor-body-target{cursor:grab}.editor-field-target,.editor-dimension-target{cursor:pointer}.editor-field-target:hover,.editor-dimension-target:hover,.editor-body-target:hover{fill:#2a8068;fill-opacity:.08}.editor-hit-targets [tabindex]:focus-visible{outline:none;fill:#2b9175;fill-opacity:.13;stroke:#226d5d;stroke-width:1.2}.direct-editor-overlay{pointer-events:none}.draw-active-pipe{fill:#3d9472;fill-opacity:.06;stroke:#34846b;stroke-opacity:.35;stroke-width:1;stroke-dasharray:4 3}.direct-selection{fill:#24876b;fill-opacity:.06;stroke:#12674f;stroke-width:1.8;vector-effect:non-scaling-stroke}.direct-handle{fill:#fff;stroke:#12674f;stroke-width:1.8;vector-effect:non-scaling-stroke;pointer-events:all;cursor:ew-resize}.direct-ghost-line{stroke:#bf772b;stroke-width:2;stroke-dasharray:4 2}.direct-ghost-span{fill:#dfaa60;fill-opacity:.3;stroke:#ac702c;stroke-width:1.4;stroke-dasharray:4 2}.direct-ghost-badge{fill:#173e34;stroke:#fff;stroke-width:1}.direct-ghost-text{fill:#fff;font:9px AsBuilt,Arial,sans-serif}.paper-stack:has(.draw-active-pipe) .editor-pipe-target,.paper-stack:has(.draw-active-pipe) .editor-body-target{cursor:crosshair}
@media(max-width:740px){.draw-palette{padding:10px 13px 8px}.draw-palette p{min-height:0}.feature-chooser{margin:0 12px 8px}.draw-tools button{min-height:38px}.draw-options select{min-height:32px}.direct-handle{stroke-width:2.4}.toolbar .small-select{gap:3px}.mobile-panel-toggle{font-size:10px;padding:4px 6px}}
@media print{.direct-editor-overlay,.editor-hit-targets,.feature-chooser,.draw-palette{display:none!important}.paper-stack{min-width:0!important;max-width:none!important}}

/* Mixed imperial measurements keep their full value legible. */
#input-units{width:118px}.total-number.imperial{font-size:18px}.editor-direction-target{cursor:pointer}.editor-direction-target:hover{fill:#226d5d;fill-opacity:.08}.field input[data-measure][type=text]{font-variant-numeric:tabular-nums}@media(max-width:740px){#input-units{width:99px}.total-number.imperial{font-size:16px}}

@media(max-width:740px){.toolbar{gap:4px;padding:0 8px}.toolbar .separator{display:none}.toolbar .small-select{gap:0}.toolbar .small-select>span{display:none}.toolbar .icon{width:28px;min-width:28px}.toolbar .mobile-panel-toggle{min-width:42px;padding:4px 7px}.toolbar select{width:58px}#input-units{width:99px}}

/* Individual measurement visibility controls. */
.measurement-box-actions{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:8px}.measurement-box-actions button{font-size:10px;padding:4px 7px}.measurement-box-count{font-size:10px;color:var(--muted);margin:0 0 10px}.measurement-box-group{margin:0 0 12px;padding:0;border:0;min-width:0}.measurement-box-group legend{font-size:10px;font-weight:700;letter-spacing:.3px;padding:0 0 6px;color:#53685c}.measurement-box-option{display:grid;grid-template-columns:14px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:32px;padding:5px 3px;border-bottom:1px solid #e4eae1;font-size:10.5px;line-height:1.35;cursor:pointer}.measurement-box-option:hover{background:#edf3ec}.measurement-box-label{overflow-wrap:anywhere}.measurement-box-value{font-variant-numeric:tabular-nums;text-align:right;color:#47685b;max-width:115px;overflow-wrap:anywhere}.toolbar .measurement-box-button{white-space:nowrap;min-height:29px;font-size:11px;padding:4px 8px}.measurement-box-option input{flex-shrink:0}
@media(max-width:740px){.toolbar .measurement-box-button{font-size:10px;padding:4px 6px}.measurement-box-value{max-width:105px}}

.measurement-box-label-short{display:none}@media(max-width:740px){.measurement-box-label-full{display:none}.measurement-box-label-short{display:inline}}

/* Linked-sheet actions remain reachable on narrow screens. */
@media(max-width:740px){.top-actions{flex-wrap:wrap;row-gap:5px}}
