@import url('/tokens.css');
*{box-sizing:border-box}body{margin:0;background:var(--desk);color:var(--ink);font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}button,input,select{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer;color:inherit}button{border:0;background:none}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--orange);outline-offset:4px}button:hover:not(:disabled){filter:brightness(.92)}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{height:102px;padding:0 5%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{display:flex;gap:14px;align-items:center;font-family:Georgia,serif;font-size:27px;font-weight:600;letter-spacing:-1px}.brand small{display:block;font-family:"PingFang SC",sans-serif;font-size:10px;color:var(--muted);font-weight:400;letter-spacing:1px;margin-top:6px}.brand-mark{width:44px;height:46px;border-radius:13px;background:var(--forest);color:var(--paper);position:relative;font:italic 43px Georgia;text-align:center;line-height:42px}.brand-mark span{position:absolute;right:-8px;top:-10px;font:27px Georgia;color:var(--orange)}.header-actions{display:flex;align-items:center;gap:22px}.saved{font-size:11px;color:var(--muted)}.saved:before{content:'✓';margin-right:7px;color:var(--forest)}.text-button{font-size:12px;padding:8px 2px;white-space:nowrap}.icon-button{font-size:21px;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;display:inline-grid;place-items:center}main{max-width:1450px;margin:0 auto;padding:38px 5% 0}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:9px;letter-spacing:2.6px;font-weight:600;color:var(--muted)}h1{font-size:30px;letter-spacing:1px;font-weight:500;margin:12px 0 0}h1>span{color:var(--orange)}.mode-pill{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:20px;padding:9px 13px;font-size:11px;color:var(--muted)}.mode-pill i{width:6px;height:6px;border-radius:50%;background:var(--sage)}.studio{border:1px solid #d9dcd0;background:var(--paper);border-radius:15px;overflow:hidden;box-shadow:0 12px 30px #3a473407}.canvas-top{height:52px;display:flex;justify-content:space-between;align-items:center;padding:0 23px;border-bottom:1px solid var(--line)}.page-title{display:flex;align-items:center;gap:10px;font-size:12px}.tiny-star{color:var(--orange);font-size:22px}.page-number{font-size:10px;color:#9b9f95;margin-left:15px}.workspace{display:flex;min-height:350px}.tools{width:78px;flex-shrink:0;border-right:1px solid var(--line);padding:17px 14px;display:flex;align-items:center;flex-direction:column;gap:8px;background:#fbfbf5}.tool{width:49px;padding:9px 4px 7px;border-radius:9px;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted)}.tool svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.tool span{font-size:10px}.tool.active{color:var(--forest);background:#e7ede1}.tool-divider{height:1px;width:28px;background:var(--line);margin:7px 0}.colors{display:flex;flex-direction:column;gap:10px;padding:4px}.swatch{width:19px;height:19px;border-radius:50%;border:3px solid var(--paper);outline:1px solid transparent}.swatch.selected{outline-color:var(--forest)}.ink{background:#313d38}.terracotta{background:#d66849}.blue{background:#5e8ca5}.green{background:#9baa83}.yellow{background:#d5b04e}.size-label{font-size:9px;color:var(--muted);margin-top:6px}#brush-size{width:44px;height:12px;accent-color:var(--forest)}.small-tool{font-size:24px;height:27px;line-height:22px}.paper{position:relative;flex:1;min-width:0;background-color:var(--paper);background-image:radial-gradient(#bcc4af55 .65px,transparent .65px);background-size:22px 22px;aspect-ratio:1200/740;align-self:center}.paper canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.paper.playing canvas{cursor:grab}.paper-label{position:absolute;top:22px;left:25px;font-size:10px;color:#949d8d;display:flex;align-items:center;gap:7px;pointer-events:none}.live-dot{height:5px;width:5px;background:var(--sage);border-radius:50%}.playing .live-dot{background:var(--orange)}.paper-note{position:absolute;right:28px;bottom:28px;font-size:11px;line-height:1.9;color:#a2a798;transform:rotate(-4deg);pointer-events:none}.empty-hint{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);text-align:center;font-size:22px;color:#a1aa97;pointer-events:none;width:90%}.empty-hint span{display:block;font-size:12px;margin-top:15px}.canvas-bottom{min-height:76px;display:flex;justify-content:space-between;gap:16px;align-items:center;border-top:1px solid var(--line);padding:14px 24px}.part-controls,.play-controls{display:flex;align-items:center;gap:14px}.part-controls label{font-size:11px;color:var(--muted)}select{max-width:120px;border:1px solid var(--line);background:#f8f9f1;border-radius:7px;padding:8px;color:var(--ink);font-size:12px}.play-button{display:flex;align-items:center;justify-content:center;gap:13px;background:var(--forest);color:#fffdf3;border-radius:10px;min-width:145px;height:44px;padding:0 22px;font-size:14px;letter-spacing:1px;box-shadow:0 3px 0 #213f34}.play-button:active{transform:translateY(2px);box-shadow:0 1px 0 #213f34}.speed-control{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}#speed{width:58px;accent-color:var(--forest)}#speed-value{width:24px}.below{display:flex;gap:30px;align-items:center;margin-top:27px}.starter{flex:1;min-width:0}.section-label{font-size:12px;margin-bottom:14px}.section-label>span{font-size:10px;color:var(--muted);margin-left:10px}.examples{display:flex;gap:10px}.example{display:flex;align-items:center;text-align:left;border:1px solid var(--line);background:#f9f9f2;border-radius:10px;padding:12px 13px;gap:10px;flex:1;min-width:0;transition:background .15s}.example.selected{border-color:#a5b7a3;background:#edf0e4}.example svg{width:55px;height:39px;flex-shrink:0;fill:none;stroke:var(--forest);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.example:nth-child(2) svg{stroke:var(--blue)}.example:nth-child(3) svg{stroke:var(--orange)}.example span{font-size:11px;white-space:nowrap}.example small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.example b{margin-left:auto;font-size:15px;font-weight:400;color:#929d89}.blank-example{min-width:82px;font-size:10px;color:var(--muted);border:1px dashed #c9cfbf;border-radius:10px;padding:10px}.blank-example span{display:block;font-size:23px;margin-bottom:3px}.little-note{display:flex;align-items:center;gap:12px;color:var(--muted);padding-top:24px}.little-note>span{font-size:36px;color:var(--orange)}.little-note p{font-size:11px;line-height:1.9;white-space:nowrap}.status-row{display:flex;justify-content:space-between;gap:20px;margin-top:17px;align-items:center}.status-row p{color:var(--muted);font-size:11px;line-height:1.7}.status-row p:before{content:'↳';margin-right:8px;color:var(--orange)}footer{display:flex;justify-content:space-between;padding:22px 5%;font-size:9px;color:#a0a593;letter-spacing:1px}.inspector{padding:24px;background:#e9eddf;border-radius:12px;margin-top:12px}.inspector h2{font-size:16px;font-weight:500}.inspector-head{display:flex;justify-content:space-between;align-items:center}.inspector pre{max-height:320px;overflow:auto;background:#f8faf2;padding:18px;border-radius:8px;font-size:11px;line-height:1.7}.inspector ol{font-size:11px;line-height:1.9;color:var(--muted)}#scene-summary{display:flex;gap:10px;flex-wrap:wrap}.entity-chip{border:1px solid #c7d2c0;border-radius:8px;padding:10px;font-size:12px}.entity-chip small{display:block;margin-top:6px;color:var(--muted);font-size:10px}dialog{border:1px solid var(--line);border-radius:18px;padding:34px;max-width:500px;width:calc(100% - 32px);background:var(--paper);color:var(--ink);box-shadow:0 25px 90px #20352633}dialog::backdrop{background:#293d3355;backdrop-filter:blur(3px)}dialog h2{font-size:25px;font-weight:500}dialog p{line-height:1.9;font-size:13px;color:var(--muted)}.dialog-close{position:absolute;right:16px;top:16px}.checkbox{display:flex;align-items:center;gap:8px;margin:22px 0 12px}.checkbox input{accent-color:var(--forest)}dialog .muted{font-size:11px}dialog details{font-size:12px;margin:20px 0}dialog pre{font-size:10px;white-space:pre-wrap;line-height:1.9}.dialog-done{margin-top:25px;width:100%}.busy .play-button{opacity:.65}.busy .live-dot{animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.25}}@media(min-width:1500px){.paper{max-height:660px}}@media(max-width:1100px){.little-note{display:none}.header-actions{gap:15px}.saved{display:none}.speed-control{display:none}.example{padding:10px}.page-number{display:none}}@media(max-width:700px){.topbar{height:80px;padding:0 5%}.brand{font-size:23px}.brand small{font-size:8px;letter-spacing:0}.brand-mark{width:35px;height:38px;font-size:36px;line-height:35px}.header-actions{gap:9px}.header-actions>.text-button{font-size:10px}.header-actions #import{display:none}main{padding-top:25px}.intro{align-items:flex-start;gap:10px;margin-bottom:20px}.eyebrow{font-size:8px;letter-spacing:1.7px}h1{font-size:23px;letter-spacing:0;line-height:1.5}.mode-pill{font-size:9px;padding:7px;white-space:nowrap;margin-top:2px}.workspace{flex-direction:column-reverse;min-height:0}.tools{width:100%;height:64px;flex-direction:row;padding:8px 12px;border-right:0;border-top:1px solid var(--line);gap:8px;overflow-x:auto}.tool{width:38px;flex-shrink:0;padding:5px}.tool span{font-size:8px}.tool svg{width:20px;height:20px}.colors{flex-direction:row;gap:5px;padding:0}.swatch{width:17px;height:17px;flex-shrink:0}.tool-divider{height:26px;width:1px;margin:0 3px;flex-shrink:0}.size-label,#brush-size{display:none}.small-tool{font-size:23px;padding:0 4px}.paper{width:100%;aspect-ratio:1200/900}.paper canvas{position:absolute;top:50%;transform:translateY(-50%);height:auto;aspect-ratio:1200/740}.paper-note{right:15px;bottom:15px;font-size:9px}.paper-label{top:14px;left:16px}.canvas-top{padding:0 14px;height:45px}.canvas-bottom{padding:12px;flex-wrap:wrap;gap:14px;justify-content:center}.part-controls{width:100%;justify-content:center;gap:12px}.play-controls{width:100%;justify-content:center}.speed-control{display:flex}.play-button{height:42px;min-width:140px}.below{margin-top:22px}.examples{flex-wrap:wrap}.example{flex:1 1 43%;padding:10px}.blank-example{flex:1 1 43%;display:flex;align-items:center;justify-content:center;gap:10px}.blank-example span{margin:0}.status-row{align-items:flex-start;gap:5px}.status-row p{font-size:10px}.status-row button{font-size:10px;margin-top:4px;flex-shrink:0}footer{font-size:8px;letter-spacing:0}.inspector{padding:15px}.empty-hint{font-size:18px}.empty-hint span{font-size:10px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.auto-caption{font-size:12px;color:var(--muted)}#manual-controls .part-controls{margin-top:16px;flex-wrap:wrap}@media(max-width:700px){.auto-caption{width:100%;text-align:center}}

.feature-demos{margin-top:24px}.demo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.demo-number{font-family:Georgia,serif!important;font-size:23px!important;color:var(--orange);padding:4px 8px}.demo-grid .example{min-height:76px}@media(max-width:900px){.demo-grid{grid-template-columns:1fr}.demo-grid .example{min-height:64px}}

.progress-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin:22px 0 18px}#progress-counter{font-weight:600;color:var(--forest)}.progress-steps{list-style:none;margin:0;padding:0;display:grid;gap:12px}.progress-steps li{display:flex;align-items:center;gap:12px;color:#87917f;font-size:13px}.progress-steps li>span{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);flex-shrink:0;font-size:11px}.progress-steps li.current{color:var(--ink);font-weight:600}.progress-steps li.current>span{background:var(--forest);color:var(--paper);border-color:var(--forest)}.progress-steps li.complete>span{background:#e6eddf;color:var(--forest)}#progress-message{min-height:48px;padding:12px 14px;border-radius:8px;background:#edf0e5;font-size:12px}.progress-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px}#progress-dialog h2{font-size:23px;line-height:1.35}.example span{white-space:normal}.example small{line-height:1.5}.section-label>span{display:inline-block}.auto-caption{max-width:40%;line-height:1.5}.brand small{letter-spacing:.3px}@media(max-width:700px){h1{font-size:24px}.intro{flex-wrap:wrap}.auto-caption{max-width:100%}.section-label>span{margin-left:0;display:block;margin-top:6px}.header-actions>.text-button{max-width:64px;white-space:normal}.paper-note{font-size:8px}.demo-grid .example span{font-size:12px}#progress-dialog{padding:24px}.progress-steps li{font-size:12px}}

