.crochet-shell{width:min(1310px,calc(100% - 56px));margin-inline:auto;padding-block:30px 54px}.crochet-nav{display:flex;flex-wrap:wrap;gap:8px 20px;padding-block:0 18px;border-bottom:1px solid var(--line);margin-bottom:26px;font-size:.88rem}.crochet-nav a{font-weight:650;text-decoration:none}.crochet-nav a[aria-current]{color:var(--rust);text-decoration:underline;text-underline-offset:5px}.crochet-shell h1{font-size:clamp(2.15rem,5vw,4rem);letter-spacing:-.055em}.crochet-shell h2{font-size:1.34rem;letter-spacing:-.026em}.crochet-shell h3{font-size:1.05rem}.crochet-kicker{font-size:.74rem;letter-spacing:.12em;font-weight:750;text-transform:uppercase;color:var(--rust);margin-bottom:.55rem}.crochet-intro{font-size:1.06rem;color:var(--muted);max-width:630px;margin-top:15px}.crochet-note,.crochet-shell figcaption{color:var(--muted);font-size:.83rem}.crochet-shell .button{min-height:44px;text-decoration:none;margin:0}.crochet-shell .button-secondary{background:#fff;border-color:var(--line);color:var(--ink)}.crochet-shell .button-secondary:hover{background:var(--orange-soft)}.crochet-shell button:disabled{opacity:.55}.crochet-shell a:not(.button){text-underline-offset:3px}.crochet-shell details{margin-top:14px}.crochet-shell summary{cursor:pointer;font-weight:650}.crochet-shell fieldset{margin:0;padding:0;border:0;min-width:0}.crochet-shell legend{font-weight:650;margin-bottom:8px}.crochet-start-main{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(24px,5vw,74px);align-items:center;padding:16px 0 24px}.crochet-start-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:21px 0 10px}.crochet-start-choices :is(button,a){display:flex;align-items:center;gap:10px;min-width:0;min-height:68px;padding:10px 12px;text-align:left;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink)}.crochet-start-choices :is(button,a):hover,.crochet-start-choices .chosen{border-color:#c47f52;background:#fff5e7}.crochet-choice-icon{color:var(--rust);font-weight:750;font-size:1.25rem}.crochet-start-choices small,.crochet-sample small,.crochet-size small{display:block;color:var(--muted);font-size:.78rem}.crochet-recent{display:inline-block;margin-top:12px;color:var(--rust);font-weight:700}.crochet-sample,.crochet-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}.crochet-sample canvas{max-height:370px;object-fit:contain}.crochet-sample figcaption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.crochet-sample figcaption strong{color:var(--ink)}.crochet-setup{margin-block:16px 24px}.crochet-setup h2{margin-bottom:14px}.crochet-source{display:grid;gap:12px}.crochet-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crochet-field{display:grid;align-content:start;gap:4px;font-size:.83rem;font-weight:650;margin-block:6px}.crochet-field :is(input,select),.crochet-jump input,.crochet-board-label select{max-width:100%;min-width:0;min-height:42px;border:1px solid #d9d0c4;border-radius:7px;background:#fff;color:var(--ink);padding:7px 9px;font:inherit}.crochet-field input[type=color]{width:100%;padding:4px}.crochet-source .button,.crochet-source button{justify-self:start}.crochet-file{display:grid;justify-items:center;position:relative;gap:5px;border:1px dashed #bf885f;background:#fff7eb;padding:16px;border-radius:10px;text-align:center;cursor:pointer;font-weight:700}.crochet-file input,.crochet-import input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.crochet-file:focus-within,.crochet-import:focus-within{outline:2px solid var(--rust);outline-offset:3px}.crochet-file small{color:var(--muted);font-weight:400}.crochet-picture-picker.has-picture{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#faf7f0}.crochet-picture-selection{display:grid;grid-template-columns:clamp(80px,20vw,144px) minmax(0,1fr);align-items:center;gap:12px;flex:1 1 240px;min-width:0}.crochet-picture-selection img{display:block;width:100%;aspect-ratio:1;object-fit:contain;border:1px solid var(--line);border-radius:7px;background:#fff}.crochet-picture-status strong{display:flex;align-items:center;gap:6px}.crochet-picture-status>span{display:block;overflow-wrap:anywhere;font-size:.88rem}.crochet-picture-picker .button{border-style:solid;padding:8px 12px}.crochet-picture-loading{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}.crochet-task-message{display:flex;align-items:center;gap:8px}.crochet-spinner,.crochet-status-check{flex:none;display:inline-grid;place-items:center;border-radius:50%;width:1.2rem;height:1.2rem}.crochet-spinner{border:2px solid currentColor;border-inline-end-color:transparent}.crochet-status-check{color:#28583d;background:var(--green-soft);font-size:.82rem;font-weight:750}.crochet-source fieldset.crochet-crop-settings{border:1px solid var(--line);border-radius:10px;padding:10px 12px 12px}.crochet-source .crochet-crop-settings legend{padding-inline:5px;margin:0}.crochet-source .crochet-photo-settings legend{margin:0}.crochet-photo-fields{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));max-width:740px}.crochet-photo-settings .crochet-photo-option{font-size:.88rem}.crochet-shell .crochet-color-picker{margin:0;min-width:0}.crochet-photo-settings .crochet-color-picker{margin-top:8px;max-width:440px}.crochet-shell .crochet-color-picker legend{margin-bottom:6px;font-size:.85rem}.crochet-color-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.crochet-color-option{position:relative;display:grid;justify-items:center;align-content:center;gap:4px;min-height:56px;padding:5px 2px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:.75rem;line-height:1.15;text-align:center;cursor:pointer}.crochet-color-option:has(input:checked){border-color:var(--rust);box-shadow:inset 0 0 0 1px var(--rust);background:#fff4e7;font-weight:750}.crochet-color-option:has(input:focus-visible){outline:2px solid var(--rust);outline-offset:2px}.crochet-color-chip{width:24px;height:24px;border:1px solid #29292938;border-radius:5px}.crochet-color-picker--compact .crochet-color-chip{width:20px;height:20px}.crochet-shell .crochet-custom-color{margin-top:4px}.crochet-custom-color summary{min-height:44px;padding:10px 0;font-size:.83rem}.crochet-custom-color .crochet-field{max-width:280px}.crochet-custom-current{display:inline-flex;align-items:center;gap:5px;margin-inline-start:4px;color:var(--muted);vertical-align:middle}.crochet-custom-current .crochet-color-chip{width:14px;height:14px}.crochet-palette-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.crochet-palette-actions .button{padding-inline:5px;font-size:.79rem}.crochet-edit-dialog.crochet-yarn-dialog{width:min(490px,calc(100% - 24px))}@media(max-width:470px){.crochet-color-picker:not(.crochet-color-picker--compact) .crochet-color-options{grid-template-columns:repeat(4,minmax(0,1fr))}}.crochet-crop-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}.crochet-crop-picture{position:relative;overflow:hidden;width:fit-content;margin-inline:auto}.crochet-crop-picture img{display:block;width:auto;max-width:100%;height:auto;max-height:320px}.crochet-crop-box{position:absolute;outline:2px solid #fff;box-shadow:0 0 0 500px #2a20194f;pointer-events:none}.crochet-create-result{display:grid;justify-items:start;gap:12px;margin-top:16px;padding:12px;border:1px solid var(--line);border-radius:10px;scroll-margin-block:16px}.crochet-create-result-header{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.crochet-create-result canvas{max-width:320px;max-height:250px;object-fit:contain;object-position:left}.crochet-error{padding:10px 13px;margin-block:12px;background:#fff0ee;border-radius:8px;color:#8b2927}.crochet-canvas{display:block;height:auto;max-height:unset;image-rendering:pixelated}.crochet-canvas.editable{touch-action:none;cursor:crosshair;max-width:none}.crochet-studio-head,.crochet-projects-head{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:4px 0 18px}.crochet-studio-head h1{font-size:clamp(1.5rem,4vw,2.25rem);overflow-wrap:anywhere}.crochet-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.crochet-save{padding:5px 10px;border-radius:20px;background:var(--green-soft);color:#355b43;font-size:.82rem}.crochet-versions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px}.crochet-versions p{flex-basis:100%}.crochet-workspace{display:grid;grid-template-columns:minmax(175px,1fr) minmax(0,3fr) minmax(190px,1.12fr);grid-template-areas:"palette board options" "yarn board options";grid-template-rows:auto 1fr;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.crochet-yarn-palette{grid-area:palette}.crochet-yarn-settings{grid-area:yarn;padding-top:0}.crochet-board{grid-area:board}.crochet-right{grid-area:options}.crochet-left,.crochet-right,.crochet-board{min-width:0;padding:14px;display:flex;flex-direction:column;align-items:stretch;gap:9px}.crochet-left h2,.crochet-right h2{font-size:.92rem;letter-spacing:.02em;margin-top:5px}.crochet-left>.button,.crochet-right>.button,.crochet-left form .button,.crochet-right form .button{font-size:.8rem}.crochet-board{background:#f1ede4;border-inline:1px solid var(--line)}.crochet-toolbar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;position:relative}.crochet-toolbar button,.crochet-runs button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:7px;padding:7px 10px;min-height:44px;font-size:.82rem}.crochet-toolbar button[aria-pressed=true]{background:var(--ink);color:#fff}.crochet-history-tools,.crochet-history-tools button,.crochet-canvas-keys{display:flex;align-items:center;gap:4px}.crochet-history-tools button{gap:6px;justify-content:center;touch-action:manipulation}.crochet-history-tools button:enabled:active{background:var(--orange-soft);border-color:var(--rust)}.crochet-shell .crochet-history-tools button:disabled{opacity:1;color:var(--disabled-ink);background:var(--disabled-fill)}.crochet-history-icon{font-size:1.15rem;line-height:1}.crochet-key-hint kbd,kbd.crochet-key-hint{display:inline-block;padding:1px 4px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--muted);font:600 .72rem/1.4 var(--body-font);white-space:nowrap}.crochet-canvas-keys{flex-wrap:wrap}@media(hover:none)and (pointer:coarse){.crochet-key-hint,kbd.crochet-key-hint{display:none}}.crochet-board-label{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:space-between;color:var(--muted);font-size:.77rem}.crochet-board-label select{min-height:33px;padding:4px}.crochet-board-scroll{--crochet-board-height: min(50vh, 650px);overflow:auto;max-height:var(--crochet-board-height);background:#fffdf8;border:1px solid #d8cbb7;border-radius:8px;padding:10px;min-height:120px}.crochet-board-scroll canvas{margin-inline:auto;max-width:none}.crochet-board-scroll[data-panning=true]{touch-action:pan-x pan-y}.crochet-palette{max-height:320px;overflow:auto;display:grid;gap:4px}.crochet-palette button{display:flex;align-items:center;gap:8px;text-align:left;min-height:44px;padding:5px 7px;background:none;border:1px solid transparent;border-radius:7px;width:100%;min-width:0}.crochet-palette button[aria-pressed=true]{background:#fff3e2;border-color:#d58a5b}.crochet-palette strong,.crochet-palette small{display:block;overflow-wrap:anywhere}.crochet-palette small{font-size:.73rem;color:var(--muted)}.crochet-swatch{display:inline-block;width:24px;height:24px;flex:none;border:1px solid #0002;border-radius:5px}.crochet-size{padding:8px 10px;background:#f8f4eb;border-radius:8px}.crochet-size strong{font-size:1.18rem}.crochet-row-checks{max-height:220px;overflow:auto}.crochet-row-checks table{width:100%;text-align:left;font-size:.8rem}.crochet-selection{font-size:.84rem}.crochet-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.crochet-compare canvas{max-height:280px;object-fit:contain}.crochet-follow,.crochet-export{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,410px);gap:18px;margin-block:14px}.crochet-follow-mobile-chart{display:none}.crochet-follow-figure canvas,.crochet-print-preview canvas{max-height:560px;object-fit:contain}.crochet-follow-controls h2{font-size:1.85rem}.crochet-follow-controls h3,.crochet-follow-controls p,.crochet-follow-controls progress{margin-block:8px}.crochet-follow-controls progress{width:100%;accent-color:var(--rust)}.crochet-runs{display:flex;flex-wrap:wrap;gap:5px}.crochet-runs button[aria-pressed=true]{outline:2px solid var(--rust)}.crochet-runs i{display:inline-block;width:10px;height:10px;border:1px solid #0002;border-radius:2px}.crochet-jump{display:flex;gap:7px;align-items:center;margin-block:14px}.crochet-jump input{width:68px}.crochet-export{grid-template-columns:minmax(260px,390px) minmax(0,1fr);align-items:start}.crochet-export .crochet-actions{margin-top:14px}.crochet-download-status{margin-top:12px;padding:10px 12px;background:var(--board);border:1px solid var(--line);border-radius:10px}.crochet-download-status.is-ready{background:var(--green-soft);border-color:#c8dacc}.crochet-download-status.is-ready .crochet-status-check{background:#fff}.crochet-download-status .crochet-actions{margin-top:6px}.crochet-print-preview{padding:24px;background:#fffdf8}.crochet-print-preview canvas{margin-block:12px}.crochet-project-actions{margin-block:12px 18px}.crochet-project-actions .crochet-note{margin-top:9px}.crochet-import{position:relative;cursor:pointer}.crochet-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.crochet-project{display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}.crochet-thumb{background:#f6ecdd;padding:12px;border-radius:8px}.crochet-thumb canvas{max-height:165px;object-fit:contain}.crochet-projects>.crochet-panel{margin-bottom:16px}.crochet-copy{max-width:850px;margin:24px auto 0}.crochet-copy section{margin-block:25px}.crochet-copy h2,.crochet-copy p,.crochet-copy table{margin-block:10px}.crochet-copy table{border-collapse:collapse;width:100%;font-size:.91rem}.crochet-copy th,.crochet-copy td{border-bottom:1px solid var(--line);text-align:left;padding:8px}.crochet-copy dl dt{font-weight:700}.crochet-copy dl dd{margin:3px 0 15px}.crochet-template-art{width:100%;height:auto;max-height:215px;object-fit:contain;image-rendering:pixelated}.crochet-template-detail{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}.crochet-template-detail .crochet-template-art{max-height:450px}.crochet-empty{margin-inline:auto;max-width:640px}.crochet-empty p{margin-block:10px}@media(max-width:950px){.crochet-workspace{grid-template-columns:175px minmax(0,1fr);grid-template-areas:"palette board" "yarn board" "options options";grid-template-rows:auto 1fr auto}.crochet-right{border-top:1px solid var(--line)}.crochet-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.crochet-shell{width:calc(100% - 28px);padding-top:18px}.crochet-start-main,.crochet-workspace,.crochet-follow,.crochet-export,.crochet-template-detail,.crochet-crop-layout{grid-template-columns:1fr}.crochet-photo-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.crochet-workspace{grid-template-areas:"palette" "board" "yarn" "options";grid-template-rows:auto}.crochet-workspace .crochet-board{border-inline:0;border-top:1px solid var(--line)}.crochet-palette{grid-auto-flow:column;grid-auto-columns:minmax(106px,1fr);overflow-x:auto}.crochet-palette button{font-size:.82rem}.crochet-palette small{font-size:.69rem}.crochet-start-choices :is(button,a){padding:8px;min-height:64px}.crochet-project-grid{grid-template-columns:1fr}.crochet-follow-figure{display:none}.crochet-follow-mobile-chart{display:block;margin-block:10px}.crochet-follow-mobile-chart canvas{max-height:240px;object-fit:contain}.crochet-follow-controls{padding:15px}.crochet-nav{gap:6px 14px}.crochet-board-scroll{--crochet-board-height: 52vh}.crochet-studio-head .crochet-actions{width:100%}.crochet-crop-box{box-shadow:0 0 0 340px #2a20194f}}@media(pointer:coarse){.crochet-board-scroll[data-panning=false]{overflow:hidden;touch-action:none}.crochet-board-label select{min-height:44px}}@media(prefers-reduced-motion:no-preference){.crochet-spinner{animation:crochet-spin .85s linear infinite}.crochet-create-result{animation:crochet-reveal .36s ease-out}@keyframes crochet-spin{to{transform:rotate(360deg)}}@keyframes crochet-reveal{0%{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}.crochet-source-thumb{width:100%;max-height:100px;object-fit:contain;background:#f6f0e5;border-radius:7px}.crochet-start-templates{margin-block:10px 28px}.crochet-start-templates header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px}.crochet-start-templates header a{font-size:.87rem;color:var(--rust)}.crochet-start-templates>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.crochet-start-templates .crochet-panel{padding:10px;display:flex;align-items:center;gap:9px;text-decoration:none}.crochet-start-templates .crochet-panel:hover{border-color:var(--rust)}.crochet-start-templates .crochet-canvas{max-width:48px}.crochet-start-templates small{display:block;color:var(--muted);font-size:.73rem}@media(max-width:700px){.crochet-start-templates>div{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.crochet-shell:has(.crochet-studio) .crochet-nav{display:none}.crochet-mode-follow .crochet-studio-head{padding-bottom:4px}.crochet-studio-head>div:first-child .crochet-note:last-child{display:none}.crochet-mode-follow .crochet-studio-head .button{font-size:.78rem;padding-inline:9px}.crochet-follow-controls>.crochet-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}.crochet-follow-controls>.crochet-actions .button{padding-inline:6px}}.crochet-settings{border-top:1px solid var(--line);padding-block:2px}.crochet-shell .crochet-settings{margin-top:0}.crochet-settings>summary{min-height:44px;padding-block:11px;font-size:.84rem}.crochet-settings[open]>:is(form,.button,.crochet-note,.crochet-source-thumb,.crochet-row-checks,.crochet-fields){margin-bottom:9px}.crochet-photo-option{display:block;padding-block:5px}.crochet-board-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 12px}.crochet-active-yarn{display:inline-flex;align-items:center;gap:7px;font-weight:650;font-size:.8rem;overflow-wrap:anywhere;min-width:0}.crochet-active-yarn .crochet-swatch{width:16px;height:16px}.crochet-tool-hint{color:var(--muted);font-size:.85rem}.crochet-shell .crochet-more-tools{margin-top:0}.crochet-more-tools summary{padding:11px 8px;min-height:44px;font-size:.82rem}.crochet-tool-menu{display:grid;gap:4px;position:absolute;z-index:2;inset:100% 0 auto auto;background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:var(--shadow)}.crochet-tool-menu button{text-align:left}.crochet-edit-dialog{width:min(820px,calc(100% - 28px));max-height:90vh;padding:clamp(14px,3vw,26px);color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:14px}.crochet-edit-dialog::backdrop{background:#29292973}.crochet-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.crochet-edit-dialog .crochet-compare figure{padding:8px;border:1px solid var(--line);border-radius:8px}.crochet-current-run{padding:8px 10px;border-radius:8px;background:var(--orange-soft)}.crochet-follow-controls .crochet-actions{margin-block:14px}.crochet-history-button{background:transparent;color:var(--muted)}.crochet-history-button:hover{text-decoration:underline}@media(max-width:650px){.crochet-yarn-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;padding-top:14px}.crochet-yarn-settings .crochet-settings[open]{grid-column:1 / -1}}@media(max-width:650px){.crochet-palette{grid-auto-columns:minmax(142px,1fr)}.crochet-palette button>span:last-child{min-width:0}.crochet-palette strong,.crochet-palette small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crochet-toolbar>button,.crochet-history-tools>button{padding-inline:7px}.crochet-more-tools summary{padding-inline:4px}}@media(max-width:650px)and (pointer:coarse){.crochet-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:6px}.crochet-history-tools{display:grid;grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crochet-history-tools button{min-height:46px;font-weight:650}}
