:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#46324f;background:#fcf9fd;font-synthesis:none;--purple:#9162bb;--line:#eee4f1}*{box-sizing:border-box}body{margin:0}header{max-width:1180px;margin:auto;padding:26px 24px;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;color:#7b509b;font-size:24px;font-weight:800;letter-spacing:-1px}.brand span{font-size:17px;margin-left:7px}.beta{font-size:12px;color:#8d7a96;background:#f3ebf6;border:1px solid var(--line);border-radius:20px;padding:8px 13px}main{max-width:1180px;margin:0 auto;padding:0 24px}.heading{text-align:center;margin:22px 0 32px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.7px;color:#b284b5}h1{font-size:44px;letter-spacing:-2px;margin:8px 0 5px;font-weight:750}h1 span{color:#d895b6;font-size:35px;margin-left:10px}.heading>p:last-child{font-size:15px;color:#8e7b96;margin:8px}.editor{display:grid;grid-template-columns:minmax(0,1fr) 285px;background:white;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 14px 50px #73498509}.workspace{min-width:0;display:flex;flex-direction:column}.topbar{padding:16px 20px;display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid var(--line)}#filename{font-size:12px;color:#98859e;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.viewport{height:550px;overflow:auto;position:relative;display:grid;place-items:center;background-color:#faf7fc;background-image:linear-gradient(45deg,#f2edf6 25%,transparent 25%),linear-gradient(-45deg,#f2edf6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f2edf6 75%),linear-gradient(-45deg,transparent 75%,#f2edf6 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}.viewport.drag{outline:3px solid #d89ec7;outline-offset:-4px}.empty{text-align:center;padding:35px 24px;background:#faf7fce8;border-radius:30px;max-width:90%}.upload-icon{font-size:32px;color:#b997c9;background:#efe4f5;width:66px;height:66px;display:grid;place-items:center;border-radius:22px;margin:auto}.empty h2{font-size:21px;margin:23px 0 8px}.empty p{font-size:13px;color:#9b87a2}.empty button{margin-top:13px}.empty small{display:block;font-size:11px;color:#a392a9;margin-top:20px}button{font:inherit;cursor:pointer;transition:background .15s,box-shadow .15s;border:1px solid var(--line);border-radius:10px;background:white;color:#82628e;font-size:12px;padding:9px 12px}button:hover:enabled{background:#f5edf8}button:focus-visible,input:focus-visible{outline:3px solid #c396d7;outline-offset:3px}button:disabled{opacity:.4;cursor:default}.primary{background:linear-gradient(110deg,#a278c6,#d08eb6);border:none;color:white;font-weight:650;padding:13px 25px;box-shadow:0 4px 12px #a278c61a}.primary:hover:enabled{background:linear-gradient(110deg,#9368b8,#c47ca8)}aside{padding:25px 24px;border-left:1px solid var(--line)}.step{display:flex;align-items:center;gap:10px;margin-bottom:18px}.step>span{font-size:10px;background:#f4edf7;color:#a582b6;border-radius:7px;padding:5px}.step h2{font-size:14px;margin:0;font-weight:650}.segmented{display:flex;background:#f8f3fa;padding:4px;border-radius:12px;gap:4px}.segmented button{flex:1;border:none;background:transparent}.segmented button[aria-pressed=true]{background:white;color:#915daa;box-shadow:0 2px 7px #81608e12}label:not(.check){font-size:12px;display:flex;justify-content:space-between;margin:23px 0 9px}output{font-size:11px;color:#aa92b5}input[type=range]{width:100%;accent-color:#b788c6;height:5px;cursor:pointer}.minor{display:flex;justify-content:space-between;margin:14px 0}.minor button{border:none;padding:5px 0;font-size:11px}.check{font-size:11px;display:flex;gap:7px;align-items:center;color:#98859e;cursor:pointer}.check input{accent-color:#b788c6}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.effect{border:1px solid #eadcee;background:#fbf6fc;border-radius:12px;padding:12px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#956ca9}.effect small{font-size:9px;color:#b396bd}.scale{display:flex;justify-content:space-between;font-size:9px;color:#b29eb9;margin-top:9px}.play{width:100%;margin-top:23px}.original{width:100%;margin-top:9px}.original[aria-pressed=true]{background:#f1e7f6;border-color:#c8a2d8}.reset{display:block;border:none;font-size:11px;margin:8px auto;background:transparent}.tip{font-size:11px;color:#ac98b3;line-height:1.7;margin:16px 0 0}.bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;border-top:1px solid var(--line);margin-top:auto}#hint{color:#a48eaf;font-size:11px}.zoom{display:flex;align-items:center;gap:6px}.zoom button{border:none;padding:4px 7px}.zoom span{font-size:10px;color:#9b83a6;min-width:34px;text-align:center}#surface{position:relative;line-height:0;margin:auto;flex-shrink:0}#surface[hidden]{display:none}#canvas{display:block;touch-action:none;cursor:none}#cursor{position:absolute;border:1px solid white;border-radius:50%;box-shadow:0 0 0 1px #805496;pointer-events:none;transform:translate(-50%,-50%)}#status{text-align:center;font-size:11px;color:#ad98b5;margin:19px 0}footer{display:flex;justify-content:space-between;font-size:10px;color:#b6a4bd;margin:34px 0 24px}footer span{color:#c1b1c7}@media(max-width:800px){.editor{grid-template-columns:1fr}.viewport{height:430px}aside{border-left:0;border-top:1px solid var(--line)}.heading{margin:10px 0 25px}h1{font-size:36px}main{padding:0 12px}.bottom{flex-wrap:wrap}aside{padding:22px}.tip{margin-bottom:0}}@media(prefers-reduced-motion:reduce){button{transition:none}}

