.pattern-board{min-width:0}.pd-heading{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.pd-heading .kicker{font-size:12px;margin:0 0 5px}.pd-heading h3{font:500 clamp(22px,3vw,30px)/1.25 var(--serif);margin:0 0 8px}.pd-subtitle{margin:0!important;font-size:14px!important;color:var(--muted)}.pd-code{font:12px/1.6 var(--sans);color:var(--muted);overflow-wrap:anywhere}.pd-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:16px}.pd-toolbar label{display:block;font-size:14px;min-width:180px;flex:1}.pd-toolbar select{display:block;width:100%;font-size:16px;padding:10px;margin-top:6px;min-height:44px}.pd-tool-buttons{display:flex;gap:8px;flex-wrap:wrap}.pd-tool-buttons button,.pattern-board .wb-preview-tools button{min-height:44px;background:#fff;border:1px solid #b8c9bf;color:#204d3e;padding:10px 13px;font-size:14px;line-height:1.5;cursor:pointer}.pd-tool-buttons [aria-pressed=true]{background:#214d3b;color:white;border-color:#214d3b}.pattern-board button:focus-visible,.pattern-board select:focus-visible{outline:2px solid #bd6d3d;outline-offset:3px}.pd-layer-details{padding:14px 0;border-block:1px solid var(--line);margin:14px 0}.pd-layer-details summary{font-size:14px;cursor:pointer;min-height:24px}.pd-layers{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:12px}.pd-layers label{display:inline-flex;align-items:center;gap:8px;min-height:36px;font-size:14px}.pd-layers input{width:18px;height:18px;accent-color:#245b4b}.pd-key{display:inline-block;width:22px;border-top:2px solid #214d3b}.pd-key-seam{border-top:2px dashed #697780}.pd-key-grain{border-color:#337e94}.pd-key-notch,.pd-key-placement{border-color:#b4632e}.pd-key-fold{border-top:2px dashed #86678d}.pd-key-grid{border-color:#d5ded8}.pd-key-dimensions{border-color:#778d9a}.pd-tool-help,.pd-screen-note{font-size:13px!important;line-height:1.7!important;color:var(--muted)}.pd-measure-result{font-size:14px!important;line-height:1.7!important;padding:12px 14px;background:#edf4ef;border-left:3px solid #245b4b;min-height:48px;overflow-wrap:anywhere}.wb-preview .pd-scroll{height:470px;max-height:70vh;min-height:300px;overflow:auto;border:1px solid #d7e0d9;background:#fff;overscroll-behavior:contain}.pd-canvas{min-width:100%;padding:0!important;min-height:100%;touch-action:none;cursor:grab}.pattern-board[data-tool=measure] .pd-canvas{cursor:crosshair}.pd-canvas .pattern-drawing{display:block;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important}.pattern-drawing polygon,.pattern-drawing polyline{fill:none;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}.pd-cut{stroke:#173f32;stroke-width:1.45;fill:#eef4ec80!important}.pd-seam{stroke:#64727b;stroke-width:1;stroke-dasharray:5 3}.pd-grain{stroke:#337e94;stroke-width:1.3}.pd-fold{stroke:#86678d;stroke-width:1.1;stroke-dasharray:7 3 1 3}.pd-notch{stroke:#b4632e;stroke-width:2}.pd-placement{stroke:#b4632e;stroke-width:1;stroke-dasharray:4 3}.pd-dimension{fill:none;stroke:#8398a5;stroke-width:.8;vector-effect:non-scaling-stroke}.pd-dim-label{font:12px sans-serif;fill:#536b78}.pd-piece-label{font:600 16px sans-serif;fill:#244b3b}.pd-rulers text{font:9px sans-serif;fill:#83928a}.pd-grid-small{fill:none;stroke:#e7ece8;stroke-width:.45;vector-effect:non-scaling-stroke}.pd-grid-major{fill:none;stroke:#d3ded6;stroke-width:.6;vector-effect:non-scaling-stroke}.pattern-drawing [hidden]{display:none!important}.pd-measure-line{stroke:#c25b28;stroke-width:2;vector-effect:non-scaling-stroke}.pd-measure-point{fill:#fff;stroke:#c25b28;stroke-width:2;vector-effect:non-scaling-stroke}.pd-inspector h4{font:600 16px/1.6 var(--sans);margin:24px 0 12px}.pd-piece-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}.pd-piece-info article{padding:18px;background:#fff;border:1px solid #d7e0d9;min-width:0}.pd-piece-info h5{font:600 15px/1.6 var(--sans);margin:0 0 8px}.pd-piece-info p{font-size:13px;line-height:1.8;margin:8px 0;overflow-wrap:anywhere}.pd-piece-info dl{font-size:13px;line-height:1.8;margin:12px 0}.pd-piece-info dl>div{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.pd-piece-info dd{margin:0}.wb-preview:has(.pattern-board)>h3,.wb-preview:has(.pattern-board)>p:first-of-type{display:none}.wb-preview:has(.pattern-board){padding:24px;background:#fafcf9}.wb-state-note details{margin-top:12px}.wb-state-note summary{cursor:pointer}.wb-editor-grid:has(.pattern-board){grid-template-columns:minmax(0,1fr)}@media(min-width:1101px){.wb-editor-grid:has(.pattern-board)>div:first-child form{display:grid;grid-template-columns:1fr 1fr;gap:0 35px}.wb-editor-grid:has(.pattern-board)>div:first-child .wb-error,.wb-editor-grid:has(.pattern-board)>div:first-child #wb-reset{grid-column:1/-1}}@media(max-width:550px){.wb-preview:has(.pattern-board){padding:16px}.pd-toolbar{display:block}.pd-toolbar label{min-width:0}.pd-tool-buttons{margin-top:12px}.pd-tool-buttons button{flex:1;padding:9px 8px;font-size:13px}.pd-heading h3{font-size:25px}.wb-preview .pd-scroll{height:370px;min-height:260px}.pd-piece-info article{padding:15px}.pd-layers{gap:5px 14px}}
.pd-connections{margin-top:20px}.pd-connection{display:flex;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;font-size:14px;line-height:1.7;padding:12px 0;border-bottom:1px solid var(--line)}.pd-connection strong{font-weight:500}.pd-connection[data-connection-matched=false]{color:#9a4429}