.object-tags{position:absolute;inset:0;pointer-events:none}.object-tag{position:absolute;transform:translate(-50%,-100%);margin-top:-8px;padding:5px 9px;background:#fffef8ed;border:1px solid #cdd7c5;border-radius:6px;color:var(--forest);font-size:11px;line-height:1.3;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 2px 6px #35473a09}@media(max-width:700px){.object-tags{top:50%;bottom:auto;height:auto;aspect-ratio:1200/740;transform:translateY(-50%)}.object-tag{font-size:10px;max-width:100px;padding:3px 6px;margin-top:-5px}}

.scene-gallery{margin-top:28px}.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.gallery-heading .section-label{margin:0}.gallery-heading .section-label>span{display:block;margin:7px 0 0;line-height:1.6}.gallery-heading .blank-example{white-space:nowrap;min-height:40px}.scene-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.scene-grid .scene-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:12px;gap:9px;min-width:0;background:var(--paper)}.scene-card canvas{width:100%;height:auto;aspect-ratio:360/222;border-bottom:1px solid var(--line)}.scene-grid .scene-card .scene-level{font-size:9px;color:var(--muted);letter-spacing:.4px}.scene-card.selected{background:#e8eedf;box-shadow:inset 0 0 0 1px var(--forest)}.scene-card small{min-height:30px}@media(max-width:1100px){.scene-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.scene-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-heading{align-items:flex-start}.gallery-heading .blank-example{flex:0 0 auto}.scene-grid .scene-card{padding:10px}.scene-card small{font-size:10px}}

.labels-toggle{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);cursor:pointer;white-space:nowrap}.labels-toggle input{accent-color:var(--forest);width:16px;height:16px;margin:0}

