:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--ink);background:var(--ground);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--ground: #f6f3eb;--surface: #fdfbf6;--surface-hover: #eee9dd;--board: #e9e8df;--ink: #30392f;--muted: #687064;--rule: #d8d8cb;--control-rule: #8b9184;--accent: #a3432e;--accent-hover: #863523;--accent-soft: #f3e5da;--olive: #586849;--button-text: #fffaf3;--error: #a33126;--focus: #a3432e;--serif: Georgia, "Times New Roman", serif;--measure: "SFMono-Regular", Consolas, "Liberation Mono", monospace}@media(prefers-color-scheme:dark){:root{color-scheme:dark;--ground: #242824;--surface: #2c312b;--surface-hover: #373e34;--board: #1c211d;--ink: #eeeede;--muted: #b1b8a7;--rule: #4b5346;--control-rule: #77816f;--accent: #ecab8f;--accent-hover: #f4bea6;--accent-soft: #41362d;--olive: #bccda7;--button-text: #2c241d;--error: #ffb2a3;--focus: #ecab8f}}*{box-sizing:border-box}html{scroll-behavior:smooth;scrollbar-color:var(--rule) var(--ground);scroll-padding-top:24px}body{margin:0;min-width:320px}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,summary,select{cursor:pointer}button{color:inherit}a{color:inherit;text-underline-offset:4px}button{touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.45}input,select{width:100%;min-width:0;background:var(--surface);color:var(--ink);border:1px solid var(--control-rule);border-radius:4px;padding:11px 12px;min-height:44px;caret-color:var(--accent)}input::placeholder{color:var(--muted);opacity:1}input:hover,select:hover{border-color:var(--muted)}input[type=number]{font-family:var(--measure);font-size:14px}select{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}::selection{background:var(--accent);color:var(--button-text)}:focus-visible{outline:2px solid var(--focus);outline-offset:4px}input:focus-visible,select:focus-visible{outline-offset:2px}h1,h2,h3,p{margin:0}button svg,a svg{flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:10px;left:10px;z-index:10;transform:translateY(-150%);padding:12px;background:var(--ink);color:var(--ground)}.skip-link:focus{transform:none}.site-header,main,footer{width:min(1200px,calc(100% - 96px));margin-inline:auto}.site-header{height:94px;display:flex;align-items:center;border-bottom:1px solid var(--rule);gap:30px}.brand{display:inline-flex;align-items:center;gap:12px;font-family:var(--serif);font-size:25px;letter-spacing:-.025em;text-decoration:none;white-space:nowrap}.brand-period{color:var(--accent)}.brand-mark{display:grid;place-items:center;width:35px;height:35px;color:var(--accent);border:1px solid var(--accent);border-radius:50%;transform:rotate(-15deg)}.header-note{font-size:12px;color:var(--muted)}.save-state{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);white-space:nowrap}.save-dot{width:6px;height:6px;border-radius:50%;background:var(--olive)}.unsaved .save-dot{background:var(--accent)}.intro{display:flex;justify-content:space-between;align-items:center;padding:42px 0 37px}h1{font:400 clamp(34px,3.7vw,48px)/1.12 var(--serif);letter-spacing:-.035em;text-wrap:balance}h1 em{font-weight:400;color:var(--accent)}.intro p{font-size:13px;line-height:1.8;color:var(--muted);margin-top:17px}.intro-note{display:flex;gap:17px;align-items:center;margin-right:42px;color:var(--olive);font:italic 17px/1.45 var(--serif)}.intro-note svg{transform:rotate(-35deg);width:40px;height:40px;stroke-width:1}.project-bar{display:flex;align-items:center;justify-content:space-between;border-block:1px solid var(--rule);padding:15px 0;gap:20px}.project-name{display:flex;align-items:center;gap:16px;min-width:0;flex:1}.project-name label{font-size:11px;color:var(--muted);white-space:nowrap}.project-name input{font-size:14px;border-color:transparent;background:transparent;min-height:36px;padding:7px 5px;max-width:310px;text-overflow:ellipsis}.project-name input:hover{border-color:var(--rule)}.project-actions{display:flex;gap:24px}.text-button{border:0;background:none;display:inline-flex;justify-content:center;align-items:center;gap:7px;font-size:12px;padding:6px 0;min-height:32px}.text-button:hover{color:var(--accent)}.studio{display:grid;grid-template-columns:370px minmax(0,1fr);border-bottom:1px solid var(--rule)}.editor{padding:27px 30px 26px 0;border-right:1px solid var(--rule);min-width:0}.unit-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);padding-bottom:25px}.segments{display:flex;gap:2px;background:var(--surface-hover);border:1px solid var(--rule);padding:2px;border-radius:5px}.segments button{border:0;min-width:36px;height:29px;background:transparent;font:11px var(--measure);border-radius:3px}.segments button[aria-pressed=true]{background:var(--ink);color:var(--ground)}.segments button:not([aria-pressed=true]):hover{color:var(--accent)}.form-anchor{scroll-margin-top:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}h2{font-size:16px;font-weight:550;letter-spacing:-.02em}.shape-picker{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:0;border:0;margin:0 0 21px}.shape-picker label{display:flex;align-items:center;justify-content:center;position:relative;gap:9px;padding:13px 5px;border:1px solid var(--control-rule);border-radius:5px;font-size:12px;cursor:pointer;background:var(--surface)}.shape-picker label.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.shape-picker label:hover{border-color:var(--accent)}.shape-picker label:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:4px}.shape-picker input{position:absolute;opacity:0;width:1px;min-height:1px}.shape-picker svg{stroke-width:1.3}.field{min-width:0;margin-bottom:15px}.field label{display:block;font-size:11px;margin-bottom:8px;font-weight:500}.field input,.field select{font-size:12px}.optional{float:right;font-weight:400;color:var(--muted);font-size:10px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field-row.single{grid-template-columns:1fr}.field-row .field{margin-bottom:0}.input-unit{position:relative}.input-unit input{padding-right:36px;font:14px var(--measure)}.input-unit>span{position:absolute;right:13px;top:15px;font:11px var(--measure);color:var(--muted);pointer-events:none}.field-help{color:var(--muted);font-size:10px;line-height:1.7;margin-top:7px}#dimension-help{margin-bottom:19px}.allowance-help{margin-bottom:17px}.invalid input,[aria-invalid=true]{border-color:var(--error)}.field-error{color:var(--error);font-size:11px;line-height:1.5;display:block;margin-top:6px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 20px;min-height:45px;border:1px solid transparent;border-radius:4px;background:var(--accent);color:var(--button-text);font-size:12px;font-weight:600}.primary:hover:not(:disabled){background:var(--accent-hover)}.add-button{width:100%;margin-top:3px}.piece-list{margin-top:30px;border-top:1px solid var(--rule);padding-top:23px}.piece-list h2{font-size:14px}.count{margin-left:5px;font:11px var(--measure);color:var(--muted)}.small{font-size:10px}.muted{color:var(--muted)}.list-empty{color:var(--muted);font-size:11px;line-height:1.7;padding-bottom:6px}.piece-list ul{list-style:none;margin:0;padding:0}.piece-list li{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--rule)}.piece-list li:last-child{border:0}.piece-list li.editing{background:var(--accent-soft)}.piece-symbol{width:30px;min-width:30px;height:35px;display:grid;place-items:center;color:var(--olive)}.piece-symbol>span{display:block;border:1px solid currentColor;width:20px;height:27px;position:relative}.piece-symbol>span:after{content:"";position:absolute;top:3px;right:3px;bottom:3px;left:3px;border:1px dashed currentColor}.piece-symbol.circle>span,.piece-symbol.circle>span:after{border-radius:50%}.piece-symbol.circle>span{height:23px;width:23px}.piece-detail{min-width:0;flex:1}.piece-detail strong{display:block;font-size:12px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}.piece-detail>span{display:block;font:10px/1.8 var(--measure);color:var(--muted)}.piece-detail small{display:block;font-size:9px;color:var(--muted)}.quantity-label{margin-left:4px;color:var(--ink)}.piece-actions{display:grid;grid-template-columns:repeat(3,27px)}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:transparent;border:0;border-radius:3px}.icon-button:hover:not(:disabled){color:var(--accent);background:var(--surface-hover)}.piece-actions .icon-button{width:27px}.danger:hover:not(:disabled){color:var(--error)}.help-details{margin-top:23px;border-top:1px solid var(--rule);padding-top:18px;font-size:10px;color:var(--muted)}.help-details summary{display:flex;justify-content:space-between;align-items:center;list-style:none;min-height:27px}.help-details summary::-webkit-details-marker{display:none}.help-details[open] summary svg{transform:rotate(180deg)}.help-details p{line-height:1.8;margin-top:13px}.preview-panel{padding:26px 0 25px 30px;min-width:0}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;padding-bottom:20px}.preview-toolbar h2{margin-bottom:5px}.paper-select{display:flex;align-items:center;gap:12px}.paper-select label{color:var(--muted);font-size:10px}.paper-select select{width:118px;min-height:36px;padding:8px 9px;font-size:11px}.preview-board{background:var(--board);padding:30px 32px 15px;display:flex;flex-direction:column;align-items:center;min-height:552px}.paper-holder,.empty-sheet{width:min(100%,350px);box-shadow:0 5px 17px #20251c14}.sheet{display:block;width:100%;height:auto}.paper-holder{animation:place-sheet .22s ease-out}@keyframes place-sheet{0%{transform:translateY(5px) rotate(.3deg)}to{transform:translateY(0) rotate(0)}}.empty-sheet{position:relative;display:flex;flex-direction:column;align-items:center;aspect-ratio:215.9 / 279.4;background:#fffefa;color:#30392f;padding:44px 16px 25px}.empty-corners{position:absolute;top:16px;right:16px;bottom:16px;left:16px;background:linear-gradient(#b8b9ac,#b8b9ac) left top/11px 1px no-repeat,linear-gradient(#b8b9ac,#b8b9ac) left top/1px 11px no-repeat,linear-gradient(#b8b9ac,#b8b9ac) right top/11px 1px no-repeat,linear-gradient(#b8b9ac,#b8b9ac) right top/1px 11px no-repeat,linear-gradient(#b8b9ac,#b8b9ac) left bottom/11px 1px no-repeat,linear-gradient(#b8b9ac,#b8b9ac) left bottom/1px 11px no-repeat,linear-gradient(#b8b9ac,#b8b9ac) right bottom/11px 1px no-repeat,linear-gradient(#b8b9ac,#b8b9ac) right bottom/1px 11px no-repeat;pointer-events:none}.empty-geometry{height:67px;width:102px;position:relative;margin:0 0 21px}.empty-geometry div{position:absolute;left:4px;top:6px;width:52px;height:60px;border:1px solid #a4a995;transform:rotate(-8deg)}.empty-geometry div:after{content:"";position:absolute;top:6px;right:6px;bottom:6px;left:6px;border:1px dashed #a4a995}.empty-geometry span{position:absolute;right:0;top:11px;width:49px;height:49px;border:1px solid #aa6c54;border-radius:50%;background:#fffefa}.empty-geometry span:after{content:"";position:absolute;top:6px;right:6px;bottom:6px;left:6px;border:1px dashed #aa6c54;border-radius:50%}.empty-sheet h3{font:25px/1.18 var(--serif);letter-spacing:-.03em;text-align:center}.empty-sheet>p{font-size:10px;line-height:1.8;text-align:center;color:#687064;margin:12px 0 15px}.sample-button{display:flex;align-items:center;gap:6px;color:#98402e;background:transparent;border:1px solid #d6b8a5;border-radius:3px;padding:9px 12px;font-size:10px}.sample-button:hover{background:#f8ece1}.empty-caption{font-size:8px;color:#687064;margin-top:10px}.empty-calibration{display:flex;gap:12px;align-items:center;margin-top:auto;padding-top:27px}.empty-calibration>span{width:31px;height:31px;display:grid;place-items:center;font-size:6px;border:1px solid #9b9e91}.empty-calibration p{color:#687064;font-size:6px;line-height:1.8}.board-paper-note{font:9px var(--measure);color:var(--muted);margin-top:16px}.board-paper-note span{margin:0 5px}.preview-navigation{display:flex;align-items:center;justify-content:space-between;margin-top:11px;font:10px var(--measure)}.preview-navigation>div{display:flex;gap:5px}.preview-navigation .icon-button{border:1px solid var(--rule);width:29px;height:29px}.sheet-details{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 15px;font-size:10px;color:var(--muted);margin-top:10px}.assembly-map{border-top:1px solid var(--rule);margin-top:17px;padding-top:15px}.assembly-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.assembly-heading h3{font-size:12px;font-weight:550}.assembly-heading>span{font-size:9px;color:var(--muted)}.assembly-scroll{overflow-x:auto;padding:7px 4px;margin-top:6px}.assembly-grid{display:grid;gap:4px;width:max-content}.assembly-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:44px;background:var(--surface);border:1px solid var(--control-rule);border-radius:2px;font-family:var(--measure)}.assembly-grid button strong{font-size:11px;font-weight:500}.assembly-grid button small{font-size:7px}.assembly-grid button:hover{color:var(--accent);border-color:var(--accent)}.assembly-grid button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--button-text)}.assembly-map>p{font-size:9px;color:var(--muted);line-height:1.6;margin-top:5px}.sheet-strip{display:flex;gap:6px;margin-top:15px;overflow-x:auto;padding:5px 3px 10px}.sheet-strip button{display:grid;place-items:center;gap:3px;min-width:39px;height:48px;border:1px solid var(--rule);background:var(--surface);border-radius:2px;font:11px var(--measure);padding:5px}.sheet-strip button small{font-size:7px}.sheet-strip button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.line-legend{display:flex;gap:22px;justify-content:center;padding-top:18px;flex-wrap:wrap}.line-legend>span{display:inline-flex;align-items:center;gap:6px;font-size:9px;color:var(--muted)}.line-legend i{display:inline-block;width:20px;border-top:1px solid var(--ink)}.line-legend .seam-line{border-top-style:dashed}.line-legend .fold-line{border-top:1px dashed var(--accent)}.export-bar{display:flex;align-items:center;justify-content:space-between;padding:26px 0;gap:20px}.export-bar>div{display:flex;align-items:center;gap:17px}.export-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--surface-hover);color:var(--olive)}.export-bar h2{font:22px/1.3 var(--serif)}.export-bar p{font-size:11px;color:var(--muted);margin-top:6px}.download-button{min-width:190px}.print-notes{background:var(--surface-hover);padding:23px 27px 26px}.print-note-heading{display:flex;align-items:center;gap:10px;color:var(--olive)}.print-note-heading h2{font-size:13px;font-weight:550}.print-steps{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:31px;padding-top:16px}.print-steps p{color:var(--muted);font-size:10px;line-height:1.9}.print-steps strong{display:block;color:var(--ink);font-size:11px;font-weight:550;margin-bottom:2px}footer{border-top:1px solid var(--rule);margin-top:34px;padding:24px 0 32px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted)}footer>div{display:flex;gap:25px}footer a{display:inline-flex;align-items:center;gap:5px;text-decoration:none}footer a:hover{color:var(--accent);text-decoration:underline}.notice{display:flex;align-items:start;gap:10px;padding:15px;background:var(--accent-soft);font-size:12px;margin-bottom:20px;line-height:1.6}.notice>svg{flex:0 0 auto;margin-top:2px}.notice>.icon-button{margin-left:auto;flex:0 0 auto}.layout-error{font-size:12px;line-height:1.6;color:var(--error);margin-top:15px}.status-toast{position:fixed;bottom:18px;left:50%;transform:translate(-50%);display:none;align-items:center;gap:10px;background:var(--ink);color:var(--ground);border-radius:5px;padding:12px 14px;width:max-content;max-width:min(620px,calc(100% - 32px));font-size:12px;line-height:1.5;z-index:20;box-shadow:0 6px 22px #0002}.status-toast.visible{display:flex}.status-toast>svg{flex:0 0 auto}.status-toast>button:not(.icon-button){background:transparent;color:inherit;border:0;padding:5px 2px;text-decoration:underline;font-weight:600}.status-toast .icon-button{flex:0 0 auto;color:inherit}.status-toast .icon-button:hover{color:var(--ground);background:transparent}@media(min-width:1450px){.site-header,main,footer{width:min(1240px,calc(100% - 120px))}.studio{grid-template-columns:390px minmax(0,1fr)}.editor{padding-right:35px}.preview-panel{padding-left:35px}}@media(max-width:1000px){.site-header,main,footer{width:calc(100% - 56px)}.header-note{display:none}.studio{grid-template-columns:330px minmax(0,1fr)}.editor{padding-right:22px}.preview-panel{padding-left:22px}.preview-board{padding:25px 20px 15px;min-height:0}.empty-sheet{padding-top:30px;min-height:390px}.empty-geometry{margin-bottom:15px}.paper-select label{display:none}.intro-note{margin-right:0}.piece-actions{grid-template-columns:27px}.piece-list li{gap:8px}}@media(max-width:760px){.site-header,main,footer{width:calc(100% - 40px)}.site-header{height:78px;gap:10px}.brand{font-size:23px;gap:8px}.brand-mark{width:30px;height:30px}.save-state{font-size:9px}.intro{padding:31px 0 29px}.intro-note{display:none}h1{font-size:38px}.intro p{font-size:12px}.project-bar{align-items:stretch;flex-direction:column;gap:4px;padding:10px 0}.project-name input{max-width:none}.project-actions{justify-content:flex-end;gap:22px}.studio{grid-template-columns:minmax(0,1fr)}.editor{border-right:0;padding:23px 0 15px}.unit-row{padding-bottom:20px}.piece-form{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.piece-form>.section-heading,.piece-form>.shape-picker,.piece-form>.field-help,.piece-form>.add-button,.piece-form>.field-row{grid-column:1 / -1}.piece-form>.field{grid-column:1 / -1}.piece-actions{grid-template-columns:repeat(3,34px)}.piece-actions .icon-button{width:34px;min-height:38px}.piece-detail strong{font-size:13px}.piece-detail>span{font-size:11px}.piece-detail small{font-size:10px}.preview-panel{padding:22px 0;border-top:1px solid var(--rule)}.preview-board{padding:24px 22px 15px}.empty-sheet{min-height:420px;padding-top:40px}.print-steps{grid-template-columns:1fr;gap:17px}.print-steps p{font-size:11px}.export-bar h2{font-size:19px}.export-bar{flex-wrap:wrap;padding:22px 0}.export-bar .download-button{width:100%}.print-notes{padding:21px}footer{align-items:start;flex-direction:column;margin-top:27px;padding-bottom:85px}footer>div{justify-content:space-between;width:100%}.line-legend{gap:18px}}@media(max-width:390px){.site-header,main,footer{width:calc(100% - 32px)}.brand{font-size:21px}.brand-mark{width:27px;height:27px}.brand-mark svg{width:18px}.save-state{max-width:105px;white-space:normal;font-size:8px;line-height:1.5}h1{font-size:34px}.intro p{font-size:11px}.desktop-break{display:none}.empty-sheet{min-height:370px;padding-top:26px}.empty-geometry{height:60px;margin-bottom:12px}.empty-sheet h3{font-size:23px}.empty-calibration{padding-top:20px}.empty-sheet>p{font-size:9px}.preview-board{padding-inline:18px}.project-name{gap:10px}.project-name label{font-size:10px}.export-bar h2{font-size:18px}.export-icon{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{body{display:none}html:after{content:"Download the pattern PDF and print it at 100% / actual size. The browser preview is not actual size.";display:block;padding:30px;font:18px sans-serif;color:#000;background:#fff}}
