@font-face{font-family:Manrope;src:url(assets/manrope-regular.ttf) format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Manrope;src:url(assets/manrope-semibold.ttf) format('truetype');font-weight:500 800;font-display:swap}
:root{--paper:#efede8;--ink:#171715;--muted:#62625c;--line:#d7d5cf;--blue:#244dc4;--stage:#e5e9ef;--white:#fff;font-family:Manrope,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:transparent;border-radius:7px;transition:background .18s,color .18s}button:hover:not(:disabled){background:#e0ded8}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,#viewport:focus-visible{outline:3px solid var(--blue);outline-offset:3px}a{color:inherit;text-underline-offset:4px}::selection{background:#b9cef9;color:#132b68}svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}button svg{flex:none}button[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}.header{height:80px;display:flex;align-items:center;padding:0 30px;border-bottom:1px solid var(--line);gap:24px}.wordmark{font-size:30px;font-weight:600;letter-spacing:-.04em;text-decoration:none}.wordmark span{color:var(--blue)}.identity{display:flex;gap:18px;align-items:baseline}.identity h1{font-size:25px;letter-spacing:-.03em;margin:0;font-weight:600}.identity>span{font-size:12px;color:var(--muted)}nav{display:flex;align-items:center;gap:20px;margin-left:auto}.text-button{font-size:12px;border:0;padding:9px 0;border-radius:0;text-decoration:underline;text-underline-offset:4px}.primary{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--blue);color:white;border-color:var(--blue);font-size:12px;padding:13px 17px}.primary:hover:not(:disabled){background:#17399d}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 316px;height:calc(100dvh - 80px);min-height:580px}.stage{position:relative;min-width:0;overflow:hidden;background:var(--stage)}#viewport{position:absolute;inset:0;outline-offset:-4px!important;cursor:grab}#viewport:active{cursor:grabbing}#viewport canvas{display:block;width:100%;height:100%;touch-action:none}.stage-caption{position:absolute;top:28px;left:30px;z-index:1;pointer-events:none;display:flex;flex-direction:column;gap:6px;font-size:13px}.stage-caption>span+span{font-size:11px;color:#505c6d}.stage-bottom{position:absolute;left:0;bottom:24px;width:100%;display:flex;flex-direction:column;align-items:center;gap:16px;pointer-events:none}.gesture{color:#505c6d;font-size:11px;margin:0}.gesture span{margin:0 7px}.views{display:flex;padding:4px;gap:3px;background:var(--paper);border:1px solid #cbd0d7;border-radius:10px;pointer-events:auto}.views button{border:0;font-size:12px;min-height:36px;padding:8px 17px}.views #spin{display:grid;place-items:center;padding:8px 12px;border-left:1px solid var(--line);border-radius:0 6px 6px 0}.views #spin svg{width:17px;height:17px}.settings{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b1b0a9 var(--paper);border-left:1px solid var(--line);padding:0 24px;overscroll-behavior:contain}fieldset{border:0;padding:0;margin:0;min-width:0}.control-section{padding:24px 0;border-bottom:1px solid var(--line)}h2,summary{font-size:13px;font-weight:600;margin:0 0 16px}summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;margin:0}summary::-webkit-details-marker{display:none}details[open] summary{margin-bottom:10px}details[open] summary svg{transform:rotate(180deg)}.presets{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:22px}.presets button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 5px;font-size:11px}.presets svg{height:30px;width:40px;stroke-width:1.1}.range-label{display:flex;justify-content:space-between;gap:8px;font-size:11px;margin:16px 0 5px}.range-label output{font-variant-numeric:tabular-nums;color:var(--muted)}input[type=range]{width:100%;margin:0;display:block;accent-color:var(--blue);height:22px;cursor:pointer}input[type=range]::-webkit-slider-runnable-track{height:3px;background:#c5c6c9;border-radius:3px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-6px;background:var(--blue);height:15px;width:15px;border-radius:50%}input[type=range]{-webkit-appearance:none;appearance:none;background:transparent}input[type=range]::-moz-range-track{height:3px;background:#c5c6c9}input[type=range]::-moz-range-thumb{background:var(--blue);height:15px;width:15px;border:0;border-radius:50%}.segmented{display:flex;gap:3px;border:1px solid var(--line);border-radius:8px;padding:3px}.segmented button{font-size:11px;flex:1;border:0;padding:9px 3px;border-radius:5px}.palette-options{display:flex;gap:14px;margin-top:18px}.palette-options button{display:flex;flex-direction:column;align-items:center;font-size:11px;gap:7px;padding:5px 2px;border:0;background:none!important;color:var(--muted)!important}.palette-options button[aria-pressed=true]{color:var(--ink)!important}.swatch{display:block;border-radius:50%;width:29px;height:29px;border:1px solid #0002}.swatch.blue{background:#245ccc}.swatch.original{background:conic-gradient(#191998 0 20%,#1abadf 20% 40%,#f2d00f 40% 60%,#ff0119 60% 80%,#0bb30b 80%)}.swatch.ice{background:#b7d9eb}.palette-options [aria-pressed=true] .swatch{outline:1px solid var(--ink);outline-offset:4px}.detail-hint{font-size:11px;line-height:1.6;color:var(--muted);margin:9px 0 12px}.petal-picker{display:flex;gap:8px}.petal-picker button{width:37px;height:34px;border-radius:5px;font-size:11px}#selected-name{font-size:11px;margin:10px 0 20px;color:var(--muted)}.color-row,.export-row{display:flex;align-items:center;gap:12px;justify-content:space-between;font-size:11px;margin-top:12px}.color-row input{border:1px solid var(--line);width:30px;height:27px;background:none;cursor:pointer;border-radius:4px;padding:2px;margin-left:auto}.export-row select{background:transparent;color:var(--ink);border:1px solid #9f9f99;border-radius:4px;padding:7px;font-size:11px}.check{font-size:11px;display:flex;gap:8px;align-items:center;margin-top:17px}.check input{accent-color:var(--blue)}.panel-footer{padding:20px 0 24px;display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}.panel-footer a{text-decoration:none;color:var(--ink)}.loading,.error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--stage);z-index:3;font-size:13px;text-align:center;padding:30px}.loading[hidden],.error[hidden]{display:none}.error p{max-width:45ch;font-size:13px;line-height:1.6}.error button{padding:10px 16px}.loader{height:25px;width:25px;border:2px solid #bdc9db;border-top-color:var(--blue);border-radius:50%;animation:turn 1s linear infinite}.toast{position:fixed;bottom:18px;left:24px;z-index:6;background:var(--ink);color:white;padding:12px 18px;border-radius:8px;max-width:calc(100% - 48px);font-size:12px;pointer-events:none;margin:0}.toast:empty{display:none}.skip{position:absolute;top:-60px;z-index:10;padding:12px;background:white}.skip:focus{top:10px;left:12px}.noscript{position:fixed;bottom:0;left:0;right:0;background:white;padding:20px;z-index:8}@keyframes turn{to{transform:rotate(360deg)}}
@media(min-width:1500px){.workspace{grid-template-columns:minmax(0,1fr) 340px}.settings{padding:0 30px}}@media(max-width:900px){.identity>span{display:none}.header{padding:0 20px;gap:18px}.workspace{grid-template-columns:minmax(0,1fr) 290px}.settings{padding:0 20px}.gesture{font-size:11px}.views button{padding:8px 12px}}
@media(max-width:680px){.header{height:66px;padding:0 16px;gap:16px}.identity h1{font-size:22px}.wordmark{font-size:26px}nav{gap:12px}nav>.text-button{display:none}.primary{font-size:11px;padding:10px}.primary svg{width:16px;height:16px}.workspace{display:flex;flex-direction:column;height:auto;min-height:0}.stage{height:68svh;min-height:420px;max-height:700px}.stage-caption{left:20px;top:20px;font-size:12px}.stage-caption>span+span{font-size:11px}.stage-bottom{bottom:18px;gap:12px}.gesture{font-size:0}.gesture:after{content:'Вращай пальцем · Масштаб — двумя';font-size:11px}.gesture span{display:none}.settings{overflow:visible;border-left:0;border-top:1px solid var(--line);padding:0 24px}.control-section{padding:24px 0}.presets button{padding:13px 8px}.presets svg{height:34px}.range-label{font-size:12px}.segmented button{font-size:12px;padding:12px}.palette-options{gap:24px}.palette-options button{font-size:11px}.petal-picker button{width:44px;height:40px}.detail-hint{font-size:11px}.color-row,.export-row,.check{font-size:12px}.panel-footer{flex-direction:row;justify-content:space-between}.toast{bottom:12px;left:16px;max-width:calc(100% - 32px)}#reset-mobile{display:block}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.mobile-reset{display:none}@media(max-width:680px){.mobile-reset{display:block;margin-top:20px}}

button[aria-pressed=true]:hover:not(:disabled){background:#30302d;color:#fff}.palette-options button[aria-pressed=true]:hover{background:none;color:var(--ink)}

.source-download{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:12px 0;text-decoration:none;color:var(--ink)}.source-download+.source-download{border-top:1px solid var(--line)}.source-download span{display:flex;flex-direction:column;gap:5px}.source-download strong{font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:4px}.source-download small{font-size:11px;line-height:1.5;color:var(--muted)}.source-download svg{flex:none}.source-download:hover strong{color:var(--blue)}

/* Studio controls retain Flowe's paper, ink and Manrope vocabulary. */
.workspace{grid-template-columns:minmax(0,1fr) 360px}.settings{padding:0 24px}.studio-section summary{font-size:13px;padding:2px 0}.studio-section[open] summary{margin-bottom:20px}.section-body h3{font-size:12px;margin:24px 0 12px;font-weight:600}.section-reset{margin-top:20px;text-align:right}.section-reset button{font-size:11px;color:var(--muted)}.parameter{margin:18px 0}.parameter-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}.parameter-heading label{font-size:11px;line-height:1.5}.parameter-heading input{width:76px;flex:none;border:1px solid #aaa9a1;border-radius:4px;background:transparent;color:var(--ink);padding:6px;font-size:11px;font-variant-numeric:tabular-nums;caret-color:var(--blue)}.parameter .detail-hint{margin:7px 0 0;font-size:10px}.select-row{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-size:11px}.select-row select{font:inherit;background:var(--paper);color:var(--ink);border:1px solid #aaa9a1;border-radius:5px;padding:9px;max-width:100%;width:100%}.quick-settings .petal-picker{margin-top:22px}.quick-settings #selected-name{margin-bottom:0}.parameter input:disabled,.select-row select:disabled{opacity:.45;cursor:not-allowed}.focus-marker{position:absolute;z-index:2;width:22px;height:22px;transform:translate(-50%,-50%);border:1px solid #fff;border-radius:50%;box-shadow:0 1px 4px #0008;pointer-events:none}.focus-marker span{position:absolute;inset:7px;border-radius:50%;background:#fff;outline:1px solid #244dc4}.focus-marker[hidden]{display:none}#viewport.picking-focus{cursor:crosshair}.studio-section .text-button[aria-pressed=true]{padding:8px;background:var(--blue);color:#fff}.studio-section .detail-hint{line-height:1.65}
@media(min-width:1500px){.workspace{grid-template-columns:minmax(0,1fr) 380px}}
@media(max-width:900px) and (min-width:681px){.workspace{grid-template-columns:minmax(0,1fr) 320px}.settings{padding:0 18px}}
@media(max-width:680px){.workspace{display:flex}.parameter-heading label,.parameter-heading input{font-size:12px}.parameter-heading input{min-height:36px;width:84px}.select-row select{min-height:42px}.check{min-height:30px}.stage-bottom .views button{padding:8px 14px}}

.stage.dark .stage-caption,.stage.dark .stage-caption>span+span,.stage.dark .gesture{color:#cad8ef}