.cache-status{font-size:11px;color:var(--muted);white-space:nowrap}

.view-toggles{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}.canvas-bottom{flex-wrap:wrap;gap:16px}

.scene-direction{padding:12px 24px 16px;border-bottom:1px solid var(--line);background:var(--paper)}.scene-direction label{display:block;font-size:12px;margin-bottom:8px}.scene-direction label span{color:var(--muted);font-size:10px;margin-left:8px}.scene-direction textarea{display:block;width:100%;resize:vertical;min-height:58px;max-height:180px;font:inherit;font-size:12px;line-height:1.6;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:8px;padding:9px 12px}.scene-direction textarea::placeholder{color:var(--muted)}.scene-direction textarea:focus-visible{outline:2px solid var(--forest);outline-offset:2px}

#share-url{width:100%;padding:12px;margin:10px 0 16px;font:inherit;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}

.privacy-note{margin:10px 0 0;font-size:12px;line-height:1.6;color:var(--ink)}

.studio-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:0 0 24px}.studio-tabs [role=tab]{padding:12px 24px;border-radius:8px 8px 0 0;color:var(--muted);border-bottom:3px solid transparent;font-size:14px}.studio-tabs [aria-selected=true]{color:var(--forest);border-bottom-color:var(--forest);background:#e7ecdf}.studio-tabs button:focus-visible{outline:2px solid var(--forest);outline-offset:2px}[role=tabpanel][hidden]{display:none!important}.settings-panel{padding:12px 0 40px}.settings-panel h2{font-size:26px;font-weight:500;margin:0 0 24px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-card{padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:14px}.settings-card h3{margin:0 0 16px;font-size:16px;font-weight:500}.settings-card p{font-size:13px;line-height:1.7;color:var(--muted)}.settings-card .view-toggles{flex-direction:column;align-items:flex-start;margin-bottom:24px}.settings-card .speed-control{display:flex;font-size:12px}.settings-card details{margin-top:24px;font-size:12px}.settings-card .part-controls{flex-wrap:wrap;margin-top:16px}.file-actions{display:flex;gap:20px;flex-wrap:wrap}.canvas-bottom{justify-content:flex-end}.intro{margin-bottom:20px}.scene-gallery{margin-top:0}.tools{gap:7px}.page-number{display:none}.paper-note{display:none}@media(max-width:700px){.settings-grid{grid-template-columns:1fr}.studio-tabs{gap:0}.studio-tabs [role=tab]{flex:1;padding:12px 14px}.settings-card{padding:20px}.canvas-bottom .play-controls{flex-wrap:wrap}.settings-card #import{display:inline-block}.tools{gap:8px}.privacy-note{font-size:11px}}

.display-options{border-top:1px solid var(--line);padding:12px 24px;font-size:12px;color:var(--muted)}.display-options summary{cursor:pointer}.display-options .view-toggles{margin:16px 0}.display-options .speed-control{display:flex;margin:12px 0}

.language-switch{display:flex;gap:3px;padding:3px;border:1px solid #c9cfbf;border-radius:8px;flex-shrink:0}.language-switch button{font:inherit;font-size:12px;padding:6px 9px;margin:0;border:0;border-radius:5px;background:transparent;color:#345b48;cursor:pointer}.language-switch [aria-pressed=true]{background:#345b48;color:#fffef8}.language-switch button:focus-visible{outline:2px solid #345b48;outline-offset:2px}html[lang=zh-CN] .brand small{letter-spacing:1px}html[lang=zh-CN] h1{letter-spacing:1px}@media(max-width:700px){.language-switch button{padding:6px;font-size:11px}}

.scene-card .example-prompt{margin:0;padding:0 8px 8px;font-size:13px;line-height:1.6;color:var(--ink);text-align:left}.scene-card{justify-content:flex-start}.scene-direction{border-radius:16px 16px 0 0}

/* A single quiet action bar, with generation and playback grouped separately. */
.canvas-bottom{padding:16px 20px;min-height:80px}.canvas-bottom .play-controls{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.generation-controls,.playback-controls{display:flex;align-items:center;gap:8px}.playback-controls{margin-left:auto}.canvas-bottom .cache-status{font-size:11px;line-height:1.4;border:1px solid var(--line);background:#edf0e6;color:#64745f;border-radius:6px;padding:5px 8px;white-space:normal;max-width:135px}.control-button{height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;border:1px solid #cbd3c4;border-radius:9px;background:var(--paper);color:var(--forest);font-size:12px;white-space:nowrap;transition:background .15s,border-color .15s}.control-button svg{height:17px;width:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.control-button:hover:not(:disabled){background:#edf1e7;border-color:#9cac96}.control-button:active:not(:disabled){background:#e3e9dc}.control-button:disabled{opacity:1;color:#919b8d;background:#f4f5ee;border-color:#e2e5dc;cursor:not-allowed}.restart-button{width:42px;padding:0}.canvas-bottom #play{height:42px;min-width:126px;border:1px solid var(--forest);border-radius:9px;box-shadow:none;font-size:14px;letter-spacing:.3px;gap:9px;padding:0 20px}.canvas-bottom #play:hover:not(:disabled){background:#284e3d}.canvas-bottom #play:active:not(:disabled){transform:translateY(1px)}.canvas-bottom #play-icon{font-size:13px;line-height:1}.canvas-bottom button:focus-visible{outline:2px solid var(--forest);outline-offset:3px}@media(max-width:700px){.canvas-bottom{padding:12px}.canvas-bottom .play-controls{gap:12px;justify-content:space-between}.generation-controls{flex-wrap:wrap}.playback-controls{flex:1;justify-content:flex-end}.control-button{height:40px;padding:0 10px}.restart-button{width:40px;padding:0}.canvas-bottom #play{height:40px;min-width:110px}}@media(max-width:440px){.generation-controls{width:100%;justify-content:space-between}.playback-controls{width:100%}.playback-controls #play{flex:1}}

/* One shared header for identity, navigation and language. */
.topbar{height:auto;min-height:88px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;padding:18px max(5%,calc((100vw - 1320px)/2));background:var(--paper)}.topbar .brand{font-size:28px;gap:12px;white-space:nowrap}.topbar .brand-mark{width:37px;height:40px;font-size:40px;line-height:37px}.topbar .header-actions{justify-self:end}.topbar .studio-tabs{margin:0;border:0;gap:4px;padding:4px;border-radius:10px;background:#ecefe5}.topbar .studio-tabs [role=tab]{flex:initial;border:0;border-radius:7px;padding:9px 20px;font-size:13px;line-height:20px}.topbar .studio-tabs [aria-selected=true]{background:var(--paper);color:var(--forest);box-shadow:0 1px 4px #263c2914}main{padding-top:28px}@media(max-width:700px){.topbar{min-height:0;grid-template-columns:1fr auto;gap:16px;padding:16px 5%}.topbar .brand{font-size:24px}.topbar .studio-tabs{grid-row:2;grid-column:1/-1;justify-self:stretch}.topbar .studio-tabs [role=tab]{flex:1}.topbar .header-actions{grid-row:1;grid-column:2}.topbar .brand-mark{width:32px;height:35px;font-size:35px;line-height:32px}main{padding-top:20px}}

/* Consistent, font-independent history controls. */
.tools .small-tool{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;padding:8px;border-radius:8px;line-height:1;color:var(--forest)}
.small-tool svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tools .small-tool:hover:not(:disabled){background:#e7ede1;filter:none}
.tools .small-tool:active:not(:disabled){background:#dce5d5}
.tools .small-tool:disabled{opacity:1;color:#bdc5b9}

/* Examples lead the landing page, with a clear blank-canvas entry. */
.gallery-heading{margin-bottom:24px;align-items:center}
.gallery-heading .draw-scratch{flex:none;min-height:56px;padding:16px 28px;border:1px solid var(--forest);border-radius:12px;background:var(--forest);color:var(--paper);font-size:17px;font-weight:600;text-align:center;box-shadow:0 3px 0 #243f32}
.gallery-heading .draw-scratch:hover{background:#284e3d}
.scene-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media(max-width:700px){.gallery-heading{flex-direction:column;align-items:stretch}.gallery-heading .draw-scratch{width:100%;min-height:54px}.scene-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:420px){.scene-grid{grid-template-columns:1fr}}

.canvas-bottom #play{height:42px;min-width:0;padding:5px 13px;gap:7px;flex:0 0 auto}
.play-copy{display:flex;flex-direction:column;align-items:center;gap:2px;line-height:1.15}
#play-hint{font-size:10px;font-weight:400;letter-spacing:0;color:#e0e9dc}

.playback-controls .restart-button{width:auto;padding:0 13px}

#share-dialog .share-actions{display:flex;gap:10px;margin-top:20px}
#share-dialog .share-actions .control-button{flex:1;min-height:44px;height:auto;padding:11px 16px;font-size:14px;text-align:center;text-decoration:none}
#share-dialog #copy-share{background:var(--forest);border-color:var(--forest);color:var(--paper)}
#share-dialog #copy-share:hover{background:#284e3d}
#share-dialog #share-link:hover{background:#edf1e7}
