:root{--orange: #dc772e;--orange-dark: #b85f1f;--grey-dark: #47484a;--grey: #848584;--grey-light: #e9e9e8;--bg: #f6f6f5;--panel: #ffffff;--text: #111111;--muted: #5c5d5f;--radius: 6px;font-family:Poppins,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh;display:flex;flex-direction:column}main{flex:1;width:100%;max-width:1280px;margin:0 auto;padding:0 24px 32px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 32px;background:#fff;border-bottom:4px solid var(--orange)}.logo img{height:40px;display:block}.site-header nav{display:flex;gap:28px;flex-wrap:wrap}.site-header nav a{color:var(--text);text-decoration:none;font-weight:500;font-size:15px}.site-header nav a:hover{color:var(--orange)}.intro{padding:28px 0 20px}.intro h1{margin:0 0 4px;font-size:32px;font-weight:700;letter-spacing:-.5px}.intro p{margin:0 0 18px;color:var(--muted)}.part-types{display:flex;gap:8px;flex-wrap:wrap}.part{font:inherit;font-weight:600;padding:8px 18px;border-radius:var(--radius);border:2px solid var(--grey-light);background:#fff;color:var(--grey-dark);cursor:pointer}.part.active{border-color:var(--orange);background:var(--orange);color:#fff}.part:disabled{cursor:not-allowed;color:var(--grey)}.part small{font-weight:400;font-size:11px;margin-left:4px;text-transform:uppercase;letter-spacing:.5px}.editor{display:grid;grid-template-columns:340px 1fr;gap:20px;align-items:start}.panel{background:var(--panel);border-radius:var(--radius);padding:8px 20px 16px;box-shadow:0 1px 2px #0000000f;max-height:calc(100vh - 120px);overflow-y:auto;position:sticky;top:16px}fieldset>legend+*{clear:both}fieldset{border:0;border-bottom:1px solid var(--grey-light);margin:0;padding:14px 0}fieldset:last-child{border-bottom:0}legend{float:left;width:100%;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.8px;color:var(--grey-dark);padding:0;margin-bottom:8px}legend:before{content:"";display:inline-block;width:8px;height:8px;background:var(--orange);margin-right:8px;vertical-align:1px}.field{margin:10px 0}.field>label{display:block;font-size:14px;font-weight:500;margin-bottom:4px}.field .inputs{display:flex;align-items:center;gap:10px}.field input[type=range]{flex:1;accent-color:var(--orange)}.field .num{display:inline-flex;align-items:center;gap:4px;margin-left:auto}.field input[type=number]{width:72px;font:inherit;font-size:14px;padding:5px 6px;text-align:right;border:1px solid #cfcfce;border-radius:4px}.field input[type=number]:focus{outline:2px solid var(--orange);outline-offset:-1px;border-color:transparent}.field em{font-style:normal;font-size:12px;color:var(--muted);min-width:34px}.field select{width:100%;font:inherit;font-size:14px;padding:7px 8px;border:1px solid #cfcfce;border-radius:4px;background:#fff}.field select:focus{outline:2px solid var(--orange);outline-offset:-1px;border-color:transparent}.field .help{display:block;color:var(--muted);font-size:12px;margin-top:3px}.field.inline{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:10px}.field.inline>label{margin:0}.field.inline .help{grid-column:1 / -1}.field.off{opacity:.4;pointer-events:none}.field>label.switch,.switch{display:flex;margin:0;align-items:center;gap:10px;font-size:14px;font-weight:500;cursor:pointer}.switch input{width:18px;height:18px;accent-color:var(--orange);margin:0}.stage{background:var(--panel);border-radius:var(--radius);box-shadow:0 1px 2px #0000000f;overflow:hidden}.viewer{position:relative;height:min(68vh,640px);min-height:360px;background:radial-gradient(circle at 50% 35%,#fff,#ececeb)}.viewer canvas{display:block;width:100%;height:100%;cursor:grab}.status{position:absolute;top:14px;left:14px;background:#47484aeb;color:#fff;font-size:13px;padding:6px 12px;border-radius:4px;max-width:calc(100% - 28px);white-space:pre-wrap}.status.error{background:#b3261e;white-space:normal;max-width:min(520px,calc(100% - 28px));line-height:1.45}.status.error strong{display:block;margin-bottom:2px}.status.error details{margin-top:6px;font-size:12px}.status.error summary{cursor:pointer;opacity:.85}.status.error code{display:block;margin-top:4px;max-height:140px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-size:11px;opacity:.9}.stage-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--grey-light)}.dims{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}.actions{display:flex;flex-wrap:wrap;gap:8px}.actions button{font:inherit;font-weight:600;font-size:15px;padding:10px 20px;border-radius:var(--radius);cursor:pointer;border:2px solid transparent}.primary{background:var(--orange);color:#fff}.primary:hover:not(:disabled){background:var(--orange-dark)}.primary:disabled{background:var(--grey);cursor:wait}.secondary{background:#fff;color:var(--grey-dark);border-color:var(--grey-light)!important}.secondary:hover{border-color:var(--grey-dark)!important}.undo-redo{display:inline-flex;gap:4px}.actions button.icon{padding:0;width:44px;display:inline-grid;place-items:center}.actions button.icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.secondary:disabled{opacity:.4;cursor:default}.secondary:disabled:hover{border-color:var(--grey-light)!important}.site-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 32px;background:var(--grey-dark);color:#e6e6e6;font-size:13px}.site-footer a{color:#fff}.site-footer .footer-links{display:inline-flex;gap:16px}.site-footer .disclosure{flex-basis:100%;margin:0;color:#b9babb;font-size:12px}.holes .help{color:var(--muted);font-size:12px;margin:0 0 8px}.hole-layout{border-bottom:1px solid var(--grey-light);padding:14px 16px 16px}.hole-layout-head{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin-bottom:10px;font-size:14px}.hole-layout-head span{color:var(--muted);font-size:12px}.hole-map{width:100%;height:auto;max-height:460px;display:block;background:#fafaf9;border:1px solid var(--grey-light);border-radius:4px;touch-action:pan-y pinch-zoom;-webkit-user-select:none;user-select:none}.hole-map [data-i],.hole-map [data-drag]{touch-action:none}.hole-map .outer{fill:#fff;stroke:var(--grey-dark);stroke-width:.6}.hole-map .inner{fill:none;stroke:var(--grey);stroke-width:.3;stroke-dasharray:1.5 1}.hole-map .grid{stroke:var(--grey-light);stroke-width:.4}.hole-map .pillar{fill:var(--grey-light);stroke:var(--grey);stroke-width:.3}.hole-map .hole{fill:var(--orange);fill-opacity:.55;stroke:var(--orange-dark);stroke-width:.4;cursor:grab}.hole-map .hole.sel{fill-opacity:.9;stroke:var(--grey-dark);stroke-width:.6}.hole-map .hole.bad{fill:#b3261e;stroke:#7a1a14}.hole-map .anchor{fill:var(--grey-dark);pointer-events:none}.hole-add,.hole-actions,.hole-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.holes button{font:inherit;font-size:13px;font-weight:500;padding:5px 10px;border-radius:4px;cursor:pointer;border:1px solid #cfcfce;background:#fff;color:var(--grey-dark)}.holes button:hover{border-color:var(--grey-dark)}.hole-add button{font-weight:600;color:var(--orange-dark);border-color:var(--orange)}.hole-list button.on{background:var(--grey-dark);border-color:var(--grey-dark);color:#fff}.hole-actions .danger{color:#b3261e;margin-left:auto}.hole-props{margin-top:4px}.hole-map .node{fill:var(--grey)}.hole-map .insert-shape{opacity:.75}.hole-map .bar{stroke:var(--orange);stroke-linecap:round}.hole-map .tab{fill:var(--orange)}.hole-map .mount{fill:#fff;stroke:var(--orange-dark);stroke-width:.3}.hole-map .pcb{fill:#2f7d4f;fill-opacity:.18;stroke:#2f7d4f;stroke-width:.5;cursor:move}.hole-map .pcb.bad{fill:#b3261e;stroke:#b3261e}.hole-map .post{fill:var(--orange-dark)}.hole-map .bhole{fill:#fff;stroke:#2f7d4f;stroke-width:.4;cursor:grab}.hole-map .clip{fill:var(--orange);fill-opacity:.85;stroke:var(--orange-dark);stroke-width:.3;cursor:grab}.hole-map .clip-arm{fill:var(--grey-dark);pointer-events:none}.bh.clip{grid-template-columns:12px 1fr 1fr 1.3fr auto}.bh.clip select{max-width:none}.bh.clip em{font-style:normal}.foldable>legend{cursor:pointer;-webkit-user-select:none;user-select:none}.foldable>legend:after{content:"▾";float:right;color:var(--grey);font-size:14px;transition:transform .15s}.foldable.folded>legend:after{transform:rotate(-90deg)}.foldable.folded>:not(legend){display:none}.foldable.folded>legend{margin-bottom:0}.map-wrap{position:relative}.layout-note{position:absolute;left:8px;right:8px;bottom:8px;margin:0;padding:6px 10px;border-radius:4px;background:#fbe9e7f0;color:#b3261e;font-size:13px;box-shadow:0 1px 3px #0000001f;pointer-events:none}.layout-note[hidden]{display:none}.field input.text{width:100%;font:inherit;font-size:14px;padding:6px 8px;border:1px solid #cfcfce;border-radius:4px}.board-holes{margin-top:12px}.bh-head{font-size:13px;font-weight:500;margin-bottom:6px}.bh{display:grid;grid-template-columns:12px 1.15fr 1.15fr .8fr auto auto;gap:4px;align-items:center;margin-bottom:4px;font-size:12px;color:var(--muted)}.bh label{display:flex;align-items:center;gap:3px}.bh input{width:100%;min-width:0;font:inherit;font-size:13px;padding:4px 2px;border:1px solid #cfcfce;border-radius:4px;text-align:right}.bh input::-webkit-inner-spin-button,.bh input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.bh input[type=number]{-moz-appearance:textfield;appearance:textfield}.bh select{font:inherit;font-size:12px;padding:3px 0;max-width:62px;border:1px solid #cfcfce;border-radius:4px;background:#fff}.bh button{padding:2px 8px!important;color:#b3261e!important}@media(max-width:860px){.site-header{padding:14px 16px;flex-direction:column;align-items:flex-start;gap:10px}.site-header nav{gap:16px}main{padding:0 16px 24px}.editor{grid-template-columns:1fr}.stage{order:-1}.panel{position:static;max-height:none}.viewer{height:52vh;min-height:300px}.logo img{height:32px}.site-header nav{gap:6px 14px}.site-header nav a{font-size:13px}.intro{padding:18px 0 14px}.intro h1{font-size:24px}.intro p{font-size:14px}.part-types{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px 4px}.part-types::-webkit-scrollbar{display:none}.part{flex-shrink:0;padding:8px 14px}.part-types .part-help{flex-shrink:0}.editor{gap:0}.stage{display:contents}.stage>.viewer{order:-3;border-radius:var(--radius) var(--radius) 0 0}.stage>.stage-bar{order:-2;background:var(--panel);border-radius:0 0 var(--radius) var(--radius);box-shadow:0 1px 2px #0000000f}.stage>.hole-layout{order:-1;margin-top:16px;background:var(--panel);border-radius:var(--radius);border-bottom:0;padding:12px}.editor>.panel{margin-top:16px;padding:4px 16px 16px}.stage-bar{padding:10px 12px}.actions{width:100%}.actions button{padding:10px 14px}.actions #download{flex:1}.field input[type=number],.field input.text,.field select,.combo input{font-size:16px}.field input[type=number]{width:84px;padding:7px 6px}.switch input{width:22px;height:22px}.field input[type=range]{height:28px}}@media(max-width:860px)and (min-height:600px){.stage>.viewer{position:sticky;top:0;z-index:5;height:36vh;min-height:220px;box-shadow:0 2px 6px #0000001f}}.expert-toggle{padding:14px 0;border-bottom:1px solid var(--grey-light)}.expert-toggle .help{display:block;margin-top:4px}form:not(.show-expert) fieldset.expert{display:none}form:not(.show-expert) .expert-toggle{border-bottom:0}.reset-expert{margin-top:8px;font:inherit;font-size:13px;font-weight:500;padding:5px 10px;border-radius:4px;cursor:pointer;background:#fff;color:var(--grey-dark);border:1px solid var(--grey-light)}.reset-expert:hover{border-color:var(--grey-dark)}form:not(.show-expert) .reset-expert{display:none}.hole-map .cut{fill:#fff;stroke:var(--grey-dark);stroke-width:.4;stroke-dasharray:1.2 .8;pointer-events:none}.hole-map .cut[data-drag]{pointer-events:auto;cursor:grab}.bh.cut{grid-template-columns:12px 1fr 1fr 1fr 1fr auto}.board-info{margin:4px 0 14px}.board-title{font-family:Poppins,system-ui,sans-serif;font-size:15px;font-weight:600;color:var(--grey-dark);margin:0 0 6px;line-height:1.3}.board-info img{display:block;width:100%;max-height:200px;object-fit:contain;background:#fff;border:1px solid var(--grey-light);border-radius:var(--radius)}.board-info img[hidden]{display:none}.shop-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.shop-links:empty{display:none}.shop-links .shop{font-size:13px;font-weight:600;padding:5px 12px;border-radius:4px;background:var(--orange);color:#fff;text-decoration:none}.shop-links .shop:hover{background:var(--orange-dark)}.shop-links .help{flex-basis:100%;margin:0}.hole-sec{margin-top:12px;padding-top:10px;border-top:1px dashed var(--grey-light)}.hole-sec-title,.hole-sec>summary{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--grey-dark);margin-bottom:6px}.hole-sec>summary{cursor:pointer;list-style:revert}.hole-layout.with-panel .hole-body{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}.hole-layout.with-panel .hole-map{max-height:560px}.hole-body>fieldset.holes{border:1px solid var(--grey-light);border-radius:var(--radius);padding:4px 14px 14px;max-height:560px;overflow-y:auto;background:#fff}.hole-body>fieldset.holes>legend{padding-top:10px}@media(max-width:1100px){.hole-layout.with-panel .hole-body{grid-template-columns:1fr}.hole-body>fieldset.holes{max-height:none}}.hole-map .bhole.sel{stroke:var(--grey-dark);stroke-width:.9}.hole-map .clip.sel{stroke:var(--grey-dark);stroke-width:.8}.hole-map .cut.sel{stroke:var(--orange-dark);stroke-width:.8;stroke-dasharray:none}.hole-map .origin{pointer-events:none}.hole-map .origin line{stroke:#1f6fd1;stroke-width:.5}.hole-map .origin polygon,.hole-map .origin circle{fill:#1f6fd1}.hole-map .origin text{fill:#1f6fd1;font:600 3.6px Poppins,sans-serif;text-anchor:middle;dominant-baseline:central}.info{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:6px;border-radius:50%;border:1.5px solid var(--grey);color:var(--grey-dark);background:#fff;text-decoration:none;vertical-align:-2px}.info svg,.i-sample svg{display:block;width:100%;height:100%;fill:currentColor}.info:hover,.info:focus-visible{border-color:var(--orange);background:var(--orange);color:#fff;outline:none}.part-types .part-help{align-self:center;width:22px;height:22px;margin-left:4px}.expert-head{display:flex;align-items:center}.intro p a{color:var(--orange-dark)}form.ready-mode>:not(.ready){display:none}.ready .help{color:var(--muted);font-size:12px;margin:0 0 8px}.ready-card{border:1px solid var(--grey-light);border-left:4px solid var(--orange);border-radius:var(--radius);padding:12px 14px;background:#fff}.ready-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 10px}.ready-head strong{font-family:Poppins,sans-serif;font-size:15px}.ready-size{font-size:12px;font-weight:600;color:var(--grey-dark);background:var(--grey-light);border-radius:10px;padding:1px 8px}.ready-tag{margin:6px 0 0;font-size:12px;font-weight:600;color:var(--orange-dark)}.ready-note{margin:8px 0 0;font-size:13px}.ready-files{list-style:none;margin:10px 0 8px;padding:0}.ready-files li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid var(--grey-light);font-size:13px}.ready-files a{flex:none;font-size:13px;font-weight:600;padding:4px 10px;border-radius:4px;background:var(--orange);color:#fff;text-decoration:none}.ready-files a:hover{background:var(--orange-dark)}.ready-back{font:inherit;font-size:13px;font-weight:500;padding:5px 10px;border-radius:4px;cursor:pointer;background:#fff;color:var(--grey-dark);border:1px solid var(--grey-light)}.ready-back:hover{border-color:var(--grey-dark)}.picked-above>legend,.picked-above>.help,.picked-above .field:has(#c-preset){display:none}.cover-pick .ready-card{margin-top:12px}.combo{position:relative}.combo input{width:100%;box-sizing:border-box;font:inherit;font-size:14px;padding:7px 30px 7px 8px;border:1px solid #cfcfce;border-radius:4px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2347484a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;cursor:pointer}.combo.open input,.combo input:focus{outline:2px solid var(--orange);outline-offset:-1px;border-color:transparent;cursor:text;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%2347484a' stroke-width='1.6'/%3E%3Cpath d='M9.5 9.5L13 13' stroke='%2347484a' stroke-width='1.6'/%3E%3C/svg%3E")}.combo-tag{position:absolute;right:30px;bottom:9px;font-size:11px;color:var(--muted);pointer-events:none}.combo-tag:empty{display:none}.combo-list{position:absolute;z-index:20;left:0;right:0;top:100%;margin:4px 0 0;padding:4px 0;list-style:none;max-height:280px;overflow-y:auto;background:#fff;border:1px solid #cfcfce;border-radius:4px;box-shadow:0 6px 18px #0000001f}.combo-list li{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:7px 10px;font-size:14px;cursor:pointer}.combo-list li.active{background:#fbeee4}.combo-list li.current span{font-weight:600}.combo-list li em{flex:none;font-style:normal;font-size:11px;color:var(--muted)}.combo-list li.none{color:var(--muted);cursor:default;font-size:13px}.ready-count{font-weight:600;color:var(--orange-dark)}
