/* Shared generation and memory workspace. */
#demo .section-bar{margin-bottom:16px;gap:16px;flex-wrap:wrap}
#demo .section-bar h2{font-size:24px;font-weight:500;letter-spacing:-.5px;line-height:1.2;margin:0}
#demo .scene-picker{padding:4px;background:#f3f3ef;border:1px solid #e7e8e0;border-radius:11px;gap:3px}
#demo .scene-picker button{border-radius:8px;padding:5px 11px 5px 5px;color:#697064;font:inherit;font-size:12px;cursor:pointer}
#demo .scene-picker button[aria-pressed=true]{background:white;border-color:#dedfd6;color:#232a22;box-shadow:0 1px 3px #22331a0a}
#demo .scene-picker img{border-radius:5px;width:32px;height:24px}
.demo-workspace{border:1px solid #e0e3d9;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 6px 28px #26351c06}
#demo .demo-grid{grid-template-columns:1fr 1fr;gap:0;align-items:stretch}
#demo .demo-grid>figure{margin:0;padding:0}
#demo .memory-panel{border-left:1px solid #e0e3d9}
#demo .demo-grid figcaption{height:43px;margin:0;padding:0 16px;color:#434b3d;font-size:12px;font-weight:500}
.view-tag{font-size:9px;font-weight:600;letter-spacing:1px;color:#8b6a30}
#memory-reset{border:0;background:transparent;padding:5px 0 5px 8px;cursor:pointer;color:#737c6a;font:inherit;font-size:11px}
#memory-reset:hover{color:#252e20}
#memory-reset span{font-size:16px;margin-left:5px}
#demo .video-frame,#demo .memory-frame{height:auto;aspect-ratio:20/11;border:0;border-radius:0}
#demo .video-frame{background:#161c16}
#demo .memory-frame{background:radial-gradient(ellipse at 50% 38%,#fffefa 0%,#f2f4ee 100%);isolation:isolate}
#demo #memory{position:relative;z-index:1;touch-action:none}
#demo .memory-status{z-index:3;inset:43% 10px auto;margin:0;color:#78826b}
.memory-hint{position:absolute;bottom:12px;left:15px;z-index:2;font-size:10px;color:#87917c;pointer-events:none}
#demo .memory-frame .legend{position:absolute;bottom:11px;right:14px;z-index:2;gap:12px;pointer-events:none;font-size:10px;color:#627057}
#demo .legend .real{background:#4c7779}
#demo .legend .generated{background:#bd965d;transition:box-shadow .25s}
#demo .is-updating .legend .generated{box-shadow:0 0 0 4px #bd965d20}
#demo .demo-footer{display:block;margin:0;padding:12px 17px;border-top:1px solid #e0e3d9}
#demo .playback{gap:14px;width:100%}
#demo .play-button{background:#293329;border-color:#293329;color:white;width:32px;height:32px;flex-basis:32px;cursor:pointer}
#demo .play-button:hover{background:#445340}
.timeline-label{font-size:11px;color:#6e7767;white-space:nowrap}
#demo .phase{font-size:11px;min-width:55px;color:#76643d}
#demo .return-strip{display:grid;grid-template-columns:1fr minmax(0,1.45fr);gap:24px;padding:16px 20px;margin:0;border-radius:0;border-top:1px solid #e8eae2;background:#fafbf7}
#demo .return-caption p{font-size:17px;line-height:1.3;letter-spacing:-.2px;margin:0 0 5px;color:#303b2b}
#demo .return-caption>span{font-size:11px;color:#7a8470}
#demo .return-pair{gap:12px;margin:0;max-width:490px;justify-self:end;width:100%}
#demo .return-pair figure{position:relative}
#demo .return-pair img{aspect-ratio:20/11;object-fit:contain;border-radius:6px}
#demo .return-pair figcaption{position:absolute;bottom:7px;left:7px;font-size:10px;line-height:1;padding:4px 6px;border-radius:4px;background:#ffffffeb;color:#313c2b;margin:0}
#demo .return-arrow{margin:0;color:#a0a68f;font-size:18px}
#demo .selection-note{margin:8px 2px 0;font-size:10px;color:#8e9686}
#demo button:focus-visible,#demo canvas:focus-visible{outline:2px solid #a98043;outline-offset:-2px}
@media(max-width:760px){
 #demo .section-bar{display:flex;align-items:flex-start;flex-direction:column;gap:12px}
 #demo .section-bar h2{font-size:22px;margin:0}
 #demo .scene-picker{align-self:stretch;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;box-sizing:border-box}
 #demo .scene-picker button{flex-direction:column;gap:4px;padding:5px 2px;font-size:10px;white-space:nowrap}
 #demo .scene-picker img{width:38px;height:23px}
 #demo .demo-grid{grid-template-columns:1fr}
 #demo .memory-panel{border-left:0;border-top:1px solid #e0e3d9}
 #demo .demo-grid figcaption{height:38px;padding:0 12px}
 #demo .memory-frame{aspect-ratio:2/1}
 #demo .demo-footer{padding:10px 12px}
 #demo .playback{gap:10px}
 .timeline-label{display:none}
 #demo .return-strip{grid-template-columns:1fr;padding:13px;gap:12px}
 #demo .return-caption{display:flex;justify-content:space-between;align-items:center;gap:8px}
 #demo .return-caption p{font-size:14px;margin:0}
 #demo .return-caption>span{font-size:10px;text-align:right}
 #demo .return-pair{max-width:none;gap:9px}
 #demo .return-pair figcaption{font-size:9px;bottom:5px;left:5px}
 .memory-hint{font-size:9px;bottom:10px;left:12px}
 #demo .memory-frame .legend{font-size:9px;right:12px;bottom:9px}
}
