:root{color:#172b37;font-synthesis:none;background:#f5f7f7;font-family:DM Sans,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,input:focus-visible,.point:focus-visible{outline-offset:3px;outline:3px solid #e69752}.topbar{color:#f7faf8;background:#172b37;justify-content:space-between;align-items:center;height:76px;padding:0 clamp(24px,4vw,70px);display:flex}.brand{letter-spacing:-.06em;align-items:center;gap:12px;font-family:Fraunces,Georgia,serif;font-size:27px;font-weight:700;display:flex}.brand-mark{align-items:center;width:35px;height:35px;display:inline-flex}.brand-mark svg{fill:none;stroke:#f3b06a;stroke-width:3.1px;stroke-linecap:round;width:35px}.brand-dot{color:#f3b06a}.topbar-right{color:#cad5d7;letter-spacing:.02em;align-items:center;gap:18px;font-size:13px;display:flex}.beta{letter-spacing:.11em;color:#f3b06a;font-size:11px;font-weight:700}.topbar-separator{background:#49616a;width:1px;height:21px}.workspace{grid-template-columns:minmax(380px,465px) minmax(0,1fr);gap:clamp(28px,4vw,66px);max-width:1640px;min-height:calc(100vh - 76px);margin:auto;padding:clamp(28px,3.7vw,58px) clamp(24px,4vw,70px) 70px;display:grid}.editor-intro .eyebrow{margin-bottom:13px}.eyebrow{letter-spacing:.17em;color:#7a9197;font-size:11px;font-weight:700}.editor-intro h1{letter-spacing:-.045em;color:#17303b;margin:0;font-family:Fraunces,Georgia,serif;font-size:clamp(40px,4vw,58px);line-height:1.07}.editor-intro h1 em{color:#bc7745;font-weight:600}.editor-intro p{color:#64777d;max-width:400px;margin:18px 0 27px;font-size:15px;line-height:1.6}.control-card{background:#fff;border:1px solid #e2e9e9;border-radius:18px;padding:24px;box-shadow:0 12px 45px #243f440b}.card-heading,.recipe-heading,.viewer-top{justify-content:space-between;align-items:center;gap:16px;display:flex}.card-heading{margin-bottom:19px}.card-heading h2,.recipe-heading h2,.viewer-top h2{letter-spacing:-.035em;margin:0;font-size:19px}.mode-label{color:#287d76;white-space:nowrap;background:#e8f6f3;border-radius:99px;padding:6px 10px;font-size:12px;font-weight:700}.mode-label.reviewing{color:#9c6539;background:#fff1e1}.amount-row{border-top:1px solid #eef1f1;border-bottom:1px solid #eef1f1;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 0;display:flex}.amount-row label{margin-right:auto;font-size:14px;font-weight:700}.amount-help{color:#849398;width:100%;font-size:12px}.stepper{border:1px solid #dbe4e5;border-radius:9px;align-items:center;height:38px;display:flex;overflow:hidden}.stepper button{color:#2e5058;background:#f6f9f9;border:0;width:34px;height:100%;font-size:20px}.stepper button:hover{background:#e7eeee}.stepper input{text-align:center;appearance:textfield;border:0;outline:0;width:43px;height:100%;font-size:15px;font-weight:700}.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.actions-grid{grid-template-columns:1fr 1fr;gap:9px;margin-top:19px;display:grid}.action{color:#25424b;text-align:left;background:#fbfcfc;border:1px solid #dfe7e8;border-radius:10px;align-items:center;gap:10px;min-height:58px;padding:9px 12px;font-size:13px;font-weight:700;transition:background .15s,border-color .15s,transform .15s;display:flex}.action:hover:not(:disabled){background:#edf7f5;border-color:#85b8af;transform:translateY(-1px)}.action-icon{color:#287a74;background:#eaf0f0;border-radius:7px;flex:none;place-items:center;width:28px;height:28px;font-size:22px;font-weight:500;line-height:1;display:grid}.action-symbol{width:100%;height:100%;display:block}.target-hint{color:#547179;background:#f2f7f7;border-radius:9px;min-height:42px;margin-top:17px;padding:11px 13px;font-size:13px;line-height:1.45}.target-hint.selected{color:#9d5b2e;background:#fff0e6}.recipe-heading{margin:33px 0 15px}.recipe-heading .eyebrow{margin-bottom:3px;display:block}.text-button{color:#307f79;text-align:left;background:0 0;border:0;padding:5px 0;font-size:13px;font-weight:700}.text-button:hover:not(:disabled){text-decoration:underline}.text-button.danger{color:#9b6862}.recipe-list{flex-direction:column;gap:7px;margin:0;padding:0;list-style:none;display:flex}.recipe-item button{text-align:left;color:#304b52;background:#fff;border:1px solid #e3eaea;border-radius:10px;align-items:center;gap:12px;width:100%;min-height:51px;padding:9px 14px;display:flex}.recipe-item button:hover{border-color:#a6c6c3}.recipe-item.active button{background:#f5fbfa;border-color:#72b6ac;box-shadow:inset 3px 0 #2d8b80}.recipe-item.error button{background:#fff5f2;border-color:#e5a399}.recipe-number{color:#81949a;min-width:20px;font-size:12px;font-weight:700}.recipe-label{flex:1;font-size:14px;font-weight:600}.recipe-icon{color:#98aaac;font-size:13px}.recipe-item.error .recipe-icon{color:#b75d51}.recipe-empty{color:#7d9195;border:1px dashed #c7d5d6;border-radius:10px;padding:18px;font-size:14px}.recipe-footer{flex-wrap:wrap;gap:22px;margin:16px 0;display:flex}.viewer{min-width:0}.viewer-top{margin:4px 0 20px}.viewer-top h2{margin-top:5px;font-family:Fraunces,Georgia,serif;font-size:clamp(23px,2vw,30px)}.step-counter{white-space:nowrap;color:#687c82;background:#fff;border:1px solid #dce6e5;border-radius:99px;padding:8px 12px;font-size:12px;font-weight:700}.canvas-shell{background:#fff;border:1px solid #dfe8e8;border-radius:18px;overflow:hidden;box-shadow:0 18px 50px #213d4212}.canvas-topline{color:#45616a;border-bottom:1px solid #edf0f0;justify-content:space-between;align-items:center;gap:12px;height:55px;padding:0 22px;font-size:13px;font-weight:700;display:flex}.live-dot{background:#2a9a86;border-radius:50%;width:8px;height:8px;margin-right:9px;display:inline-block}.canvas-scale{letter-spacing:.12em;color:#97a7aa;font-size:10px}.diagram{background-color:#fbfdfc;background-image:radial-gradient(#dce8e5 1.1px,#0000 1.1px);background-size:22px 22px;height:clamp(390px,52vh,630px);position:relative}.diagram svg{width:100%;height:100%;display:block;overflow:visible}.diagram-empty{text-align:center;color:#8da1a3;place-items:center;padding:30px;font-size:15px;display:grid;position:absolute;inset:0}.diagram-empty strong{color:#42626b;margin-bottom:6px;display:block}.canvas-footer{color:#71858b;border-top:1px solid #edf0f0;flex-wrap:wrap;align-items:center;gap:10px 21px;min-height:56px;padding:12px 19px;font-size:12px;display:flex}.canvas-footer>span{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.legend-symbol{flex:none;width:26px;height:26px;display:block}.legend-chain{color:#318f81}.legend-stitch{color:#256c6a}.legend-target{color:#ea9b62}.legend-skipped{color:#aab9bb}.diagnostic{color:#235c58;background:#eaf5f2;border:1px solid #c9e5df;border-radius:12px;align-items:flex-start;gap:13px;min-height:75px;margin-top:16px;padding:17px 18px;display:flex}.diagnostic.error{color:#8e4e43;background:#fff1ed;border-color:#f0c7bd}.diagnostic.inspect{color:#435e66;background:#f2f5f6;border-color:#e0e8e9}.diagnostic-icon{font-size:21px;line-height:1}.diagnostic strong{margin-bottom:3px;font-size:14px;display:block}.diagnostic p{margin:0;font-size:13px;line-height:1.45}.viewer-bottom{justify-content:space-between;align-items:center;gap:16px;margin-top:18px;display:flex}.timeline-controls{white-space:nowrap;align-items:center;gap:8px;display:flex}.timeline-controls button{color:#315e63;background:#fff;border:1px solid #d6e2e2;border-radius:8px;width:35px;height:35px;font-size:17px}.timeline-controls button:hover:not(:disabled){background:#edf7f5}.timeline-controls span{color:#6b8085;margin-left:6px;font-size:13px}.viewer-note{text-align:right;color:#91a2a5;max-width:340px;font-size:12px;line-height:1.4}.fiber{fill:none;stroke:#58a79b;stroke-width:3.5px;stroke-linecap:round;stroke-linejoin:round}.fiber.stitch{stroke:#447d7b;stroke-width:4px}.fiber.active{stroke:#e69254;stroke-width:5px}.fiber.muted{stroke:#b2c9c8}.attachment{fill:none;stroke:#9bb5b6;stroke-width:1.7px;stroke-dasharray:5 5}.attachment.active{stroke:#e19663;stroke-width:2.5px}.point{cursor:pointer}.point:hover .point-hit,.point:focus-visible .point-hit{stroke:#e69254;stroke-width:3px;fill:#fff9f3}.point-hit{fill:#0000;stroke:#0000;stroke-width:1px}.point .chain-shape{fill:#fbfdfc;stroke:#318f81;stroke-width:3px}.point .stitch-shape{fill:none;stroke:#256c6a;stroke-width:3.8px;stroke-linecap:round}.point .sl-shape{fill:#256c6a}.point.active .chain-shape,.point.active .stitch-shape{stroke:#d77d44;stroke-width:4.5px}.point.active .sl-shape{fill:#d77d44}.point.skipped .chain-shape,.point.skipped .stitch-shape{stroke:#aab9bb}.point.skipped .sl-shape{fill:#aab9bb}.point.target .target-ring,.point.selected .target-ring{display:block}.target-ring{fill:none;stroke:#ea9b62;stroke-width:2.5px;stroke-dasharray:3 4;display:none}.point.selected .target-ring{stroke:#dc7048;stroke-width:3.5px;stroke-dasharray:none}.point-label{fill:#738d92;text-anchor:middle;pointer-events:none;font-size:12px;font-weight:700}.point.active .point-label{fill:#bb663d}.hook-marker{fill:#172b37;stroke:#fff;stroke-width:2px}.hook-text{fill:#172b37;text-anchor:middle;letter-spacing:.03em;font-size:11px;font-weight:700}.skip-mark{stroke:#aab9bb;stroke-width:2.2px;stroke-linecap:round;pointer-events:none}@media (max-width:1100px){.workspace{grid-template-columns:minmax(315px,395px) minmax(0,1fr);gap:26px;padding-left:25px;padding-right:25px}.action{padding:8px;font-size:12px}.diagram{height:490px}.viewer-bottom{flex-direction:column;align-items:flex-start}.viewer-note{text-align:left;max-width:none}}@media (max-width:780px){.topbar{height:65px;padding:0 20px}.topbar-right>span:last-child,.topbar-separator{display:none}.workspace{flex-direction:column;gap:27px;padding:24px 18px 50px;display:flex}.viewer{order:1}.editor{display:contents}.editor-intro{order:0}.control-card{order:2}.recipe-heading{order:3;margin:8px 0 -13px}.recipe-list{order:4}.recipe-footer{order:5;margin:0}.editor-intro h1{font-size:39px}.editor-intro h1 br{display:none}.editor-intro p{margin:11px 0 0;font-size:14px}.viewer-top{margin:0 0 13px}.viewer-top h2{font-size:24px}.diagram{height:320px}.canvas-footer{gap:4px 13px}.viewer-bottom{margin-top:13px}.diagnostic{margin-top:11px}}@media (max-width:420px){.topbar-right{font-size:10px}.brand{font-size:23px}.canvas-topline{padding:0 13px}.canvas-scale{font-size:9px}.canvas-footer{padding:10px;font-size:11px}.action{gap:7px;font-size:12px}.action-icon{width:25px;height:25px}.control-card{padding:17px}.step-counter{font-size:11px}.diagram{height:290px}}[hidden]{display:none!important}.viewer{align-self:start}.same-target{color:#526e74;cursor:pointer;align-items:center;gap:9px;margin:15px 0 0;font-size:13px;font-weight:600;display:flex}.same-target input{accent-color:#277f78;width:16px;height:16px}.view-switch{background:#e7eeee;border:1px solid #d9e3e3;border-radius:10px;margin-bottom:13px;padding:3px;display:inline-flex}.view-switch button{color:#6a8085;background:0 0;border:0;border-radius:7px;padding:8px 14px;font-size:13px;font-weight:700}.view-switch button.active{color:#286d69;background:#fff;box-shadow:0 1px 5px #243f441a}.form-panel{background:#fcfdfc;grid-template-columns:1fr;height:clamp(390px,52vh,630px);display:grid}.form-pane{background:radial-gradient(circle at 50% 48%,#fff 0,#f5f8f7 85%);min-width:0;position:relative;overflow:hidden}.form-pane.full{grid-column:1/-1}.pane-label{z-index:1;letter-spacing:.12em;color:#6e868b;background:#fffdfcde;border-radius:5px;padding:5px 7px;font-size:10px;font-weight:700;position:absolute;top:17px;left:18px}.form-svg{place-items:center;width:100%;height:100%;display:grid}.form-svg svg{width:100%;height:100%;max-height:100%;padding:34px 0 9px;display:block}.form-empty{text-align:center;color:#82979b;padding:25px;font-size:14px}.form-caption{fill:#849598;font-family:DM Sans,sans-serif;font-size:11px}.edit-from-here{font-weight:700;color:#a25f35!important;border-color:#dfa46c!important;width:auto!important;padding:0 9px!important;font-size:12px!important}.point .ring-shape{fill:#fff;stroke:#318f81;stroke-width:5px}.point.active .ring-shape{stroke:#d77d44}.candidate-ring{fill:none;stroke:#c57148;stroke-width:2px;stroke-dasharray:3 4;display:none}.point.candidate .candidate-ring{display:block}@media (max-width:1100px){.form-panel{height:490px}}@media (max-width:780px){.viewer{position:static}.diagram,.form-panel{height:340px}}@media (max-width:420px){.diagram,.form-panel{height:300px}.pane-label{font-size:9px;top:10px;left:8px}.form-svg svg{padding:25px 0 0}}.target-picker{color:#526e74;justify-content:space-between;align-items:center;gap:12px;margin-top:11px;font-size:13px;font-weight:700;display:flex}.target-picker select{color:#294a52;background:#fff;border:1px solid #dce5e5;border-radius:8px;min-width:0;max-width:62%;padding:8px;font-size:13px}.recipe-item.inferred .recipe-icon{color:#c27b47;font-weight:700}.confirmation{color:#172b37;border:1px solid #dce5e5;border-radius:16px;width:min(420px,100% - 32px);padding:24px;box-shadow:0 20px 80px #172b3740}.confirmation::backdrop{background:#172b3780}.confirmation h2{margin:0 0 12px;font-size:20px}.confirmation p{margin:0 0 24px;font-size:16px;line-height:1.5}.confirmation-actions{justify-content:flex-end;gap:12px;display:flex}.confirmation-actions button{color:#294a52;background:#fff;border:1px solid #dce5e5;border-radius:8px;min-height:44px;padding:10px 18px;font-weight:700}.confirmation-actions .confirm-button{color:#fff;background:#287d76;border-color:#287d76}.composer-help{color:#385c62;margin:0 0 12px;font-size:15px;font-weight:700}.action.chosen{background:#e2f3ee;border:2px solid #287d76;box-shadow:0 0 0 2px #287d7615}.action.chosen .action-icon{background:#cce5df}@media (hover:none){.action:hover:not(:disabled):not(.chosen){background:#fbfcfc;border-color:#dfe7e8;transform:none}}.actions-grid{margin-top:0;margin-bottom:20px}.instruction-preview{background:#f2f6f5;border-radius:10px;margin-top:18px;padding:15px}.instruction-preview>span{letter-spacing:.1em;color:#6a8587;font-size:11px;font-weight:700}#draft-description{color:#234e51;margin:7px 0;font-size:17px;font-weight:700}#draft-error{color:#a34f38;margin:0;font-size:14px;line-height:1.45}.add-instruction{color:#fff;background:#287d76;border:0;border-radius:10px;width:100%;min-height:50px;margin-top:12px;font-size:16px;font-weight:700}.add-instruction:hover:not(:disabled){background:#206a64}.added-feedback{color:#287d76;margin:12px 0 0;font-size:14px;line-height:1.4}@media (max-width:780px){.control-card{order:1}.viewer{order:2}.editor-intro h1{font-size:30px}.editor-intro p{font-size:14px}.action{min-height:48px;font-size:14px}.actions-grid{gap:7px}.target-picker select{min-height:44px}.editor-intro{margin-bottom:-12px}}.dsl-dialog{width:min(680px,100% - 32px);max-height:calc(100dvh - 32px);overflow-y:auto}.dsl-dialog label{margin-bottom:8px;font-size:14px;font-weight:700;display:block}.dsl-dialog textarea{resize:vertical;color:#234e51;tab-size:2;background:#f8fbfa;border:1px solid #c7d5d6;border-radius:10px;width:100%;min-height:220px;padding:14px;font:14px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;display:block}.dsl-dialog textarea:focus-visible{outline-offset:3px;outline:3px solid #e69752}.dsl-dialog textarea[aria-invalid=true]{border-color:#b75d51}.dsl-dialog .dsl-error{color:#a34f38;margin:12px 0;font-size:14px}.dsl-dialog .dsl-status{color:#287d76;margin:12px 0;font-size:14px}.dsl-reference{color:#526e74;margin:16px 0;font-size:13px;line-height:1.5}.dsl-reference summary{cursor:pointer;color:#307f79;font-weight:700}.dsl-reference p{margin:12px 0;font-size:13px}.dsl-reference dl{grid-template-columns:minmax(130px,auto) 1fr;gap:8px 16px;display:grid}.dsl-reference dt{color:#234e51;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.dsl-reference dd{margin:0}.dsl-actions{flex-wrap:wrap;margin-top:20px}.layout-status{color:#315e63;background:#edf5f4;margin:0;padding:10px 18px;font-size:13px}.viewer-attribution{color:#6b8085;margin-top:14px;font-size:12px}.viewer-attribution a{color:#277b75;text-underline-offset:3px}@media (max-width:420px){.dsl-dialog{padding:18px}.dsl-reference dl{grid-template-columns:1fr;gap:4px}.dsl-reference dd{margin-bottom:8px}.dsl-actions button{white-space:nowrap;flex:1}}[data-dense] .point-label{display:none}[data-dense] .point:hover .point-label,[data-dense] .point:focus-visible .point-label,[data-dense] .point.selected .point-label,[data-dense] .point.active .point-label{display:block}
