.crochet-editor{--primary:#5d419c;--tonal:#eaddff;--container:#f0e9f7;--muted:#62596e;--project-toolbar-bg:#fffbff;--project-toolbar-tonal:var(--tonal);--project-toolbar-accent:var(--primary);background:#f5f1fa;color:#231d2c;min-height:100dvh;font-family:Segoe UI,system-ui,sans-serif}.crochet-editor *{box-sizing:border-box}.crochet-editor button,.crochet-editor input,.crochet-editor select{font:inherit}.crochet-editor button{cursor:pointer}.crochet-editor button:disabled{opacity:.45;cursor:default}.crochet-editor h2,.crochet-editor h3,.crochet-editor p{margin:0}.crochet-editor button:focus-visible,.crochet-editor input:focus-visible,.crochet-editor select:focus-visible{outline:3px solid #8d71c6;outline-offset:3px}.crochet-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 16px;border:0;border-radius:99px;font-size:.875rem!important;font-weight:650!important}.crochet-button.primary{background:var(--primary);color:white;box-shadow:0 1px 3px #30224028}.crochet-button.tonal{background:var(--tonal);color:#2b1557}.crochet-button:not(:disabled):hover{filter:brightness(.96)}.crochet-stages{display:flex;gap:8px;max-width:1630px;margin:auto;padding:20px clamp(16px,3vw,44px) 0;overflow-x:auto}.crochet-stages button{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--muted);padding:9px 16px 9px 9px;border-radius:99px;font-size:.9rem;font-weight:650;white-space:nowrap}.crochet-stages button span{display:grid;place-items:center;border:1px solid #c9bddc;border-radius:50%;width:27px;height:27px;font-size:.8rem}.crochet-stages button[aria-current]{background:var(--tonal);color:#2b1557}.crochet-stages button[aria-current] span{color:white;border-color:var(--primary);background:var(--primary)}.crochet-workspace{width:100%;max-width:1630px;margin:auto;padding:18px clamp(16px,3vw,44px) 28px;display:grid;grid-template-columns:minmax(0,1fr) 328px;align-items:start;gap:20px}.crochet-panel,.crochet-surface{background:#fffbff;border-radius:24px;box-shadow:0 1px 3px #3022401c,0 1px 2px #30224014}.crochet-main{min-width:0;overflow:hidden;position:sticky;top:16px}.crochet-preview-header{padding:18px 22px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.crochet-preview-header h2{font-size:1.25rem;font-weight:650;letter-spacing:-.035em}.crochet-preview-header p{color:var(--muted);margin-top:3px;font-size:.85rem}.crochet-tabs{display:inline-flex;max-width:100%;gap:3px;background:var(--container);padding:4px;border-radius:99px;overflow-x:auto}.crochet-tabs button{border:0;padding:8px 12px;border-radius:99px;color:var(--muted);background:transparent;font-weight:600;font-size:.875rem;white-space:nowrap}.crochet-tabs button[aria-selected=true]{color:#2b1557;background:var(--tonal);box-shadow:0 1px 3px #30224022}.crochet-preview-panel{min-height:350px}.crochet-preview-panel[aria-busy=true]{opacity:.65;pointer-events:none}.crochet-canvas-wrap{height:clamp(340px,54dvh,610px);position:relative;background:#ece6f5}.crochet-canvas-wrap canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.crochet-canvas-wrap canvas:active{cursor:grabbing}.crochet-camera{position:absolute;right:14px;top:14px;display:flex;align-items:center;padding:3px;border-radius:99px;background:#fffbfff2;box-shadow:0 2px 8px #3022401b;font-size:.875rem}.crochet-camera button{border:0;background:transparent;color:var(--primary);min-width:33px;min-height:34px;border-radius:99px;padding:5px 9px;font-weight:650}.crochet-camera button:hover{background:var(--tonal)}.crochet-camera output{min-width:45px;text-align:center;font-variant-numeric:tabular-nums}.crochet-camera-hint{position:absolute;bottom:13px;left:0;right:0;pointer-events:none;text-align:center;color:var(--muted);font-size:.85rem}.crochet-preview-footer{padding:13px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.crochet-preview-footer>span{display:flex;align-items:center;gap:7px;font-size:.8rem;color:var(--muted);max-width:460px}.crochet-preview-footer svg{flex:none}.crochet-sidebar{display:grid;align-content:start;gap:14px;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#b6a2d1 transparent;padding:2px 6px 4px 2px}.crochet-model-info{display:grid;gap:12px;margin:0;font-size:.85rem}.crochet-model-info>div{display:flex;justify-content:space-between;gap:14px}.crochet-model-info dt{color:var(--muted)}.crochet-model-info dd{margin:0;text-align:right;overflow-wrap:anywhere}.crochet-panel{padding:18px}.crochet-panel h2{display:flex;align-items:center;gap:9px;font-size:1rem;font-weight:670;margin-bottom:15px}.crochet-panel h2>svg{color:var(--primary)}.crochet-source-actions{display:flex;gap:8px;flex-wrap:wrap}.crochet-file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.crochet-help{color:var(--muted);font-size:.85rem;line-height:1.5;margin-top:11px!important}.crochet-field{display:block;margin-top:16px}.crochet-field>span{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.875rem;font-weight:600}.crochet-field output{color:var(--primary);font-variant-numeric:tabular-nums;white-space:nowrap}.crochet-editor input[type=range]{width:100%;accent-color:var(--primary);margin-top:10px;cursor:pointer}.crochet-label{display:grid;gap:7px;font-size:.875rem;font-weight:600;margin-top:15px}.crochet-attachment-fields input,.crochet-label input,.crochet-label select{background:var(--container);border:1px solid #ddd1e9;color:#302643;border-radius:10px;min-height:38px;padding:8px 10px;width:100%}.crochet-checkbox{display:flex;gap:8px;font-size:.875rem;margin-top:16px;align-items:center}.crochet-editor input[type=checkbox]{accent-color:var(--primary);width:17px;height:17px;flex:none}.crochet-attachment-fields{display:flex;gap:10px;margin-top:14px}.crochet-attachment-fields label{flex:1;min-width:0;font-size:.8rem;color:var(--muted)}.crochet-attachment-fields input{margin-top:6px}.crochet-palette{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.crochet-palette label{display:grid;grid-template-columns:30px auto;align-items:center;gap:2px 5px;font-size:.875rem;font-weight:700}.crochet-palette input{padding:0;border:0;background:transparent;border-radius:8px;height:30px;width:30px;cursor:pointer}.crochet-palette small{grid-column:1/-1;color:var(--muted);font-size:.75rem;font-weight:400}.crochet-text-button{display:inline-flex;align-items:center;gap:6px;margin-top:12px;color:var(--primary);border:0;background:transparent;padding:4px 0;font-size:.85rem!important;font-weight:650!important}.crochet-inset{padding:19px 22px;border-top:1px solid #e2d9ed}.crochet-inset h3{font-size:1rem;font-weight:650;margin-bottom:8px}.crochet-inset p{color:var(--muted);line-height:1.55;font-size:.9rem;margin-top:8px}.crochet-inset .crochet-palette{margin-top:0}.crochet-part-list{display:grid;gap:5px;max-height:270px;overflow-y:auto}.crochet-part-list button{display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;text-align:left;padding:10px;border-radius:10px;background:var(--container);font-size:.875rem}.crochet-part-list button[aria-pressed=true]{background:var(--tonal);color:#2b1557;font-weight:650}.crochet-part-list small{color:var(--muted);white-space:nowrap}.crochet-overview{display:flex;justify-content:space-between;gap:10px}.crochet-overview span{display:grid;gap:3px;color:var(--muted);font-size:.8rem}.crochet-overview strong{font-size:1.45rem;font-weight:700;color:#302643}.crochet-save-status{margin-top:15px!important;font-size:.8rem;line-height:1.5;color:var(--muted)}.crochet-restored{color:#2e7153;margin-top:9px!important;font-size:.875rem}.crochet-error,.crochet-status{margin:12px 20px!important;padding:11px 14px;border-radius:12px;background:var(--tonal);color:#2b1557;font-size:.9rem}.crochet-error{background:#ffdad6;color:#712725}.crochet-warning{background:#fff2d7;color:#654c27;font-size:.875rem;line-height:1.5}.crochet-warning p+p{margin-top:9px}.crochet-current{padding:22px}.crochet-current-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.9rem;color:var(--muted)}.crochet-current-title strong{color:var(--primary)}.crochet-current h3{font-size:1.25rem;font-weight:650;margin:12px 0}.crochet-current>p{font-size:.9rem;line-height:1.5}.crochet-event{display:flex;align-items:flex-start;gap:8px;padding:12px;background:#f2eafa;border-left:3px solid #8b6bb7;color:#39284d;line-height:1.5;margin-top:12px!important;font-size:.875rem}.crochet-event svg{flex:none;margin-top:2px}.crochet-step-actions{display:flex;gap:8px;justify-content:space-between;margin-top:18px;flex-wrap:wrap}.crochet-progress-label{margin-top:16px!important;color:var(--muted);font-size:.875rem}.crochet-panel progress{width:100%;height:8px;accent-color:var(--primary);margin-top:9px}.crochet-round-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:14px}.crochet-round-grid button{display:grid;place-items:center;border:1px solid transparent;min-height:31px;border-radius:9px;background:var(--container);color:var(--primary);font-size:.8rem}.crochet-round-grid button.current{background:var(--tonal);border-color:var(--primary)}.crochet-assembly-step{display:flex;align-items:flex-start;gap:12px;font-size:.9rem;line-height:1.6;padding-block:15px;border-bottom:1px solid #e5dcef}.crochet-assembly-step input{margin-top:5px}.crochet-round-select{font-size:.9rem;font-weight:650}.crochet-copyright{text-align:center;padding-bottom:14px}.crochet-print-only{display:none}.crochet-print-document{padding:28px;background:white;color:#202020;font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}.crochet-print-document h1{font-size:1.7rem;font-weight:750;margin-bottom:16px}.crochet-print-document h2{font-size:1.2rem;font-weight:700;margin:24px 0 12px}.crochet-print-document p{margin-block:10px}.crochet-print-document table{width:100%;border-collapse:collapse;font-size:.85rem}.crochet-print-document td,.crochet-print-document th{border:1px solid #d9d9d9;padding:7px;text-align:left;vertical-align:top}.crochet-print-document th{background:#f0edf6}.crochet-print-document td:first-child,.crochet-print-document td:nth-child(3){width:44px}.crochet-print-document .crochet-event{display:block;padding:6px;font-size:.8rem}.crochet-print-palette{display:flex;gap:15px;flex-wrap:wrap;margin-top:18px}.crochet-print-palette span{display:flex;align-items:center;gap:7px}.crochet-print-palette i{width:23px;height:23px;display:inline-block;border:1px solid #777;border-radius:5px;print-color-adjust:exact}@media (min-width:761px){.crochet-screen{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.crochet-copyright,.crochet-screen>.project-toolbar,.crochet-stages{flex:none}.crochet-stages{width:100%}.crochet-workspace{flex:1;min-height:0;align-items:stretch;padding-bottom:12px}.crochet-main{position:relative;min-height:0;display:flex;flex-direction:column}.crochet-main>.crochet-error,.crochet-main>.crochet-status,.crochet-preview-footer,.crochet-preview-header{flex:none}.crochet-preview-panel{min-height:0;flex:1;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin}.crochet-copyright{padding-bottom:6px}}@media (max-width:1000px){.crochet-workspace{grid-template-columns:minmax(0,1fr) 290px;gap:12px}.crochet-panel,.crochet-preview-header{padding:15px}}@media (max-width:760px){.crochet-workspace{grid-template-columns:1fr;padding:14px 12px}.crochet-main{position:static}.crochet-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));max-height:65dvh}.crochet-stages{padding-inline:12px;gap:2px}.crochet-stages button{padding-right:12px}.crochet-canvas-wrap{height:390px}}@media (max-width:480px){.crochet-sidebar{grid-template-columns:1fr}.crochet-tabs{border-radius:16px}.crochet-tabs button{padding-inline:10px}.crochet-canvas-wrap{height:330px}.crochet-current,.crochet-inset{padding:16px}.crochet-print-document{padding:12px}.crochet-print-document table{font-size:.75rem}}@media print{@page{size:A4;margin:14mm}body{background:white}.crochet-screen{display:none!important}.crochet-print-only{display:block}.crochet-editor{background:white}.crochet-print-document{padding:0;font-size:10pt}.crochet-print-document table{font-size:9pt}.crochet-print-document h2{break-after:avoid}.crochet-print-document tr{break-inside:avoid}.crochet-print-document thead{display:table-header-group}.crochet-print-document .crochet-event{background:white;color:#202020;font-size:9pt}}.crochet-round-symbols{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-block:12px;color:#39284d}.crochet-symbol-run{display:inline-flex;flex-wrap:wrap;align-items:center;gap:1px;max-width:100%}.crochet-stitch-symbol{display:inline-block;flex:none;width:30px;height:30px}.crochet-symbol-start{font-size:.75rem;font-weight:700;padding-right:3px}.crochet-symbol-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin-block:14px;padding:10px 12px;border:1px solid #d9cee6;border-radius:12px;font-size:.8rem;color:#51425f}.crochet-symbol-legend>span{display:inline-flex;gap:4px;align-items:center}.crochet-symbol-legend small{flex-basis:100%;font-size:.8rem;line-height:1.5}.crochet-print-document .crochet-stitch-symbol{width:22px;height:24px}.crochet-print-document .crochet-round-symbols{gap:3px;margin-block:6px}@media print{.crochet-round-symbols,.crochet-symbol-legend{color:#202020}.crochet-symbol-legend{break-inside:avoid}}.crochet-knitting-scrubber{display:grid;gap:5px;padding:14px 16px;margin:0;border-radius:0;background:var(--container)}.crochet-knitting-scrubber>span{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.9rem;font-weight:650}.crochet-knitting-scrubber output{color:var(--primary);font-variant-numeric:tabular-nums}.crochet-knitting-scrubber input[type=range]{min-height:28px;margin-top:0}.crochet-knitting-scrubber small{color:var(--muted);font-size:.8rem;line-height:1.4}.crochet-layer-controls{display:grid;gap:12px}.crochet-layer-controls .crochet-checkbox{margin-top:0}.crochet-layer-opacity>span{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.85rem}.crochet-layer-opacity output{color:var(--primary);font-variant-numeric:tabular-nums}.crochet-preview-header{position:absolute;left:14px;top:14px;z-index:3;max-width:calc(100% - 235px);padding:0}.crochet-hidden{display:none}.crochet-preview-header .crochet-tabs{background:#fffbfff2;box-shadow:0 2px 8px #3022401b}.crochet-preview-panel{position:relative}.crochet-model-panel{display:flex;flex-direction:column}.crochet-model-panel .crochet-canvas-wrap{flex:1;min-height:300px;height:auto}.crochet-knitting-scrubber{position:absolute;bottom:18px;left:18px;right:18px;z-index:2;max-width:520px;border-radius:14px;background:#fffbfff0;padding:10px 14px;box-shadow:0 2px 8px #3022401b}.crochet-preview-footer{position:absolute;bottom:16px;right:16px;z-index:3;padding:0}.crochet-assembly-nav{position:absolute;top:14px;left:14px;z-index:3;display:flex;align-items:center;gap:10px;max-width:calc(100% - 235px);background:#fffbfff2;padding:4px;border-radius:24px;box-shadow:0 2px 8px #3022401b}.crochet-assembly-nav span{font-size:.85rem;text-align:center}.crochet-assembly-nav button{padding:8px;flex:none}.crochet-sidebar .crochet-current{padding:14px 0}.crochet-sidebar .crochet-current h3{font-size:1rem}.crochet-sidebar .crochet-step-actions{gap:5px}.crochet-sidebar .crochet-step-actions .crochet-button{padding:8px 10px}.crochet-sidebar .crochet-round-grid{max-height:125px;overflow-y:auto}.crochet-yarn-summary{margin-top:16px;font-size:.85rem;line-height:1.5}.crochet-yarn-summary p{margin-top:7px}.crochet-part-figure{margin:12px 0;break-inside:avoid}.crochet-part-figure canvas{display:block;width:280px;max-width:100%;height:auto}.crochet-part-figure figcaption{font-size:.8rem}.crochet-report-panel .crochet-print-document{padding-top:76px}@media (max-width:1000px){.crochet-assembly-nav,.crochet-preview-header{max-width:calc(100% - 28px)}.crochet-model-panel .crochet-camera{top:65px}}@media (max-width:760px){.crochet-main{position:relative}.crochet-model-panel .crochet-canvas-wrap{height:65dvh;min-height:400px;flex:none}.crochet-preview-footer{bottom:85px}.crochet-knitting-scrubber{bottom:14px}}@media print{.crochet-part-figure canvas{width:64mm;height:48mm}}.crochet-part-picker{margin-top:0}.crochet-preview-header{max-width:calc(100% - 265px)}.crochet-result-toggle{min-height:34px;font-size:.8rem!important}.crochet-knitting-scrubber{top:104px;bottom:auto;max-width:none;background:#fffbffde;padding:7px 14px}.crochet-instruction-tray{position:absolute;bottom:14px;left:14px;right:14px;z-index:2;border-radius:16px;background:#fffbffe6;box-shadow:0 2px 8px #30224020;overflow:hidden}.crochet-instruction-tray ol{position:relative;list-style:none;margin:0;padding:0;max-height:min(31dvh,245px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin}.crochet-instruction-tray li{border-bottom:1px solid #ddd1e980}.crochet-instruction-tray .crochet-current{padding:12px 16px}.crochet-instruction-tray .crochet-current h3{font-size:1rem;margin:8px 0}.crochet-instruction-tray .crochet-step-actions{margin-top:10px}.crochet-instruction-tray .crochet-round-symbols{margin-block:7px}.crochet-row-instruction{display:flex;gap:12px;align-items:baseline;border:0;padding:12px 16px;width:100%;text-align:left;background:transparent;color:inherit;font-size:.85rem!important}.crochet-row-instruction small,.crochet-row-instruction strong{flex:none}.crochet-row-instruction span{flex:1}.crochet-row-instruction:hover{background:#eaddff80}.crochet-camera button[aria-pressed=true]{background:var(--tonal)}.crochet-workspace{padding-bottom:28px}.crochet-copyright{padding-block:12px}@media (max-width:1000px){.crochet-preview-header{max-width:calc(100% - 28px)}.crochet-knitting-scrubber{top:148px;bottom:auto}}@media (max-width:760px){.crochet-instruction-tray ol{max-height:28dvh}.crochet-row-instruction{flex-wrap:wrap}}.crochet-preview-header{align-items:center}.crochet-knitting-scrubber{left:14px;right:14px}.crochet-current-tools{display:flex;align-items:center;gap:10px}.crochet-details-button{display:grid;place-items:center;padding:4px;border:0;border-radius:50%;background:transparent;color:var(--primary)}.crochet-details-button:hover{background:var(--tonal)}.crochet-instruction-tray>.crochet-step-actions{margin:0;padding:10px 16px;background:#fffbfff2;border-top:1px solid #ddd1e9;display:grid;grid-template-columns:1fr auto 1fr}.crochet-instruction-tray>.crochet-step-actions button:first-child{justify-self:start}.crochet-instruction-tray>.crochet-step-actions button:last-child{justify-self:end}.crochet-instruction-tray ol{max-height:min(23dvh,175px)}.crochet-row-dialog{border:0;border-radius:22px;padding:22px;background:#fffbff;color:#302643;max-width:min(640px,calc(100vw - 32px));width:100%;max-height:75dvh;overflow-y:auto;margin:auto;box-shadow:0 12px 60px #30224050}.crochet-row-dialog::backdrop{background:#30224060}.crochet-row-dialog form{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.crochet-row-dialog h2{font-size:1.2rem}.crochet-row-dialog p{line-height:1.6;margin-top:12px;overflow-wrap:anywhere}