:root{--page:#f3f1eb;--panel:#fdfcfa;--panel-border:#e6e1d8;--ink:#2a2723;--ink-2:#4d4842;--ink-3:#7a746b;--line:#d8d2c7;--active-bg:#dbe8dd;--active-border:#6d9a78;--green:#5b8a6a;--green-dark:#4a765a;--green-ink:#2f5a3e;--thread-red:#c9413b;--shadow-sm:0 1px 2px #3c321e0f, 0 2px 8px #3c321e0d;--shadow-md:0 4px 16px #3c321e1f, 0 1px 3px #3c321e14;--radius:14px;--radius-sm:9px;--font:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-display:"Lora", Georgia, "Times New Roman", serif;--header-h:92px;--ease:cubic-bezier(.2, .7, .2, 1)}*,:before,:after{box-sizing:border-box}body{font-family:var(--font);color:var(--ink);background:var(--page);-webkit-font-smoothing:antialiased;overscroll-behavior:none;font-size:15px;overflow:hidden}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:0 0;border:0;padding:0}button:disabled{cursor:default}:focus-visible{outline:2px solid var(--active-border);outline-offset:2px;border-radius:6px}h1,h2,p{margin:0}.app{flex-direction:column;height:100%;display:flex}.app--tablet .app__body{grid-template-columns:minmax(0,1fr);padding:8px 12px 12px}.sidebar{scrollbar-width:thin;flex-direction:column;gap:16px;min-height:0;padding-bottom:2px;display:flex;overflow-y:auto}.workspace{min-width:0;min-height:0;display:flex}.header{height:var(--header-h);background:var(--panel);border-bottom:1px solid var(--panel-border);flex-shrink:0;align-items:center;gap:18px;padding:0 24px 0 18px;display:flex}.header--compact{--header-h:66px;gap:12px;padding:0 14px}.brand{align-items:center;gap:14px;display:flex}.brand__title{font-family:var(--font-display);letter-spacing:-.01em;color:var(--ink);font-size:30px;font-weight:700;line-height:1.1}.header--compact .brand__title{font-size:22px}.brand__sub{color:var(--ink-3);margin-top:4px;font-size:15px}.history{gap:10px;margin-right:10px;display:flex}.history__btn{border-radius:var(--radius-sm);width:78px;color:var(--ink-2);transition:background .15s var(--ease),transform .12s var(--ease),color .15s;flex-direction:column;align-items:center;gap:3px;padding:8px 4px 6px;font-size:14px;display:flex}.header--compact .history__btn{width:44px;padding:8px 0}.history__btn:active:not(:disabled){transform:translateY(1px)scale(.98)}.history__btn:disabled{color:#b9b3a9}.btn{height:56px;transition:background .15s var(--ease),transform .12s var(--ease),box-shadow .15s;border-radius:12px;align-items:center;gap:10px;padding:0 26px;font-size:18px;font-weight:500;display:inline-flex;position:relative}.header--compact .btn{height:44px;padding:0 14px;font-size:15px}.btn:active:not(:disabled){transform:translateY(1px)scale(.985)}.btn--save:hover:not(:disabled){background:#e1ddd4}.btn--save:disabled{opacity:.7}.btn__dot{background:var(--thread-red);border-radius:50%;width:8px;height:8px;position:absolute;top:9px;right:9px;box-shadow:0 0 0 2px #eae7e0}.btn--export{background:var(--green);color:#fff;box-shadow:var(--shadow-sm)}.btn--export:hover{background:var(--green-dark)}.btn--ghost{height:48px;color:var(--ink-2);background:#f1eee7;gap:8px;padding:0 16px;font-size:16px}.header--compact .btn--ghost,.mtop .btn--ghost{gap:6px;height:44px;padding:0 10px;font-size:15px}.mtop .btn--ghost{background:0 0;justify-content:center;width:40px;height:40px;padding:0}.btn--ghost:hover{background:#e7e3da}.iconbtn{width:40px;height:40px;color:var(--ink-2);transition:background .15s var(--ease),transform .12s var(--ease);border-radius:10px;place-items:center;display:inline-grid;position:relative}.iconbtn:hover:not(:disabled){background:#efece5}.iconbtn:active:not(:disabled){transform:scale(.94)}.iconbtn:disabled{color:#c2bcb2}.iconbtn--dirty:after{content:"";background:var(--thread-red);border-radius:50%;width:7px;height:7px;position:absolute;top:6px;right:6px}.menu__pop{z-index:40;background:var(--panel);border:1px solid var(--panel-border);min-width:240px;box-shadow:var(--shadow-md);animation:pop .14s var(--ease);border-radius:12px;padding:8px;position:absolute;right:0}.menu__pop--down{transform-origin:100% 0;top:calc(100% + 8px)}.menu__pop--up{transform-origin:100% 100%;bottom:calc(100% + 8px)}@keyframes pop{0%{opacity:0;transform:scale(.96)translateY(-4px)}to{opacity:1;transform:none}}.menu__label{letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);padding:8px 10px 4px;font-size:11px;font-weight:600}.menu__pop button{text-align:left;width:100%;color:var(--ink);border-radius:8px;justify-content:space-between;align-items:baseline;padding:9px 10px;font-size:14.5px;display:flex}.menu__pop button small{color:var(--ink-3);font-size:12px}.menu__pop button:hover{background:#f1eee7}.menu__pop .menu__danger{color:#a53a34}.panel{background:var(--panel);border:1px solid var(--panel-border);border-radius:var(--radius);box-shadow:var(--shadow-sm);flex-shrink:0;padding:20px 20px 18px}.panel__title{color:var(--ink);letter-spacing:-.005em;margin-bottom:16px;font-size:19px;font-weight:600}.modelist__item{height:62px;color:var(--ink);text-align:left;transition:background .15s var(--ease),border-color .15s var(--ease),transform .12s var(--ease);border:1.5px solid #0000;border-radius:10px;align-items:center;gap:14px;padding:0 12px 0 8px;font-size:16.5px;display:flex}.modelist__item:active{transform:scale(.99)}.modelist__icon{width:64px;height:32px;color:var(--thread-red);flex-shrink:0;place-items:center;display:grid}.swatch{background:var(--swatch);width:40px;height:40px;transition:transform .14s var(--ease),box-shadow .14s var(--ease);border-radius:50%;position:relative;box-shadow:inset 0 0 0 1.5px #00000014,inset 0 -3px 6px #0000000f,inset 0 2px 4px #ffffff59}.swatch:hover{transform:scale(1.08)}.swatch.is-active{box-shadow:inset 0 0 0 1.5px #00000014,0 0 0 2.5px var(--panel),0 0 0 5px var(--active-border);transform:scale(1.04)}.swatch.is-custom{cursor:default}.swatch--eyedropper{box-shadow:none;color:var(--ink-2);background:0 0;border-radius:10px;place-items:center;display:grid}.swatch--eyedropper:hover{background:#f1eee7;transform:none}.swatch--eyedropper.is-active{background:var(--active-bg);box-shadow:inset 0 0 0 1.5px var(--active-border);color:var(--green-ink);transform:none}.slider{margin-bottom:20px}.slider__label{color:var(--ink-3);margin-bottom:10px;font-size:16px;display:block}.slider__value{text-align:right;min-width:46px;color:var(--ink-2);font-variant-numeric:tabular-nums;font-size:16px}input[type=range]{appearance:none;cursor:pointer;background:0 0;flex:1;height:22px;margin:0}input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(90deg,var(--green) var(--pct),#e4e0d8 var(--pct));border-radius:3px;height:6px}input[type=range]::-moz-range-track{background:#e4e0d8;border-radius:3px;height:6px}input[type=range]::-moz-range-progress{background:var(--green);border-radius:3px;height:6px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:var(--green);width:22px;height:22px;transition:transform .12s var(--ease);border:2px solid #fff;border-radius:50%;margin-top:-8px;box-shadow:0 1px 3px #0003}input[type=range]::-moz-range-thumb{background:var(--green);border:2px solid #fff;border-radius:50%;width:18px;height:18px;box-shadow:0 1px 3px #0003}input[type=range]:active::-webkit-slider-thumb{transform:scale(1.12)}.switchrow{color:var(--ink-3);justify-content:space-between;align-items:center;margin-top:4px;font-size:16px;display:flex}.switch{width:54px;height:30px;transition:background .18s var(--ease);background:#d5d1c8;border-radius:15px;position:relative}.switch.is-on{background:var(--green)}.switch__knob{width:24px;height:24px;transition:transform .18s var(--ease);background:#fff;border-radius:50%;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #00000040}.switch.is-on .switch__knob{transform:translate(24px)}.panel--preview{padding-bottom:20px}.preview{border:1px solid var(--panel-border);cursor:crosshair;background:#efe9de;border-radius:10px;max-width:100%;margin:0 auto;position:relative;overflow:hidden}.preview__img{width:100%;height:100%;display:block;position:absolute;inset:0}.preview__rect{border:1.5px solid var(--green);pointer-events:none;will-change:transform,width,height;background:#5b8a6a14;transition:opacity .15s;position:absolute;top:0;left:0;box-shadow:0 0 0 1px #fff9}.stage-wrap{border-radius:var(--radius);border:1px solid var(--panel-border);min-width:0;min-height:0;box-shadow:var(--shadow-sm);background:#efe9dc;flex:1;position:relative;overflow:hidden}.stage{touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair;position:absolute;inset:0}.stage__layer{pointer-events:none;display:block;position:absolute;top:0;left:0}.stage[data-tool=needle]{cursor:none}.stage[data-tool=eyedropper],.stage[data-tool=eraser]{cursor:crosshair}.stage[data-tool=pan]{cursor:grab}.stage[data-tool=pan][data-active=true]{cursor:grabbing}.stage[data-tool=zoom]{cursor:zoom-in}.stage__loading{color:var(--ink-3);pointer-events:none;background:#f3f1eb99;place-items:center;font-size:14px;display:grid;position:absolute;inset:0}.zoombar{border:1px solid var(--panel-border);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#fdfcfaeb;border-radius:10px;align-items:center;gap:2px;padding:4px;display:flex;position:absolute;bottom:14px;right:14px}.zoombar button{min-width:32px;height:32px;color:var(--ink-2);font-variant-numeric:tabular-nums;border-radius:7px;place-items:center;padding:0 6px;font-size:13px;transition:background .12s;display:grid}.zoombar button:hover{background:#efece5}.zoombar__pct{min-width:52px}.zoombar__sep{background:var(--line);width:1px;height:18px;margin:0 3px}.stage__count{color:var(--ink-3);border:1px solid var(--panel-border);pointer-events:none;background:#fdfcfad9;border-radius:8px;padding:6px 10px;font-size:12.5px;position:absolute;bottom:14px;left:14px}.toast{z-index:80;color:#fdfcfa;box-shadow:var(--shadow-md);opacity:0;pointer-events:none;transition:opacity .18s var(--ease),transform .18s var(--ease);background:#2a2723;border-radius:10px;padding:10px 16px;font-size:14px;position:fixed;bottom:28px;left:50%;transform:translate(-50%,16px)}.app--mobile~.toast{bottom:92px}.drawer{z-index:60;pointer-events:none;position:fixed;inset:0}.drawer__backdrop{opacity:0;transition:opacity .2s var(--ease);background:#28231c47;position:absolute;inset:0}.drawer__body{background:var(--page);width:min(360px,88vw);box-shadow:var(--shadow-md);transition:transform .24s var(--ease);flex-direction:column;gap:14px;padding:12px 14px 20px;display:flex;position:absolute;top:0;bottom:0;overflow-y:auto}.drawer--left .drawer__body{left:0;transform:translate(-100%)}.drawer--right .drawer__body{right:0;transform:translate(100%)}.drawer.is-open{pointer-events:auto}.drawer.is-open .drawer__backdrop{opacity:1}.drawer.is-open .drawer__body{transform:none}.drawer__head,.sheet__head{justify-content:space-between;align-items:center;padding:4px 4px 0;display:flex}.drawer__head h2,.sheet__head h2{font-size:17px;font-weight:600}.drawer__content{flex-direction:column;gap:14px;display:flex}.app--mobile .workspace{flex:1;min-height:0;padding:6px 8px}.mtop{background:var(--panel);border-bottom:1px solid var(--panel-border);height:56px;padding:0 8px 0 12px;padding-top:env(safe-area-inset-top);flex-shrink:0;align-items:center;gap:6px;display:flex}.mtop__title{font-family:var(--font-display);margin-left:4px;font-size:19px;font-weight:700}.mbar{padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--panel-border);flex-shrink:0;grid-template-columns:repeat(6,1fr);gap:2px;display:grid}.mbar__btn{height:60px;color:var(--ink-2);transition:background .15s var(--ease),border-color .15s;border:1.5px solid #0000;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:11px;display:flex}.mbar__btn.is-active{background:var(--active-bg);border-color:var(--active-border);color:var(--green-ink)}.mbar__btn:active{background:#efece5}.mbar__stitch{height:24px;color:var(--thread-red);place-items:center;display:grid}.btn--ghost .stitch-mini{color:var(--thread-red)}.mbar__color{border-radius:50%;width:22px;height:22px;display:inline-block;box-shadow:inset 0 0 0 1.5px #0000001a}.sheet{z-index:60;pointer-events:none;position:fixed;inset:0}.sheet__backdrop{opacity:0;transition:opacity .2s var(--ease);background:#28231c52;position:absolute;inset:0}.sheet__body{max-height:78vh;padding:8px 16px calc(16px + env(safe-area-inset-bottom));background:var(--panel);transition:transform .26s var(--ease);border-radius:18px 18px 0 0;position:absolute;bottom:0;left:0;right:0;overflow-y:auto;transform:translateY(100%);box-shadow:0 -8px 30px #28231c2e}.sheet.is-open{pointer-events:auto}.sheet.is-open .sheet__backdrop{opacity:1}.sheet.is-open .sheet__body{transform:none}.sheet__grip{background:#d5d1c8;border-radius:2px;width:40px;height:4px;margin:4px auto 10px}.sheet__content{padding-top:8px}.sheet__content .swatches{grid-template-columns:repeat(auto-fill,40px);justify-content:start;gap:14px}.sheet__preview .panel{box-shadow:none;border:0;padding:12px 0 0}.sheet__preview .panel__title{color:var(--ink-3);margin-bottom:10px;font-size:16px}@media (width<=1360px) and (width>=1180px){.app__body{grid-template-columns:256px minmax(0,1fr) 300px}.swatches{grid-template-columns:repeat(6,36px)}.swatch{width:36px;height:36px}.btn{height:50px;padding:0 20px;font-size:16px}}@media (height<=760px){:root{--header-h:76px}.brand__title{font-size:26px}.modelist__item{height:52px}.panel{padding:16px 16px 14px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.templates{width:min(560px,100vw - 32px);padding:10px}.templates__grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.menu__pop .template{text-align:left;border-radius:10px;flex-direction:column;align-items:stretch;gap:4px;padding:8px;display:flex}.template__thumb{aspect-ratio:1;border:1px solid var(--panel-border);background:#efe9dc;border-radius:8px;display:block;overflow:hidden}.template__thumb img{object-fit:cover;width:100%;height:100%;display:block}.template__skeleton{background:linear-gradient(90deg,#efe9dc,#f6f2ea,#efe9dc) 0 0/200% 100%;width:100%;height:100%;animation:1.1s linear infinite shimmer;display:block}@keyframes shimmer{to{background-position:-200% 0}}.template__name{color:var(--ink);font-size:14px;font-weight:600}.template__desc{color:var(--ink-3);font-size:12px;line-height:1.35}.templates__hint{color:var(--ink-3);margin:8px 6px 2px;font-size:12px}.mtop .templates{width:auto;max-height:calc(100vh - 150px);position:fixed;top:64px;left:8px;right:8px;overflow-y:auto}.mtop .templates__grid{grid-template-columns:repeat(2,1fr)}@media (width<=480px){.templates__grid{grid-template-columns:repeat(2,1fr)}}html,body,#app{height:100%;margin:0}.app{background:var(--page);height:100%;color:var(--ink);flex-direction:column;display:flex}.workspace{flex:1;min-width:0;min-height:0;display:flex}.modal-backdrop{z-index:60;background:#28231c66;place-items:center;display:grid;position:fixed;inset:0}.modal-card{background:var(--panel);border:1px solid var(--panel-border);border-radius:var(--radius);width:min(380px,92vw);box-shadow:var(--shadow-md);padding:20px 22px}.modal-card h3{font-family:var(--font-display);margin:0 0 8px}.modal-card p{color:var(--ink-3);margin:0 0 16px;font-size:.92rem}.modal-actions{justify-content:flex-end;gap:8px;display:flex}.btn--danger{color:#fff;background:#a53a34}.header__spacer{flex:1}.brand__title{font-family:var(--font-display,"Lora", serif);font-size:1.35rem;font-weight:700}.brand__sub{color:var(--ink-3,#7a746b);font-size:.8rem}.app__body{flex:1;grid-template-columns:284px minmax(0,1fr) 336px;gap:16px;min-height:0;padding:8px 16px 16px;display:grid}.modelist{flex-direction:column;gap:2px;display:flex}.modelist__item{height:56px;color:var(--ink,#2a2723);font:inherit;text-align:left;cursor:pointer;background:0 0;border:1.5px solid #0000;border-radius:10px;align-items:center;gap:14px;padding:0 12px;display:flex}.modelist__item:hover{background:#f4f1eb}.modelist__item.is-active{background:var(--active-bg,#dbe8dd);border-color:var(--active-border,#6d9a78)}.modelist__item--tool{height:52px;padding-left:12px}.modelist__icon{width:64px;height:32px;color:var(--thread-red,#c9413b);opacity:1;background:0 0;border-radius:0;flex-shrink:0;place-items:center;display:grid}.modelist__icon svg{width:64px;height:32px;display:block}.modelist__toolicon{width:44px;height:32px;color:var(--ink,#2a2723);flex-shrink:0;place-items:center;display:grid}.modelist__toolicon svg{display:block}.swatches{grid-template-columns:repeat(6,40px);justify-content:space-between;gap:14px 10px;display:grid}.switchrow{color:var(--ink-3,#7a746b);justify-content:space-between;align-items:center;margin-top:8px;display:flex}.slider__row{align-items:center;gap:14px;display:flex}.btn--save{color:var(--ink,#2a2723);background:#eae7e0}.btn--ghost{color:var(--ink-2,#4d4842);background:#f1eee7}.btn--export{background:var(--green,#5b8a6a);color:#fff}.btn__dot{background:var(--thread-red,#c9413b);border-radius:50%;width:8px;height:8px;position:absolute;top:8px;right:8px}.menu__pop{z-index:40;background:var(--panel,#fdfcfa);border:1px solid var(--panel-border,#e6e1d8);min-width:240px;box-shadow:var(--shadow-md);border-radius:12px;padding:8px;position:absolute;top:calc(100% + 8px);right:0}.menu__pop--down{transform-origin:100% 0}.menu{position:relative}.history__btn{color:var(--ink-2);cursor:pointer;font:inherit;background:0 0;border:0;border-radius:9px;flex-direction:column;align-items:center;gap:2px;padding:8px;font-size:13px;display:flex}.history__btn:disabled{opacity:.45;cursor:default}.history__btn:hover:not(:disabled){background:#efece5}.toast.is-visible{opacity:1;transform:translate(-50%)}.panel__hint{color:var(--ink-3,#7a746b);margin:-6px 0 14px;font-size:12.5px;line-height:1.45}.ref-actions{flex-direction:column;gap:8px;margin-bottom:16px;display:flex}.btn--block{border-radius:10px;justify-content:center;width:100%;height:44px;padding:0 14px;font-size:15px}.btn--block:disabled{opacity:.45;cursor:default}.slider.is-disabled{opacity:.5;pointer-events:none}.switch:disabled{opacity:.45;cursor:default}.panel--reference .switchrow{margin-top:4px}.tabstrip{border-bottom:1px solid var(--panel-border,#e6e1d8);background:#efece5;flex-shrink:0;align-items:stretch;gap:4px;height:40px;padding:0 12px 0 18px;display:flex}.tabstrip__scroll{scrollbar-width:thin;flex:1;align-items:stretch;gap:2px;min-width:0;display:flex;overflow-x:auto}.tab{min-width:96px;max-width:220px;height:100%;color:var(--ink-3,#7a746b);cursor:pointer;transition:background .14s var(--ease,ease), color .14s;background:0 0;border:1px solid #0000;border-bottom:none;border-radius:10px 10px 0 0;align-items:center;gap:8px;padding:0 8px 0 12px;font-size:13.5px;display:inline-flex;position:relative}.tab:hover{color:var(--ink-2,#4d4842);background:#f7f4ee}.tab.is-active{background:var(--panel,#fdfcfa);color:var(--ink,#2a2723);border-color:var(--panel-border,#e6e1d8);box-shadow:0 -1px 0 var(--panel,#fdfcfa);font-weight:560}.tab__dot{background:var(--thread-red,#c9413b);border-radius:50%;flex-shrink:0;width:8px;height:8px;box-shadow:0 0 0 2px #efece5}.tab.is-active .tab__dot{box-shadow:0 0 0 2px var(--panel,#fdfcfa)}.tab__title{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;min-width:0;overflow:hidden}.tab__rename{border:1px solid var(--active-border,#6d9a78);min-width:0;height:26px;color:var(--ink);font:inherit;background:#fff;border-radius:6px;flex:1;padding:0 6px;font-size:13px}.tab__close{width:22px;height:22px;color:var(--ink-3,#7a746b);opacity:.7;border-radius:6px;flex-shrink:0;place-items:center;font-size:16px;line-height:1;display:grid}.tab__close:hover{color:var(--ink);opacity:1;background:#e4e0d8}.tabstrip__new{width:36px;height:32px;color:var(--ink-2,#4d4842);border-radius:8px;flex-shrink:0;place-items:center;margin:4px 4px 4px 0;display:grid}.tabstrip__new:hover{background:#e7e3da}.tabstrip__new svg{display:block}.modal-card--saveas{background:#f7f3eb;border-color:#e0d8c8;width:min(420px,92vw)}.modal-field{flex-direction:column;gap:6px;margin:0 0 18px;display:flex}.modal-field__label{color:var(--ink-3,#7a746b);font-size:.82rem}.modal-field__input{box-sizing:border-box;width:100%;color:var(--ink,#2a2723);font:inherit;background:#fffdf8;border:1.5px solid #d5cdb8;border-radius:10px;outline:none;padding:10px 12px;font-size:.98rem;box-shadow:inset 0 1px 2px #3c321e0a}.modal-field__input:focus{border-color:var(--active-border,#6d9a78);box-shadow:0 0 0 3px #6d9a7838}.menu__tpl-row{align-items:stretch;gap:4px;display:flex}.menu__tpl-main{min-width:0;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;flex-direction:column;flex:1;align-items:flex-start;gap:2px;padding:10px 12px;display:flex}.menu__tpl-main:hover{background:#f3efe6}.menu__tpl-main small{color:var(--ink-3,#7a746b);font-size:.78rem}.menu__tpl-demo{width:40px;color:var(--thread-red,#c9413b);cursor:pointer;background:#f3efe6;border:0;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.menu__tpl-demo:hover{color:#a8322c;background:#e8dfd0}.menu__tpl-demo svg{width:18px;height:18px}.workspace{position:relative}.demo-bar{z-index:30;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);width:min(860px,100% - 48px);color:var(--ink,#2a2723);background:#fdfaf3f0;border:1px solid #e0d8c8;border-radius:16px;padding:10px 14px 12px;position:absolute;bottom:18px;left:50%;transform:translate(-50%);box-shadow:0 10px 28px #3c2d1929}.demo-bar__controls{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px;display:flex}.demo-bar__btn{height:32px;color:var(--ink-2,#4d4842);cursor:pointer;font:inherit;background:#f7f3eb;border:1px solid #e0d8c8;border-radius:10px;align-items:center;gap:4px;padding:0 10px;font-size:.82rem;display:inline-flex}.demo-bar__btn:hover{background:#efe8da}.demo-bar__btn--stop{margin-left:4px}.demo-bar__btn svg{width:16px;height:16px;display:block}.demo-bar__count{color:var(--ink-3,#7a746b);font-variant-numeric:tabular-nums;margin-left:auto;font-size:.8rem}.demo-bar__now{color:var(--ink-2,#4d4842);align-items:center;gap:5px;margin-right:8px;display:inline-flex}.demo-bar__now-swatch{border-radius:50%;width:10px;height:10px;box-shadow:0 0 0 1px #3c2d1940}.demo-bar__speeds{background:#efe8da;border:1px solid #e0d8c8;border-radius:10px;align-items:center;gap:2px;margin-left:6px;padding:2px;display:inline-flex}.demo-bar__speed{height:26px;color:var(--ink-2,#4d4842);cursor:pointer;font:inherit;white-space:nowrap;background:0 0;border:0;border-radius:8px;padding:0 8px;font-size:.72rem}.demo-bar__speed:hover{background:#f7f3eb}.demo-bar__speed.is-active{color:var(--thread-red,#c9413b);background:#fdfaf3;font-weight:600;box-shadow:0 0 0 1px #e0d8c8}.demo-bar__track{cursor:pointer;touch-action:none;background:#ebe4d6;border-radius:999px;height:28px;position:relative}.demo-bar__fill{pointer-events:none;opacity:.85;background:linear-gradient(90deg,#d7b896,#c93b3b);border-radius:999px;position:absolute;top:0;bottom:0;left:0}.demo-bar__node{cursor:pointer;z-index:1;background:#f7f3eb;border:2px solid #fff;border-radius:50%;width:14px;height:14px;padding:0;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #c9bfae}.demo-bar__node.is-passed{box-shadow:0 0 0 1px #c93b3b}.demo-bar__swatch{border-radius:50%;width:100%;height:100%;display:block}.demo-bar__tip{color:#f7f3eb;white-space:nowrap;opacity:0;pointer-events:none;background:#3a3228;border-radius:8px;padding:4px 8px;font-size:.72rem;transition:opacity .12s;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}.demo-bar__node:hover .demo-bar__tip,.demo-bar__node:focus-visible .demo-bar__tip{opacity:1}@media (prefers-reduced-motion:reduce){.demo-bar__fill{transition:none}}
