/* Module shell and CAD workspace. All presentation is scoped; source geometry is untouched. */
[hidden],.cad-panel[hidden],#cutpathPanel[hidden]{display:none!important}
.module-nav{height:51px;display:flex;align-items:stretch;justify-content:space-between;gap:20px;padding:0 25px;background:#191e26;border-bottom:1px solid #343d4a}
.module-tabs{display:flex;gap:23px;min-width:0}.module-tabs>button{border:0;border-radius:0;border-bottom:2px solid transparent;min-height:50px;padding:0 2px;gap:9px;background:transparent;color:#a5b1c2;font-size:12px;font-weight:600;white-space:nowrap}
.module-tabs>button:hover{background:transparent;color:#f3f3f0}.module-tabs>button[aria-selected=true]{border-bottom-color:var(--accent);color:#ffb181}.module-tabs .icon{width:17px;height:17px}.module-note{font-size:10px;color:#8b98aa;align-self:center}
#cutpathPanel{outline:none}#cutpathPanel .studio-layout{height:calc(100dvh - 158px)}
body[data-module=cad]{height:auto;padding-bottom:0}body[data-module=cad] [data-cut-only]{display:none!important}body[data-module=cad] .header-divider{display:none}
.cad-panel{--cad-teal:#90cec3;--cad-line:#f7b17f;max-width:2400px;margin:auto;padding:20px 25px 25px;min-width:0;outline:none}
.cad-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.cad-heading .eyebrow{font-size:8px;letter-spacing:.16em;color:#96aaa9}.cad-heading h2{font-size:25px;line-height:1.3;font-weight:600;letter-spacing:-.035em;margin:4px 0}.cad-heading p{font-size:11px;color:var(--muted);line-height:1.6}.cad-file-actions{display:flex;gap:7px;flex-wrap:wrap}.cad-file-actions button{font-size:11px;min-height:39px;padding:9px 13px}.cad-file-actions .icon{width:17px;height:17px}
.cad-source-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:35px;border:1px solid #2e3844;border-radius:8px 8px 0 0;background:#1a2029;padding:8px 12px;font-size:10px}.cad-source-bar>div{min-width:0;display:flex;align-items:center;gap:9px}.cad-live-dot{width:6px;height:6px;border-radius:50%;background:#8b9caf;flex-shrink:0}.cad-panel[data-loaded=true] .cad-live-dot{background:#91c9b4;box-shadow:0 0 0 3px #31423f}.cad-source-bar strong{color:#e3e8ed;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:28vw}.cad-source-bar #cadSourceSummary{color:#94a4b7;white-space:nowrap}.cad-privacy{color:#a2b2ba;font-size:9px;text-align:right}
.cad-layout{display:grid;grid-template-columns:minmax(0,1fr) 302px;min-width:0;gap:20px;padding-top:16px;align-items:start}.cad-stage{display:flex;flex-direction:column;gap:11px;min-width:0}.cad-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:37px}.cad-toolbar h3{font-size:12px;font-weight:600;margin-bottom:2px}.cad-toolbar>div>span{font-size:10px;color:#94a4b7;font-variant-numeric:tabular-nums}.cad-view-actions{display:flex;gap:5px;flex:0 0 auto}.cad-view-actions button{min-height:34px;font-size:11px;padding:6px 8px}.cad-view-actions .icon-button{width:34px}.cad-view-actions .icon{width:16px;height:16px}.cad-view-actions #cadPan[aria-pressed=true]{color:var(--accent);border-color:#856448;background:#382b23}
.cad-canvas{position:relative;isolation:isolate;height:clamp(390px,calc(100dvh - 420px),810px);min-height:330px;overflow:hidden;border:1px solid #414c5c;border-radius:10px;background-color:#141c24;background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px),radial-gradient(ellipse at 40% 40%,#25344366,transparent 80%);background-size:28px 28px,28px 28px,100% 100%;box-shadow:inset 0 0 65px #060b1026,0 8px 25px #0002;transition:border-color .18s}
.cad-canvas.dragover{border-color:var(--accent);box-shadow:inset 0 0 0 2px var(--accent),0 8px 25px #0002}.cad-canvas>svg{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;outline-offset:-4px}.cad-canvas[data-pan=true]>svg{cursor:grab}.cad-canvas[data-dragging=true]>svg{cursor:grabbing}.cad-entity{color:var(--cad-line)}.cad-entity[data-palette="1"]{color:#8ecfc4}.cad-entity[data-palette="2"]{color:#a2bbef}.cad-entity[data-palette="3"]{color:#d7adf0}.cad-entity[data-palette="4"]{color:#e4ce8d}.cad-entity[data-palette="5"]{color:#e49eab}.cad-entity[data-palette="6"]{color:#accc94}.cad-entity[data-palette="7"]{color:#c1cedc}.cad-entity-path{fill:none;stroke:currentColor;stroke-width:1.45;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}.cad-entity-hit{stroke:transparent;fill:none;stroke-width:13;vector-effect:non-scaling-stroke;pointer-events:stroke;cursor:pointer}.cad-entity[data-selected=true] .cad-entity-path{stroke:#fff3b3;stroke-width:2.6;filter:drop-shadow(0 0 2px #e4b96a77)}.cad-entity[data-approximate=true] .cad-entity-path{stroke-dasharray:5 4}.cad-entity[data-excluded=true]{opacity:.25}.cad-entity[data-excluded=true] .cad-entity-path{stroke-dasharray:2 5}.cad-selection-box{fill:#fff0aa0b;stroke:#fae59b;stroke-width:1;stroke-dasharray:5 5;vector-effect:non-scaling-stroke;pointer-events:none}
.cad-canvas-top{position:absolute;top:13px;left:15px;right:15px;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none;color:#849aac;font-size:8px;letter-spacing:.1em}.cad-canvas-top>span:last-child{font-size:8px;letter-spacing:.03em;background:#1e2a35d9;border:1px solid #3d5266;border-radius:4px;padding:3px 6px;color:#b8c9d5;max-width:65%;text-align:right}.cad-view-bottom{position:absolute;bottom:12px;left:15px;right:12px;display:flex;justify-content:space-between;align-items:flex-end;gap:12px;pointer-events:none}.cad-view-bottom #cadCursor{color:#809aae;font-size:9px;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px #000;max-width:calc(100% - 122px);overflow:hidden}.cad-zoom{pointer-events:auto;display:flex;align-items:center;background:#1b2732e8;border:1px solid #3a4b5c;border-radius:8px;padding:3px;gap:1px}.cad-zoom button{padding:4px;width:29px;min-height:29px;background:transparent;border-color:transparent;color:#c8d5df;font-size:18px;font-weight:450}.cad-zoom output{float:none;font-size:10px;color:#c8d5df;min-width:43px;text-align:center}.cad-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:23px;overflow:hidden;background:radial-gradient(ellipse at 50% 38%,#213240 0,#17222c 55%,#141d26 100%)}.cad-empty .eyebrow{font-size:8px;color:#88aaa9;letter-spacing:.16em}.cad-empty h3{font-size:clamp(24px,2.5vw,35px);font-weight:550;letter-spacing:-.045em;line-height:1.25;margin-top:10px;color:#e9edea}.cad-empty p{font-size:11px;line-height:1.75;color:#9aafbe;margin:11px 0 17px}.cad-empty-actions{display:flex;gap:10px}.cad-empty-actions button{font-size:11px;min-height:39px;padding:9px 13px}.cad-empty-note{font-size:8px;color:#7e98aa;margin-top:15px;line-height:1.5}.cad-loading{position:absolute;bottom:58px;left:50%;transform:translateX(-50%);max-width:calc(100% - 26px);display:flex;align-items:center;gap:9px;z-index:4;border:1px solid #756447;background:#28271df5;color:#ecdfbd;box-shadow:0 7px 25px #0004;border-radius:9px;padding:6px 8px 6px 13px;font-size:11px;white-space:nowrap}.cad-loading button{color:#ecd6af;font-size:10px}.cad-progress-dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#ffb86f;animation:signal 1.4s ease-in-out infinite}
.cad-canvas-help{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:28px;margin-top:-6px;font-size:9px;color:#8195a8}.cad-canvas-help>span{line-height:1.5}.cad-canvas-help>button{min-height:28px;padding:4px 0;color:#b8c8d4;font-size:10px;white-space:nowrap}
.cad-inspector{border:1px solid #333d4a;border-radius:10px;padding:14px 16px;background:#1b222c}.cad-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.cad-section-head>div{min-width:0}.cad-section-head .eyebrow{font-size:7.5px;letter-spacing:.13em;color:#98bcb6}.cad-section-head h3{font-size:12px;font-weight:550;margin-top:4px}.cad-section-head>button{font-size:10px;min-height:29px;padding:5px 0}.cad-pill{border:1px solid #435264;color:#aabacc;line-height:1.3;font-size:9px;padding:3px 6px;border-radius:4px;white-space:nowrap;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;max-width:55%}.cad-pill[data-valid=true]{color:#b1d8bf;border-color:#436254;background:#1c302a}
.cad-select-row{display:grid;grid-template-columns:1fr 1.3fr;gap:13px;margin-top:3px}.cad-panel label{font-size:10px}.cad-panel input:not([type=checkbox],[type=file]),.cad-panel select{min-height:37px;font-size:11px;background:#151d26;border-color:#3e4e60}.cad-entity-details{font-variant-numeric:tabular-nums;margin-top:12px;min-width:0}.cad-entity-details .cad-muted{font-size:11px;padding:5px 0}.cad-entity-meta{display:flex;gap:7px 12px;flex-wrap:wrap;font-size:10px;line-height:1.5;margin-bottom:10px;color:#b4c5d4}.cad-entity-meta>span{overflow-wrap:anywhere}.cad-entity-meta strong{font-weight:500;color:#e1e8eb}.cad-coordinate-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}.cad-coordinate-grid>div{background:#151e28;border:1px solid #314252;border-radius:6px;padding:8px 9px;min-width:0}.cad-coordinate-grid dt{font-size:8px;color:#90a5b7;line-height:1.35}.cad-coordinate-grid dd{font-size:11px;color:#d8e4ec;line-height:1.5;margin:3px 0 0;overflow-wrap:anywhere}.cad-entity-text{padding:9px 11px;margin:9px 0 0;border-left:2px solid #a398bd;background:#252331;border-radius:0 5px 5px 0;font-size:10px;color:#c5c0d4;overflow-wrap:anywhere}.cad-entity-text strong{display:block;color:#ece7f4;font-size:9px;font-weight:600;margin-bottom:4px}.cad-inspector details{margin-top:8px;color:#9faec0;font-size:10px}.cad-inspector summary{cursor:pointer;min-height:28px;padding:4px 0}.cad-analytics{margin:0;display:grid;grid-template-columns:minmax(60px,.7fr) minmax(0,2fr);gap:5px 12px;padding-top:7px;font-size:10px}.cad-analytics dt{color:#8297ac}.cad-analytics dd{margin:0;color:#ccd9e5;overflow-wrap:anywhere;max-height:140px;overflow:auto}.cad-edit-row{display:grid;grid-template-columns:1fr 1fr auto;gap:11px;align-items:end;border-top:1px solid #313e4b;margin-top:12px;padding-top:2px}.cad-edit-row>button{font-size:10px;min-height:37px;padding:7px 12px}.cad-inclusion-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px}.cad-inclusion-row .check{font-size:10px;margin:0;padding:8px 0;align-items:center}.cad-inclusion-row .check span{margin:0}.cad-inclusion-row>span{font-size:9px;color:#8fa3b5;max-width:48%;text-align:right;line-height:1.5}.cad-status{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;background:#1b2827;border:1px solid #364b46;border-radius:8px;color:#c5dbd0;line-height:1.55;font-size:10px;min-height:36px}.cad-status-dot{height:5px;width:5px;border-radius:50%;background:#9ec8b3;flex-shrink:0;margin-top:5px}.cad-status>div{min-width:0;overflow-wrap:anywhere}.cad-status[data-error=true]{background:#342623;border-color:#886450;color:#ffdbc8}.cad-status[data-error=true] .cad-status-dot{background:#ffb286}
.cad-sidebar{background:#1a212a;border:1px solid #33404f;border-radius:10px;overflow:hidden;min-width:0}.cad-side-section{padding:15px 16px}.cad-side-section+.cad-side-section{border-top:1px solid #2e3a48}.cad-layer-list{display:flex;flex-direction:column;gap:2px;margin-top:11px;max-height:235px;overflow:auto;scrollbar-width:thin;scrollbar-color:#465969 transparent}.cad-layer-list .cad-muted{padding:6px 0;font-size:10px}.cad-layer-row{display:flex;align-items:center;gap:9px;min-height:34px;border:1px solid transparent;border-radius:5px;padding:4px 6px;margin:0;cursor:pointer;color:#c5d0da;font-size:11px}.cad-layer-row:hover{background:#273441;border-color:#354959}.cad-layer-row input{width:15px;height:15px}.cad-layer-swatch{display:block;width:13px;height:2px;background:var(--cad-line);flex:0 0 auto}.cad-layer-swatch[data-palette="1"]{background:#8ecfc4}.cad-layer-swatch[data-palette="2"]{background:#a2bbef}.cad-layer-swatch[data-palette="3"]{background:#d7adf0}.cad-layer-swatch[data-palette="4"]{background:#e4ce8d}.cad-layer-swatch[data-palette="5"]{background:#e49eab}.cad-layer-swatch[data-palette="6"]{background:#accc94}.cad-layer-swatch[data-palette="7"]{background:#c1cedc}.cad-layer-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.cad-layer-row small{font-size:9px;color:#90a5b8;margin-left:auto;font-variant-numeric:tabular-nums}.cad-small-note{font-size:9px;line-height:1.65;color:#8fa2b4;margin-top:9px}.cad-export-summary{font-size:9px;color:#c1d4d0;margin-top:10px;border-top:1px solid #2c3b46;padding-top:9px;font-variant-numeric:tabular-nums}.cad-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cad-scale-readout{background:#14231f;border:1px solid #344a3f;border-radius:6px;padding:9px 10px;font-size:10px;line-height:1.65;color:#c1d7ca;margin-top:13px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.cad-scale-readout[data-error=true]{background:#2e251f;border-color:#72543d;color:#eac6a3}.cad-confirm{font-size:10px!important;align-items:center;line-height:1.5;margin-top:10px}.cad-confirm input{width:16px;height:16px}.cad-confirm span{margin:0}
.cad-export-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.cad-export-button{display:flex;justify-content:space-between;gap:5px;min-height:65px;padding:11px 10px;text-align:left;background:#253138;border:1px solid #4b5d5e;color:#dbe6df}.cad-export-button:hover:enabled{background:#33443b;border-color:#96b5a3;color:#f4faf5}.cad-export-button strong{display:block;font-size:14px;font-weight:600;line-height:1.3}.cad-export-button small{display:block;font-size:8px;font-weight:450;color:#a4b9b1;line-height:1.4;margin-top:4px}.cad-export-button .icon{width:17px;height:17px;color:#a8d2bd;flex-shrink:0}.cad-side-details{border-top:1px solid #2e3a48}.cad-side-details>summary{display:flex;align-items:center;gap:9px;cursor:pointer;min-height:47px;padding:13px 16px;font-size:10px;color:#b5c6d5;list-style:none}.cad-side-details>summary::-webkit-details-marker{display:none}.cad-side-details>summary:before{content:"";width:5px;height:5px;border-top:1px solid #829bad;border-right:1px solid #829bad;transform:rotate(45deg);flex-shrink:0;transition:transform .18s}.cad-side-details[open]>summary:before{transform:rotate(135deg)}.cad-side-details>summary:hover{background:#202c38}.cad-count{border:1px solid #3e4e5d;padding:2px 4px;border-radius:4px;font-size:8px;margin-left:auto;color:#8fa3b4}.cad-detail-body{padding:0 16px 15px;font-size:10px;color:#a5b9c8;line-height:1.7;overflow-wrap:anywhere}.cad-detail-body ul{padding-left:15px;margin:7px 0 0}.cad-detail-body li+li{margin-top:7px}.cad-detail-body h4{font-size:10px;font-weight:650;color:#d3e0e9;margin:12px 0 4px}.cad-detail-body p{font-size:10px;line-height:1.75}.cad-detail-body .cad-small-note{font-size:9px;line-height:1.6}.cad-detail-body .cad-evidence-fact{margin-top:8px;font-size:9px;color:#abc1cd}.cad-detail-body code{font-size:8px;word-break:break-all;color:#9eb6c7}.cad-catalog-results{display:grid;gap:9px;margin-top:12px}.cad-catalog-card{padding:10px;border:1px solid #3b4b5a;border-radius:7px;background:#151f29}.cad-catalog-card h4{margin:0 0 5px;color:#dbdacf;font-size:11px}.cad-catalog-card p{font-size:9px;line-height:1.6}.cad-catalog-card .cad-catalog-meta{color:#95a9be;font-size:8px;margin-top:6px}.cad-catalog-card a{color:#b6d2d9;font-size:9px;text-underline-offset:2px}.cad-catalog-label{display:inline-block;font-size:8px;color:#d9c4a1;border:1px solid #635846;border-radius:4px;padding:1px 4px;margin-bottom:7px}.cad-muted{color:#8ea3b7;font-size:10px;line-height:1.6}.cad-panel svg:focus-visible{outline:2px solid var(--accent)}

@media(min-width:1800px){.cad-layout{grid-template-columns:minmax(0,1fr) 342px;gap:24px}.cad-side-section{padding:19px}.cad-canvas{height:calc(100dvh - 420px);max-height:1100px}.cad-layer-list{max-height:290px}.cad-heading{margin-bottom:20px}.cad-panel{padding:23px 30px 30px}.cad-sidebar label,.cad-sidebar .cad-small-note{font-size:10px}}
@media(min-width:921px) and (max-height:800px){#cutpathPanel .studio-layout{min-height:580px}.cad-panel{padding-top:15px}.cad-heading h2{font-size:22px}.cad-heading{margin-bottom:11px}.cad-canvas{height:370px}.cad-empty h3{font-size:29px}}
@media(max-width:1180px){.module-nav{padding:0 18px}.cad-panel{padding:17px 18px 21px}.cad-layout{grid-template-columns:minmax(0,1fr) 280px;gap:15px}.cad-side-section{padding:14px}.cad-heading p{max-width:380px}.cad-canvas-help{align-items:flex-start}.cad-canvas-help>span{max-width:65%}.cad-canvas-help>button{font-size:9px;max-width:35%;white-space:normal;text-align:right}.cad-privacy{max-width:43%}.cad-source-bar strong{max-width:21vw}.cad-edit-row{grid-template-columns:1fr 1fr;gap:8px 11px}.cad-edit-row>button{grid-column:1 / -1;margin-top:2px;min-height:32px}.cad-inclusion-row{flex-wrap:wrap;gap:0}.cad-inclusion-row>span{max-width:none;text-align:left;padding-bottom:3px}.cad-coordinate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cad-empty h3{font-size:28px}}
@media(max-width:920px){.module-nav{height:48px;padding:0 16px}.module-tabs>button{min-height:47px;font-size:12px}.module-note{font-size:9px}#cutpathPanel .studio-layout{height:auto;min-height:0}.cad-panel{padding:17px 16px 20px}.cad-heading{align-items:flex-start;gap:15px}.cad-heading h2{font-size:24px}.cad-heading p{max-width:325px;font-size:10px}.cad-file-actions{max-width:245px;justify-content:flex-end;gap:6px}.cad-file-actions button{font-size:10px;min-height:35px;padding:8px 10px}.cad-file-actions #cadOpen{width:100%}.cad-source-bar{gap:12px}.cad-source-bar>div{flex-wrap:wrap;gap:2px 7px}.cad-source-bar strong{max-width:34vw}.cad-source-bar #cadSourceSummary{width:100%;padding-left:13px;font-size:9px;white-space:normal}.cad-layout{display:flex;flex-direction:column;gap:16px}.cad-stage{width:100%;gap:10px}.cad-canvas{height:clamp(360px,48dvh,540px)}.cad-canvas-help>span{max-width:none}.cad-canvas-help>button{font-size:10px;white-space:nowrap;max-width:none}.cad-coordinate-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cad-edit-row{grid-template-columns:1fr 1fr auto}.cad-edit-row>button{grid-column:auto;min-height:37px;margin-top:0}.cad-sidebar{width:100%;display:grid;grid-template-columns:1fr 1fr;align-items:start;overflow:visible}.cad-side-section:nth-child(2){border-top:0;border-left:1px solid #2e3a48}.cad-side-section:nth-child(3){grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.cad-side-section:nth-child(3) .cad-section-head{grid-column:1;grid-row:1}.cad-side-section:nth-child(3) .cad-export-buttons{grid-column:2;grid-row:1 / 3;margin-top:0}.cad-side-section:nth-child(3) .cad-small-note{grid-column:1;grid-row:2}.cad-side-details{grid-column:1 / -1}.cad-side-details:last-child{border-radius:0 0 10px 10px}.cad-layer-list{max-height:263px}.cad-inclusion-row{flex-wrap:nowrap}.cad-inclusion-row>span{max-width:48%;text-align:right;padding:0}}
@media(max-width:600px){.module-nav{height:48px;padding:0 14px}.module-tabs{width:100%;gap:18px}.module-tabs>button{flex:1;min-width:0;justify-content:center;font-size:11px;gap:7px}.module-tabs .icon{width:15px;height:15px}.module-note{display:none}.cad-panel{padding:14px 12px 20px}.cad-heading{flex-direction:column;gap:11px;margin-bottom:12px}.cad-heading h2{font-size:24px;margin:4px 0}.cad-heading p{max-width:none;font-size:10px}.cad-heading .eyebrow{font-size:7px}.cad-file-actions{width:100%;max-width:none;gap:6px;justify-content:stretch}.cad-file-actions button{flex:1;min-height:40px;font-size:10px;min-width:0;white-space:nowrap;padding:8px 6px}.cad-file-actions #cadOpen{width:auto;flex:1.05}.cad-file-actions .icon{width:14px;height:14px}.cad-source-bar{flex-direction:column;align-items:stretch;gap:6px;padding:9px 10px}.cad-source-bar>div{flex-wrap:nowrap;gap:6px;min-height:14px}.cad-source-bar strong{max-width:58%;font-size:10px}.cad-source-bar #cadSourceSummary{padding:0;margin-left:auto;width:auto;font-size:8px;text-align:right;line-height:1.4}.cad-privacy{max-width:none;text-align:left;font-size:8px;line-height:1.55;color:#9fb0bf}.cad-layout{padding-top:12px;gap:13px}.cad-toolbar{gap:8px;align-items:flex-start}.cad-toolbar h3{font-size:11px}.cad-toolbar>div>span{display:block;font-size:8px;max-width:170px;line-height:1.5}.cad-view-actions{gap:3px}.cad-view-actions button{min-height:33px;font-size:10px;padding:6px}.cad-view-actions .icon-button{width:31px}.cad-view-actions .icon{width:14px;height:14px}.cad-view-actions #cadFit{gap:3px}.cad-canvas{height:345px;min-height:320px;border-radius:9px}.cad-canvas-top{top:11px;left:11px;right:11px;font-size:7px}.cad-canvas-top>span:last-child{font-size:7px;padding:2px 4px}.cad-empty{padding:16px 12px}.cad-empty .eyebrow{font-size:7px}.cad-empty h3{font-size:25px;margin-top:9px}.cad-empty p{font-size:10px;margin:9px 0 12px;line-height:1.65}.cad-empty-actions{gap:8px}.cad-empty-actions button{font-size:10px;min-height:36px;padding:9px 11px}.cad-empty-note{font-size:7px;margin-top:11px;max-width:290px}.cad-view-bottom{left:12px;right:9px;bottom:9px}.cad-view-bottom #cadCursor{font-size:8px;max-width:calc(100% - 111px)}.cad-zoom button{width:28px;min-height:28px}.cad-zoom output{min-width:36px;font-size:9px}.cad-canvas-help{margin-top:-4px;gap:8px;align-items:center}.cad-canvas-help>span{font-size:8px;line-height:1.6;max-width:61%}.cad-canvas-help>button{font-size:9px;white-space:normal;max-width:36%;text-align:right;min-height:35px}.cad-inspector{padding:12px}.cad-section-head h3{font-size:12px}.cad-section-head .eyebrow{font-size:7px}.cad-pill{font-size:8px;max-width:50%}.cad-select-row{gap:9px;grid-template-columns:1fr 1fr}.cad-panel label{font-size:10px}.cad-panel input:not([type=checkbox],[type=file]),.cad-panel select{font-size:16px;min-height:41px;padding:8px}.cad-entity-details .cad-muted{font-size:10px;padding:0}.cad-coordinate-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.cad-coordinate-grid dt{font-size:8px}.cad-coordinate-grid dd{font-size:11px}.cad-entity-meta{gap:6px 10px;font-size:9px}.cad-edit-row{grid-template-columns:1fr 1fr;gap:8px}.cad-edit-row>button{grid-column:1 / -1;min-height:36px;margin-top:2px;font-size:11px}.cad-inclusion-row{flex-direction:column;gap:0;align-items:flex-start}.cad-inclusion-row .check{font-size:10px}.cad-inclusion-row>span{max-width:none;text-align:left;font-size:8px}.cad-inclusion-row input{width:17px;height:17px}.cad-sidebar{display:flex;flex-direction:column;overflow:hidden}.cad-side-section{padding:15px;width:100%}.cad-side-section:nth-child(2){border-left:0;border-top:1px solid #2e3a48}.cad-side-section:nth-child(3){display:block}.cad-side-section:nth-child(3) .cad-export-buttons{margin-top:12px}.cad-side-details{width:100%}.cad-layer-row{min-height:39px;font-size:11px}.cad-layer-row input{width:17px;height:17px}.cad-layer-list{max-height:242px}.cad-small-note{font-size:10px;line-height:1.65}.cad-export-summary{font-size:10px}.cad-scale-readout{font-size:11px}.cad-confirm{font-size:11px!important;padding:9px 0;line-height:1.6}.cad-confirm input{width:18px;height:18px}.cad-export-button{min-height:70px;padding:13px}.cad-export-button strong{font-size:16px}.cad-export-button small{font-size:10px}.cad-export-button .icon{width:21px;height:21px}.cad-side-details>summary{min-height:49px;font-size:11px;padding:14px 15px}.cad-detail-body{padding:0 15px 15px}.cad-detail-body p,.cad-detail-body .cad-small-note{font-size:10px}.cad-catalog-card{padding:12px}.cad-catalog-card h4{font-size:12px}.cad-catalog-card p{font-size:10px}.cad-status{font-size:10px;padding:10px}.cad-loading{font-size:10px;gap:7px}.cad-toolbar{min-height:38px}}
@media(max-width:360px){.module-tabs{gap:12px}.module-tabs>button{font-size:10px}.cad-heading h2{font-size:22px}.cad-file-actions button{font-size:9px}.cad-toolbar>div>span{max-width:132px;font-size:7px}.cad-view-actions .icon-button{width:28px;min-height:31px}.cad-view-actions #cadFit{font-size:9px}.cad-view-actions #cadFit .icon{display:none}.cad-empty h3{font-size:23px}.cad-empty-actions button{font-size:9px}.cad-select-row{grid-template-columns:1fr}.cad-source-bar strong{max-width:54%}}

/* Keep reference material beside the drawing instead of stretching an empty page. */
@media(min-width:921px){.cad-sidebar{position:sticky;top:16px;max-height:calc(100dvh - 270px);min-height:460px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#526274 #18202a}.cad-layer-list{max-height:195px}.cad-side-details>.cad-detail-body{max-height:420px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#526274 transparent}}
.cad-export-issue{margin-top:9px;padding:7px 9px;border:1px solid #6d5848;border-radius:6px;background:#29221d}.cad-export-issue button{font-size:10px;color:#e6c39d;min-height:30px;justify-content:flex-start;padding:4px 0;max-width:100%;overflow-wrap:anywhere;white-space:normal;text-align:left}.cad-export-issue .cad-small-note{font-size:9px;margin-top:3px}
@media(max-width:920px){.cad-side-details>.cad-detail-body{max-height:480px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#526274 transparent}.cad-sidebar{position:static;max-height:none;min-height:0}}

.cad-toolbar>div:first-child{min-width:0}.cad-previous span{font-size:10px}.cad-view-actions .cad-previous{gap:6px}
.cad-pdf-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 15px;padding:8px 11px;border:1px solid #33404f;border-radius:8px;background:#1a212a}.cad-pdf-controls>label:first-child{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap}.cad-pdf-controls select{width:145px;min-height:33px;margin:0;font-size:10px}.cad-pdf-controls .check{margin:0;padding:4px 0;align-items:center;gap:7px;white-space:nowrap}.cad-pdf-controls .check span{margin:0}.cad-pdf-controls>span{flex:1;min-width:170px;font-size:9px;line-height:1.55;color:#8fa2b4}#cadPdfSourceImage{pointer-events:none}
@media(max-width:1180px){.cad-view-actions .cad-previous{width:34px;padding:7px}.cad-previous span{display:none}}
@media(max-width:600px){.cad-view-actions .cad-previous{width:29px;padding:6px}.cad-toolbar>div>span{overflow-wrap:anywhere;max-width:125px}.cad-toolbar h3{font-size:10px}.cad-view-actions .cad-previous .icon{width:14px;height:14px}}
@media(max-width:600px){.cad-pdf-controls{gap:5px 11px;padding:8px}.cad-pdf-controls>label:first-child{gap:6px}.cad-pdf-controls select{width:137px;font-size:16px}.cad-pdf-controls .check{font-size:10px}.cad-pdf-controls>span{flex-basis:100%;font-size:9px}.cad-file-actions #cadOpen{flex:1.35}}


.cad-outline-card{padding:12px 0;border-top:1px solid #344b59;display:grid;gap:8px}.cad-outline-card input{width:100%;min-width:0}.cad-outline-card input[type=checkbox]{width:auto}#cadOutlineTools{display:grid;gap:10px}#cadOutlineTools[hidden]{display:none}

#cadOutlineReport{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.cad-outline-card{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.cad-outline-card>strong,.cad-outline-card>p,.cad-outline-card>.check{grid-column:1 / -1}#cadOutlineTools>label:not(.check){max-width:320px}#cadOutlineTools>button{justify-self:start}#cadOutlineTools h3{margin:0}#cadOutlineTools .check{margin:0}
