@layer blockstitch{*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--blockstitch-bg: #1c1c1e;--blockstitch-bg2: #2c2c2e;--blockstitch-bg3: #3a3a3c;--blockstitch-border: #48484a;--blockstitch-text: #e0e0e0;--blockstitch-text-dim: #8e8e93;--blockstitch-accent: #0a84ff;--blockstitch-accent-rgb: 10, 132, 255;--blockstitch-red: #ff453a;--blockstitch-red-rgb: 255, 69, 58;--blockstitch-yellow: #ffd60a;--blockstitch-yellow-rgb: 255, 214, 10;--blockstitch-yellow-bg: #2d2200;--blockstitch-yellow-border: #7d6200;--blockstitch-accent-light: #3aa0ff;--blockstitch-radius: 6px;--blockstitch-radius-lg: 14px;--blockstitch-spacing-sm: 8px;--blockstitch-spacing: 12px;--blockstitch-btn-h-sm: 26px;--blockstitch-btn-h-md: 32px;--blockstitch-connector-cut-inset: 10px;--blockstitch-connector-cut-width: 22px;--blockstitch-connector-notch-depth: 8px;--blockstitch-glass-bg: rgba(44, 44, 46, .55);--blockstitch-glass-bg-strong: rgba(58, 58, 60, .6);--blockstitch-glass-border: rgba(255, 255, 255, .08);--blockstitch-glass-blur: 18px;--blockstitch-shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);--blockstitch-shadow-md: 0 4px 16px rgba(0, 0, 0, .35);--blockstitch-shadow-lg: 0 12px 40px rgba(0, 0, 0, .45);--blockstitch-bevel-top: inset 0 1px 0 rgba(255, 255, 255, .06);--blockstitch-bevel-press: inset 0 1px 2px rgba(0, 0, 0, .3);--blockstitch-glow-accent: 0 0 0 3px rgba(var(--blockstitch-accent-rgb), .28), 0 0 20px rgba(var(--blockstitch-accent-rgb), .25);--blockstitch-glow-red: 0 0 0 3px rgba(var(--blockstitch-red-rgb), .28), 0 0 20px rgba(var(--blockstitch-red-rgb), .3);--blockstitch-hover-overlay: rgba(255, 255, 255, .05);--blockstitch-scrollbar-thumb: rgba(255, 255, 255, .18);--blockstitch-scrollbar-thumb-hover: rgba(255, 255, 255, .3);--blockstitch-ease-standard: cubic-bezier(.4, 0, .2, 1);--blockstitch-ease-spring: cubic-bezier(.34, 1.56, .64, 1);--blockstitch-dur-fast: .12s;--blockstitch-dur-base: .2s;--blockstitch-dur-slow: .4s}:root[data-theme=light]{--blockstitch-bg: #f2f2f5;--blockstitch-bg2: #ffffff;--blockstitch-bg3: #e7e7ec;--blockstitch-border: #d4d4da;--blockstitch-text: #1c1c1e;--blockstitch-text-dim: #6e6e73;--blockstitch-yellow-bg: #fff6d8;--blockstitch-yellow-border: #e6c200;--blockstitch-glass-bg: rgba(255, 255, 255, .6);--blockstitch-glass-bg-strong: rgba(230, 230, 236, .75);--blockstitch-glass-border: rgba(0, 0, 0, .12);--blockstitch-shadow-sm: 0 1px 2px rgba(0, 0, 0, .08);--blockstitch-shadow-md: 0 4px 16px rgba(0, 0, 0, .1);--blockstitch-shadow-lg: 0 12px 40px rgba(0, 0, 0, .14);--blockstitch-bevel-top: inset 0 1px 0 rgba(255, 255, 255, .8);--blockstitch-bevel-press: inset 0 1px 2px rgba(0, 0, 0, .1);--blockstitch-hover-overlay: rgba(0, 0, 0, .04);--blockstitch-scrollbar-thumb: rgba(0, 0, 0, .15);--blockstitch-scrollbar-thumb-hover: rgba(0, 0, 0, .28)}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;font-size:14px;background:var(--blockstitch-bg);color:var(--blockstitch-text);height:100vh;position:relative;overflow:hidden}.hidden{display:none!important}button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:var(--blockstitch-btn-h-md);padding:0 12px;border-radius:var(--blockstitch-radius);border:1px solid var(--blockstitch-border);background:linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg2));color:var(--blockstitch-text);cursor:pointer;font-family:inherit;font-size:13px;white-space:nowrap;box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm);transition:transform var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),box-shadow var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),border-color var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),color var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}button svg{width:15px;height:15px;flex-shrink:0}button:hover:not(:disabled){background:linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg3));transform:translateY(-1px);box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-md)}button:active:not(:disabled){transform:translateY(0) scale(.97);box-shadow:var(--blockstitch-bevel-press),var(--blockstitch-shadow-sm)}button:focus-visible{outline:none;box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm),var(--blockstitch-glow-accent)}button:disabled{opacity:.38;cursor:default}.btn-primary,#run-macro-btn,#save-macro-btn{background:linear-gradient(160deg,var(--blockstitch-accent-light),var(--blockstitch-accent));border-color:var(--blockstitch-accent);color:#fff;font-weight:600}#run-macro-btn{min-width:130px}.btn-primary:hover:not(:disabled),#run-macro-btn:hover:not(:disabled),#save-macro-btn:hover:not(:disabled){background:linear-gradient(160deg,#56aeff,#1c8fff);box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-md),0 0 16px rgba(var(--blockstitch-accent-rgb),.35)}.btn-primary:disabled,#run-macro-btn:disabled,#save-macro-btn:disabled{background:linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg2));border-color:var(--blockstitch-border);color:var(--blockstitch-text)}.btn-danger,button.danger{background:transparent;border-color:var(--blockstitch-red);color:var(--blockstitch-red);box-shadow:var(--blockstitch-shadow-sm)}.btn-danger:hover:not(:disabled),button.danger:hover:not(:disabled){background:rgba(var(--blockstitch-red-rgb),.14);box-shadow:var(--blockstitch-shadow-md)}.btn-danger:active:not(:disabled),button.danger:active:not(:disabled){background:rgba(var(--blockstitch-red-rgb),.22)}.btn-danger:focus-visible,button.danger:focus-visible{box-shadow:var(--blockstitch-shadow-sm),var(--blockstitch-glow-red)}.btn-icon{min-height:var(--blockstitch-btn-h-sm);min-width:var(--blockstitch-btn-h-sm);padding:0;font-size:12px}.btn-icon svg{width:13px;height:13px}.btn-icon-glyph{display:flex;align-items:center;justify-content:center;line-height:0}.btn-icon-glyph svg{display:block}.btn-chip{background:transparent;border-style:dashed;color:var(--blockstitch-text-dim);box-shadow:none;font-weight:500}.btn-chip:hover:not(:disabled){color:var(--blockstitch-text);border-color:var(--blockstitch-text-dim);box-shadow:none;transform:none}.btn-chip.capturing{border-style:solid;border-color:var(--blockstitch-accent);color:var(--blockstitch-accent);box-shadow:var(--blockstitch-glow-accent)}input[type=text],input[type=number],input[type=time],select,textarea{background:var(--blockstitch-bg2);color:var(--blockstitch-text);border:1px solid var(--blockstitch-border);border-radius:var(--blockstitch-radius);padding:5px 8px;font-size:13px;transition:box-shadow var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),border-color var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}input[type=text]:focus,input[type=number]:focus,input[type=time]:focus,select:focus{outline:none;border-color:var(--blockstitch-accent);box-shadow:var(--blockstitch-glow-accent)}:root:not([data-theme=light]) input[type=time]{color-scheme:dark}:root[data-theme=light] input[type=time]{color-scheme:light}input[type=time]::-webkit-calendar-picker-indicator{cursor:pointer}input.invalid,select.invalid{border-color:var(--blockstitch-red)}input.invalid:focus,select.invalid:focus{box-shadow:var(--blockstitch-glow-red)}.invalid-hint{color:var(--blockstitch-red);font-size:11px}.shake-once{animation:fieldShake var(--blockstitch-dur-slow) var(--blockstitch-ease-standard)}@keyframes fieldShake{0%,to{transform:translate(0)}20%{transform:translate(-4px)}40%{transform:translate(3px)}60%{transform:translate(-2px)}80%{transform:translate(1px)}}input[type=checkbox]{accent-color:var(--blockstitch-accent);cursor:pointer}#main-page,#settings-page{position:absolute;inset:0;display:flex;flex-direction:column;overflow:hidden;transition:opacity var(--blockstitch-dur-base) var(--blockstitch-ease-standard),transform var(--blockstitch-dur-base) var(--blockstitch-ease-standard)}#main-page.page-hidden,#settings-page.page-hidden{opacity:0;transform:translateY(6px);pointer-events:none}.toolbar-row{display:flex;align-items:center;gap:var(--blockstitch-spacing);padding:var(--blockstitch-spacing-sm) var(--blockstitch-spacing);background:var(--blockstitch-glass-bg);backdrop-filter:blur(var(--blockstitch-glass-blur));-webkit-backdrop-filter:blur(var(--blockstitch-glass-blur));border-bottom:1px solid var(--blockstitch-glass-border);box-shadow:var(--blockstitch-shadow-sm);flex-shrink:0}.selector-left{display:flex;flex-direction:column;gap:4px;flex:1}.selector-left label{font-size:12px;color:var(--blockstitch-text-dim)}.macro-dropdown-row{display:flex;align-items:center;gap:6px}.selector-right{display:flex;gap:6px;align-items:center;margin-left:auto}.run-left{display:flex;gap:var(--blockstitch-spacing);align-items:center;flex:1}.run-right{margin-left:auto;display:flex;align-items:center}#macro-editor{display:flex;flex-direction:column;flex:1;overflow:hidden;background:var(--blockstitch-glass-bg);backdrop-filter:blur(var(--blockstitch-glass-blur));-webkit-backdrop-filter:blur(var(--blockstitch-glass-blur));border-top:1px solid var(--blockstitch-glass-border)}.editor-title-row{display:flex;align-items:center;gap:8px;padding:var(--blockstitch-spacing-sm) var(--blockstitch-spacing);border-bottom:1px solid var(--blockstitch-glass-border);flex-shrink:0}.editor-title-row label{font-size:12px;color:var(--blockstitch-text-dim);white-space:nowrap}.editor-title-row input{flex:1}.speed-control{display:flex;align-items:center;gap:6px;flex-shrink:0}.speed-control label{font-size:12px;color:var(--blockstitch-text-dim);white-space:nowrap}.speed-control input[type=range]{--fill: 0%;flex:none;width:90px;height:5px;margin:0;border-radius:999px;background:linear-gradient(to right,var(--blockstitch-accent) var(--fill),var(--blockstitch-bg3) var(--fill));border:1px solid var(--blockstitch-border);box-shadow:var(--blockstitch-bevel-press);cursor:pointer;-webkit-appearance:none;appearance:none;transition:box-shadow var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.speed-control input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:linear-gradient(160deg,var(--blockstitch-accent-light),var(--blockstitch-accent));border:1px solid var(--blockstitch-accent);box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm);cursor:pointer;transition:transform var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),box-shadow var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.speed-control input[type=range]::-moz-range-track{height:5px;border-radius:999px;background:var(--blockstitch-bg3);border:1px solid var(--blockstitch-border)}.speed-control input[type=range]::-moz-range-progress{height:5px;border-radius:999px 0 0 999px;background:var(--blockstitch-accent)}.speed-control input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:linear-gradient(160deg,var(--blockstitch-accent-light),var(--blockstitch-accent));border:1px solid var(--blockstitch-accent);box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm);cursor:pointer;transition:transform var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),box-shadow var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.speed-control input[type=range]:hover:not(:disabled)::-webkit-slider-thumb,.speed-control input[type=range]:active:not(:disabled)::-webkit-slider-thumb{transform:scale(1.15);box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-md)}.speed-control input[type=range]:hover:not(:disabled)::-moz-range-thumb,.speed-control input[type=range]:active:not(:disabled)::-moz-range-thumb{transform:scale(1.15);box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-md)}.speed-control input[type=range]:focus-visible{outline:none}.speed-control input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:var(--blockstitch-glow-accent)}.speed-control input[type=range]:focus-visible::-moz-range-thumb{box-shadow:var(--blockstitch-glow-accent)}.speed-control input[type=range]:disabled{cursor:default;opacity:.38;background:var(--blockstitch-bg3)}.speed-control input[type=range]:disabled::-webkit-slider-thumb{cursor:default;background:var(--blockstitch-bg3);border-color:var(--blockstitch-border);box-shadow:var(--blockstitch-shadow-sm)}.speed-control input[type=range]:disabled::-moz-range-thumb{cursor:default;background:var(--blockstitch-bg3);border-color:var(--blockstitch-border);box-shadow:var(--blockstitch-shadow-sm)}.speed-control input.speed-number{flex:none;width:42px;text-align:right;font-variant-numeric:tabular-nums}.speed-control .speed-unit{font-size:12px;color:var(--blockstitch-text-dim)}.editor-content-area{flex:1;display:flex;overflow:hidden;min-height:0}.canvas-wrap{flex:1;position:relative;min-width:0;overflow:hidden}.instruction-sidebar{flex-shrink:0;position:relative;display:flex;flex-direction:column;border-right:1px solid var(--blockstitch-glass-border);background:var(--blockstitch-glass-bg);overflow:hidden}.sidebar-resize-handle{position:absolute;top:0;right:0;width:6px;height:100%;cursor:col-resize;touch-action:none;z-index:2}.sidebar-resize-handle:hover,body.sidebar-resizing .sidebar-resize-handle{background:var(--blockstitch-accent);opacity:.5}body.sidebar-resizing{cursor:col-resize;user-select:none}.sidebar-trash-hint{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:var(--blockstitch-spacing-sm);font-size:11px;color:var(--blockstitch-text-dim);border-bottom:1px solid var(--blockstitch-glass-border);flex-shrink:0;transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),color var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.sidebar-trash-hint svg{width:18px;height:18px;opacity:.6}.instruction-sidebar.trash-armed{background:rgba(var(--blockstitch-red-rgb),.14)}.instruction-sidebar.trash-armed .sidebar-trash-hint{color:var(--blockstitch-red);background:rgba(var(--blockstitch-red-rgb),.18)}.instruction-sidebar.trash-armed .sidebar-trash-hint svg{opacity:1}.sidebar-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--blockstitch-scrollbar-thumb) transparent}.sidebar-palette{padding:var(--blockstitch-spacing-sm);display:flex;flex-direction:column;align-items:flex-start;gap:8px}.sidebar-palette .instruction-row{margin-bottom:0}.sidebar-section-label{flex-shrink:0;padding:var(--blockstitch-spacing-sm) var(--blockstitch-spacing-sm) 0;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--blockstitch-text-dim);border-top:1px solid var(--blockstitch-glass-border)}.sidebar-palette-values{flex-shrink:0}.sidebar-section-label-row{display:flex;align-items:center;justify-content:space-between;gap:var(--blockstitch-spacing-sm);flex-shrink:0;padding:var(--blockstitch-spacing-sm) var(--blockstitch-spacing-sm) 0;border-top:1px solid var(--blockstitch-glass-border)}.sidebar-section-label-row .sidebar-section-label{border-top:none;padding:0}.btn-make-variable{min-height:unset;padding:3px 8px;font-size:11px}.canvas-scroll{position:absolute;inset:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--blockstitch-scrollbar-thumb) transparent;user-select:none}.canvas-scroll::-webkit-scrollbar{width:10px;height:10px}.canvas-scroll::-webkit-scrollbar-track{background:transparent}.canvas-scroll::-webkit-scrollbar-thumb{background:var(--blockstitch-scrollbar-thumb);border-radius:8px;border:2px solid transparent;background-clip:padding-box}.canvas-scroll::-webkit-scrollbar-thumb:hover{background:var(--blockstitch-scrollbar-thumb-hover);background-clip:padding-box}.canvas-scroll.panning,.canvas-scroll.panning *{cursor:grabbing!important}.canvas-sizer{position:relative}.canvas-inner{position:absolute;left:0;top:0;transform-origin:0 0;background-image:radial-gradient(circle,var(--blockstitch-glass-border) 1.2px,transparent 1.2px);background-size:22px 22px}.canvas-zoom-controls{position:absolute;right:var(--blockstitch-spacing-md, 16px);bottom:var(--blockstitch-spacing-md, 16px);z-index:4;display:flex;flex-direction:column;gap:8px}.canvas-zoom-btn{width:34px;height:34px;min-height:unset;padding:0;border-radius:50%;background:var(--blockstitch-glass-bg);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.canvas-zoom-btn svg{width:16px;height:16px}.strand-card{position:absolute;display:flex;flex-direction:column}.strand-body{display:flex;flex-direction:column;align-items:flex-start;gap:0}.instruction-row-when-ran .instruction-shape{color:var(--blockstitch-accent)}.instruction-row-when-ran svg{width:14px;height:14px;flex-shrink:0}.instruction-row-when-ran .when-ran-label{text-transform:uppercase;letter-spacing:.05em;font-weight:600;font-size:11px}.instruction-row.instruction-row-header:before{clip-path:polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - var(--blockstitch-connector-notch-depth) - 4px),calc(100% - 4px) calc(100% - var(--blockstitch-connector-notch-depth)),40.5px calc(100% - var(--blockstitch-connector-notch-depth)),37.5px calc(100% - var(--blockstitch-connector-notch-depth) + 2px),34.5px calc(100% - var(--blockstitch-connector-notch-depth) + 6px),31.5px 100%,22.5px 100%,19.5px calc(100% - var(--blockstitch-connector-notch-depth) + 6px),16.5px calc(100% - var(--blockstitch-connector-notch-depth) + 2px),13.5px calc(100% - var(--blockstitch-connector-notch-depth)),4px calc(100% - var(--blockstitch-connector-notch-depth)),0 calc(100% - var(--blockstitch-connector-notch-depth) - 4px),0 4px)}.instruction-row.instruction-row-header:after{clip-path:polygon(4.6px 1.5px,calc(100% - 4.6px) 1.5px,calc(100% - 1.5px) 4.6px,calc(100% - 1.5px) calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px),calc(100% - 4.6px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),40px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),36.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),33.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),31px calc(100% - 1.5px),23px calc(100% - 1.5px),20.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),17.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),14px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),4.6px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),1.5px calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px),1.5px 4.6px)}.instruction-row-header .instruction-shape{padding:6px var(--blockstitch-spacing) calc(6px + var(--blockstitch-connector-notch-depth)) var(--blockstitch-spacing);clip-path:polygon(4.6px 1.5px,calc(100% - 4.6px) 1.5px,calc(100% - 1.5px) 4.6px,calc(100% - 1.5px) calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px),calc(100% - 4.6px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),40px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),36.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),33.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),31px calc(100% - 1.5px),23px calc(100% - 1.5px),20.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),17.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),14px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),4.6px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),1.5px calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px),1.5px 4.6px)}.instruction-row.instruction-row-cap{margin-bottom:0}.instruction-row.instruction-row-cap:before{clip-path:polygon(4px 0,13.5px 0,16.5px 2px,19.5px 6px,22.5px 8px,31.5px 8px,34.5px 6px,37.5px 2px,40.5px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,0 calc(100% - 4px),0 4px)}.instruction-row.instruction-row-cap:after{clip-path:polygon(4.6px 1.5px,13px 1.5px,15.5px 3.1px,18.5px 7.1px,22px 9.5px,32px 9.5px,35.5px 7.1px,38.5px 3.1px,41px 1.5px,calc(100% - 4.6px) 1.5px,calc(100% - 1.5px) 4.6px,calc(100% - 1.5px) calc(100% - 4.6px),calc(100% - 4.6px) calc(100% - 1.5px),4.6px calc(100% - 1.5px),1.5px calc(100% - 4.6px),1.5px 4.6px)}.instruction-row-cap .instruction-shape{min-height:calc(60px - var(--blockstitch-connector-notch-depth));padding-bottom:6px;clip-path:polygon(4.6px 1.5px,13px 1.5px,15.5px 3.1px,18.5px 7.1px,22px 9.5px,32px 9.5px,35.5px 7.1px,38.5px 3.1px,41px 1.5px,calc(100% - 4.6px) 1.5px,calc(100% - 1.5px) 4.6px,calc(100% - 1.5px) calc(100% - 4.6px),calc(100% - 4.6px) calc(100% - 1.5px),4.6px calc(100% - 1.5px),1.5px calc(100% - 4.6px),1.5px 4.6px)}.instruction-row.instruction-row-wrap{--blockstitch-wrap-head-h: 60px;--blockstitch-wrap-mid-h: 36px;--blockstitch-wrap-foot-h: 32px;--blockstitch-wrap-spine-w: 20px;--blockstitch-wrap-fill: linear-gradient(to right, var(--blockstitch-bg3), var(--blockstitch-bg2));--blockstitch-wrap-outline: var(--blockstitch-border);display:flex;flex-direction:column;position:relative;cursor:default;transition:filter var(--blockstitch-dur-fast) var(--blockstitch-ease-standard);filter:drop-shadow(var(--blockstitch-shadow-sm))}.instruction-row.instruction-row-wrap:before,.instruction-row.instruction-row-wrap:after{content:none}body:not(.bs-dragging) .instruction-row.instruction-row-wrap:has(.wrap-head-line:hover,.wrap-mid-bar:hover,.wrap-foot-bar:hover),body:not(.bs-dragging) .instruction-row.instruction-row-wrap.wrap-spine-hover{--blockstitch-wrap-fill: linear-gradient(to right, var(--blockstitch-bg3), var(--blockstitch-bg3));--blockstitch-wrap-outline: var(--blockstitch-accent)}.wrap-head-line{flex-shrink:0;height:var(--blockstitch-wrap-head-h);box-sizing:border-box;position:relative;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;padding:6px var(--blockstitch-spacing) 0 calc(var(--blockstitch-connector-cut-inset) + var(--blockstitch-connector-cut-width) + 8px);cursor:grab;touch-action:none}.wrap-head-line:active{cursor:grabbing}.wrap-head-line:before{content:"";position:absolute;inset:0 0 calc(-1 * var(--blockstitch-connector-notch-depth)) 0;z-index:-2;pointer-events:none;background:var(--blockstitch-wrap-outline);transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard);clip-path:polygon(4px 0,13.5px 0,16.5px 2px,19.5px 6px,22.5px 8px,31.5px 8px,34.5px 6px,37.5px 2px,40.5px 0,calc(100% - 4px) 0,100% 4px,100% var(--blockstitch-wrap-head-h),calc(var(--blockstitch-wrap-spine-w) + 40.5px) var(--blockstitch-wrap-head-h),calc(var(--blockstitch-wrap-spine-w) + 37.5px) calc(var(--blockstitch-wrap-head-h) + 2px),calc(var(--blockstitch-wrap-spine-w) + 34.5px) calc(var(--blockstitch-wrap-head-h) + 6px),calc(var(--blockstitch-wrap-spine-w) + 31.5px) calc(var(--blockstitch-wrap-head-h) + var(--blockstitch-connector-notch-depth)),calc(var(--blockstitch-wrap-spine-w) + 22.5px) calc(var(--blockstitch-wrap-head-h) + var(--blockstitch-connector-notch-depth)),calc(var(--blockstitch-wrap-spine-w) + 19.5px) calc(var(--blockstitch-wrap-head-h) + 6px),calc(var(--blockstitch-wrap-spine-w) + 16.5px) calc(var(--blockstitch-wrap-head-h) + 2px),calc(var(--blockstitch-wrap-spine-w) + 13.5px) var(--blockstitch-wrap-head-h),0 var(--blockstitch-wrap-head-h),0 4px)}.wrap-head-line:after{content:"";position:absolute;inset:0 0 calc(-1 * var(--blockstitch-connector-notch-depth)) 0;z-index:-1;pointer-events:none;background:var(--blockstitch-wrap-fill);transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard);clip-path:polygon(4.6px 1.5px,13px 1.5px,15.5px 3.1px,18.5px 7.1px,22px 9.5px,32px 9.5px,35.5px 7.1px,38.5px 3.1px,41px 1.5px,calc(100% - 4.6px) 1.5px,calc(100% - 1.5px) 4.6px,calc(100% - 1.5px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 40px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 36.5px) calc(100% - var(--blockstitch-connector-notch-depth) + .9px),calc(var(--blockstitch-wrap-spine-w) + 33.5px) calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),calc(var(--blockstitch-wrap-spine-w) + 31px) calc(100% - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 23px) calc(100% - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 20.5px) calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),calc(var(--blockstitch-wrap-spine-w) + 17.5px) calc(100% - var(--blockstitch-connector-notch-depth) + .9px),calc(var(--blockstitch-wrap-spine-w) + 14px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),1.5px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),1.5px 4.6px)}.instruction-type-icon-inline{width:16px;height:16px;flex-shrink:0;color:var(--blockstitch-text-dim)}.wrap-mid-bar{flex-shrink:0;height:var(--blockstitch-wrap-mid-h);box-sizing:border-box;position:relative;display:flex;align-items:center;padding-left:calc(var(--blockstitch-wrap-spine-w) + 8px);cursor:grab;touch-action:none}.wrap-mid-bar:active{cursor:grabbing}.wrap-mid-bar:before{content:"";position:absolute;inset:0 0 calc(-1 * var(--blockstitch-connector-notch-depth)) 0;z-index:-2;pointer-events:none;background:var(--blockstitch-wrap-outline);transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard);clip-path:polygon(0 0,calc(var(--blockstitch-wrap-spine-w) + 13.5px) 0,calc(var(--blockstitch-wrap-spine-w) + 16.5px) 2px,calc(var(--blockstitch-wrap-spine-w) + 19.5px) 6px,calc(var(--blockstitch-wrap-spine-w) + 22.5px) var(--blockstitch-connector-notch-depth),calc(var(--blockstitch-wrap-spine-w) + 31.5px) var(--blockstitch-connector-notch-depth),calc(var(--blockstitch-wrap-spine-w) + 34.5px) 6px,calc(var(--blockstitch-wrap-spine-w) + 37.5px) 2px,calc(var(--blockstitch-wrap-spine-w) + 40.5px) 0,100% 0,100% var(--blockstitch-wrap-mid-h),calc(var(--blockstitch-wrap-spine-w) + 40.5px) var(--blockstitch-wrap-mid-h),calc(var(--blockstitch-wrap-spine-w) + 37.5px) calc(var(--blockstitch-wrap-mid-h) + 2px),calc(var(--blockstitch-wrap-spine-w) + 34.5px) calc(var(--blockstitch-wrap-mid-h) + 6px),calc(var(--blockstitch-wrap-spine-w) + 31.5px) calc(var(--blockstitch-wrap-mid-h) + var(--blockstitch-connector-notch-depth)),calc(var(--blockstitch-wrap-spine-w) + 22.5px) calc(var(--blockstitch-wrap-mid-h) + var(--blockstitch-connector-notch-depth)),calc(var(--blockstitch-wrap-spine-w) + 19.5px) calc(var(--blockstitch-wrap-mid-h) + 6px),calc(var(--blockstitch-wrap-spine-w) + 16.5px) calc(var(--blockstitch-wrap-mid-h) + 2px),calc(var(--blockstitch-wrap-spine-w) + 13.5px) var(--blockstitch-wrap-mid-h),0 var(--blockstitch-wrap-mid-h))}.wrap-mid-bar:after{content:"";position:absolute;inset:0 0 calc(-1 * var(--blockstitch-connector-notch-depth)) 0;z-index:-1;pointer-events:none;background:var(--blockstitch-wrap-fill);transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard);clip-path:polygon(1.5px 1.5px,calc(var(--blockstitch-wrap-spine-w) + 13px) 1.5px,calc(var(--blockstitch-wrap-spine-w) + 15.5px) 3.1px,calc(var(--blockstitch-wrap-spine-w) + 18.5px) 7.1px,calc(var(--blockstitch-wrap-spine-w) + 22px) calc(var(--blockstitch-connector-notch-depth) + 1.5px),calc(var(--blockstitch-wrap-spine-w) + 32px) calc(var(--blockstitch-connector-notch-depth) + 1.5px),calc(var(--blockstitch-wrap-spine-w) + 35.5px) 7.1px,calc(var(--blockstitch-wrap-spine-w) + 38.5px) 3.1px,calc(var(--blockstitch-wrap-spine-w) + 41px) 1.5px,calc(100% - 1.5px) 1.5px,calc(100% - 1.5px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 40px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 36.5px) calc(100% - var(--blockstitch-connector-notch-depth) + .9px),calc(var(--blockstitch-wrap-spine-w) + 33.5px) calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),calc(var(--blockstitch-wrap-spine-w) + 31px) calc(100% - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 23px) calc(100% - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 20.5px) calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),calc(var(--blockstitch-wrap-spine-w) + 17.5px) calc(100% - var(--blockstitch-connector-notch-depth) + .9px),calc(var(--blockstitch-wrap-spine-w) + 14px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),1.5px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px))}.wrap-mid-bar.wrap-bar-flat-notch:before{clip-path:polygon(0 0,100% 0,100% var(--blockstitch-wrap-mid-h),calc(var(--blockstitch-wrap-spine-w) + 40.5px) var(--blockstitch-wrap-mid-h),calc(var(--blockstitch-wrap-spine-w) + 37.5px) calc(var(--blockstitch-wrap-mid-h) + 2px),calc(var(--blockstitch-wrap-spine-w) + 34.5px) calc(var(--blockstitch-wrap-mid-h) + 6px),calc(var(--blockstitch-wrap-spine-w) + 31.5px) calc(var(--blockstitch-wrap-mid-h) + var(--blockstitch-connector-notch-depth)),calc(var(--blockstitch-wrap-spine-w) + 22.5px) calc(var(--blockstitch-wrap-mid-h) + var(--blockstitch-connector-notch-depth)),calc(var(--blockstitch-wrap-spine-w) + 19.5px) calc(var(--blockstitch-wrap-mid-h) + 6px),calc(var(--blockstitch-wrap-spine-w) + 16.5px) calc(var(--blockstitch-wrap-mid-h) + 2px),calc(var(--blockstitch-wrap-spine-w) + 13.5px) var(--blockstitch-wrap-mid-h),0 var(--blockstitch-wrap-mid-h))}.wrap-mid-bar.wrap-bar-flat-notch:after{clip-path:polygon(1.5px 1.5px,calc(100% - 1.5px) 1.5px,calc(100% - 1.5px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 40px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 36.5px) calc(100% - var(--blockstitch-connector-notch-depth) + .9px),calc(var(--blockstitch-wrap-spine-w) + 33.5px) calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),calc(var(--blockstitch-wrap-spine-w) + 31px) calc(100% - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 23px) calc(100% - 1.5px),calc(var(--blockstitch-wrap-spine-w) + 20.5px) calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),calc(var(--blockstitch-wrap-spine-w) + 17.5px) calc(100% - var(--blockstitch-connector-notch-depth) + .9px),calc(var(--blockstitch-wrap-spine-w) + 14px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),1.5px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px))}.wrap-foot-bar{flex-shrink:0;height:calc(var(--blockstitch-wrap-foot-h) + var(--blockstitch-connector-notch-depth));box-sizing:border-box;position:relative;cursor:grab;touch-action:none}.wrap-foot-bar:active{cursor:grabbing}.wrap-foot-bar:before{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;background:var(--blockstitch-wrap-outline);transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard);clip-path:polygon(0 0,calc(var(--blockstitch-wrap-spine-w) + 13.5px) 0,calc(var(--blockstitch-wrap-spine-w) + 16.5px) 2px,calc(var(--blockstitch-wrap-spine-w) + 19.5px) 6px,calc(var(--blockstitch-wrap-spine-w) + 22.5px) var(--blockstitch-connector-notch-depth),calc(var(--blockstitch-wrap-spine-w) + 31.5px) var(--blockstitch-connector-notch-depth),calc(var(--blockstitch-wrap-spine-w) + 34.5px) 6px,calc(var(--blockstitch-wrap-spine-w) + 37.5px) 2px,calc(var(--blockstitch-wrap-spine-w) + 40.5px) 0,100% 0,100% calc(var(--blockstitch-wrap-foot-h) - 4px),calc(100% - 4px) var(--blockstitch-wrap-foot-h),40.5px var(--blockstitch-wrap-foot-h),37.5px calc(var(--blockstitch-wrap-foot-h) + 2px),34.5px calc(var(--blockstitch-wrap-foot-h) + 6px),31.5px calc(var(--blockstitch-wrap-foot-h) + var(--blockstitch-connector-notch-depth)),22.5px calc(var(--blockstitch-wrap-foot-h) + var(--blockstitch-connector-notch-depth)),19.5px calc(var(--blockstitch-wrap-foot-h) + 6px),16.5px calc(var(--blockstitch-wrap-foot-h) + 2px),13.5px var(--blockstitch-wrap-foot-h),4px var(--blockstitch-wrap-foot-h),0 calc(var(--blockstitch-wrap-foot-h) - 4px))}.wrap-foot-bar:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--blockstitch-wrap-fill);transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard);clip-path:polygon(1.5px 1.5px,calc(var(--blockstitch-wrap-spine-w) + 13px) 1.5px,calc(var(--blockstitch-wrap-spine-w) + 15.5px) 3.1px,calc(var(--blockstitch-wrap-spine-w) + 18.5px) 7.1px,calc(var(--blockstitch-wrap-spine-w) + 22px) calc(var(--blockstitch-connector-notch-depth) + 1.5px),calc(var(--blockstitch-wrap-spine-w) + 32px) calc(var(--blockstitch-connector-notch-depth) + 1.5px),calc(var(--blockstitch-wrap-spine-w) + 35.5px) 7.1px,calc(var(--blockstitch-wrap-spine-w) + 38.5px) 3.1px,calc(var(--blockstitch-wrap-spine-w) + 41px) 1.5px,calc(100% - 1.5px) 1.5px,calc(100% - 1.5px) calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px),calc(100% - 4.6px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),40px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),36.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),33.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),31px calc(100% - 1.5px),23px calc(100% - 1.5px),20.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),17.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),14px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),4.6px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),1.5px calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px))}.wrap-foot-bar.wrap-bar-flat-notch:before{clip-path:polygon(0 0,100% 0,100% calc(var(--blockstitch-wrap-foot-h) - 4px),calc(100% - 4px) var(--blockstitch-wrap-foot-h),40.5px var(--blockstitch-wrap-foot-h),37.5px calc(var(--blockstitch-wrap-foot-h) + 2px),34.5px calc(var(--blockstitch-wrap-foot-h) + 6px),31.5px calc(var(--blockstitch-wrap-foot-h) + var(--blockstitch-connector-notch-depth)),22.5px calc(var(--blockstitch-wrap-foot-h) + var(--blockstitch-connector-notch-depth)),19.5px calc(var(--blockstitch-wrap-foot-h) + 6px),16.5px calc(var(--blockstitch-wrap-foot-h) + 2px),13.5px var(--blockstitch-wrap-foot-h),4px var(--blockstitch-wrap-foot-h),0 calc(var(--blockstitch-wrap-foot-h) - 4px))}.wrap-foot-bar.wrap-bar-flat-notch:after{clip-path:polygon(1.5px 1.5px,calc(100% - 1.5px) 1.5px,calc(100% - 1.5px) calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px),calc(100% - 4.6px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),40px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),36.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),33.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),31px calc(100% - 1.5px),23px calc(100% - 1.5px),20.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),17.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),14px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),4.6px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),1.5px calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px))}.wrap-mouth{position:relative;z-index:1;margin-left:var(--blockstitch-wrap-spine-w);padding-right:var(--blockstitch-spacing);min-height:20px;contain:inline-size;display:flex;flex-direction:column;pointer-events:none}.wrap-mouth:before{content:"";position:absolute;box-sizing:border-box;top:-2px;bottom:-2px;left:calc(-1 * var(--blockstitch-wrap-spine-w));width:calc(100% + var(--blockstitch-wrap-spine-w));clip-path:inset(0 calc(100% - var(--blockstitch-wrap-spine-w)) 0 0);z-index:-1;pointer-events:auto;cursor:grab;background:var(--blockstitch-wrap-fill);border-left:1.5px solid var(--blockstitch-wrap-outline);transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),border-color var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.wrap-mouth:active:before{cursor:grabbing}.wrap-mouth:after{content:"";position:absolute;top:-2px;bottom:-2px;left:0;width:1.5px;z-index:-1;pointer-events:none;background:var(--blockstitch-wrap-outline);transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.wrap-mouth .instruction-row{pointer-events:auto}.strand-empty-hint{padding:var(--blockstitch-spacing-sm) var(--blockstitch-spacing);font-size:12px;color:var(--blockstitch-text-dim);font-style:italic;border:1px dashed var(--blockstitch-glass-border);border-radius:var(--blockstitch-radius);background:var(--blockstitch-glass-bg);cursor:grab;touch-action:none}.strand-empty-hint:active{cursor:grabbing}.instruction-row{display:block;margin-bottom:calc(-1 * var(--blockstitch-connector-notch-depth));position:relative;cursor:grab;touch-action:none;transition:filter var(--blockstitch-dur-fast) var(--blockstitch-ease-standard);filter:drop-shadow(var(--blockstitch-shadow-sm))}.instruction-row:before{content:"";position:absolute;inset:0;z-index:-2;background:var(--blockstitch-border);pointer-events:none;clip-path:polygon(4px 0,13.5px 0,16.5px 2px,19.5px 6px,22.5px 8px,31.5px 8px,34.5px 6px,37.5px 2px,40.5px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - var(--blockstitch-connector-notch-depth) - 4px),calc(100% - 4px) calc(100% - var(--blockstitch-connector-notch-depth)),40.5px calc(100% - var(--blockstitch-connector-notch-depth)),37.5px calc(100% - var(--blockstitch-connector-notch-depth) + 2px),34.5px calc(100% - var(--blockstitch-connector-notch-depth) + 6px),31.5px 100%,22.5px 100%,19.5px calc(100% - var(--blockstitch-connector-notch-depth) + 6px),16.5px calc(100% - var(--blockstitch-connector-notch-depth) + 2px),13.5px calc(100% - var(--blockstitch-connector-notch-depth)),4px calc(100% - var(--blockstitch-connector-notch-depth)),0 calc(100% - var(--blockstitch-connector-notch-depth) - 4px),0 4px)}.instruction-row:after{content:"";position:absolute;inset:0;z-index:-1;background:var(--blockstitch-bg2);pointer-events:none;clip-path:polygon(4.6px 1.5px,13px 1.5px,15.5px 3.1px,18.5px 7.1px,22px 9.5px,32px 9.5px,35.5px 7.1px,38.5px 3.1px,41px 1.5px,calc(100% - 4.6px) 1.5px,calc(100% - 1.5px) 4.6px,calc(100% - 1.5px) calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px),calc(100% - 4.6px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),40px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),36.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),33.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),31px calc(100% - 1.5px),23px calc(100% - 1.5px),20.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),17.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),14px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),4.6px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),1.5px calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px),1.5px 4.6px)}body:not(.bs-dragging) .instruction-row:hover{z-index:1;filter:drop-shadow(var(--blockstitch-shadow-sm))}body:not(.bs-dragging) .instruction-row:hover:before{background:var(--blockstitch-accent)}.instruction-shape{position:relative;display:flex;align-items:center;gap:8px;min-height:60px;padding:6px var(--blockstitch-spacing) calc(6px + var(--blockstitch-connector-notch-depth)) calc(var(--blockstitch-connector-cut-inset) + var(--blockstitch-connector-cut-width) + 8px);box-sizing:border-box;background:var(--blockstitch-glass-bg-strong);backdrop-filter:blur(var(--blockstitch-glass-blur));-webkit-backdrop-filter:blur(var(--blockstitch-glass-blur));transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard);clip-path:polygon(4.6px 1.5px,13px 1.5px,15.5px 3.1px,18.5px 7.1px,22px 9.5px,32px 9.5px,35.5px 7.1px,38.5px 3.1px,41px 1.5px,calc(100% - 4.6px) 1.5px,calc(100% - 1.5px) 4.6px,calc(100% - 1.5px) calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px),calc(100% - 4.6px) calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),40px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),36.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),33.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),31px calc(100% - 1.5px),23px calc(100% - 1.5px),20.5px calc(100% - var(--blockstitch-connector-notch-depth) + 4.9px),17.5px calc(100% - var(--blockstitch-connector-notch-depth) + .9px),14px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),4.6px calc(100% - var(--blockstitch-connector-notch-depth) - 1.5px),1.5px calc(100% - var(--blockstitch-connector-notch-depth) - 4.6px),1.5px 4.6px)}body:not(.bs-dragging) .instruction-row:hover>.instruction-shape{background:var(--blockstitch-bg3)}.instruction-content{display:flex;flex-wrap:nowrap;align-items:center;gap:6px}.instruction-type-icon{position:absolute;left:21px;top:calc(50% - (var(--blockstitch-connector-notch-depth) / 2));transform:translate(-50%,-50%);width:16px;height:16px;flex-shrink:0;color:var(--blockstitch-text-dim);pointer-events:none}.instruction-row-cap .instruction-type-icon{top:50%}.instruction-label{color:var(--blockstitch-text-dim);white-space:nowrap;font-size:12px}.instruction-content input[type=text],.instruction-content input[type=number]{width:auto}.value-block{display:inline-flex;align-items:center;vertical-align:middle;border:1px solid transparent;border-radius:5px}.value-card-shape{position:relative;gap:2px;padding:2px 6px;border-color:var(--blockstitch-glass-border);background:linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg2));box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm);cursor:grab;touch-action:none}.value-card-shape:hover{border-color:var(--blockstitch-accent)}.value-card-shape:active{cursor:grabbing}.value-card-shape .value-card-shape,.value-card-shape .value-card-shape-bool,.value-card-shape-bool .value-card-shape,.value-card-shape-bool .value-card-shape-bool,.value-card-shape-bool .value-hex-blank{padding:1px 4px}.value-card-shape-bool,.value-hex-blank{position:relative;isolation:isolate;gap:2px;padding:2px 12px;--blockstitch-notch: min(calc(var(--blockstitch-bh, 25px) * .32), 50%)}.value-card-shape-bool{cursor:grab;touch-action:none}.value-hex-blank{min-width:44px}.value-hex-blank-spacer{visibility:hidden}.value-card-shape-bool:before,.value-card-shape-bool:after,.value-hex-blank:before,.value-hex-blank:after{content:"";position:absolute;inset:0;pointer-events:none}.value-card-shape-bool:before,.value-hex-blank:before{z-index:-2;background:linear-gradient(var(--blockstitch-glass-border),var(--blockstitch-glass-border)),linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg2));clip-path:polygon(var(--blockstitch-notch) 0%,calc(100% - var(--blockstitch-notch)) 0%,100% 50%,calc(100% - var(--blockstitch-notch)) 100%,var(--blockstitch-notch) 100%,0% 50%)}.value-card-shape-bool:after,.value-hex-blank:after{z-index:-1;background:linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg2));box-shadow:var(--blockstitch-bevel-top);clip-path:polygon(calc(var(--blockstitch-notch) + .547px) 1px,calc(100% - var(--blockstitch-notch) - .547px) 1px,calc(100% - 1.187px) 50%,calc(100% - var(--blockstitch-notch) - .547px) calc(100% - 1px),calc(var(--blockstitch-notch) + .547px) calc(100% - 1px),1.187px 50%)}.value-card-shape-bool:hover:before{background:var(--blockstitch-accent)}.value-card-shape-bool:active{cursor:grabbing}.value-op{font-weight:600;color:var(--blockstitch-text-dim);padding:0 1px;white-space:nowrap}.value-drop-target{border-color:var(--blockstitch-accent)}.value-drop-target.value-card-shape{box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm),var(--blockstitch-glow-accent)}.value-drop-target.value-card-shape-bool:before,.value-drop-target.value-hex-blank:before{background:var(--blockstitch-accent)}.value-eval-tooltip{position:absolute;left:50%;bottom:calc(100% + 6px);transform:translate(-50%);z-index:21;padding:3px 8px;border-radius:var(--blockstitch-radius);border:1px solid var(--blockstitch-glass-border);background:var(--blockstitch-glass-bg-strong);backdrop-filter:blur(var(--blockstitch-glass-blur));box-shadow:var(--blockstitch-shadow-md);color:var(--blockstitch-text);font-size:12px;font-weight:600;white-space:pre-wrap;max-width:260px;pointer-events:none;animation:value-eval-tooltip-in var(--blockstitch-dur-base) var(--blockstitch-ease-standard)}.value-eval-tooltip-error{border-color:var(--blockstitch-red);color:var(--blockstitch-red)}@keyframes value-eval-tooltip-in{0%{opacity:0;transform:translate(-50%) translateY(3px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.value-floating-card{position:absolute}.comment-card{position:absolute;display:flex;flex-direction:column;width:220px;border-radius:var(--blockstitch-radius);background:var(--blockstitch-glass-bg-strong);backdrop-filter:blur(var(--blockstitch-glass-blur));-webkit-backdrop-filter:blur(var(--blockstitch-glass-blur));border:1px solid var(--blockstitch-glass-border);box-shadow:var(--blockstitch-shadow-sm);overflow:hidden}.comment-card-collapsed{width:auto}.comment-card-header{display:flex;align-items:center;gap:6px;padding:6px 6px 6px 8px;cursor:grab;color:var(--blockstitch-text-dim);user-select:none}.comment-card-header:active{cursor:grabbing}.comment-card-icon{width:14px;height:14px;flex-shrink:0}.comment-card-title{flex:1;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.02em;white-space:nowrap}.comment-card-btn{display:flex;align-items:center;justify-content:center;width:20px;height:20px;min-height:unset;padding:0;border-radius:var(--blockstitch-radius);background:transparent;color:var(--blockstitch-text-dim)}.comment-card-btn:hover{background:var(--blockstitch-hover-overlay);color:var(--blockstitch-text)}.comment-card-btn svg{width:14px;height:14px}.comment-card-delete:hover{color:var(--blockstitch-red)}.comment-card-body{resize:none;border:none;border-top:1px solid var(--blockstitch-glass-border);background:transparent;color:var(--blockstitch-text);font:inherit;font-size:13px;line-height:1.4;padding:8px;min-height:1.4em;max-height:240px;overflow-y:auto}.comment-card-body:focus{outline:none}.comment-card-body::placeholder{color:var(--blockstitch-text-dim)}.comment-drag-ghost{position:fixed;left:0;top:0;z-index:20;pointer-events:none;opacity:.92}.comment-connector-layer{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}.comment-connector-line{stroke:var(--blockstitch-border);stroke-width:1.5px;stroke-dasharray:4 3}.recording-target-dot{position:absolute;top:6px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--blockstitch-red);box-shadow:0 0 4px rgba(var(--blockstitch-red-rgb),.7);pointer-events:none}.strand-drag-ghost{position:fixed;left:0;top:0;z-index:20;pointer-events:none;opacity:.92}.strand-drag-ghost>.strand-card>.strand-body>.instruction-row:first-child:before{background:var(--blockstitch-accent)}.strand-drag-ghost>.strand-card>.strand-body>.instruction-row.instruction-row-wrap:first-child{--blockstitch-wrap-fill: linear-gradient(to right, var(--blockstitch-bg3), var(--blockstitch-bg3));--blockstitch-wrap-outline: var(--blockstitch-accent)}.strand-snap-preview,.strand-snap-preview .instruction-row{filter:none!important;cursor:default}.strand-snap-preview{pointer-events:none;opacity:.4}.strand-snap-preview .instruction-shape{background:rgba(var(--blockstitch-accent-rgb),.2);backdrop-filter:none;-webkit-backdrop-filter:none}.strand-snap-preview:before,.strand-snap-preview .instruction-row:before{display:none}.strand-snap-preview:after,.strand-snap-preview .instruction-row:after{background:rgba(var(--blockstitch-accent-rgb),.15)}.strand-snap-preview .instruction-content{opacity:0}.strand-snap-preview .instruction-type-icon,.strand-snap-preview .instruction-type-icon-inline{display:none}.value-drag-ghost{position:fixed;left:0;top:0;z-index:20;pointer-events:none;opacity:.92}.editor-toolbar{display:flex;gap:8px;align-items:center;padding:var(--blockstitch-spacing-sm) var(--blockstitch-spacing);border-top:1px solid var(--blockstitch-glass-border);flex-shrink:0}#settings-page{padding:0}.settings-header{display:flex;align-items:center;gap:12px;padding:var(--blockstitch-spacing-sm) var(--blockstitch-spacing);background:var(--blockstitch-glass-bg);backdrop-filter:blur(var(--blockstitch-glass-blur));-webkit-backdrop-filter:blur(var(--blockstitch-glass-blur));border-bottom:1px solid var(--blockstitch-glass-border);flex-shrink:0}.settings-scroll{flex:1;overflow-y:auto;padding:var(--blockstitch-spacing);display:flex;flex-direction:column;gap:var(--blockstitch-spacing);scrollbar-width:thin;scrollbar-color:var(--blockstitch-scrollbar-thumb) transparent}.settings-scroll::-webkit-scrollbar{width:10px}.settings-scroll::-webkit-scrollbar-track{background:transparent}.settings-scroll::-webkit-scrollbar-thumb{background:var(--blockstitch-scrollbar-thumb);border-radius:8px;border:2px solid transparent;background-clip:padding-box}.settings-section{flex-shrink:0;border:1px solid var(--blockstitch-glass-border);border-radius:var(--blockstitch-radius-lg);overflow:hidden;background:var(--blockstitch-glass-bg);backdrop-filter:blur(var(--blockstitch-glass-blur));-webkit-backdrop-filter:blur(var(--blockstitch-glass-blur));box-shadow:var(--blockstitch-shadow-sm)}.settings-section-title{display:flex;align-items:center;gap:6px;padding:8px 12px;font-weight:600;background:var(--blockstitch-glass-bg-strong);border-bottom:1px solid var(--blockstitch-glass-border);color:var(--blockstitch-text-dim);text-transform:uppercase;letter-spacing:.05em;font-size:11px}.settings-section-title svg{width:13px;height:13px;flex-shrink:0}.settings-row{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--blockstitch-glass-border)}.settings-row:last-child{border-bottom:none}.settings-row-label{flex:1;font-size:13px}.settings-row-hint{font-size:11px;color:var(--blockstitch-text-dim);margin-left:4px}.warning-banner{display:flex;align-items:flex-start;gap:8px;background:var(--blockstitch-yellow-bg);border:1px solid var(--blockstitch-yellow-border);color:var(--blockstitch-yellow);padding:8px 12px;border-radius:var(--blockstitch-radius-lg);font-size:13px;line-height:1.5;box-shadow:var(--blockstitch-shadow-sm)}.warning-banner svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}.warning-banner.banner-enter{animation:bannerEnter var(--blockstitch-dur-slow) var(--blockstitch-ease-spring)}@keyframes bannerEnter{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.btn-record{color:var(--blockstitch-red);border-color:var(--blockstitch-red)}.btn-record:hover:not(:disabled){background:rgba(var(--blockstitch-red-rgb),.12)}.btn-record .btn-icon-glyph svg circle,.btn-active-record .btn-icon-glyph svg circle{fill:currentColor}.btn-record-countdown{animation:recordPulseSoft 1s var(--blockstitch-ease-standard) infinite}.btn-active-record{color:var(--blockstitch-text);background:linear-gradient(160deg,rgba(var(--blockstitch-red-rgb),.35),rgba(var(--blockstitch-red-rgb),.18));border-color:var(--blockstitch-red);animation:recordPulse 1.6s var(--blockstitch-ease-standard) infinite}@keyframes recordPulse{0%,to{box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm),0 0 rgba(var(--blockstitch-red-rgb),.5)}50%{box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm),0 0 0 8px rgba(var(--blockstitch-red-rgb),0)}}@keyframes recordPulseSoft{0%,to{box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm),0 0 rgba(var(--blockstitch-red-rgb),.35)}50%{box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm),0 0 0 5px rgba(var(--blockstitch-red-rgb),0)}}.recording-overlay{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:color-mix(in srgb,var(--blockstitch-bg) 72%,transparent);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);pointer-events:none;animation:overlayFadeIn var(--blockstitch-dur-base) var(--blockstitch-ease-standard)}.recording-overlay svg{width:42px;height:42px;color:var(--blockstitch-red);animation:recordPulse 1.6s var(--blockstitch-ease-standard) infinite}.recording-overlay span{font-size:14px;font-weight:600}.recording-overlay-hint{font-size:11px;font-weight:400;color:var(--blockstitch-text-dim);margin-top:2px}@keyframes overlayFadeIn{0%{opacity:0}to{opacity:1}}.modal-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--blockstitch-bg) 55%,transparent);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:overlayFadeIn var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.modal-panel{display:flex;flex-direction:column;gap:var(--blockstitch-spacing-sm);min-width:280px;padding:var(--blockstitch-spacing);background:var(--blockstitch-bg2);border:1px solid var(--blockstitch-border);border-radius:var(--blockstitch-radius-lg);box-shadow:var(--blockstitch-shadow-lg)}.modal-title{font-size:15px;font-weight:600}.modal-input{width:100%}.modal-actions{display:flex;justify-content:flex-end;gap:var(--blockstitch-spacing-sm);margin-top:var(--blockstitch-spacing-sm)}.details-panel{width:420px;max-width:calc(100vw - 32px)}.details-panel .modal-title{display:flex;align-items:center;gap:var(--blockstitch-spacing-sm)}.details-identifier{align-self:flex-start;padding:2px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:var(--blockstitch-text-dim);background:var(--blockstitch-bg3);border-radius:var(--blockstitch-radius)}.details-explainer{margin:0;font-size:13px;line-height:1.5;color:var(--blockstitch-text-dim)}.app-selector-panel{width:480px;max-width:calc(100vw - 32px)}.app-selector-search{display:flex;align-items:center;gap:var(--blockstitch-spacing-sm);padding:6px 10px;background:var(--blockstitch-bg3);border:1px solid var(--blockstitch-border);border-radius:var(--blockstitch-radius)}.app-selector-search svg{color:var(--blockstitch-text-dim);flex-shrink:0}.app-selector-search input{flex:1;min-width:0;border:none;outline:none;background:transparent;color:var(--blockstitch-text);font-size:13px}.app-selector-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:4px;max-height:360px;overflow-x:hidden;overflow-y:auto;padding:4px;scrollbar-width:thin;scrollbar-color:var(--blockstitch-scrollbar-thumb) transparent}.app-selector-grid::-webkit-scrollbar{width:10px}.app-selector-grid::-webkit-scrollbar-track{background:transparent}.app-selector-grid::-webkit-scrollbar-thumb{background:var(--blockstitch-scrollbar-thumb);border-radius:8px;border:2px solid transparent;background-clip:padding-box}.app-selector-grid::-webkit-scrollbar-thumb:hover{background:var(--blockstitch-scrollbar-thumb-hover);background-clip:padding-box}.app-selector-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;min-width:0;background:none;border:none;border-radius:var(--blockstitch-radius);cursor:pointer;text-align:center;color:var(--blockstitch-text)}.app-selector-item:hover{background:var(--blockstitch-hover-overlay)}.app-selector-item-icon{width:40px;height:40px;object-fit:contain}.app-selector-item-icon-fallback{width:40px;height:40px;padding:8px;box-sizing:border-box;color:var(--blockstitch-text-dim);background:var(--blockstitch-bg3);border-radius:var(--blockstitch-radius)}.app-selector-item-name{width:100%;font-size:11px;line-height:1.2;white-space:normal;overflow-wrap:break-word;word-break:break-word}.app-selector-empty{padding:24px;text-align:center;color:var(--blockstitch-text-dim);font-size:13px}.open-app-icon{width:18px;height:18px;object-fit:contain;flex-shrink:0}.open-app-icon-fallback{color:var(--blockstitch-text-dim);flex-shrink:0}.open-app-choose-btn{display:inline-flex;align-items:center;gap:6px}.open-app-name{font-weight:500;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.warning-panel{width:380px;max-width:calc(100vw - 32px)}.warning-panel .modal-title{display:flex;align-items:center;gap:var(--blockstitch-spacing-sm)}.warning-icon{color:var(--blockstitch-yellow);flex-shrink:0}.danger-icon{color:var(--blockstitch-red);flex-shrink:0}.warning-panel p{margin:0;font-size:13px;color:var(--blockstitch-text-dim)}.make-block-panel{width:680px;max-width:calc(100vw - 32px)}.make-block-canvas{display:flex;align-items:center;justify-content:center;height:260px;padding:var(--blockstitch-spacing);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--blockstitch-scrollbar-thumb) transparent;background:var(--blockstitch-bg);background-image:radial-gradient(circle,var(--blockstitch-glass-border) 1.2px,transparent 1.2px),linear-gradient(var(--blockstitch-glass-bg),var(--blockstitch-glass-bg));background-size:22px 22px,100% 100%;border:1px solid var(--blockstitch-border);border-radius:var(--blockstitch-radius)}.make-block-canvas::-webkit-scrollbar{width:10px;height:10px}.make-block-canvas::-webkit-scrollbar-track{background:transparent}.make-block-canvas::-webkit-scrollbar-thumb{background:var(--blockstitch-scrollbar-thumb);border-radius:8px;border:2px solid transparent;background-clip:padding-box}.make-block-canvas::-webkit-scrollbar-thumb:hover{background:var(--blockstitch-scrollbar-thumb-hover);background-clip:padding-box}.make-block-canvas.panning,.make-block-canvas.panning *{cursor:grabbing!important}.make-block-preview-anchor{position:relative;display:inline-flex}.make-block-piece{display:inline-flex;align-items:center;gap:4px;position:relative;padding:3px 6px;border-radius:5px;cursor:text}.make-block-piece:hover{background:var(--blockstitch-hover-overlay)}.make-block-piece-selected{background:var(--blockstitch-hover-overlay);box-shadow:0 0 0 1.5px var(--blockstitch-accent)}.make-block-piece-field{position:relative;display:inline-flex;align-items:center}.make-block-piece-text{font-size:13px;color:var(--blockstitch-text);white-space:pre;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.make-block-piece-text-hidden{visibility:hidden}.make-block-piece-input{border:1px solid var(--blockstitch-glass-border);background:linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg2));box-shadow:var(--blockstitch-bevel-top)}.make-block-piece-input .make-block-piece-text{font-weight:600;color:var(--blockstitch-accent)}.make-block-piece-input input.make-block-piece-input-el,.make-block-piece-input input.make-block-piece-input-el:focus{font-weight:600;color:var(--blockstitch-accent)}.make-block-piece-bool{position:relative;isolation:isolate;--blockstitch-notch: min(calc(var(--blockstitch-bh, 25px) * .32), 50%)}.make-block-piece.make-block-piece-bool{padding:2px 12px}.make-block-piece-bool:before,.make-block-piece-bool:after{content:"";position:absolute;inset:0;pointer-events:none}.make-block-piece-bool:before{z-index:-2;background:linear-gradient(var(--blockstitch-glass-border),var(--blockstitch-glass-border)),linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg2));clip-path:polygon(var(--blockstitch-notch) 0%,calc(100% - var(--blockstitch-notch)) 0%,100% 50%,calc(100% - var(--blockstitch-notch)) 100%,var(--blockstitch-notch) 100%,0% 50%)}.make-block-piece-bool:after{z-index:-1;background:linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg2));box-shadow:var(--blockstitch-bevel-top);clip-path:polygon(calc(var(--blockstitch-notch) + .547px) 1px,calc(100% - var(--blockstitch-notch) - .547px) 1px,calc(100% - 1.187px) 50%,calc(100% - var(--blockstitch-notch) - .547px) calc(100% - 1px),calc(var(--blockstitch-notch) + .547px) calc(100% - 1px),1.187px 50%)}.make-block-piece-bool .make-block-piece-text,.make-block-piece-bool input.make-block-piece-input-el,.make-block-piece-bool input.make-block-piece-input-el:focus{font-weight:600;color:var(--blockstitch-accent)}input.make-block-piece-input-el,input.make-block-piece-input-el:focus{position:absolute;inset:0;width:100%;padding:0;font-size:13px;font-family:inherit;background:transparent;border:none;outline:none;box-shadow:none;color:var(--blockstitch-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.make-block-piece-toolbar{position:absolute;transform:translate(-50%,calc(-100% - 10px));z-index:2;display:flex;align-items:center;gap:2px;padding:2px;background:var(--blockstitch-bg2);border:1px solid var(--blockstitch-glass-border);border-radius:var(--blockstitch-radius);box-shadow:var(--blockstitch-shadow-md)}.make-block-piece-toolbar button{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;min-width:0;min-height:0;padding:0;border:none;border-radius:calc(var(--blockstitch-radius) - 2px);background:transparent;color:var(--blockstitch-text-dim);cursor:pointer}.make-block-piece-toolbar button:hover:not(:disabled){background:var(--blockstitch-hover-overlay);color:var(--blockstitch-text)}.make-block-piece-toolbar button:disabled{opacity:.3;cursor:default}.make-block-piece-toolbar svg{width:13px;height:13px}.make-block-piece-toolbar button.make-block-piece-remove{color:var(--blockstitch-red)}.make-block-piece-toolbar button.make-block-piece-remove:hover:not(:disabled){background:var(--blockstitch-hover-overlay);color:var(--blockstitch-red)}.make-block-add-row{display:flex;gap:var(--blockstitch-spacing-sm)}.make-block-add-btn{display:flex;flex:1;align-items:center;gap:10px;min-height:0;padding:10px 12px;background:var(--blockstitch-bg2);border:1px solid var(--blockstitch-glass-border);border-radius:var(--blockstitch-radius);color:var(--blockstitch-text);cursor:pointer;transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),border-color var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.make-block-add-btn:hover{background:var(--blockstitch-hover-overlay);border-color:var(--blockstitch-accent)}.make-block-add-preview{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:4px 8px;font-size:12px;white-space:nowrap}.make-block-add-preview-input{font-weight:600;color:var(--blockstitch-accent);border:1px solid var(--blockstitch-glass-border);border-radius:5px;background:linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg2));box-shadow:var(--blockstitch-bevel-top)}.make-block-add-preview-label{color:var(--blockstitch-text)}.make-block-add-text{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left}.make-block-add-title{font-size:13px;font-weight:600}.make-block-add-sub{font-size:11px;color:var(--blockstitch-text-dim)}.make-block-shape-btn-selected{background:var(--blockstitch-hover-overlay);border-color:var(--blockstitch-accent);box-shadow:0 0 0 1.5px var(--blockstitch-accent)}.make-block-shape-btn .make-block-add-title{width:100%;text-align:center}.make-block-return-row{display:flex;align-items:center;flex-wrap:wrap;gap:var(--blockstitch-spacing-sm)}.make-block-radio{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--blockstitch-text-dim);cursor:pointer}.block-header-label{font-weight:600}#macro-editor.recording .strand-empty-hint,#macro-editor.recording .palette-prefab,#macro-editor.recording #undo-btn,#macro-editor.recording #redo-btn,#macro-editor.recording #clear-instructions-btn,#macro-editor.recording #save-macro-btn{opacity:.38;pointer-events:none}.dd{display:contents}.dd-trigger{justify-content:space-between;text-align:left}.dd-trigger-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dd-trigger-placeholder{color:var(--blockstitch-text-dim)}.dd-trigger[aria-expanded=true]{border-color:var(--blockstitch-accent);box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm),var(--blockstitch-glow-accent)}.dd-trigger.dd-trigger-icon{justify-content:center}.dd-trigger.dd-trigger-icon svg{width:13px;height:13px}.dd-trigger.dd-compact{min-height:26px;padding:0 8px;font-size:12px}.dd-trigger.dd-compact svg{width:12px;height:12px}.macro-select-trigger{width:200px}.when-time-day-input{width:3.2em;padding:5px 4px;text-align:center}.when-time-time-input{width:9em;padding:5px 6px}#dd-portal{position:fixed;inset:0;z-index:1000;pointer-events:none}.dd-panel{position:absolute;pointer-events:auto;max-height:280px;overflow-y:auto;padding:4px;background:var(--blockstitch-glass-bg-strong);backdrop-filter:blur(var(--blockstitch-glass-blur));-webkit-backdrop-filter:blur(var(--blockstitch-glass-blur));border:1px solid var(--blockstitch-glass-border);border-radius:var(--blockstitch-radius);box-shadow:var(--blockstitch-shadow-md);animation:ddPanelEnter var(--blockstitch-dur-fast) var(--blockstitch-ease-standard);scrollbar-width:thin;scrollbar-color:var(--blockstitch-scrollbar-thumb) transparent}@keyframes ddPanelEnter{0%{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.dd-option{padding:6px 10px;border-radius:calc(var(--blockstitch-radius) - 2px);font-size:13px;white-space:nowrap;cursor:pointer}.dd-option[aria-selected=true]{background:var(--blockstitch-hover-overlay)}.dd-option:active{background:var(--blockstitch-bg3)}.dd-option-current{color:var(--blockstitch-accent);font-weight:600}.context-menu{position:absolute;pointer-events:auto;display:flex;flex-direction:column;gap:2px;min-width:200px;padding:4px;background:var(--blockstitch-glass-bg-strong);backdrop-filter:blur(var(--blockstitch-glass-blur));-webkit-backdrop-filter:blur(var(--blockstitch-glass-blur));border:1px solid var(--blockstitch-glass-border);border-radius:var(--blockstitch-radius);box-shadow:var(--blockstitch-shadow-md);animation:ddPanelEnter var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.context-menu-item{display:flex;align-items:center;gap:8px;width:100%;min-height:0;padding:7px 10px;border:none;border-radius:calc(var(--blockstitch-radius) - 2px);background:transparent;box-shadow:none;color:var(--blockstitch-text);font-size:13px;justify-content:flex-start;white-space:nowrap}.context-menu-item:hover:not(:disabled){background:var(--blockstitch-hover-overlay);transform:none;box-shadow:none}.context-menu-item:active:not(:disabled){background:var(--blockstitch-bg3)}.context-menu-item-icon{display:flex;align-items:center;justify-content:center;line-height:0}.context-menu-item-icon svg{width:14px;height:14px}.context-menu-item-active{color:var(--blockstitch-accent);font-weight:600}.context-menu-item-danger{color:var(--blockstitch-red)}.context-menu-item-danger:hover:not(:disabled){background:rgba(var(--blockstitch-red-rgb),.14)}.context-menu-item:disabled{opacity:.38;cursor:default}.dd-split-group{display:flex}.dd-split-group button:hover:not(:disabled),.dd-split-group button:active:not(:disabled){transform:none}.dd-split-group .dd-split-main{flex:1;justify-content:flex-start;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none}.dd-split-group .dd-split-chevron{min-width:var(--blockstitch-btn-h-md);padding:0 8px;border-top-left-radius:0;border-bottom-left-radius:0;border-left:none}button.confirm-armed{border-color:var(--blockstitch-yellow);color:var(--blockstitch-yellow);animation:confirmPulse var(--blockstitch-dur-slow) var(--blockstitch-ease-spring)}@keyframes confirmPulse{0%{transform:scale(1)}40%{transform:scale(1.06);box-shadow:var(--blockstitch-shadow-sm),0 0 0 6px rgba(var(--blockstitch-yellow-rgb),.25)}to{transform:scale(1)}}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:var(--blockstitch-spacing);text-align:center;color:var(--blockstitch-text-dim);animation:bannerEnter var(--blockstitch-dur-slow) var(--blockstitch-ease-spring)}.empty-state svg{width:40px;height:40px;margin-bottom:6px;opacity:.5}.empty-state p{font-size:14px;font-weight:600;color:var(--blockstitch-text)}.empty-state span{font-size:12px;max-width:280px}.empty-state-inline{min-height:160px;padding:var(--blockstitch-spacing) 0}.switch{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:13px}.switch input[type=checkbox]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.switch-track{position:relative;width:36px;height:20px;flex-shrink:0;border-radius:999px;background:var(--blockstitch-bg3);border:1px solid var(--blockstitch-border);box-shadow:var(--blockstitch-bevel-press);transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),border-color var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.switch-knob{position:absolute;top:1px;left:1px;width:16px;height:16px;border-radius:50%;background:var(--blockstitch-text);box-shadow:var(--blockstitch-shadow-sm);transition:transform var(--blockstitch-dur-base) var(--blockstitch-ease-spring)}.switch input[type=checkbox]:checked+.switch-track{background:var(--blockstitch-accent);border-color:var(--blockstitch-accent)}.switch input[type=checkbox]:checked+.switch-track .switch-knob{transform:translate(16px);background:#fff}.switch input[type=checkbox]:focus-visible+.switch-track{box-shadow:var(--blockstitch-bevel-press),var(--blockstitch-glow-accent)}.switch-dragging .switch-track,.switch-dragging .switch-knob{transition:none!important}@media(prefers-reduced-motion:reduce){.btn-active-record,.btn-record-countdown{animation:none}button,input,select,.instruction-row,#main-page,#settings-page,.switch-track,.switch-track .switch-knob{transition:none!important}.warning-banner.banner-enter,button.confirm-armed,.shake-once,.empty-state,.dd-panel{animation:none!important}}}@layer blockstitch{body.bs-dragging,body.bs-dragging *{cursor:grabbing!important}.instruction-row.blockwork-custom-block .instruction-type-icon,.instruction-row.blockwork-custom-block .custom-block-header-icon{color:var(--blockwork-custom-block-color)}body:not(.bs-dragging) .instruction-row.blockwork-custom-block:hover:before{background:var(--blockwork-custom-block-color)}.strand-drag-ghost .instruction-row.blockwork-custom-block:before{background:var(--blockwork-custom-block-color)}.strand-snap-preview.blockwork-custom-block .instruction-shape{background:color-mix(in srgb,var(--blockwork-custom-block-color) 24%,transparent)}.strand-snap-preview.blockwork-custom-block:after{background:color-mix(in srgb,var(--blockwork-custom-block-color) 18%,transparent)}.instruction-row.blockwork-custom-block .value-drop-target{border-color:var(--blockwork-custom-block-color)}.instruction-row.blockwork-custom-block .value-drop-target.value-card-shape-bool:before,.instruction-row.blockwork-custom-block .value-drop-target.value-hex-blank:before{background:var(--blockwork-custom-block-color)}.instruction-row.blockwork-custom-block .value-card-shape:hover{border-color:var(--blockwork-custom-block-color)}.instruction-row.blockwork-custom-block .value-card-shape-bool:hover:before{background:var(--blockwork-custom-block-color)}.blockwork-custom-operator.value-card-shape{border-color:color-mix(in srgb,var(--blockwork-custom-block-color) 30%,var(--blockstitch-border))}.blockwork-custom-operator.value-card-shape-bool:before{background:color-mix(in srgb,var(--blockwork-custom-block-color) 30%,var(--blockstitch-border))}.value-floating-card.blockwork-custom-floating-value>.value-card-shape:hover{border-color:var(--blockwork-custom-block-color)}.value-floating-card.blockwork-custom-floating-value>.value-card-shape-bool:hover:before{background:var(--blockwork-custom-block-color)}.value-floating-card.blockwork-custom-floating-operator>.value-card-shape{border-color:var(--blockwork-custom-block-color)}.value-floating-card.blockwork-custom-floating-operator>.value-card-shape-bool:before{background:var(--blockwork-custom-block-color)}body:has(.value-drag-ghost) .instruction-row.blockwork-custom-block:before{background:var(--blockstitch-border)}body.blockwork-value-dragging .instruction-row.blockwork-custom-block:before{background:var(--blockstitch-border)!important}body:has(.value-drag-ghost) .instruction-row.blockwork-custom-block .palette-prefab.blockwork-custom-value-block.value-card-shape{border-color:var(--blockstitch-glass-border)}body:has(.value-drag-ghost) .instruction-row.blockwork-custom-block .palette-prefab.blockwork-custom-value-block.value-card-shape-bool:before{background:var(--blockstitch-border)}.value-drag-ghost .blockwork-custom-value-block.value-card-shape{border-color:var(--blockwork-custom-block-color)}.value-drag-ghost .blockwork-custom-value-block.value-card-shape-bool:before{background:var(--blockwork-custom-block-color)}.blockwork-custom-value-block.value-card-shape:hover{border-color:var(--blockwork-custom-block-color)}.blockwork-custom-value-block.value-card-shape-bool:hover:before{background:var(--blockwork-custom-block-color)}.make-block-color-row{display:flex;justify-content:center}.make-block-color-picker-wrap{position:relative}.make-block-color-picker{display:grid;grid-template-columns:repeat(12,30px);gap:7px}.make-block-color-swatch{position:relative;box-sizing:border-box;width:30px;height:30px;min-width:0;min-height:0;padding:0;border:3px solid var(--blockstitch-border);border-radius:50%;background-image:none;box-shadow:inset 0 0 0 1px #ffffff2e;cursor:pointer;transition:transform var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),box-shadow var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.make-block-color-swatch:hover{transform:scale(1.1);background-image:none}.make-block-color-swatch-selected{border-color:var(--blockstitch-text);box-shadow:0 0 0 2px var(--blockstitch-bg),0 0 0 4px var(--blockstitch-text),inset 0 0 0 1px #ffffff2e}.make-block-color-custom{display:inline-flex;align-items:center;justify-content:center;background:#ff6680;color:#fff}.make-block-color-custom svg{width:17px;height:17px;pointer-events:none}.make-block-manual-picker{position:absolute;z-index:4;top:calc(100% + 12px);left:50%;display:grid;grid-template-columns:72px minmax(220px,1fr) auto;align-items:center;gap:12px;width:430px;padding:12px;background:var(--blockstitch-bg2);border:1px solid var(--blockstitch-glass-border);border-radius:var(--blockstitch-radius);box-shadow:var(--blockstitch-shadow-md),var(--blockstitch-bevel-top);transform:translate(-50%)}.make-block-manual-preview{width:72px;height:72px;border:1px solid var(--blockstitch-glass-border);border-radius:calc(var(--blockstitch-radius) - 2px);box-shadow:var(--blockstitch-bevel-top)}.make-block-manual-controls{display:grid;gap:6px}.make-block-manual-controls label{display:grid;grid-template-columns:66px 1fr;align-items:center;gap:8px;color:var(--blockstitch-text-dim);font-size:12px}.make-block-manual-controls input[type=range]{width:100%;accent-color:var(--blockstitch-accent)}.make-block-manual-hex{grid-column:1 / 3;color:var(--blockstitch-text-dim);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.make-block-manual-done{grid-column:3;grid-row:1 / 3;min-width:0;padding:0 10px}}@layer blockstitch{.instruction-shape .dd-trigger:hover:not(:disabled),.value-card-shape .dd-trigger:hover:not(:disabled),.value-card-shape-bool .dd-trigger:hover:not(:disabled){transform:none}}:root{--site-max-w: 1120px;--site-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--site-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, monospace}html{scroll-behavior:smooth;scroll-padding-top:72px;color-scheme:dark;scrollbar-width:thin;scrollbar-color:var(--blockstitch-scrollbar-thumb) transparent}:root[data-theme=light]{color-scheme:light}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:1ms!important;transition-duration:1ms!important}}body{font-family:var(--site-font);font-size:15px;line-height:1.55;background:var(--blockstitch-bg);color:var(--blockstitch-text);height:auto;min-height:100vh;overflow:visible;position:static;-webkit-font-smoothing:antialiased}img{max-width:100%;display:block}a{color:inherit}code,kbd{font-family:var(--site-mono);font-size:.9em}::selection{background:rgba(var(--blockstitch-accent-rgb),.35)}.container{width:100%;max-width:var(--site-max-w);margin:0 auto;padding:0 24px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:var(--blockstitch-btn-h-md);padding:0 12px;border-radius:var(--blockstitch-radius);border:1px solid var(--blockstitch-border);background:linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg2));color:var(--blockstitch-text);cursor:pointer;font:inherit;font-size:13px;line-height:1;text-decoration:none;white-space:nowrap;box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm);transition:transform var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),box-shadow var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),border-color var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),color var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.btn svg{width:15px;height:15px;flex-shrink:0}.btn:hover{background:linear-gradient(160deg,var(--blockstitch-bg3),var(--blockstitch-bg3));transform:translateY(-1px);box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-md)}.btn:active{transform:translateY(0) scale(.97);box-shadow:var(--blockstitch-bevel-press),var(--blockstitch-shadow-sm)}.btn:focus-visible{outline:none;box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-sm),var(--blockstitch-glow-accent)}.btn-primary{background:linear-gradient(160deg,var(--blockstitch-accent-light),var(--blockstitch-accent));border-color:var(--blockstitch-accent);color:#fff;font-weight:600}.btn-primary:hover{background:linear-gradient(160deg,#56aeff,#1c8fff);box-shadow:var(--blockstitch-bevel-top),var(--blockstitch-shadow-md),0 0 16px rgba(var(--blockstitch-accent-rgb),.35)}.btn-lg{min-height:44px;padding:0 20px;font-size:15px;border-radius:8px}.btn-lg svg{width:18px;height:18px}.btn-icon{min-height:var(--blockstitch-btn-h-md);min-width:var(--blockstitch-btn-h-md);padding:0}.btn-ghost{background:transparent;border-color:transparent;box-shadow:none;color:var(--blockstitch-text-dim)}.btn-ghost:hover{background:var(--blockstitch-hover-overlay);color:var(--blockstitch-text);box-shadow:none;transform:none}.panel{border:1px solid var(--blockstitch-glass-border);border-radius:var(--blockstitch-radius-lg);overflow:hidden;background:var(--blockstitch-glass-bg);backdrop-filter:blur(var(--blockstitch-glass-blur));-webkit-backdrop-filter:blur(var(--blockstitch-glass-blur));box-shadow:var(--blockstitch-shadow-sm)}.panel-title{display:flex;align-items:center;gap:6px;padding:8px 12px;font-weight:600;background:var(--blockstitch-glass-bg-strong);border-bottom:1px solid var(--blockstitch-glass-border);color:var(--blockstitch-text-dim);text-transform:uppercase;letter-spacing:.05em;font-size:11px}.panel-title svg{width:13px;height:13px;flex-shrink:0}.panel-row{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--blockstitch-glass-border)}.panel-row:last-child{border-bottom:none}.panel-row-label{flex:1;font-size:13px;min-width:0}.panel-row-hint{font-size:12px;color:var(--blockstitch-text-dim)}.banner{display:flex;align-items:flex-start;gap:8px;background:var(--blockstitch-yellow-bg);border:1px solid var(--blockstitch-yellow-border);color:var(--blockstitch-yellow);padding:10px 12px;border-radius:var(--blockstitch-radius-lg);font-size:13px;line-height:1.5;box-shadow:var(--blockstitch-shadow-sm)}:root[data-theme=light] .banner{color:#6b5300}.banner svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}.banner code{padding:1px 5px;border-radius:4px;background:rgba(var(--blockstitch-yellow-rgb),.12)}.section{padding:88px 0}.section-heading{font-size:clamp(26px,3.4vw,36px);line-height:1.15;font-weight:700;letter-spacing:-.02em;text-wrap:balance}.section-lede{margin-top:12px;max-width:60ch;color:var(--blockstitch-text-dim);font-size:16px;text-wrap:pretty}.dot-grid{background-image:radial-gradient(circle,var(--blockstitch-glass-border) 1.2px,transparent 1.2px);background-size:22px 22px}.strand-empty-hint{font-size:0}.strand-empty-hint:before{content:"Empty. Drag an instruction here from the sidebar.";font-size:12px}.site-header[data-astro-cid-fzpbxy5g]{position:sticky;top:0;z-index:50;background:var(--blockstitch-glass-bg);backdrop-filter:blur(var(--blockstitch-glass-blur));-webkit-backdrop-filter:blur(var(--blockstitch-glass-blur));border-bottom:1px solid var(--blockstitch-glass-border);box-shadow:var(--blockstitch-shadow-sm)}.site-header-inner[data-astro-cid-fzpbxy5g]{display:flex;align-items:center;gap:var(--blockstitch-spacing);height:56px}.brand[data-astro-cid-fzpbxy5g]{display:flex;align-items:center;gap:8px;font-weight:800;font-size:16px;line-height:1;text-decoration:none;letter-spacing:-.045em}.site-nav[data-astro-cid-fzpbxy5g]{display:flex;gap:2px}.brand[data-astro-cid-fzpbxy5g]+.site-nav[data-astro-cid-fzpbxy5g]{margin-left:16px}.brand-home[data-astro-cid-fzpbxy5g]{visibility:hidden}.brand-home[data-astro-cid-fzpbxy5g].brand-shown{visibility:visible}.site-nav[data-astro-cid-fzpbxy5g] a[data-astro-cid-fzpbxy5g]{padding:6px 10px;border-radius:var(--blockstitch-radius);font-size:13px;color:var(--blockstitch-text-dim);text-decoration:none;transition:background var(--blockstitch-dur-fast) var(--blockstitch-ease-standard),color var(--blockstitch-dur-fast) var(--blockstitch-ease-standard)}.site-nav[data-astro-cid-fzpbxy5g] a[data-astro-cid-fzpbxy5g]:hover{background:var(--blockstitch-hover-overlay);color:var(--blockstitch-text)}.site-nav[data-astro-cid-fzpbxy5g] a[data-astro-cid-fzpbxy5g][aria-current=page]{color:var(--blockstitch-text)}.site-header-actions[data-astro-cid-fzpbxy5g]{display:flex;align-items:center;gap:6px;margin-left:auto}.theme-toggle[data-astro-cid-fzpbxy5g] .icon-moon[data-astro-cid-fzpbxy5g]{display:none}:root[data-theme=light] .theme-toggle[data-astro-cid-fzpbxy5g] .icon-sun[data-astro-cid-fzpbxy5g]{display:none}:root[data-theme=light] .theme-toggle[data-astro-cid-fzpbxy5g] .icon-moon[data-astro-cid-fzpbxy5g]{display:block}@media(width<=720px){.site-nav[data-astro-cid-fzpbxy5g]{display:none}}@media(width<=400px){.header-cta[data-astro-cid-fzpbxy5g]{display:none}}.site-footer[data-astro-cid-nns7i3if]{border-top:1px solid var(--blockstitch-glass-border);background:var(--blockstitch-glass-bg);padding:28px 0;font-size:13px}.site-footer-inner[data-astro-cid-nns7i3if]{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}.footer-brand[data-astro-cid-nns7i3if]{display:flex;align-items:center;gap:8px;font-weight:600}.dim[data-astro-cid-nns7i3if]{color:var(--blockstitch-text-dim);font-weight:400}.footer-links[data-astro-cid-nns7i3if]{display:flex;flex-wrap:wrap;gap:4px 16px}.footer-links[data-astro-cid-nns7i3if] a[data-astro-cid-nns7i3if]{color:var(--blockstitch-text-dim);text-decoration:none}.footer-links[data-astro-cid-nns7i3if] a[data-astro-cid-nns7i3if]:hover{color:var(--blockstitch-text)}.copyright[data-astro-cid-nns7i3if]{margin-left:auto}