.modes{margin-bottom:12px}.modes button[aria-pressed=true]{background:#ebdff4;color:#764a96}

body[data-mode=breath]{--accent:#bb9126;--tint:#fff8df}body[data-mode=hair]{--accent:#c66b9b;--tint:#fff0f7}body[data-mode=blink]{--accent:#9363bd;--tint:#f5edff}aside{background:var(--tint)}input[type=range]{accent-color:var(--accent)}.modes button[aria-pressed=true],.effect{background:var(--tint);color:var(--accent)}.primary{background:var(--accent)}select{width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--accent)}#motioncontrols[hidden],#blinkcontrols[hidden]{display:none}.modes button{padding:10px 6px;font-size:11px}

#eyeguides{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}#eyeguides[hidden]{display:none}#eyeguides path{fill:none;stroke:#9363bd;stroke-width:1.5;vector-effect:non-scaling-stroke}#eyeguides circle{fill:white;stroke:#9363bd;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:all;cursor:grab;touch-action:none}#eyeguides circle.upper{fill:#d8f8e6}#eyeguides circle.lower{fill:#ffe7c9}#eyeguides circle:focus{stroke:#442165;stroke-width:3}

.eye-actions{display:flex;gap:6px;margin-top:12px}.eye-actions button{flex:1;padding:10px 5px;font-size:11px;border-color:#d8c5ed;background:white;color:#78469d}

.setpath{width:100%;margin-top:10px;border-color:#b899d5;background:#f3e8ff;color:#74459a}

#eyeguides path.blink-direction{stroke:#5b268b;stroke-dasharray:3 2;stroke-width:2}#eyeguides circle.closing-target{fill:#a873db;pointer-events:none}

#eyeguides{z-index:3;display:block}#cursor{z-index:4}

.canvas-area{position:relative;min-width:0}.paintbar{position:absolute;right:14px;top:14px;z-index:6;width:202px;padding:12px;background:#fff0f8ed;border:1px solid #efb7d1;border-radius:19px;box-shadow:0 5px 22px #8c426125;backdrop-filter:blur(8px);color:#a65886;line-height:normal}.paintbar[hidden]{display:none}.tool-head{display:flex;align-items:center;gap:7px;margin-bottom:10px;font-size:11px;font-weight:650}.tool-head>span:first-child{margin-right:auto}.tool-head button{border-radius:50%;width:36px;height:36px;padding:0;color:#b25687;font-size:23px;background:#ffe1ef;border:1px solid #eeb1cb}.tool-head button[aria-pressed=true]{background:#efa3c6;color:white}.paintbar .segmented{background:#ffe8f3}.paintbar button{font-size:10px;padding:8px 6px;color:#a55b86}.paintbar label:not(.check){margin:12px 0 7px;font-size:10px}.paintbar .minor{margin:9px 0}.paintbar .check{font-size:10px;color:#a57390}.paintbar input[type=range],.paintbar input[type=checkbox]{accent-color:#d981ac}.paintbar #zoomvalue{font-size:9px;color:#ad7c96}.exportbox{margin-top:10px}.exportbox button{width:100%;background:#d780ac}.exportbox small,.exportbox a{display:block;text-align:center;font-size:10px;margin-top:8px;color:#a87696}.exportbox a[hidden]{display:none}#blinksteps[hidden]{display:none}@media(max-width:600px){.paintbar{right:8px;top:8px;width:175px;padding:9px}.viewport{height:530px}}

.miau-guide{margin-top:16px;padding:12px 14px;border-radius:16px;background:#fff0f7;border:1px solid #f4c4dd;font-size:13px;line-height:1.5}.miau-guide strong{color:#ad3876}.miau-guide p{margin:5px 0 0}#hairsteps{margin:8px 0}#hairroot[aria-pressed="true"]{background:#ad386f;color:white}#hairarea[aria-pressed="true"]{background:#ffd3e8;color:#79264f}

.tool-head{flex-wrap:wrap;gap:8px}.zoom-tools{display:flex;align-items:center;gap:5px;margin-left:auto}.zoom-tools button{display:grid;place-items:center;width:34px;height:34px;padding:0!important;border:1px solid #efbdd5!important;background:#fff0f7!important;color:#a53973!important;border-radius:11px;font-size:22px;font-weight:650;line-height:1}.zoom-tools button:hover:enabled{background:#ffd9eb!important}.zoom-tools button[aria-pressed="true"]{background:#f8c4df!important;box-shadow:0 0 0 2px #d78ab6}.zoom-tools output{min-width:44px;text-align:center;font-size:11px;font-variant-numeric:tabular-nums;color:#925377}.zoom-tools button:disabled{opacity:.35}

/* v0.12: tools stay outside the artwork; settings follow the active effect. */
[hidden]{display:none!important}
.workspace>.modes{margin:12px 16px 8px;flex-shrink:0}
.workspace>.modes button{min-height:40px;font-size:13px;font-weight:650}
.paintbar{position:static;width:auto;margin:0;padding:10px 16px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#fff8fc;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;backdrop-filter:none}
.paint-actions{display:flex;gap:5px}.paint-actions button{min-height:36px;padding:8px 12px;font-size:12px;border-color:#efcee0}.paint-actions button[aria-pressed=true]{background:#f7d4e6;color:#812958;border-color:#dc95b9}
.brush-control{flex:1;min-width:115px;max-width:210px}.paintbar .brush-control label{margin:0 0 6px;font-size:11px}.paintbar .check{font-size:11px;white-space:nowrap;margin-left:auto}.paintbar input[type=checkbox]{width:16px;height:16px}
.bottom{min-height:60px;margin-top:0;background:white}.bottom #hint{max-width:55%;line-height:1.5}.zoom-tools{flex-shrink:0}
.preview-actions{display:flex;align-items:center;gap:10px;padding:0 16px 16px;background:white}.preview-actions .play,.preview-actions .original{width:auto;margin:0}.preview-actions .play{min-width:110px}.preview-actions #openexport{margin-left:auto;background:#cc78a4}.preview-actions button{min-height:42px}
.effect-heading{font-size:16px;margin:0 0 16px;color:var(--accent)}.miau-guide{margin:0 0 16px;font-size:12px;background:#ffffffb3;border-color:#eadce7}.adjust{margin-top:24px;border-top:1px solid #decad64d;padding-top:14px}.adjust summary{cursor:pointer;font-size:12px;color:#8b6e91;padding:6px 0}.adjust .reset{margin:16px 0 0}.clear-selection{margin-top:26px;background:transparent;font-size:11px;color:#98778b;border-style:dashed}.clear-selection:hover:enabled{background:#fff0f4}
#hairsteps,#blinksteps{margin:0 0 14px}#hairsteps button,#blinksteps button{min-height:40px;font-size:11px;padding:8px 5px}
.export-panel{grid-column:1/-1;margin:0;padding:24px;background:#fff7fb;border-top:1px solid #edcadc;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 20px;align-items:center}.export-heading{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.export-heading h2{font-size:16px;margin:0}.export-heading #closeexport{width:36px;height:36px;padding:0;background:white;color:#a36187}.export-panel label{margin:0;font-size:12px}.export-panel label[for=format]{grid-column:1;grid-row:2}.export-panel #format{grid-column:1;grid-row:3}.export-panel label[for=quality]{grid-column:2;grid-row:2}.export-panel #quality{grid-column:2;grid-row:3}.export-panel label[for=duration]{grid-column:3;grid-row:2}.export-panel #duration{grid-column:3;grid-row:3}.export-panel #exportvideo{grid-column:1/-1;max-width:300px;justify-self:center;margin-top:12px}.export-panel small,.export-panel a{grid-column:1/-1;margin:0}.export-panel select{min-width:0}
@media(max-width:800px){aside{padding:20px}.viewport{height:430px}.paintbar{width:auto;padding:10px 12px}.effect-heading{margin-bottom:12px}}
@media(max-width:480px){.paintbar{gap:12px}.paint-actions{flex:1}.paint-actions button{flex:1}.brush-control{max-width:none;flex-basis:45%}.preview-actions{gap:6px;padding:0 10px 12px}.preview-actions button{font-size:11px;padding:10px}.preview-actions .play{min-width:75px}.bottom{padding:10px;gap:8px}.bottom #hint{font-size:10px}.zoom-tools{gap:3px}.zoom-tools output{min-width:36px}.export-panel{display:flex;flex-direction:column;align-items:stretch;padding:20px}.export-heading{margin-bottom:12px}.export-panel label{margin-top:8px}.export-panel #exportvideo{max-width:none}.heading{margin-bottom:20px}h1{font-size:32px}}

.special-entry{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 18px;margin:0 0 18px;border:1px solid #efc5dd;border-radius:17px;background:#fff0f8}.special-entry strong{font-size:13px;color:#aa5088}.special-entry span{display:block;font-size:11px;color:#ac88a2;margin-top:5px}.special-entry button{background:white;flex-shrink:0;color:#ab5386;border-color:#e6b2cf}.special-dialog{width:min(1250px,98vw);height:94vh;max-width:none;max-height:96vh;padding:0;border:1px solid #edc6df;border-radius:20px;overflow:hidden;background:#fff8fc}.special-dialog::backdrop{background:#40233399;backdrop-filter:blur(3px)}.special-dialog iframe{width:100%;height:100%;border:0;display:block}@media(max-width:550px){.special-entry{align-items:flex-start;flex-direction:column}.special-dialog{width:100vw;height:98vh;border-radius:12px}}

#bodyguides{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;overflow:visible}#bodyguides line{stroke:#c39524;stroke-width:2;stroke-dasharray:5 4;vector-effect:non-scaling-stroke;pointer-events:none}#bodyguides circle{fill:#ffdf75;stroke:#725307;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:all;cursor:grab;touch-action:none}#bodyguides text{fill:#775400;font-weight:700;pointer-events:none;text-anchor:middle;dominant-baseline:middle}#breathguide{margin:0 0 16px}#breathguide>p{font-size:12px;margin:0 0 9px}#breathguide small{font-size:10px;color:#b19a66;margin-left:4px}#breathguide button{font-size:11px;padding:10px 6px;min-height:38px}#breathcenters[aria-pressed=true]{background:#ffe6a3;color:#815c00}
