:root{--bg: #f7f5fd;--surface: #ffffff;--text: #16151a;--muted: #5d5a66;--line: #ded7f3;--accent: #7864d7;--accent-hover: #6551c8;--accent-soft: #ece7fb;--radius: 14px;--font: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;color-scheme:light}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body{overflow-x:hidden}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.page{max-width:1240px;margin:0 auto;padding:28px 40px 56px}.wordmark{font-weight:800;font-size:28px;letter-spacing:-.02em;color:var(--text);text-decoration:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;background:var(--accent);color:#fff;font-weight:700;font-size:17px;padding:0 26px;height:56px;white-space:nowrap;transition:background .15s ease}.btn:hover:not(:disabled):not([aria-disabled=true]){background:var(--accent-hover)}.btn[aria-disabled=true],.btn:disabled{opacity:.7}.btn[aria-disabled=true]{cursor:not-allowed}.btn.wide{width:100%}.link-btn{border:0;background:none;padding:0;color:var(--accent);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;display:inline-flex;align-items:center;gap:6px}.link-btn:hover{color:var(--accent-hover)}.muted{color:var(--muted)}.small{font-size:14px}.error{color:#b42318}.prompt{display:flex;gap:16px;width:100%}.prompt input{flex:1;min-width:0;height:56px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);padding:0 20px;font:inherit;font-size:18px;color:var(--text)}.prompt input::placeholder{color:#85818f}.prompt input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}.home .topbar{height:40px}.hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:44px}.hero h1{font-size:clamp(34px,5.2vw,64px);line-height:1.05;letter-spacing:-.035em;font-weight:800;margin:0 0 18px}.hero .lead{font-size:clamp(17px,1.9vw,22px);line-height:1.45;color:#3f3c47;max-width:720px;margin:0 0 36px}.hero .prompt{max-width:900px}.prompt-field{position:relative;flex:1;min-width:0;display:flex}.prompt-field input{width:100%}.ghost{position:absolute;left:21.5px;right:20px;top:50%;transform:translateY(-50%);font-size:18px;line-height:1.3;color:#4a4654;text-align:left;white-space:nowrap;overflow:hidden;pointer-events:none}.caret{display:inline-block;width:2px;height:1.15em;margin-left:1px;vertical-align:-.2em;background:var(--accent);animation:caret-blink 1s steps(1) infinite}@keyframes caret-blink{50%{opacity:0}}.btn.pressing{animation:btn-press .24s ease-out}@keyframes btn-press{40%{transform:scale(.95);background:var(--accent-hover)}}.demo-frame{width:100%;max-width:820px;margin-top:36px;border-radius:24px;overflow:hidden;background:var(--accent-soft);box-shadow:0 1px #16151a08}.demo-frame.waiting{background:transparent;box-shadow:none}.demo-frame .scene,.demo-frame .placeholder{display:block;width:100%;height:100%}.demo-frame .scene,.demo-anim .demo-bg{animation:demo-fade .26s ease-out both}.demo-anim .demo-drop{transform-box:fill-box;transform-origin:50% 100%;animation:demo-drop .56s cubic-bezier(.3,.7,.4,1) both}@keyframes demo-fade{0%{opacity:0}}@keyframes demo-drop{0%{opacity:0;transform:translateY(-70px)}45%{opacity:1}62%{transform:translateY(0) scale(1.02,.97)}80%{transform:translateY(-7px) scale(.995,1.005)}to{opacity:1;transform:none}}.demo-caption{margin:18px 0 0;font-size:15px;color:#6b6775}.demo-caption.pending{visibility:hidden}.demo-link{margin-top:18px;font-size:18px}@media (prefers-reduced-motion: reduce){.demo-frame .scene,.hint,.demo-anim .demo-drop,.demo-anim .demo-bg,.btn.pressing,.caret{animation:none}}.chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:900px;margin-top:16px}.chip{border:1px solid var(--line);background:var(--surface);color:#3f3c47;border-radius:999px;padding:7px 14px;font:inherit;font-size:14px;line-height:1.2;transition:border-color .15s ease,color .15s ease,background .15s ease}.chip:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.chip:disabled{opacity:.6}.ai-left{margin:10px 0 0;font-size:13px;color:var(--muted)}.demo-caption.loading{color:var(--accent)}.strip{width:100%;margin-top:22px}.strip-title{font-size:15px;font-weight:600;color:#3f3c47;margin:0 0 12px}.strip-row{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}.strip-item{position:relative;border:1px solid transparent;border-radius:14px;color:var(--muted);transition:background .2s ease,border-color .2s ease,color .2s ease}.strip-add{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;border:0;border-radius:14px;background:none;padding:8px 4px 6px;font:inherit;color:inherit;cursor:grab;touch-action:pan-x;user-select:none;-webkit-user-select:none}.strip-add:active{cursor:grabbing}.strip-item.blocked .strip-add{cursor:not-allowed;opacity:.38}.strip-count{position:absolute;top:4px;left:6px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;pointer-events:none}.strip-remove{position:absolute;top:3px;right:3px;width:22px;height:22px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:#3f3c47}.strip-remove:hover{border-color:var(--accent);color:var(--accent)}.strip-ghost{position:fixed;left:0;top:0;z-index:80;width:84px;height:64px;pointer-events:none;opacity:.92;filter:drop-shadow(0 6px 12px rgba(22,21,26,.25))}.strip-ghost svg{width:100%;height:100%}.canvas-wrap.drop-ready .scene{outline:2px dashed rgba(120,100,215,.55);outline-offset:4px}.canvas-wrap.drop-over .scene{outline:2px solid var(--accent)}.strip-item:hover{background:var(--surface)}.strip-thumb{width:100%;height:52px;display:grid;place-items:center;opacity:.55;filter:saturate(.6);transition:opacity .2s ease,filter .2s ease}.strip-thumb svg{max-width:100%;max-height:100%}.strip-item:hover .strip-thumb,.strip-item.lit .strip-thumb{opacity:1;filter:none}.strip-item.lit{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);transform:translateY(-2px)}.strip-name{font-size:13px;line-height:1.2}.note-box .chips{justify-content:flex-start;margin-top:8px}.hint{position:fixed;z-index:61;display:flex;align-items:center;gap:14px;background:#1f1d24;color:#fff;border-radius:14px;padding:10px 10px 10px 16px;box-shadow:0 10px 30px #16151a40;animation:demo-fade .2s ease-out both}.hint p{margin:0;flex:1;font-size:14px;line-height:1.35}.btn.small{height:34px;padding:0 14px;font-size:14px;border-radius:9px}.editor-head{display:flex;align-items:center;gap:40px}.editor-head .prompt{max-width:940px}.editor-head .prompt input,.editor-head .btn{height:52px}.note{margin:14px 0 0;color:var(--muted);font-size:14px}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:48px;margin-top:36px;align-items:start}.canvas-wrap{position:relative;border-radius:24px;overflow:visible;display:flex;justify-content:center}.canvas-wrap .scene{display:block;width:100%;height:auto;max-height:calc(100vh - 230px);border-radius:24px;user-select:none;-webkit-user-select:none}.canvas-wrap.fmt-vertical .scene,.canvas-wrap.fmt-square .scene{width:auto;max-width:100%;min-height:0;height:min(calc(100vh - 230px),760px)}.canvas-wrap.busy .scene{opacity:.55;transition:opacity .2s}.canvas-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;margin:0;padding:24px;text-align:center;font-size:15px;color:var(--muted);pointer-events:none}.link-btn.quiet{color:var(--muted)}.scene-item{cursor:grab}.scene-item:active{cursor:grabbing}.selection rect{stroke:var(--accent);stroke-width:1.5px;stroke-dasharray:6 4}.used{margin:22px 0 0;color:#3f3c47;font-size:16px;line-height:1.6}.used .dot{color:#9a96a3;margin:0 10px}.toolbar-float{position:absolute;z-index:5}.toolbar{display:flex;gap:2px;background:var(--surface);border-radius:14px;padding:6px;box-shadow:0 6px 24px #281e5a24,0 1px 2px #281e5a14}.toolbar button{width:44px;height:44px;border:0;border-radius:10px;background:transparent;display:grid;place-items:center;color:#2b2933}.toolbar button+button{box-shadow:-1px 0 #efecf5}.toolbar button:hover:not(:disabled){background:var(--accent-soft)}.toolbar button.on{color:var(--accent)}.toolbar button:disabled{opacity:.35}.settings{display:flex;flex-direction:column;gap:32px;padding-top:8px}.settings h3{margin:0 0 16px;font-size:22px;font-weight:700;letter-spacing:-.01em}.formats{display:flex;gap:12px}.fmt{width:72px;height:64px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);display:grid;place-items:center}.fmt.on{border-color:var(--accent);background:var(--accent-soft)}.fmt-shape{display:block;border:2px solid #2b2933;border-radius:4px}.fmt-shape.square{width:26px;height:26px}.fmt-shape.horizontal{width:42px;height:22px}.fmt-shape.vertical{width:22px;height:34px}.dots{display:flex;gap:16px;margin-bottom:14px}.dot-btn{width:56px;height:56px;border-radius:50%;border:3px solid transparent;background:var(--c) content-box;padding:4px}.dot-btn.custom{background:linear-gradient(135deg,var(--c) 50%,var(--c2) 50%) content-box}.dot-btn.on{border-color:var(--accent)}.seg{display:grid;grid-template-columns:1fr 1fr;border:1.5px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}.seg button{border:0;background:transparent;height:56px;font-size:18px}.seg button.on{background:var(--accent-soft);box-shadow:inset 0 0 0 1.5px var(--accent);border-radius:10px}.size-hint{margin:8px 0 0;font-size:12px;line-height:1.35;color:var(--muted)}.size-hint.stacked{display:grid}.size-hint.stacked>span{grid-area:1 / 1}.size-hint.phone{position:absolute;top:100%;right:0;z-index:5;margin:6px 0 0;padding:6px 10px;border-radius:10px;background:var(--surface);box-shadow:0 4px 16px #16151a1f;font-size:12px;white-space:nowrap}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#16151a52;display:grid;place-items:center;z-index:50;padding:16px}.sheet{width:min(720px,100%);max-height:calc(100vh - 32px);overflow-x:hidden;overflow-y:auto;background:var(--surface);border-radius:20px;padding:22px 24px 24px;box-shadow:0 20px 60px #1e144640;outline:none}.sheet.narrow{width:min(480px,100%)}.sheet-head{display:flex;align-items:center;justify-content:space-between}.sheet-head h2{margin:0;font-size:22px}.icon-btn{border:0;background:none;width:40px;height:40px;border-radius:10px;display:grid;place-items:center}.icon-btn:hover{background:var(--accent-soft)}.picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(124px,1fr));gap:12px;margin-top:16px}.picker-tile{border:1.5px solid var(--line);border-radius:14px;padding:8px}.picker-tile.on{border-color:var(--accent);background:#faf8ff}.picker-thumb{width:100%;aspect-ratio:4 / 3;border:0;background:none;padding:6px;display:block}.picker-thumb svg{width:100%;height:100%}.picker-row{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:14px}.stepper{display:inline-flex;align-items:center;gap:2px}.stepper button{width:26px;height:26px;border-radius:8px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;padding:0}.stepper button:disabled{opacity:.35}.stepper .count{min-width:16px;text-align:center;font-variant-numeric:tabular-nums}textarea{width:100%;font:15px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;resize:vertical;margin-top:4px}textarea:focus{outline:none;border-color:var(--accent)}.sheet-backdrop.side{background:#16151a1f;place-items:center end}.swatch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 10px;margin:14px 0 6px}.swatch{display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;text-align:center}.swatch-color{position:relative;width:100%;height:46px;border-radius:12px;border:1px solid rgba(0,0,0,.12);box-shadow:inset 0 0 0 2px #fff6;transition:transform .15s ease,box-shadow .15s ease}.swatch:hover .swatch-color,.swatch:focus-within .swatch-color{transform:translateY(-1px);box-shadow:0 0 0 2px var(--accent)}.swatch-color input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}.swatch-name{font-size:13px;color:#3f3c47}.swatch-hex{font:11px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--muted)}.swatch.bad .swatch-color{box-shadow:0 0 0 2px #d4483b}.swatch-warn{font-size:11px;line-height:1.2;color:#c0392b}.hex-field{display:block;margin-top:8px}.palette-format{margin-top:8px}.palette-format summary{cursor:pointer;font-size:13px;color:var(--accent)}.palette-format p{margin:6px 0 0}.palette-actions{gap:12px;flex-wrap:wrap}.palette-secondary{display:flex;flex-wrap:wrap;gap:6px 16px}.sheet-actions{display:flex;align-items:center;justify-content:space-between;margin-top:16px}.sheet-actions .btn{height:48px}@media (max-width: 1000px){.page{padding:24px 24px 48px}.editor-head{gap:24px}.editor-grid{grid-template-columns:minmax(0,1fr);gap:20px;margin-top:20px}.settings{order:-1;flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:16px 28px;padding-top:0}.settings h3{font-size:13px;font-weight:500;color:var(--muted);margin-bottom:8px}.settings .group{display:flex;flex-direction:column}.fmt{width:52px;height:46px}.dots{gap:10px;margin-bottom:0}.dot-btn{width:44px;height:44px;padding:3px}.settings .group .link-btn{margin-top:6px;font-size:13px}.seg button{height:46px;width:52px}.settings>.btn.wide{width:auto;margin-left:auto;height:48px}.canvas-wrap .scene,.canvas-wrap.fmt-vertical .scene,.canvas-wrap.fmt-square .scene{max-height:none}.canvas-wrap.fmt-vertical .scene,.canvas-wrap.fmt-square .scene{height:auto;width:100%;max-width:620px}}@media (max-width: 640px){.page{padding:18px 16px 32px}.wordmark{font-size:24px}.hero{align-items:stretch;text-align:left;padding-top:26px}.hero h1{font-size:38px}.hero .lead{font-size:17px;margin-bottom:26px}.hero .prompt{flex-direction:column;gap:12px}.hero .prompt input{flex:none}.hero .btn{width:100%}.demo-caption{margin-top:14px;font-size:14px;text-align:center}.demo-frame{margin-top:16px;border-radius:18px}.hero .prompt-field{flex:none}.chips{justify-content:flex-start;margin-top:12px;gap:6px}.chip{font-size:13px;padding:6px 11px}.hero .chips .chip:nth-child(n+3){display:none}.hero{padding-top:12px}.hero h1{font-size:34px;margin-bottom:10px}.hero .lead{font-size:16px;margin-bottom:16px}.hero .prompt{gap:10px}.hero .prompt input,.hero .btn{height:50px}.strip-row{display:flex;overflow-x:auto;gap:6px;margin:0 -16px;padding:2px 16px 6px;scroll-snap-type:x proximity;scrollbar-width:none}.strip-row::-webkit-scrollbar{display:none}.strip-item{flex:0 0 76px;scroll-snap-align:start}.demo-link{align-self:center;margin-top:12px;font-size:16px}.editor{padding-bottom:150px}.editor-head{flex-direction:column;align-items:stretch;gap:14px}.editor-head .prompt{gap:10px}.editor-head .prompt input{height:48px;font-size:16px;padding:0 14px}.editor-head .btn{height:48px;padding:0 18px;font-size:16px}.settings{position:relative;flex-wrap:nowrap;gap:10px;justify-content:space-between}.settings .group+.group{padding-left:10px;border-left:1px solid var(--line)}.formats{gap:4px}.fmt{width:34px;height:40px;border:0;background:transparent}.fmt.on{background:transparent}.fmt.on .fmt-shape{background:var(--accent-soft);border-color:var(--accent)}.fmt-shape.square{width:20px;height:20px}.fmt-shape.horizontal{width:30px;height:17px}.fmt-shape.vertical{width:17px;height:27px}.dots{gap:4px}.dot-btn{width:34px;height:34px;border-width:2px;padding:2px}.seg{border-radius:999px}.seg button{width:34px;height:34px;font-size:15px}.seg button.on{background:var(--accent);color:#fff;border-radius:999px;box-shadow:none}.canvas-wrap .scene{border-radius:18px}.used{font-size:14px}.used .dot{margin:0 6px}.bottom-bar{position:fixed;left:0;right:0;bottom:0;z-index:20;padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgba(247,245,253,0),var(--bg) 22%);display:flex;flex-direction:column;gap:10px}.bottom-bar .toolbar{justify-content:space-between;background:#f0edf8;box-shadow:none}.bottom-bar .toolbar button+button{box-shadow:none}.bottom-bar .btn{height:54px}.sheet-backdrop,.sheet-backdrop.side{place-items:end stretch;padding:0}.sheet.palette-sheet{max-height:62vh;padding-bottom:0}.palette-sheet .swatch-color{height:38px}.palette-actions{position:sticky;bottom:0;background:var(--surface);padding:10px 0 14px;margin-top:10px}.sheet{border-radius:20px 20px 0 0;max-height:85vh;width:100%}.picker-grid{grid-template-columns:repeat(2,1fr)}}
