:root{--bg:#f6f5f1;--panel:#fff;--text:#2b2620;--muted:#7a7166;--line:#e4e0d8;--accent:#b5834f;--accent-soft:#f4e8da;--link:#1a62c9;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--bg);margin:0}#app{grid-template-columns:320px 1fr;height:100vh;display:grid}.panel{background:var(--panel);border-right:1px solid var(--line);padding:20px;overflow-y:auto}.panel h1{text-transform:capitalize;margin:0 0 6px;font-size:18px}.panel h2{text-transform:capitalize;margin:20px 0 8px;font-size:14px}.panel h3{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:14px 0 6px;font-size:12px}.note{margin:6px 0;font-size:13px;line-height:1.45}.meta,.status,.hint{color:var(--muted);margin:4px 0;font-size:12px}.selected{border:1px solid var(--line);background:var(--bg);border-radius:8px;margin-top:16px;padding:12px 14px}.selected h2{margin-top:0}ul{margin:0;padding:0;list-style:none}.parts li{cursor:pointer;border-radius:6px;justify-content:space-between;gap:8px;padding:5px 8px;font-size:13px;display:flex}.parts li:hover{background:var(--bg)}.parts li.active{background:var(--accent-soft);font-weight:600}.parts small,.cuts small{color:var(--muted);text-align:right;font-size:11px}.cuts li{padding:2px 0;font-size:13px}.view{position:relative;overflow:hidden}.view canvas{display:block}.tabs{border-bottom:1px solid var(--line);gap:4px;margin:18px 0 10px;display:flex}.tabs button{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;padding:7px 10px;font-size:13px}.tabs button.active{border-bottom-color:var(--accent);color:var(--text);font-weight:600}section.tab{display:none}section.tab.active{display:block}table.counts{border-collapse:collapse;width:100%;font-size:13px}table.counts td{border-bottom:1px solid var(--line);padding:3px 4px}td.num{text-align:right;white-space:nowrap;color:var(--muted)}.board{margin:8px 0 10px}.board-label{margin-bottom:3px;font-size:12px}.board-label small,h3 small{color:var(--muted);text-transform:none;letter-spacing:0;font-weight:400}.bar{background:repeating-linear-gradient(45deg,#ece6dc,#ece6dc 4px,#f6f2ea 4px 8px);border:1px solid #8f6a43;border-radius:3px;height:26px;display:flex;overflow:hidden}.piece{color:#2b2014;white-space:nowrap;cursor:pointer;background:#c9995f;border-right:2px solid #fff;justify-content:center;align-items:center;min-width:0;font-size:10px;display:flex;overflow:hidden}.piece:hover,.piece.active{background:#e0a35a}.offcut{flex-shrink:0}.missing li{color:#9a3b1f;font-size:13px}.badge{background:var(--line);text-align:center;border-radius:9px;min-width:18px;padding:0 5px;font-size:11px;display:inline-block}.issues li{cursor:pointer;border-radius:6px;flex-direction:column;gap:2px;padding:7px 8px;font-size:13px;display:flex}.issues li:hover,.issues li.active{background:var(--accent-soft)}.issues strong{color:#9a3b1f;font-size:12px}.toolbar .actions{flex-wrap:wrap}.actions{align-items:center;gap:6px;margin:8px 0;display:flex}.actions .spacer{flex:1}button{border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;cursor:pointer;border-radius:6px;padding:5px 10px;font-size:12px}button:hover:not(:disabled){border-color:var(--accent)}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.danger{color:#9a3b1f}button.link{background:0 0;border:none;padding:0 4px;font-size:11px}.message{color:#7c2e16;background:#fbe9e2;border-radius:6px;margin:6px 0;padding:8px 10px;font-size:12px}.pending summary{color:var(--muted);cursor:pointer;font-size:12px}.pending ol{margin:4px 0 0;padding-left:20px;font-size:12px}.form{border:1px solid var(--line);background:var(--bg);border-radius:8px;margin:8px 0;padding:10px 12px}.form h2{margin-top:0}.joint-form.undecided{border-color:#e3b9a5}.joint-title{margin-bottom:4px;font-size:13px;font-weight:600}.joint-title small{color:var(--muted);font-weight:400}.field{color:var(--muted);flex-direction:column;flex:1;gap:2px;min-width:0;margin:4px 0;font-size:11px;display:flex}.field input[type=text],.field input[type=number],.field select,.field textarea{border:1px solid var(--line);background:var(--panel);width:100%;color:var(--text);font:inherit;border-radius:5px;padding:4px 6px;font-size:13px}.field input[type=checkbox]{width:16px;height:16px;margin:5px 0}.row{gap:8px;display:flex}.grid{grid-template-columns:1fr 1fr;gap:0 8px;display:grid}.notice{background:var(--accent-soft);border-radius:5px;margin:0 0 6px;padding:6px 8px;font-size:12px}#app{--left:400px;--right:480px;grid-template-columns:var(--left) 6px 1fr 6px var(--right)}.panel.right{border-right:none;border-left:1px solid var(--line)}.resizer{cursor:col-resize;background:var(--line);opacity:.4}.resizer:hover{opacity:1;background:var(--accent)}.parts-head{justify-content:space-between;align-items:center;margin-top:14px;display:flex}.parts-head h2{margin:0}.parts.tree ul{margin:0;padding-left:14px}.parts.tree li.group{cursor:default;padding:0;display:block}.parts.tree summary{cursor:pointer;padding:4px 6px;font-size:13px;font-weight:600}.parts.tree summary small{color:var(--muted);font-weight:400}.describe textarea.description{border:1px solid var(--line);background:var(--panel);width:100%;color:var(--text);font:inherit;resize:vertical;border-radius:8px;margin-top:6px;padding:8px 10px;font-size:13px}.describe .attached{flex-wrap:wrap;align-items:center;gap:4px;margin-top:6px;display:flex}.describe .attached .chip{background:var(--accent-soft);border-radius:999px;align-items:center;gap:2px;padding:2px 4px 2px 8px;font-size:12px;display:inline-flex}.describe .attached .chip.more{padding-right:8px}.describe .attached .chip button{color:var(--muted);box-shadow:none;background:0 0;border:none;padding:0 4px;font-size:13px;line-height:1}.describe .attached button.link{color:var(--muted);box-shadow:none;background:0 0;border:none;padding:2px 6px;font-size:12px;text-decoration:underline}.describe .answer .discard-link{float:right;box-shadow:none;color:var(--link);white-space:pre;cursor:pointer;background:0 0;border:none;margin:-2px -4px 4px 12px;padding:0 4px;font-size:12px}.describe .answer .discard-link:hover:not(:disabled){background:0 0;text-decoration:underline}.describe .discard-box{margin:0 0 8px}.describe .discard-box textarea{border:1px solid var(--line);background:var(--panel);width:100%;color:var(--text);font:inherit;resize:vertical;border-radius:8px;padding:6px 8px;font-size:13px}.left-tabs{border-bottom:1px solid var(--line);gap:4px;margin-bottom:8px;display:flex}.left-tabs button{box-shadow:none;color:var(--muted);background:0 0;border:none;border-bottom:2px solid #0000;border-radius:0;font-weight:600}.left-tabs button.active{border-bottom-color:var(--accent);color:var(--text)}ul.history,ul.history ul{margin:0;padding:0;list-style:none}ul.history li.branch{border-left:2px dashed var(--line);margin:2px 0 2px 14px;padding-left:8px}ul.history li.step{cursor:pointer;border-radius:6px;align-items:flex-start;gap:8px;padding:5px 6px;font-size:13px;display:flex}ul.history li.step:hover{background:var(--bg)}ul.history li.step .dot{border:2px solid var(--muted);border-radius:50%;flex:none;width:9px;height:9px;margin-top:4px}ul.history li.step.on-path .dot{border-color:var(--accent);background:var(--accent)}ul.history li.step.current{background:var(--accent-soft)}ul.history li.step.current .dot{box-shadow:0 0 0 3px var(--accent-soft)}ul.history li.step.discarded .step-text{color:var(--muted);text-decoration:line-through}ul.history .step-body{flex-direction:column;flex:1;min-width:0;display:flex}ul.history .step-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}ul.history .step-label{font-weight:600}ul.history .why{font-style:italic}ul.history input.step-name{font:inherit;margin-bottom:2px;padding:2px 6px}.dialog-backdrop{z-index:50;background:#2b262059;justify-content:center;align-items:flex-start;padding:6vh 16px;display:flex;position:fixed;inset:0;overflow-y:auto}.dialog{background:var(--panel);border-radius:12px;width:min(640px,100%);padding:16px 20px 20px;box-shadow:0 12px 40px #00000040}.dialog header{justify-content:space-between;align-items:center;display:flex}.dialog h2{margin:0;font-size:18px}.dialog h3{margin:16px 0 4px;font-size:14px}.dialog button.close{box-shadow:none;color:var(--muted);background:0 0;border:none;font-size:22px;line-height:1}.dialog .dialog-actions{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.dialog ul.project-list,.dialog ul.example-list{border:1px solid var(--line);border-radius:8px;max-height:260px;margin:6px 0 0;padding:0;list-style:none;overflow-y:auto}.dialog ul li{border-bottom:1px solid var(--line);align-items:center;gap:8px;padding-right:8px;display:flex}.dialog ul li:last-child{border-bottom:none}.dialog ul li.current{background:var(--accent-soft)}.dialog button.row-main{min-width:0;box-shadow:none;text-align:left;background:0 0;border:none;border-radius:0;flex-direction:column;flex:1;align-items:flex-start;gap:2px;padding:8px 10px;display:flex}.dialog button.row-main:hover:not(:disabled){background:var(--bg)}.dialog button.link-danger{box-shadow:none;color:#9a3b1f;background:0 0;border:none;font-size:12px}.stock-table{border-collapse:collapse;width:100%;margin:4px 0 8px;font-size:13px}.stock-table th{color:var(--muted);text-align:left;padding:2px 4px;font-weight:600}.stock-table td{padding:1px 2px}.stock-table input{border:1px solid var(--line);width:100%;font:inherit;border-radius:4px;padding:3px 5px}.confirm-delete{color:#7c2e16;background:#fbe9e2;border-radius:6px;flex-wrap:wrap;align-items:center;gap:6px;padding:4px 8px;font-size:13px;display:inline-flex}.describe .retrying{background:var(--accent-soft);border-radius:6px;margin:6px 0 0;padding:6px 10px;font-size:13px}.describe .answer{border-left:3px solid var(--accent);background:var(--bg);white-space:pre-wrap;margin:4px 0 8px;padding:8px 10px;font-size:13px;line-height:1.45}.describe .answer.failed{color:#7c2e16;border-left-color:#c0573a}.suggestion{flex-wrap:wrap}label.inline{color:var(--muted);align-items:center;gap:6px;font-size:12px;display:flex}.meta a{color:inherit}details.rejected summary{color:#9a3b1f;cursor:pointer;font-size:12px}details.rejected ol{margin:4px 0;padding-left:20px;font-size:12px}.tabs{flex-wrap:wrap}.drawing,.joint-steps{border:1px solid var(--line);background:var(--panel);cursor:pointer;border-radius:8px;margin:10px 0 16px;padding:10px 12px}.drawing.active,.joint-steps.active{border-color:var(--accent)}.drawing-title{margin-bottom:6px;font-size:13px}.part-drawing{background:#fffdf8;width:100%;height:auto;display:block}.cut-words,.joint-steps ol{margin:6px 0 0;padding-left:20px;font-size:12px;line-height:1.5}.sheet-layout{width:100%;height:auto;display:block}.sheet-layout .sheet{fill:#f6f2ea;stroke:#8f6a43;stroke-width:4px}.sheet-layout .cut-box{fill:none;stroke:#c9995f;stroke-width:3px;stroke-dasharray:12 8}.sheet-layout .sheet-piece rect:not(.cut-box),.sheet-layout .sheet-piece polygon,.sheet-layout .sheet-piece ellipse{fill:#c9995f;stroke:#fff;stroke-width:6px;cursor:pointer}.sheet-layout .sheet-piece.active rect:not(.cut-box),.sheet-layout .sheet-piece.active polygon,.sheet-layout .sheet-piece.active ellipse,.sheet-layout .sheet-piece:hover rect:not(.cut-box),.sheet-layout .sheet-piece:hover polygon,.sheet-layout .sheet-piece:hover ellipse{fill:#e0a35a}.sheet-layout text{fill:#2b2014;pointer-events:none;font:48px system-ui,sans-serif}.outline-editor svg{border:1px solid var(--line);touch-action:none;cursor:crosshair;background:#fffdf8;border-radius:6px;width:100%;height:auto;max-height:260px;display:block}.outline-editor .box{fill:none;stroke:#d6d0c4;stroke-dasharray:6 6;vector-effect:non-scaling-stroke}.outline-editor .shape{fill:#e8cfa9;stroke:#8a5a2b;stroke-width:1.5px;vector-effect:non-scaling-stroke}.outline-editor .pt{fill:#fff;stroke:#8a5a2b;stroke-width:1.5px;vector-effect:non-scaling-stroke;cursor:grab}.view-overlay{pointer-events:none;flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:absolute;top:12px;right:12px}.view-overlay>*{pointer-events:auto}.side-labels{pointer-events:none;position:absolute;inset:0}.side-labels .side-label{color:#2b2620b3;white-space:nowrap;background:#ffffff8c;border-radius:4px;padding:1px 5px;font-size:10px;position:absolute;top:0;left:0}.view-buttons button.active{border-color:var(--accent);background:var(--accent-soft)}.head .project-name{width:100%;color:var(--text);font:inherit;background:0 0;border:1px solid #0000;border-radius:6px;margin:0;padding:2px 4px;font-size:20px;font-weight:700}.head .project-note{width:100%;color:var(--muted);font:inherit;resize:vertical;background:0 0;border:1px solid #0000;border-radius:6px;margin:2px 0 0;padding:2px 4px;font-size:13px}.head .project-name:hover,.head .project-note:hover,.head .project-name:focus,.head .project-note:focus{border-color:var(--line);background:var(--panel)}.part-head h2{margin:0;font-size:17px}.part-head .meta{margin:2px 0 6px}ul.joined-to{border:1px solid var(--line);background:var(--panel);border-radius:8px;margin:4px 0 8px;padding:0;list-style:none}ul.joined-to li.joined{border-bottom:1px solid var(--line)}ul.joined-to li.joined:last-child{border-bottom:none}ul.joined-to li.joined.open{background:var(--bg)}button.joined-row{width:100%;box-shadow:none;text-align:left;background:0 0;border:none;border-radius:0;flex-direction:column;align-items:flex-start;gap:1px;padding:8px 10px;display:flex}button.joined-row:hover:not(:disabled){background:var(--accent-soft)}.joined-title{font-weight:600}.joined-title .count{color:var(--muted);font-weight:400}.joined-editor{padding:4px 10px 10px}.joined-editor details.fine-tune,details.more{margin:6px 0}.joined-editor details.fine-tune summary,details.more summary{cursor:pointer;color:var(--muted);font-size:13px}.part-preview{border:1px solid var(--line);background:var(--panel);border-radius:8px;margin-bottom:10px;padding:6px}.part-preview svg{width:100%;height:auto;max-height:170px;display:block}.view-buttons{gap:6px;display:flex}.walk-button,.focus-button{padding:7px 14px;font-size:13px;font-weight:600;box-shadow:0 1px 4px #0000001f}.spot-hint{background:var(--accent);color:#fff;border-radius:6px;padding:6px 10px;font-size:13px;font-weight:600}.walk-help{color:#fff;background:#2b2620d1;border-radius:6px;max-width:320px;padding:8px 10px;font-size:12px;line-height:1.5}.parts.tree li[data-ref]{-webkit-user-select:none;user-select:none;justify-content:flex-start;align-items:center}.parts.tree input.pick,.parts.tree input.pick-group{cursor:pointer;visibility:hidden;width:14px;height:14px;margin:0 4px 0 0}.parts.tree.has-selection input.pick,.parts.tree.has-selection input.pick-group,.parts.tree:hover input.pick,.parts.tree:hover input.pick-group{visibility:visible}.parts.tree li.group{list-style:none}.parts.tree .group-row{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:6px;align-items:center;padding:4px 6px 4px 0;font-size:13px;font-weight:600;display:flex}.parts.tree .group-row:hover{background:var(--bg)}.parts.tree .group-row.active{background:var(--accent-soft)}.parts.tree .group-row small{color:var(--muted);font-weight:400}.parts.tree button.twisty{width:18px;color:var(--muted);cursor:pointer;background:0 0;border:none;padding:0;font-size:11px}.block-note{border:1px solid var(--line);border-radius:6px;margin:0 0 8px;padding:8px 10px;font-size:13px}.block-note button{margin-left:6px}.block-form h4{margin:12px 0 4px}.block-form .opening{border-left:3px solid var(--line);margin:4px 0;padding:4px 8px}.block-form .row-head{justify-content:space-between;display:flex}.block-kind{margin:4px 0;display:block}.ask-row{align-items:center}.llm-controls{gap:4px;margin-left:auto;display:inline-flex}.llm-icon{border:1px solid var(--line);height:26px;color:var(--muted);cursor:pointer;background:0 0;border-radius:6px;align-items:center;gap:3px;padding:0 6px;font-size:12px;display:inline-flex}.llm-icon:hover:not(:disabled){color:inherit;border-color:var(--muted)}.llm-icon:disabled{opacity:.45;cursor:default}.llm-icon svg{fill:currentColor;width:15px;height:15px}.llm-effort svg .off{opacity:.25}.llm-fast.on{color:#b7791f;border-color:#b7791f}.llm-model select{color:inherit;font:inherit;cursor:pointer;background:0 0;border:none;padding:0}.inside-height{background:#ffffffe6;border-radius:6px;align-items:center;gap:6px;padding:2px 8px;font-size:12px;display:inline-flex}.inside-height input{width:120px}.view-buttons .active{color:#8a5a12;border-color:#b7791f}.eye{color:var(--muted);cursor:pointer;opacity:.35;background:0 0;border:none;margin-left:auto;padding:0 4px;font-size:12px;line-height:1}.eye:hover,.eye.off{opacity:1}li:hover>.eye,.group-row:hover>.eye{opacity:.8}.inside-height[hidden]{display:none}.dialog.about p{margin:0 0 8px;line-height:1.5}.dialog ul.plain{margin:4px 0 10px;padding-left:18px;line-height:1.5}.dialog ul.plain li{border-bottom:none;padding:2px 0;display:list-item}.cut-settings{gap:16px;margin:0 0 10px;display:flex}.cut-settings .field{flex-direction:row;flex:none;align-items:center;gap:6px;font-size:13px}.cut-settings .field input[type=number]{width:64px}.issues li .fix{background:var(--accent-soft);border-radius:6px;margin-top:6px;padding:8px}.issues li .fix p{margin:0 0 6px}.issues li .fix button+button{margin-left:6px}.issues li>button.link{align-self:flex-start}.account{margin:4px 0 0}.account button.link{margin-left:4px}.form.sign-in{margin-top:8px}.form.sign-in p{margin:0 0 6px}.form .problem{color:#9a3b1f;font-size:12px}
