.confirm-backdrop{z-index:50;background:#00000073;place-items:center;display:grid;position:fixed;inset:0}.confirm-dialog{box-sizing:border-box;border:1px solid var(--surface-border);background:var(--surface-solid);width:min(360px,100vw - 32px);box-shadow:var(--surface-shadow);color:var(--text);border-radius:14px;padding:20px;font-size:13px}.confirm-title{font-size:15px;font-weight:600}.confirm-message{color:var(--text-muted);margin-top:8px;line-height:1.45}.confirm-actions{justify-content:flex-end;gap:8px;margin-top:20px;display:flex}.confirm-button{border:1px solid var(--surface-border);background:var(--canvas);height:34px;color:var(--text);font:inherit;cursor:pointer;border-radius:8px;padding:0 14px}.confirm-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.confirm-button.primary{border-color:var(--accent);background:var(--accent);color:#fff}.confirm-button.danger{color:#fff;background:#dc2626;border-color:#dc2626}.swatch-grid{grid-template-columns:repeat(12,1fr);gap:4px;display:grid}.swatch{aspect-ratio:1;cursor:pointer;border:0;border-radius:6px;min-width:0;padding:0;transition:transform 80ms;position:relative;box-shadow:inset 0 0 0 1px #ffffff1f}.swatch:hover{transform:scale(1.12)}.swatch[aria-pressed=true]{box-shadow:0 0 0 2px var(--surface-solid), 0 0 0 4px var(--accent);z-index:1}.swatch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.custom-header{justify-content:space-between;align-items:center;min-height:22px;margin:10px 0 6px;display:flex}.custom-clear{color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:4px;padding:2px 6px;font-size:11px;display:flex}.custom-clear:hover{background:var(--hover);color:var(--text)}.custom-grid{grid-template-columns:repeat(12,1fr);gap:4px;display:grid}.custom-swatch{display:grid;position:relative}.swatch-remove{z-index:2;color:#fff;width:14px;height:14px;box-shadow:0 0 0 1px var(--surface-border);cursor:pointer;background:#111317;border:0;border-radius:50%;place-items:center;padding:0;display:none;position:absolute;top:-5px;right:-5px}.custom-swatch:hover .swatch-remove,.custom-swatch:focus-within .swatch-remove{display:grid}.swatch-tool{background:var(--canvas);color:var(--text);place-items:center;display:grid}.swatch-none{background:linear-gradient(to top right,#0000 calc(50% - 1.5px),#ef4444 calc(50% - 1.5px) calc(50% + 1.5px),#0000 calc(50% + 1.5px)),#fff}.swatch-picker{color:#fff;filter:drop-shadow(0 0 1px #000c);background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red);place-items:center;display:grid}.swatch-picker input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.custom-label{color:var(--text-muted)}.color-picker .field-label{margin-bottom:6px}.color-trigger{border:1px solid var(--surface-border);background:var(--canvas);width:100%;height:36px;color:var(--text-muted);font:inherit;cursor:pointer;border-radius:8px;align-items:center;gap:8px;padding:0 10px 0 6px;display:flex}.color-trigger:hover,.color-trigger[aria-expanded=true]{border-color:var(--accent);color:var(--text)}.color-chip{border-radius:5px;flex:none;width:24px;height:24px;box-shadow:inset 0 0 0 1px #ffffff26}.color-value{color:var(--text);font-variant-numeric:tabular-nums;text-align:left;flex:1}.color-popover{z-index:20;box-sizing:border-box;background:var(--surface-solid);border:1px solid var(--surface-border);width:316px;box-shadow:var(--surface-shadow);color:var(--text);border-radius:12px;padding:12px;font-size:12px;position:fixed}.color-picker.compact .color-trigger{width:36px;height:36px;padding:5px;position:relative}.panel{z-index:10;box-sizing:border-box;background:var(--surface);border:1px solid var(--surface-border);max-width:calc(100vw - 32px);box-shadow:var(--surface-shadow);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--text);-webkit-user-select:none;user-select:none;border-radius:16px;padding:16px;font-size:12px;position:fixed;bottom:100px;left:50%;transform:translate(-50%)}.panel-title{font-size:14px;font-weight:600}.panel-subtitle{color:var(--text-muted);font-variant-numeric:tabular-nums;margin-top:2px}.field+.field{margin-top:16px}.field-label{color:var(--text-muted);font-variant-numeric:tabular-nums;justify-content:space-between;margin-bottom:8px;display:flex}.field-label strong{color:var(--text);font-weight:500}.panel input[type=range]{width:100%;accent-color:var(--accent);cursor:pointer;margin:0}.selection-bar{flex-direction:column;align-items:center;gap:4px;width:max-content;padding:6px;display:flex}.selection-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:2px;display:flex}.selection-row+.selection-row{border-top:1px solid var(--surface-border);padding-top:4px}.toolbar-divider.small{height:20px;margin:0 4px}.opacity-field{height:36px;color:var(--text-muted);align-items:center;gap:8px;padding:0 6px;display:flex;position:relative}.opacity-field input{width:88px;accent-color:var(--accent);cursor:pointer;margin:0}.opacity-value{min-width:34px;color:var(--text);font-variant-numeric:tabular-nums;text-align:right}.selection-count{color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap;margin:0 8px}.tool-button.small{border-radius:8px;width:36px;height:36px}.crop-bar{align-items:center;gap:4px;padding:6px;display:flex}.segmented-inline{background:var(--canvas);border-radius:8px;gap:2px;padding:2px;display:flex}.segmented-inline button{height:30px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0 10px}.segmented-inline button:hover{color:var(--text)}.segmented-inline button[aria-checked=true]{background:var(--accent);color:#fff}.crop-apply{background:var(--accent);color:#fff;height:36px;font:inherit;cursor:pointer;border:0;border-radius:8px;align-items:center;gap:6px;margin-left:4px;padding:0 14px;font-weight:600;display:flex}.tool-panel{width:348px;max-height:calc(100vh - 124px);overflow-y:auto}.panel-header{align-items:center;gap:12px;margin-bottom:16px;display:flex}.stroke-preview{background:var(--canvas);width:64px;height:64px;box-shadow:inset 0 0 0 1px var(--surface-border);border-radius:12px;flex:none;place-items:center;display:grid}.stroke-preview span{border-radius:50%}.panel-heading{margin-bottom:16px}.properties-panel{width:320px;max-height:calc(100vh - 96px);inset:16px 16px auto auto;overflow-y:auto;transform:none}.panel-warning{color:#fde68a;background:#facc151f;border-radius:8px;margin-bottom:16px;padding:8px 10px}.panel-button{border:1px solid var(--surface-border);background:var(--canvas);width:100%;height:34px;color:var(--text);font:inherit;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:8px;display:flex}.panel-button:hover{border-color:var(--accent)}.toolbar{--toolbar-icon-size:48px;--toolbar-padding:8px;z-index:10;box-sizing:border-box;height:calc(var(--toolbar-icon-size) + 2 * var(--toolbar-padding));padding:var(--toolbar-padding);background:var(--surface);border:1px solid var(--surface-border);box-shadow:var(--surface-shadow);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);-webkit-user-select:none;user-select:none;border-radius:16px;align-items:center;gap:4px;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.tool-button{width:var(--toolbar-icon-size);height:var(--toolbar-icon-size);color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:10px;place-items:center;padding:0;transition:background-color .12s,color .12s;display:grid;position:relative}.tool-button:hover{background:var(--hover);color:var(--text)}.tool-button[aria-pressed=true]{background:var(--accent);color:#fff}.tool-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.tool-color-dot{width:10px;height:10px;box-shadow:0 0 0 2px var(--surface-solid);border-radius:50%;position:absolute;bottom:6px;right:6px}[data-tooltip]:after{content:attr(data-tooltip);color:var(--text);white-space:nowrap;pointer-events:none;opacity:0;background:#111317;border-radius:6px;padding:4px 8px;font-size:12px;transition:opacity .12s;position:absolute;bottom:calc(100% + 12px);left:50%;transform:translate(-50%)}[data-tooltip]:hover:after{opacity:1;transition-delay:.4s}.toolbar-divider{background:var(--surface-border);width:1px;height:28px;margin:0 6px}.tool-button:disabled{opacity:.35;cursor:default;color:var(--text-muted);background:0 0}.tool-button.zoom-button{width:60px;font:inherit;font-variant-numeric:tabular-nums;font-size:12px}.tool-button.toggle[aria-pressed=true]{color:var(--accent);background:#3b82f62e}.number-field{flex-direction:column;gap:6px;min-width:0;display:flex}.number-label{color:var(--text-muted)}.number-box{border:1px solid var(--surface-border);background:var(--canvas);border-radius:8px;align-items:center;height:32px;padding:0 8px;display:flex}.number-box:focus-within{border-color:var(--accent)}.number-box input{min-width:0;color:var(--text);font:inherit;font-variant-numeric:tabular-nums;background:0 0;border:0;outline:none;flex:1}.number-unit{color:var(--text-muted)}.segmented{background:var(--canvas);border-radius:8px;gap:2px;padding:2px;display:flex}.segmented button{height:28px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;flex:1;padding:0 8px}.segmented button:hover{color:var(--text)}.segmented button[aria-checked=true]{background:var(--accent);color:#fff}.segmented button:disabled{opacity:.4;cursor:default}.segmented button:disabled:hover{color:var(--text-muted)}.export-dialog{box-sizing:border-box;border:1px solid var(--surface-border);background:var(--surface-solid);width:min(820px,100vw - 32px);height:min(680px,100vh - 32px);box-shadow:var(--surface-shadow);color:var(--text);border-radius:14px;font-size:12px;display:flex;overflow:hidden}.export-preview{border-right:1px solid var(--surface-border);flex-direction:column;flex:1;gap:10px;min-width:0;padding:20px;display:flex}.export-stage{background-color:#3a3f48;background-image:linear-gradient(45deg,#2b2f36 25%,#0000 25%),linear-gradient(-45deg,#2b2f36 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#2b2f36 75%),linear-gradient(-45deg,#0000 75%,#2b2f36 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px;border-radius:10px;flex:1;place-items:center;min-height:0;padding:16px;display:grid;overflow:hidden}.export-stage img{object-fit:contain;outline:1px dashed #ffffff2e;max-width:100%;max-height:100%}.export-empty{color:var(--text-muted)}.export-size{color:var(--text-muted);text-align:center;font-variant-numeric:tabular-nums}.export-settings{flex-direction:column;width:300px;padding:20px;display:flex}.export-fields{flex:1;min-height:0;margin-right:-8px;padding-right:8px;overflow-y:auto}.export-settings .confirm-actions{margin-top:16px}.export-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.export-row{grid-template-columns:1fr 1fr;gap:8px;display:grid}.export-note{min-height:32px;color:var(--text-muted);margin:14px 0 16px;line-height:1.4}.export-name{border:1px solid var(--surface-border);background:var(--canvas);border-radius:8px;align-items:center;height:34px;padding:0 10px;display:flex}.export-name:focus-within{border-color:var(--accent)}.export-name input{min-width:0;color:var(--text);font:inherit;background:0 0;border:0;outline:none;flex:1}.export-name span{color:var(--text-muted)}.export-go{align-items:center;gap:6px;display:flex}.export-go:disabled{opacity:.45;cursor:default}.print-warning{color:#fde68a;background:#facc151f;border-radius:8px;padding:8px 10px}.font-select{border:1px solid var(--surface-border);background:var(--canvas);width:100%;height:36px;color:var(--text);border-radius:8px;padding:0 8px;font-size:14px}.font-row{align-items:flex-end;gap:8px;margin-top:8px;display:flex}.font-row .number-field{flex:1}.toggle-group{background:var(--canvas);border-radius:8px;gap:2px;padding:2px;display:flex}.toggle-group.wide .icon-toggle{flex:1}.icon-toggle{min-width:32px;height:28px;color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;padding:0 8px;display:grid}.icon-toggle:hover{color:var(--text)}.icon-toggle[aria-pressed=true],.icon-toggle[aria-checked=true]{background:var(--accent);color:#fff}.spacing-grid{grid-template-columns:1fr 1fr;gap:10px 8px;display:grid}.pattern-panel{width:300px;inset:16px 16px auto auto;transform:none}.pattern-fields{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px;display:grid}.pattern-check{color:var(--text);cursor:pointer;align-items:center;gap:8px;margin-top:14px;display:flex}.pattern-check input{accent-color:var(--accent)}.pattern-actions{justify-content:flex-end;gap:8px;margin-top:18px;display:flex}.pattern-actions button{align-items:center;gap:6px;display:flex}.color-fields{grid-template-columns:1fr 1fr;gap:8px;display:grid}.option-row{grid-template-columns:repeat(5,1fr);gap:4px;display:grid}.pattern-grid{grid-template-columns:repeat(6,1fr);gap:4px;display:grid}.option-tile{background:var(--canvas);height:36px;color:var(--text);cursor:pointer;border:1px solid #0000;border-radius:8px;place-items:center;padding:0;display:grid}.option-tile:hover{border-color:var(--surface-border)}.option-tile[aria-checked=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.option-tile canvas{border-radius:4px}.arrow-grid{grid-template-columns:repeat(4,1fr);gap:4px;display:grid}:root{--canvas:#2b2f36;--surface:#1e2126eb;--surface-solid:#1e2126;--surface-border:#4a505a;--surface-shadow:0 8px 24px #0006;--hover:#3a3f48;--accent:#3b82f6;--text:#e5e7eb;--text-muted:#9ca3af;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,sans-serif}html,body,#root{background:var(--canvas);width:100%;height:100%;margin:0;overflow:hidden}.workspace{touch-action:none;position:fixed;inset:0}.text-edit-inline{z-index:5;box-sizing:content-box;outline:1px dashed var(--accent);outline-offset:2px;resize:none;transform-origin:0 0;caret-color:var(--accent);background:0 0;border:0;margin:0;padding:0;position:absolute;top:0;left:0;overflow:hidden}.text-edit-card{z-index:15;box-sizing:border-box;border:1px solid var(--accent);background:var(--surface-solid);height:120px;box-shadow:var(--surface-shadow);color:var(--text);resize:none;border-radius:10px;outline:none;padding:10px 12px;font:14px/1.4 system-ui,sans-serif;position:fixed}.workspace.drop-target{outline:2px dashed var(--accent);outline-offset:-8px}.eyedropper-loupe{z-index:40;pointer-events:none;position:fixed;top:0;left:0}.eyedropper-loupe canvas{width:120px;height:120px;box-shadow:0 0 0 1px #00000080, var(--surface-shadow);image-rendering:pixelated;border:2px solid #fff;border-radius:50%;display:block}.eyedropper-label{background:var(--surface-solid);color:var(--text);font-variant-numeric:tabular-nums;border-radius:6px;justify-content:center;align-items:center;gap:6px;margin-top:6px;padding:3px 8px;font:12px system-ui,sans-serif;display:flex}.eyedropper-label:before{content:"";background:var(--swatch);border-radius:3px;width:12px;height:12px;box-shadow:inset 0 0 0 1px #ffffff4d}
