:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#fbf5ee;--paper:#fffdf9;--tray:#f6eee6;--ink:#3f3237;--muted:#76666c;--line:#eee2d8;--stitch:#e3d2c6;--rose:#b8476b;--rose-deep:#8f3352;--rose-soft:#fcebf0;--rose-line:#f1c9d6;--peach:#f2b48a;--butter:#f3d27a;--mint:#8ecaa8;--sky:#93bde3;--lilac:#b8a3dc;--radius:22px;--shadow:0 1px 2px #6b4a3a0f, 0 10px 30px -14px #6b4a3a33;color:var(--ink);background:var(--bg);font-synthesis:none;font-family:Nunito,"M PLUS Rounded 1c",Inter,Noto Sans CJK SC,PingFang SC,Microsoft YaHei,system-ui,sans-serif;line-height:1.55}*{box-sizing:border-box}body{background-image:radial-gradient(60% 40% at 90% -5%,#fbdde680,#0000 70%),radial-gradient(50% 35% at -5% 20%,#fde9d580,#0000 70%);background-repeat:no-repeat;margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s,color .15s,transform .1s}button:disabled{opacity:.5;cursor:wait}button,a,label,input,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible,.dropzone:focus-within{outline-offset:3px;outline:3px solid #d68aa3}button,select,summary{touch-action:manipulation}svg{stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.skip-link{z-index:20;background:var(--paper);color:var(--ink);border-radius:12px;padding:12px;position:fixed;top:8px;left:8px;transform:translateY(-150%)}.skip-link:focus{transform:translateY(0)}.noscript-message{text-align:center;padding:16px}.bead{--c:var(--rose);background:radial-gradient(circle, var(--paper) 0 3px, var(--c) 3.5px);border-radius:50%;flex:none;width:16px;height:16px;display:inline-block;box-shadow:inset 0 -2px #00000014}.bead-rose{--c:#e58aa6}.bead-butter{--c:var(--butter)}.bead-mint{--c:var(--mint)}.header{justify-content:space-between;align-items:center;gap:16px;max-width:1320px;margin:auto;padding:14px 32px;display:flex}.brand{color:var(--ink);flex-shrink:0;align-items:center;gap:12px;text-decoration:none;display:flex}.brand-mark{background:#fff1e6;border-radius:15px;place-items:center;width:46px;height:46px;display:grid;position:relative;box-shadow:inset 0 -3px #f3d9c6}.brand-mark:after{content:"";pointer-events:none;background:url(/assets/sakura-B7fYRsJY.svg) 50%/contain no-repeat;width:18px;height:18px;position:absolute;bottom:-4px;right:-5px}.brand-text{flex-direction:column;gap:3px;line-height:1.2;display:flex}.brand-text strong{letter-spacing:1.5px;font-size:20px;font-weight:800}.brand-text>span{color:var(--muted);font-size:12px}.brand-text i{color:#d3a9b9;margin:0 2px;font-style:normal}.privacy{color:#5d7d6b;white-space:nowrap;background:#eef7f1;border-radius:999px;align-items:center;gap:6px;padding:7px 14px 7px 11px;font-size:13px;display:inline-flex}.privacy svg{width:16px;height:16px}.intro{max-width:1320px;margin:auto;padding:4px 32px 24px;position:relative}.eyebrow{color:var(--rose);letter-spacing:1px;font-size:13px}.intro h1{letter-spacing:.5px;margin:2px 0 12px;font-size:clamp(26px,3.2vw,38px);font-weight:800;line-height:1.25}.intro h1 span{color:var(--rose);white-space:nowrap}.how-to{color:var(--muted);flex-wrap:wrap;gap:8px 0;margin:0;padding:0;font-size:15px;list-style:none;display:flex}.how-to li{align-items:center;gap:8px;display:flex}.how-to li+li:before{content:"";background:radial-gradient(circle, var(--stitch) 1.6px, transparent 2px) 0 0 / 8px 4px;width:34px;height:4px;margin:0 12px}.sakura-bouquet{pointer-events:none;width:110px;height:90px;position:absolute;top:10px;right:48px}.sakura-bouquet img{height:auto;position:absolute}.sakura-bouquet img:first-child{top:14px;right:0;transform:rotate(12deg)}.sakura-bouquet img:nth-child(2){opacity:.85;top:0;right:52px;transform:rotate(-18deg)}.sakura-bouquet img:nth-child(3){opacity:.7;top:58px;right:40px}.layout{grid-template:"source work""settings work""export work"".work"1fr"palette palette"/minmax(300px,360px) minmax(0,1fr);align-items:start;gap:20px 24px;max-width:1320px;margin:auto;padding:0 32px;display:grid}.source-step{grid-area:source}.settings-step{grid-area:settings}.export-step{grid-area:export}.workspace{grid-area:work}.palette-section{grid-area:palette}.card,.workspace{background:var(--paper);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;padding:20px 22px 22px;position:relative}.source-step:before,.workspace:before{content:"";pointer-events:none;background:repeating-linear-gradient(-45deg,#f6c6d4cc 0 6px,#fbe0e8cc 6px 12px);border-radius:2px;width:70px;height:20px;position:absolute;top:-9px;left:26px;transform:rotate(-5deg)}.workspace:before{background:repeating-linear-gradient(-45deg,#bfe3cfcc 0 6px,#e1f2e8cc 6px 12px);left:auto;right:40px;transform:rotate(4deg)}.card h2{align-items:center;gap:10px;margin:0 0 14px;font-size:17px;font-weight:800;display:flex}.text-button{min-height:44px;color:var(--rose);background:0 0;border:0;border-radius:12px;padding:0 12px;font-size:14px;font-weight:700}.text-button:hover{background:var(--rose-soft)}.help{color:var(--muted);margin:0;font-size:13px}.dropzone{border:2px dashed var(--rose-line);cursor:pointer;background:#fff8fa;border-radius:18px;align-items:center;gap:14px;padding:10px 14px 10px 10px;transition:background .15s,border-color .15s;display:flex;position:relative}.dropzone:hover,.dropzone.dragging{background:var(--rose-soft);border-color:#e3a1b7}#source-thumbnail{object-fit:cover;background:var(--tray);border-radius:12px;flex:none;width:64px;height:64px}.dropzone-copy{flex-direction:column;flex:1;min-width:0;display:flex}#file-name{text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.dropzone-copy>span{color:var(--muted);font-size:13px}.upload-icon{background:var(--paper);width:36px;height:36px;color:var(--rose);border-radius:50%;flex:none;place-items:center;display:grid;box-shadow:0 1px 3px #b8476b22}.upload-icon svg{width:18px;height:18px}.dropzone input{opacity:0;width:1px;height:1px;position:absolute;inset:0}.dropzone-copy small{white-space:nowrap;text-overflow:ellipsis;color:#a08f95;font-size:12px;overflow:hidden}.card-head{justify-content:space-between;align-items:center;margin:-10px -10px 4px 0;display:flex}.card-head h2{margin:0}.choice-group+.choice-group{margin-top:16px}.choice-head{justify-content:space-between;align-items:baseline;margin-bottom:8px;font-size:14px;font-weight:700;display:flex}.choice-head output{color:var(--rose);font-variant-numeric:tabular-nums;font-size:13px;font-weight:700}.chips{grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:6px;display:grid}.chips button{border:1.5px solid var(--line);background:var(--paper);border-radius:14px;flex-direction:column;justify-content:center;align-items:center;min-height:54px;padding:6px 2px;line-height:1.2;display:flex}.chips button strong{font-size:15px}.chips button span{color:var(--muted);font-size:11px}.chips button:hover{border-color:var(--rose-line)}.chips button.active{border-color:var(--rose);background:var(--rose-soft);color:var(--rose-deep);box-shadow:inset 0 -2px #b8476b26}.chips button.active span{color:var(--rose)}.more{border-top:1.5px dashed var(--stitch);margin-top:18px}.more summary{cursor:pointer;align-items:center;gap:8px;min-height:48px;margin-bottom:-8px;font-size:14px;font-weight:700;list-style:none;display:flex}.more summary::-webkit-details-marker{display:none}.more summary small{color:var(--muted);flex:1;font-size:12px;font-weight:400}.more summary svg{width:18px;height:18px;color:var(--muted);transition:transform .2s}.more[open] summary svg{transform:rotate(180deg)}.more-body{gap:14px;padding:16px 0 4px;display:grid}.field{gap:6px;font-size:13px;font-weight:700;display:grid}.field select{border:1.5px solid var(--line);background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376666c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;appearance:none;border-radius:12px;width:100%;min-height:44px;padding:0 38px 0 12px;font-size:16px;font-weight:400}.range-labels{color:var(--muted);justify-content:space-between;font-size:12px;font-weight:400;display:flex}input[type=range]{width:100%;accent-color:var(--rose);margin:6px 0}.primary-button{background:var(--rose);color:#fff;letter-spacing:.5px;width:100%;min-height:54px;box-shadow:0 4px 0 var(--rose-deep);border:0;border-radius:16px;justify-content:center;align-items:center;gap:10px;font-size:16px;font-weight:800;display:flex}.primary-button svg{width:20px;height:20px}.primary-button:hover:not(:disabled){background:#c4527a}.primary-button:active:not(:disabled){box-shadow:0 1px 0 var(--rose-deep);transform:translateY(3px)}.export-step>.help{margin:12px 2px 0}.secondary-actions{border-top:1.5px dashed var(--stitch);flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px;padding-top:12px;display:flex}.secondary-actions>span{color:var(--muted);margin-right:auto;font-size:12px}.secondary-actions button{border:1.5px solid var(--line);background:var(--paper);border-radius:999px;min-height:38px;padding:0 12px;font-size:13px}.secondary-actions button:hover:not(:disabled){border-color:var(--rose-line);color:var(--rose-deep)}.workspace{padding:16px}.workspace-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;display:flex}.tabs,.bead-switch{background:var(--tray);border-radius:16px;gap:2px;padding:4px;display:flex}.tabs button,.bead-switch button{min-height:44px;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:12px;padding:0 16px;font-size:14px;font-weight:700}.tabs button:hover,.bead-switch button:hover{color:var(--ink)}.tabs button.active,.bead-switch button.active{background:var(--paper);color:var(--rose-deep);box-shadow:0 1px 3px #6b4a3a26}#status{color:var(--muted);align-items:center;gap:7px;font-size:13px;display:inline-flex}#status:before{content:"";background:var(--mint);border-radius:50%;width:9px;height:9px;box-shadow:0 0 0 3px #8ecaa833}.workspace:has([aria-busy=true]) #status:before{background:var(--butter);animation:1s ease-in-out infinite alternate pulse;box-shadow:0 0 0 3px #f3d27a40}@keyframes pulse{to{transform:scale(.6)}}.bead-settings{flex-wrap:wrap;align-items:center;gap:8px 14px;margin:-4px 0 12px;display:flex}.bead-settings[hidden]{display:none}.bead-switch{padding:3px}.bead-switch button{min-height:38px;font-size:13px}.bead-settings>span{color:var(--muted);font-size:12px}.canvas-viewport{overscroll-behavior:contain;background-color:var(--tray);background-image:radial-gradient(circle,#e2d3c6 1.4px,#0000 1.8px);background-size:16px 16px;border-radius:16px;height:clamp(340px,56vh,580px);display:flex;overflow:auto;box-shadow:inset 0 1px 4px #6b4a3a14}.canvas-viewport canvas{image-rendering:pixelated;border-radius:4px;flex:none;margin:auto;box-shadow:0 2px 10px -2px #6b4a3a33}.canvas-viewport canvas[data-mode=beads],.canvas-viewport canvas[data-mode=original]{image-rendering:auto}.canvas-viewport canvas[data-mode=beads]{box-shadow:none}.preview-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;margin-top:12px;display:flex}.stats{flex-wrap:wrap;gap:6px;margin:0;display:flex}.stats>div{background:var(--tray);border-radius:999px;align-items:baseline;gap:6px;padding:6px 12px;display:flex}.stats dt{color:var(--muted);font-size:12px}#color-card-stat{opacity:.8;font-size:11px}.stats dd{font-variant-numeric:tabular-nums;margin:0;font-size:15px;font-weight:800}.zoom-controls{flex-wrap:wrap;align-items:center;gap:4px 12px;display:flex}.symbol-option{min-height:44px;color:var(--muted);white-space:nowrap;cursor:pointer;align-items:center;gap:6px;font-size:13px;display:inline-flex}.symbol-option:has(input:disabled){opacity:.45;cursor:default}.symbol-option input{width:17px;height:17px;accent-color:var(--rose);margin:0}.zoom{color:var(--muted);align-items:center;gap:8px;display:inline-flex}.zoom svg{flex:none;width:18px;height:18px}.zoom input{width:110px}.zoom output{font-variant-numeric:tabular-nums;min-width:38px;font-size:12px}.preview-hint{color:var(--muted);margin:4px 2px 0;font-size:12px}.palette-heading{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;margin-bottom:14px;display:flex}.palette-heading h2{margin:0}#palette-count{color:#8a6420;background:#fff3d6;border-radius:999px;place-items:center;min-width:26px;height:22px;padding:0 7px;font-size:12px;display:inline-grid}#palette-label{color:var(--muted);font-size:12px}.palette-list{grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:8px;max-height:340px;display:grid;overflow:auto}.palette-item{background:#fcf7f1;border-radius:14px;align-items:center;gap:10px;padding:8px 12px 8px 8px;display:flex}.swatch{border-radius:50%;flex:none;width:30px;height:30px;position:relative;box-shadow:inset 0 -3px #00000014,0 0 0 1px #0000000d}.swatch:after{content:"";background:#fcf7f1;border-radius:50%;position:absolute;inset:10px;box-shadow:inset 0 1px 1px #00000014}.palette-meta{flex-direction:column;flex:1;min-width:0;line-height:1.25;display:flex}.palette-meta strong{font-size:14px}.palette-meta span{color:var(--muted);font-family:ui-monospace,monospace;font-size:11px}.palette-number{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13px;font-weight:700}.palette-disclaimer{color:var(--muted);margin:12px 2px 0;font-size:12px}.empty-palette{color:var(--muted);margin:0;font-size:14px}.page-footer{max-width:1320px;color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:8px 24px;margin:auto;padding:36px 32px 40px;font-size:12px;display:flex}.page-footer>span:first-child{letter-spacing:.5px;align-items:center;gap:6px;display:inline-flex}.page-footer i{color:#d3a9b9;font-style:normal}.error{z-index:30;color:#fff;background:#5b2d3c;border-radius:16px;align-items:center;width:min(560px,100% - 24px);padding:10px 10px 10px 18px;font-size:14px;display:flex;position:fixed;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 12px 30px -10px #3f323766}.error[hidden]{display:none}#error-message{overflow-wrap:anywhere;flex:1}#error-dismiss{background:#ffffff1f;border:0;border-radius:12px;min-height:44px;margin-left:12px;padding:0 14px}@media (max-width:980px){.layout{grid-template-rows:none;grid-template-columns:minmax(0,1fr);grid-template-areas:"source""work""settings""export""palette"}.canvas-viewport{height:clamp(300px,56vh,520px)}}@media (max-width:640px){.header,.intro,.layout,.page-footer{padding-left:14px;padding-right:14px}.header{padding-top:12px;padding-bottom:12px}.privacy{padding:6px 10px 6px 8px;font-size:12px}.intro{padding-bottom:22px}.how-to{gap:6px 14px;font-size:13px}.how-to li{gap:6px}.how-to li+li:before{display:none}.canvas-viewport{height:clamp(260px,46vh,440px)}.stats>div{padding:4px 10px}#color-card-stat{display:none}.stats dd{font-size:14px}.zoom-controls{flex-wrap:nowrap;gap:8px}.zoom-controls .text-button{white-space:nowrap;padding:0 8px}.sakura-bouquet{transform-origin:100% 0;top:0;right:4px;transform:scale(.7)}.layout{gap:14px}.card{padding:16px 16px 18px}.workspace{padding:10px}.tabs{flex:1}.tabs button{flex:1;padding:0 6px}.workspace-top{margin-bottom:10px}#status{order:-1;width:100%;padding:0 4px}.preview-footer,.zoom-controls{width:100%}.zoom{flex:1;min-width:0}.zoom input{flex:1;width:auto;min-width:0}}@media (max-width:400px){.brand-text>span{display:none}.header{flex-wrap:wrap;gap:8px}.brand{gap:10px}.brand-mark{width:40px;height:40px}.brand-text strong{letter-spacing:.5px;font-size:18px}.privacy{gap:4px;padding:5px 9px 5px 7px;font-size:11px}.privacy svg{width:14px;height:14px}.chips button span{font-size:10px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
