@font-face{font-family:"Source Sans 3";src:url(/assets/SourceSans3-VariableFont_wght-rZwVYbt3.ttf) format("truetype");font-weight:100 900;font-style:normal;font-display:swap}@font-face{font-family:"Source Sans 3";src:url(/assets/SourceSans3-Italic-VariableFont_wght-CpqQxOj_.ttf) format("truetype");font-weight:100 900;font-style:italic;font-display:swap}:root,[data-theme=dark]{--bg: #1a1b1e;--surface: #25262b;--surface-2: #2c2e33;--stroke: #f5f1e8;--text: #f1f3f5;--text-dim: #909296;--accent: #4dabf7;--accent-fg: #0b1d2e;--danger: #f06595;--checker-a: #e6e7e8;--checker-b: #d8d9da;--stage-bg: #15161a;--button-hover-bg: #34363c;--stroke-weight: 1.5px;--radius-control: 5px;--radius-container: 6px;--radius-canvas: 3px;--container-gap: 12px;--container-shadow: 3px 3px 0 var(--stroke);--tool-icon-ink: #d4b18e;--tool-icon-cream: #221f20}[data-theme=light]{--bg: #efeae0;--surface: #f5f1e8;--surface-2: #ece6d7;--stroke: #1a1a1a;--text: #1a1a1a;--text-dim: #6b6357;--accent: #1971c2;--accent-fg: #ffffff;--danger: #c92a4f;--checker-a: #e0d9c5;--checker-b: #c9c0a8;--stage-bg: #e6dfd0;--button-hover-bg: #ddd4be;--container-shadow: 3px 3px 0 var(--stroke);--tool-icon-ink: #221f20;--tool-icon-cream: #d4b18e}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:"Source Sans 3",ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;overflow:auto}.app{display:flex;flex-direction:column;height:100vh}.app-header{flex:0 0 auto;padding:10px 20px;border-bottom:var(--stroke-weight) solid var(--stroke);background:var(--surface);display:flex;align-items:center;gap:14px}.theme-toggle{margin-left:auto;font-size:12px;padding:4px 10px}.app-header h1{margin:0;font-size:18px;letter-spacing:.02em}.tagline{margin:0;color:var(--text-dim);font-size:12px}.editor{position:absolute;top:0;right:0;bottom:0;left:0;min-height:0}.toolbar{position:absolute;top:calc(var(--container-gap) + 44px + var(--container-gap));left:var(--container-gap);bottom:var(--container-gap);width:280px;overflow:visible;display:flex;flex-direction:column;min-height:0;z-index:20}.toolbar-mode-tabs{position:relative;z-index:2;flex:0 0 auto;display:flex;align-items:flex-end;gap:12px;overflow:visible}.toolbar-mode-tab{position:relative;flex:0 0 auto;min-height:44px;padding:8px 24px 7px;background:var(--stage-bg);color:var(--text);border:var(--stroke-weight) solid var(--stroke);border-top-left-radius:var(--radius-container);border-top-right-radius:var(--radius-container);border-bottom-left-radius:0;border-bottom-right-radius:0;margin:0;font-size:15px;text-align:center;white-space:nowrap;box-shadow:var(--container-shadow)}.toolbar-mode-tab.is-active{background:var(--surface);color:var(--text);margin-bottom:calc(-1 * var(--stroke-weight));box-shadow:3px 0 0 var(--stroke);z-index:1}.toolbar-mode-tab.is-active:after{content:"";position:absolute;left:0;right:0;bottom:calc(-1 * var(--stroke-weight));height:calc(var(--stroke-weight) * 2);background:var(--surface);pointer-events:none}.toolbar-mode-tab:not(.is-active){border-bottom-color:var(--stroke);margin-bottom:calc(-1 * var(--stroke-weight));box-shadow:3px 0 0 var(--stroke)}.toolbar-mode-tab:hover:not(:disabled){background:var(--button-hover-bg)}.toolbar-mode-tab.is-active:hover:not(:disabled){background:var(--surface)}.toolbar-mode-tabs-fill{flex:1 1 auto;min-width:12px}.toolbar-body{position:relative;z-index:1;flex:1 1 auto;min-height:0;overflow-y:auto;background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:0 var(--radius-container) var(--radius-container) var(--radius-container);box-shadow:var(--container-shadow);padding:16px;display:flex;flex-direction:column;gap:18px}.toolbar-section h2{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim);margin:0 0 8px}.button-row{display:flex;flex-wrap:wrap;gap:6px}button{background:var(--surface-2);color:var(--text);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-control);padding:6px 10px;cursor:pointer;font:inherit;transition:background .1s,border-color .1s,color .1s}button:hover:not(:disabled){background:var(--button-hover-bg)}button.is-active{background:var(--accent);color:var(--accent-fg);border-color:var(--stroke)}button:disabled{opacity:.4;cursor:not-allowed}.tool-icon{display:inline-flex;flex:0 0 auto;vertical-align:middle;width:24px;height:24px}.tool-icon>svg{display:block;width:100%;height:100%}button:has(>.tool-icon),.user-menu-item:has(>.tool-icon){display:inline-flex;align-items:center;gap:6px;border-color:transparent;background:transparent}button.is-active:has(>.tool-icon){background:var(--accent);border-color:var(--stroke)}.toolbar-section button:has(>.tool-icon),.mobile-action-bar button:has(>.tool-icon){padding:2px 3px;background:var(--surface-2);border-color:var(--stroke);box-shadow:2px 2px 0 var(--stroke)}.toolbar-section button:not(:has(>.tool-icon)){box-shadow:2px 2px 0 var(--stroke)}.toolbar-section button.is-active:has(>.tool-icon),.mobile-action-bar button.is-active:has(>.tool-icon){background:var(--accent)}[data-tour=undo-redo] button:has(>.tool-icon){background:transparent;border-color:transparent;box-shadow:none}.toolbar-section button .tool-icon,.mobile-action-bar button .tool-icon{width:28px;height:28px}[data-tour=undo-redo] button .tool-icon{position:relative}[data-tour=undo-redo] button .tool-icon>svg{position:absolute;top:50%;left:50%;width:35.5px;height:35.5px;transform:translate(-50%,-50%)}.editor-header button:has(>.tool-icon){padding:0 8px}.header-history-controls button:has(>.tool-icon){padding:0;margin-inline:-2px}.editor-header .tool-icon{width:auto;height:26px}.editor-header .tool-icon>svg{height:100%;width:auto}.editor-header [data-tour=undo-redo] button .tool-icon{width:26px;height:26px}.editor-header [data-tour=undo-redo] button .tool-icon>svg{position:static;width:100%;height:100%;transform:none;top:auto;left:auto}[data-tooltip]{position:relative}[data-tooltip]:after{content:attr(data-tooltip);position:absolute;right:auto;bottom:calc(100% + 6px);top:auto;left:50%;z-index:500;padding:4px 7px;border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-control);background:var(--surface);box-shadow:2px 2px 0 var(--stroke);color:var(--text);font-size:12px;font-weight:400;line-height:1;pointer-events:none;opacity:0;transform:translate(-50%);white-space:nowrap}[data-tooltip]:hover:after,[data-tooltip]:focus-visible:after{opacity:1}.editor-header [data-tooltip]:after{bottom:auto;top:calc(100% + 6px)}input[type=number],input[type=text]{background:var(--surface-2);color:var(--text);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-control);padding:6px 8px;font:inherit;width:100%}input[type=number]:focus,input[type=text]:focus{outline:2px solid var(--accent);outline-offset:-1px}.size-form{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;align-items:end;margin-bottom:8px}.size-form label{display:flex;flex-direction:column;gap:3px}.size-form label>span{font-size:11px;color:var(--text-dim)}.zoom-control{display:flex;flex-direction:column;gap:3px;font-size:11px;color:var(--text-dim);margin-top:10px}.zoom-control input[type=range]{width:100%}.color-picker{display:flex;flex-direction:column;gap:8px}.color-picker .react-colorful{width:100%!important;height:160px}.color-picker--disabled{opacity:.4;pointer-events:none}.color-picker-input{display:flex;align-items:center;gap:8px}.swatch{width:26px;height:26px;border-radius:var(--radius-control);border:var(--stroke-weight) solid var(--stroke);flex:0 0 auto}.hex-input{flex:1 1 auto}.recent-colors{display:flex;flex-direction:column;gap:6px}.recent-colors--disabled{opacity:.4;pointer-events:none}.recent-colors-label{font-size:11px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.06em}.recent-colors-hint{font-size:11px;color:var(--text-dim);font-style:italic}.recent-swatches{display:flex;flex-wrap:wrap;gap:4px}.recent-swatch{width:22px;height:22px;border-radius:4px;border:var(--stroke-weight) solid var(--stroke);padding:0}.recent-swatch:hover{outline:2px solid var(--accent);outline-offset:1px}.stage-outer{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.stage{background:var(--stage-bg);overflow:auto;padding:0;display:block;width:100%;height:100%;box-sizing:border-box}.canvas-scroll-area{display:inline-block}.pan-capture{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;cursor:grab}.pan-capture.is-dragging{cursor:grabbing}.canvas-wrap{display:grid;grid-template-columns:auto auto auto;grid-template-rows:auto auto auto;align-items:start;justify-content:start}.ruler-corner{grid-column:1;grid-row:1;font-size:10px;color:var(--text-dim);text-align:right;padding:2px 6px 4px 0;align-self:end;justify-self:end;white-space:nowrap}.ruler{position:relative;color:var(--text-dim);font-size:10px;font-variant-numeric:tabular-nums}.ruler-x{height:18px}.ruler-top{grid-column:2;grid-row:1}.ruler-bottom{grid-column:2;grid-row:3}.ruler-y{width:32px}.ruler-left{grid-column:1;grid-row:2}.ruler-right{grid-column:3;grid-row:2}.ruler-tick{position:absolute;background:var(--text-dim)}.ruler-label-button{background:transparent;border:0;padding:2px 3px;color:inherit;font:inherit;line-height:1;cursor:pointer}.ruler-label-button:hover,.ruler-label-button:focus-visible{background:var(--surface);color:var(--accent);outline:2px solid var(--accent);outline-offset:1px}.ruler-x .ruler-tick{width:1px;height:6px;transform:translate(-.5px)}.ruler-top .ruler-tick{bottom:0}.ruler-bottom .ruler-tick{top:0}.ruler-y .ruler-tick{height:1px;width:6px;transform:translateY(-.5px)}.ruler-left .ruler-tick{right:0}.ruler-right .ruler-tick{left:0}.ruler-label{position:absolute;background:transparent;color:var(--text-dim);white-space:nowrap}.ruler-x .ruler-label{left:0;transform:translate(-50%)}.ruler-top .ruler-label{bottom:8px}.ruler-bottom .ruler-label{top:8px}.ruler-y .ruler-label{top:0;transform:translateY(-50%)}.ruler-left .ruler-label{right:8px}.ruler-right .ruler-label{left:8px}.canvas-frame-shell{grid-column:2;grid-row:2;position:relative}.canvas-frame{display:inline-block;position:relative;border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-canvas);overflow:hidden}.canvas-insert-bar{position:absolute;left:50%;bottom:calc(100% + 8px);z-index:5;display:flex;gap:6px;transform:translate(-50%);white-space:nowrap}.canvas-insert-bar button{padding:4px 8px;background:var(--surface);color:var(--text);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-control);box-shadow:var(--container-shadow);font:inherit;font-size:11px;cursor:pointer}.canvas-insert-bar button:hover,.canvas-insert-bar button:focus-visible{background:var(--button-hover-bg)}.ruler-selection-highlight{position:absolute;z-index:3;background:#ffc8001a;pointer-events:none}.grid-surface{display:block;-webkit-user-select:none;user-select:none;touch-action:none;cursor:crosshair;image-rendering:pixelated}.error{color:var(--danger);font-size:12px;margin:6px 0 0}.image-import{display:flex;flex-direction:column;gap:8px}.image-import-dropzone{border:var(--stroke-weight) dashed var(--stroke);border-radius:var(--radius-control);padding:14px 10px;text-align:center;font-size:12px;color:var(--text-dim);cursor:pointer;background:var(--surface-2);transition:background .1s,border-color .1s,color .1s}.image-import-upload-icon{display:block;margin:0 auto 8px}.image-import-dropzone:hover,.image-import-dropzone:focus-visible,.image-import-dropzone.is-drag-over{background:var(--button-hover-bg);color:var(--text);outline:none}.image-import-preview{display:block;margin:0 auto;background:repeating-conic-gradient(#ccc 0,#ccc 25%,#fff 0,#fff 50%) 50% / 12px 12px;border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-control)}.image-import-slider{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--text-dim)}.image-import-slider input[type=range]{width:100%}.stitch-preview{position:absolute;z-index:100;background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-container);box-shadow:var(--container-shadow);padding:0;display:flex;flex-direction:column;gap:0;overflow:hidden}.stitch-preview-header{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:grab;min-height:40px;padding:6px 8px;background:var(--surface);border-bottom:var(--stroke-weight) solid var(--stroke)}.stitch-preview-header:active{cursor:grabbing}.stitch-preview-label{font-size:10px;color:var(--text-dim);font-family:ui-monospace,Cascadia Code,Source Code Pro,monospace;letter-spacing:.05em;text-transform:uppercase;-webkit-user-select:none;user-select:none;white-space:nowrap}.stitch-preview-zoom{width:60px;accent-color:var(--accent);cursor:pointer}.stitch-preview-scroll{overflow:auto;margin:8px}.stitch-preview-scroll.is-panning{cursor:grabbing}.stitch-preview-resize-handle{position:absolute;width:14px;height:14px;z-index:1;opacity:.45;transition:opacity .15s;background-image:repeating-linear-gradient(-45deg,transparent,transparent 3px,var(--stroke) 3px,var(--stroke) 4px)}.stitch-preview-resize-handle:hover{opacity:1}.stitch-preview-resize-handle[data-corner=nw]{top:0;left:0;cursor:nw-resize;border-top-left-radius:var(--radius-container)}.stitch-preview-resize-handle[data-corner=ne]{top:0;right:0;cursor:ne-resize;border-top-right-radius:var(--radius-container)}.stitch-preview-resize-handle[data-corner=sw]{bottom:0;left:0;cursor:sw-resize;border-bottom-left-radius:var(--radius-container)}.stitch-preview-resize-handle[data-corner=se]{bottom:0;right:0;cursor:se-resize;border-bottom-right-radius:var(--radius-container)}.stitch-preview-scroll canvas{display:block;image-rendering:pixelated}.stitch-select{width:100%;background:var(--surface);color:var(--text);border:var(--stroke-weight) solid var(--stroke);border-radius:4px;padding:6px 8px;font:inherit;cursor:pointer}.stitch-select-inline{width:auto;flex:1}.export-target-select{flex:1;width:auto;min-width:0;padding:6px 10px}.export-format-select{flex:none;width:auto}.toolbar-section[data-tour=symmetry] .button-row{flex-wrap:nowrap}.toolbar-section .button-row+.button-row{margin-top:6px}.mobile-history-controls{display:none}.stitch-select:focus{outline:2px solid var(--accent);outline-offset:1px}.lacet-hover{position:absolute;pointer-events:none;box-sizing:border-box;z-index:10}.btn-primary{display:inline-block;background:var(--accent);color:var(--accent-fg);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-control);padding:8px 16px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;text-align:center;transition:opacity .1s}.btn-primary:hover:not(:disabled){opacity:.88}.btn-primary:disabled{opacity:.45;cursor:not-allowed}.btn-primary.btn-lg{font-size:16px;padding:12px 28px}.btn-ghost{display:inline-block;background:transparent;color:var(--text);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-control);padding:6px 12px;font:inherit;cursor:pointer;text-decoration:none;transition:background .1s}.btn-ghost:hover{background:var(--button-hover-bg)}.btn-danger{background:var(--danger);color:#fff;border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-control);padding:8px 16px;font:inherit;font-weight:600;cursor:pointer;transition:opacity .1s}.btn-danger:hover{opacity:.88}@keyframes spin{to{transform:rotate(360deg)}}.spinner{width:28px;height:28px;border:3px solid var(--stroke);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite;margin:0 auto}.spinner-page{display:flex;align-items:center;justify-content:center;height:100vh}.logo-link{color:inherit;text-decoration:none}.user-nav{display:flex;align-items:center;gap:10px;margin-left:auto}.verify-banner{font-size:12px;color:var(--danger)}input[type=email],input[type=password]{background:var(--surface-2);color:var(--text);border:var(--stroke-weight) solid var(--stroke);border-radius:6px;padding:8px 10px;font:inherit;width:100%}input[type=email]:focus,input[type=password]:focus{outline:2px solid var(--accent);outline-offset:-1px}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.auth-card{background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:10px;padding:32px;width:100%;max-width:400px;display:flex;flex-direction:column;gap:20px}.auth-card h2{margin:0;font-size:20px}.auth-form{display:flex;flex-direction:column;gap:14px}.auth-form label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:500}.auth-error{margin:0;color:var(--danger);font-size:13px}.auth-success{margin:0;color:#37b24d;font-size:13px}.auth-footer{margin:0;font-size:13px;color:var(--text-dim);text-align:center}.auth-footer a{color:var(--accent);text-decoration:none}.landing{min-height:100vh;display:flex;flex-direction:column}.landing-header{display:flex;align-items:center;padding:16px 32px;border-bottom:var(--stroke-weight) solid var(--stroke);background:var(--surface);gap:16px}.landing-logo{font-size:18px;font-weight:700;letter-spacing:.02em;flex:1}.landing-nav{display:flex;align-items:center;gap:10px}.landing-main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 24px;gap:24px;text-align:center}.landing-headline{margin:0;font-size:clamp(28px,5vw,48px);font-weight:800;line-height:1.15;max-width:640px}.landing-sub{margin:0;font-size:18px;color:var(--text-dim);max-width:480px}.tier-table{display:flex;gap:20px;flex-wrap:wrap;justify-content:center;margin-top:16px}.tier{background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:10px;padding:24px;width:220px;text-align:left;display:flex;flex-direction:column;gap:16px}.tier h3{margin:0;font-size:16px;display:flex;align-items:center;gap:8px}.tier ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--text-dim);flex:1}.tier-pro{border-color:var(--accent)}.pro-badge{background:var(--accent);color:var(--accent-fg);font-size:10px;font-weight:700;padding:2px 6px;border-radius:4px;letter-spacing:.06em}.account-page{max-width:560px;margin:40px auto;padding:0 24px;display:flex;flex-direction:column;gap:32px}.account-page h2{margin:0;font-size:22px}.account-section{background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:10px;padding:24px;display:flex;flex-direction:column;gap:14px}.account-section h3{margin:0;font-size:14px;font-weight:600;color:var(--text-dim);text-transform:uppercase;letter-spacing:.06em}.account-section p{margin:0}.account-notice{background:var(--surface-2);border:var(--stroke-weight) solid var(--stroke);border-radius:6px;padding:12px;display:flex;flex-direction:column;gap:8px;font-size:13px}.account-notice p{margin:0;color:var(--danger)}.account-msg{margin:0;font-size:12px;color:var(--text-dim)}.editor-shell{position:relative;height:100vh;background:var(--stage-bg)}.editor-header{position:absolute;top:var(--container-gap);left:var(--container-gap);right:var(--container-gap);height:44px;padding:0 16px;border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-container);background:var(--surface);box-shadow:var(--container-shadow);display:flex;align-items:center;justify-content:space-between;z-index:120}.editor-logo-group{display:flex;align-items:center;gap:10px}.editor-logo{height:25px;width:auto;display:block}.editor-logo-text{font-size:18px;font-weight:600;white-space:nowrap}.user-menu-controls{display:flex;align-items:center;gap:8px}.user-menu{position:relative}.theme-menu-toggle,.user-menu-btn{display:flex;align-items:center;justify-content:center;padding:4px;background:transparent;border:none;cursor:pointer;color:var(--text-dim);transition:background .1s,color .1s}.theme-menu-toggle{border-radius:var(--radius-control)}.user-menu-btn{border-radius:50%}.theme-menu-toggle:hover,.user-menu-btn:hover{background:var(--button-hover-bg);color:var(--text)}.user-menu-dropdown{position:absolute;top:40px;right:0;min-width:180px;background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-control);box-shadow:var(--container-shadow);z-index:150;display:flex;flex-direction:column;padding:4px 0}.user-menu-item{display:block;width:100%;text-align:left;padding:8px 14px;font:inherit;font-size:13px;color:var(--text);background:transparent;border:none;cursor:pointer;text-decoration:none;transition:background .1s}.user-menu-item:hover{background:var(--button-hover-bg)}.user-menu-item--accent{color:var(--accent);font-weight:600}.user-menu-divider{height:1px;background:var(--stroke);margin:4px 0}.user-menu-notice{display:block;padding:6px 14px;font-size:11px;color:var(--danger)}.modal-close{position:absolute;top:12px;right:14px;background:transparent;border:none;font-size:20px;line-height:1;cursor:pointer;color:var(--text-dim);padding:2px 6px;border-radius:4px}.modal-close:hover{background:var(--button-hover-bg);color:var(--text)}.btn-ghost.btn-sm{font-size:12px;padding:4px 10px}.landing-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b8;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px}.landing-modal{background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:10px;max-width:600px;width:100%;max-height:90vh;overflow-y:auto}.landing-modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 0;position:relative}.landing-modal-body{padding:16px 28px 28px}.landing-modal-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:28px}.auth-prompt-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b8;z-index:300;display:flex;align-items:center;justify-content:center;padding:16px}.auth-prompt-modal{position:relative;background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-container);box-shadow:var(--container-shadow);max-width:380px;width:100%;padding:28px 28px 24px}.auth-prompt-modal h2{margin:0 0 10px;font-size:17px}.auth-prompt-modal p{margin:0 0 8px;font-size:14px;color:var(--text-dim);line-height:1.5}.auth-prompt-sub{font-size:13px!important;color:var(--text-dim)}.auth-prompt-actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}.export-controls{display:flex;gap:6px;align-items:center}.export-controls .stitch-select{width:auto}.export-controls button:has(>.tool-icon){border-color:var(--stroke);background:var(--surface-2)}.export-count{margin:4px 0 0;font-size:11px;color:var(--text-dim)}.stamps-folders-container{border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-container);overflow-y:auto;max-height:290px;margin-top:6px;padding:5px 5px 7px;display:flex;flex-direction:column;gap:5px}.stamps-folder-header{display:flex;align-items:center;justify-content:space-between;width:100%;padding:4px 8px;background:none;border:1px solid var(--stroke);border-radius:6px;cursor:pointer;text-align:left;box-sizing:border-box;transition:background .1s,border-color .1s}.stamps-folder-header:hover{background:var(--surface-2);border-color:var(--accent)}.stamps-folder-name{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim)}.folder-chevron{font-size:8px;color:var(--text-dim);transition:transform .15s;transform:rotate(0)}.folder-chevron.collapsed{transform:rotate(-90deg)}.carousel-row{display:flex;align-items:center;padding:4px 2px 5px;gap:3px}.stamps-carousel{display:flex;flex-wrap:nowrap;gap:3px;overflow:hidden;flex:1;min-width:0;padding:2px 3px 3px 2px}.carousel-arrow{flex-shrink:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:9px;color:var(--text-dim);background:var(--surface-2);border:1px solid var(--stroke);border-radius:4px;cursor:pointer;padding:0;align-self:center;transition:background .1s,border-color .1s}.carousel-arrow:hover{background:var(--surface-3);border-color:var(--accent);color:var(--text)}.stamp-thumb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 5px 5px;border:2px solid var(--stroke);border-radius:6px;background:var(--surface-2);box-shadow:2px 2px 0 var(--stroke);cursor:pointer;flex-shrink:0;min-width:38px;transition:border-color .1s,background .1s}.stamp-thumb:hover{border-color:var(--accent);background:var(--surface-3)}.stamp-thumb.is-active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 15%,var(--surface-2))}.stamp-preview-grid{display:grid;grid-template-columns:repeat(var(--stamp-cols),4px);grid-template-rows:repeat(var(--stamp-rows),4px);gap:0}.stamp-cell{width:4px;height:4px;background:transparent}.stamp-cell.on{background:var(--text)}.stamp-label{font-size:9px;color:var(--text-dim);white-space:nowrap;max-width:40px;overflow:hidden;text-overflow:ellipsis}.stamp-transform-controls{flex-wrap:wrap}.account-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b8;z-index:300;display:flex;align-items:center;justify-content:center;padding:16px}.account-modal{position:relative;background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-container);box-shadow:var(--container-shadow);max-width:520px;width:100%;max-height:85vh;overflow-y:auto;padding:28px}.checkout-success-banner{display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 16px;background:#16a34a;color:#fff;font-size:14px;font-weight:500;flex-shrink:0}.checkout-success-dismiss{background:none;border:none;color:#fff;font-size:18px;line-height:1;cursor:pointer;padding:0 2px;opacity:.8}.checkout-success-dismiss:hover{opacity:1}.upgrade-page{min-height:100vh;background:var(--bg);color:var(--text);display:flex;justify-content:center;padding:40px 16px 80px}.upgrade-page-inner{width:100%;max-width:760px}.upgrade-page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:40px}.upgrade-back{font-size:14px;color:var(--text-dim);text-decoration:none}.upgrade-back:hover{color:var(--text)}.upgrade-headline{font-size:28px;font-weight:700;margin:0 0 8px}.upgrade-sub{font-size:15px;color:var(--text-dim);margin:0 0 36px}.upgrade-already-pro{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.tier-price{font-size:22px;font-weight:700;margin:12px 0 16px}.upgrade-signin-hint{margin-top:20px;font-size:13px;color:var(--text-dim);text-align:center}.upgrade-signin-hint a{color:var(--accent);text-decoration:none}.upgrade-signin-hint a:hover{text-decoration:underline}.editor-header-left{display:flex;align-items:center;gap:8px;align-self:stretch}.header-divider{width:2px;background:var(--stroke);align-self:stretch;margin:4px 8px;border-radius:1px}.header-history-controls{display:flex;align-items:center;gap:8px}.header-history-controls button:not(:has(>.tool-icon)){height:26px;display:inline-flex;align-items:center;justify-content:center}.editor-header-center{display:flex;align-items:center;gap:8px;flex:1;justify-content:center}.project-name{font-size:13px;color:var(--text-dim);max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:italic}.header-btn{padding:4px 12px;font-size:13px;background:var(--surface-2);border:var(--stroke-weight) solid var(--stroke);border-radius:4px;color:var(--text);cursor:pointer;transition:background .1s,color .1s}.header-btn:hover:not(:disabled){background:var(--button-hover-bg)}.header-btn:disabled{opacity:.5;cursor:not-allowed}.save-project-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:300}.save-project-modal{background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:10px;padding:28px 32px;width:360px;max-width:calc(100vw - 32px);position:relative}.save-project-modal h2{margin:0 0 20px;font-size:18px}.save-project-actions{display:flex;gap:10px;margin-top:16px}.projects-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:300}.projects-modal{background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-container);box-shadow:var(--container-shadow);padding:0;width:480px;max-width:calc(100vw - 32px);max-height:70vh;display:flex;flex-direction:column;overflow:hidden}.projects-modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 16px;border-bottom:var(--stroke-weight) solid var(--stroke);flex-shrink:0}.projects-modal-header h2{margin:0;font-size:18px}.projects-modal-error{margin:12px 24px 0}.projects-empty{padding:32px 24px;color:var(--text-dim);font-size:14px;text-align:center}.projects-list{list-style:none;margin:0;padding:8px 0;overflow-y:auto}.projects-list-item{display:flex;align-items:center;justify-content:space-between;padding:10px 24px;border-bottom:var(--stroke-weight) solid var(--stroke);gap:12px}.projects-list-item:last-child{border-bottom:none}.projects-item-info{display:flex;flex-direction:column;gap:2px;min-width:0}.projects-item-name{font-size:14px;font-weight:500;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.projects-item-meta{font-size:12px;color:var(--text-dim)}.projects-item-actions{display:flex;gap:8px;flex-shrink:0}.projects-load-btn{padding:4px 12px;font-size:13px}.projects-delete-btn{padding:4px 10px;font-size:13px;color:var(--text-dim)}.mobile-action-bar,.toolbar-drawer-overlay{display:none}.manual-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b8;z-index:300;display:flex;align-items:center;justify-content:center;padding:16px}.manual-modal{position:relative;background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-container);box-shadow:var(--container-shadow);padding:28px 28px 24px;width:340px;max-width:calc(100vw - 32px)}.manual-modal-title{margin:0 0 16px;font-size:17px}.manual-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.manual-link{font-size:14px;color:var(--accent);text-decoration:underline}.manual-link:hover{opacity:.8}.manual-link-btn{background:none;border:none;padding:0;font-size:14px;color:var(--accent);text-decoration:underline;cursor:pointer}.manual-link-btn:hover{opacity:.8}.tour-interaction-block{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9989}.tour-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:9990;pointer-events:none}.tour-spotlight{position:fixed;border-radius:4px;box-shadow:0 0 0 9999px #00000080;z-index:9990;pointer-events:none}.tour-card{position:fixed;z-index:9991;background:var(--surface);border:var(--stroke-weight) solid var(--stroke);border-radius:var(--radius-container);box-shadow:var(--container-shadow);padding:16px}.tour-card-header{display:flex;align-items:center;gap:8px;margin-bottom:8px;position:relative}.tour-step-count{font-size:11px;color:var(--text-dim);flex-shrink:0}.tour-title{font-size:14px;flex:1}.tour-close{position:static;font-size:18px;padding:0 4px}.tour-body{margin:0 0 14px;font-size:13px;color:var(--text-dim);line-height:1.5}.tour-actions{display:flex;gap:8px;justify-content:flex-end}.tour-next{min-width:64px}@media(max-width:768px){.editor-shell{height:100dvh}.stage{padding:calc(var(--container-gap) + 44px + var(--container-gap)) var(--container-gap) calc(56px + env(safe-area-inset-bottom) + var(--container-gap)) var(--container-gap)}.editor-header{padding:0 10px}.editor-header-center{gap:6px}.editor-logo-text{display:none}.project-name{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-btn{font-size:12px;padding:4px 8px}.header-divider,.header-history-controls{display:none}.mobile-history-controls{display:block}.toolbar{position:fixed;top:auto;left:0;right:0;bottom:0;width:auto;max-height:85vh;overflow-y:auto;z-index:96;transform:translateY(100%);transition:transform .22s ease-out;border-radius:16px 16px 0 0;border-top:var(--stroke-weight) solid var(--stroke);border-right:none;padding:8px 16px calc(16px + env(safe-area-inset-bottom))}.toolbar.is-open{transform:translateY(0)}.toolbar:after{display:none}.toolbar:before{content:"";display:block;width:36px;height:4px;background:var(--stroke);border-radius:2px;margin:0 auto 16px;flex-shrink:0}.toolbar button,.toolbar select,.toolbar input[type=range]{min-height:44px}.toolbar .button-row{gap:8px}.toolbar-drawer-overlay{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:95}.mobile-action-bar{display:flex;position:fixed;bottom:0;left:0;right:0;height:56px;padding:0 8px;padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:var(--stroke-weight) solid var(--stroke);align-items:center;justify-content:space-around;z-index:90}.mobile-action-bar button{min-width:72px;min-height:44px;font-size:12px}.stitch-preview{position:fixed;left:0;right:0;bottom:calc(56px + env(safe-area-inset-bottom));top:auto;width:auto!important;height:auto!important;max-height:45vh;border-radius:12px 12px 0 0;z-index:92}.stitch-preview-resize-handle{display:none}.stitch-preview-header,.stitch-preview-header:active{cursor:default}.stitch-preview-scroll{width:100%!important;max-height:calc(45vh - 48px)}.stitch-preview-close{padding:0 6px;font-size:18px;line-height:1;background:none;border:none;color:var(--text-dim);cursor:pointer}.projects-modal,.account-modal,.auth-prompt-modal{max-width:calc(100vw - 24px)}.account-modal,.projects-modal{max-height:90vh;overflow-y:auto}.tour-card,.manual-modal{max-width:calc(100vw - 24px)}}
