:root{--bg:#eff5f1;--card:#fff;--ink:#2f3c36;--muted:#6f8078;--line:#dfeae4;--accent:#4fa383;--accent-soft:#dcf0e7;--ok:#4fa383;--bad:#d2554a;--bad-soft:#fde6e3;--shadow:0 10px 30px rgba(40,90,70,.12);--r-lg:28px;--r-md:20px;font-family:Segoe UI,system-ui,-apple-system,Roboto,sans-serif}*{box-sizing:border-box;margin:0}html,body{height:100%}body{background:var(--bg);color:var(--ink)}#app{height:100%;display:flex;flex-direction:column}button{font:inherit;line-height:1.2;cursor:pointer}.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block;flex:none}.hidden{display:none!important}.top{display:flex;align-items:center;gap:10px;padding:12px 20px;flex-wrap:wrap}.logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;margin-right:auto}.logo i{width:34px;height:34px;border-radius:12px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center}.chip{display:flex;align-items:center;gap:8px;background:var(--card);border-radius:999px;padding:8px 14px;font-size:14px;white-space:nowrap;box-shadow:0 2px 8px #0000000d}.chip .ic{width:16px;height:16px;color:var(--muted)}.dot{width:9px;height:9px;border-radius:50%;background:var(--muted)}.dot.ok{background:var(--ok);box-shadow:0 0 0 4px #4fa38338}.dot.bad{background:var(--bad);box-shadow:0 0 0 4px #d2554a33}.btn-stop{border:0;background:var(--bad-soft);color:var(--bad);font-weight:600;padding:10px 18px;border-radius:999px;white-space:nowrap}.center{flex:1;display:flex;align-items:center;justify-content:center;padding:24px 16px}.card{width:100%;max-width:520px;background:var(--card);border-radius:var(--r-lg);box-shadow:var(--shadow);padding:28px;display:flex;flex-direction:column;gap:16px}.card h1{font-size:24px;line-height:1.25}.card p{color:var(--muted);line-height:1.45;font-size:15px}.field{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted)}.field input,.field textarea{font:inherit;font-size:16px;color:var(--ink);border:2px solid var(--line);border-radius:16px;padding:12px 14px;background:var(--bg);outline:none;resize:none}.field input:focus,.field textarea:focus{border-color:var(--accent)}.row{display:flex;gap:10px;align-items:stretch}.row>input{flex:1;min-width:0}.btn{border:0;min-height:52px;padding:0 22px;border-radius:18px;background:var(--accent);color:#fff;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 18px #4fa3834d}.btn:disabled{opacity:.5;cursor:default}.btn.soft{background:var(--accent-soft);color:var(--accent);box-shadow:none}.steps{display:flex;flex-direction:column;gap:10px}.step{display:flex;align-items:center;gap:12px;font-size:15px;line-height:1.35}.step b{width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:13px;flex:none}.err{color:var(--bad);font-size:14px;min-height:1em}.note{display:flex;gap:10px;align-items:center;background:var(--accent-soft);border-radius:16px;padding:10px 14px;font-size:14px;line-height:1.35}.note .ic{color:var(--accent)}.work{flex:1;min-height:0;display:flex;gap:16px;padding:0 20px 20px}.tools{display:flex;flex-direction:column;align-items:center;gap:6px;align-self:center;background:var(--card);border-radius:var(--r-lg);padding:10px 8px;box-shadow:var(--shadow)}.tool{width:52px;height:52px;border-radius:50%;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.tool:hover{background:var(--accent-soft);color:var(--accent)}.tool.on{background:var(--accent);color:#fff;box-shadow:0 6px 14px #4fa38366}.tool .ic{width:24px;height:24px}.sep{width:30px;height:1px;background:var(--line);margin:6px 0}.col{width:26px;height:26px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--line);margin:3px 0;padding:0}.col.on{box-shadow:0 0 0 3px var(--ink)}.fade{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:var(--muted);background:none;border:0;padding:4px 0}.tg{width:38px;height:22px;border-radius:11px;background:var(--line);position:relative;transition:background .2s}.tg:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .2s;box-shadow:0 1px 3px #0003}.fade.on .tg{background:var(--accent)}.fade.on .tg:after{left:19px}.stage{flex:1;min-width:0;min-height:0;background:var(--card);border-radius:var(--r-lg);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;padding:18px;position:relative;overflow:hidden}.screen{position:relative;max-width:100%;max-height:100%;height:100%;aspect-ratio:9/19.5;border-radius:26px;overflow:hidden;background:#1f2523;box-shadow:0 12px 30px #0000002e}.screen video{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;background:#1f2523}.screen canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.wait{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#cfe0d8;font-size:14px;text-align:center;padding:20px}.hint{position:absolute;top:14px;left:50%;transform:translate(-50%);font-size:13px;color:var(--muted);background:var(--card);padding:6px 14px;border-radius:999px;box-shadow:0 2px 8px #0000000f;z-index:2;white-space:nowrap}@media (max-width:760px){.work{flex-direction:column}.tools{flex-direction:row;flex-wrap:wrap;justify-content:center;align-self:stretch}.sep{display:none}.fade{flex-direction:row}.tool{width:44px;height:44px}.hint{display:none}}
