/* Incumbent gray wireframe geometry; only the memory execution area is new. */
.memory-live-root{width:390px;max-width:100%}.memory-live-root .phone{pointer-events:auto;margin-inline:auto}.memory-live-root .phone-inner.intro{overflow-y:auto;scrollbar-width:thin}.memory-live-root .phone-inner.intro>*{flex-shrink:0}.memory-live-root .phone-inner.intro .wire-bottom{position:sticky;bottom:-20px;padding-bottom:20px}.memory-live-root .wire-button{width:100%;display:block}.memory-live-root .phone-inner.result,.memory-live-root .phone-inner.incomplete{overflow-y:auto}.memory-live-root .wire-card[data-memory-command]{cursor:pointer}.memory-live-root .wire-card[data-memory-command]:hover{background:var(--soft)}.memory-live-root .toolbar button{font:inherit}.memory-live-root .memory-hidden .brain-scene{visibility:hidden}.memory-live-root button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}.memory-scene-inner{width:100%;height:100%;display:grid;align-content:center;gap:22px;padding:20px}.brain-scene:has(.memory-matrix),.brain-scene:has(.memory-pond),.brain-scene:has(.memory-pairs),.brain-scene:has(.memory-missing){padding:20px}.memory-matrix{width:100%;max-width:300px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.memory-cell{position:relative;display:grid;place-items:center;border:1.5px solid #9b9d95;border-radius:3px;background:#fff;padding:8px;color:var(--ink);font:inherit;min-height:64px;aspect-ratio:1;touch-action:manipulation}.memory-cell:disabled{opacity:1;cursor:default}.memory-cell svg{width:90%;height:90%;max-height:82px}.memory-cell.is-lit{background:#d5d8ce;border:2px solid #51564c}.memory-cell.is-selected{border:3px solid #4c5148}.memory-cell.is-target{border:3px solid #454c40}.memory-cell.is-wrong{border:2px dashed #51564b}.memory-matrix .memory-cell{font-size:28px}.memory-matrix .is-target:not(.is-selected){border-style:dashed}.memory-pairs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:310px;gap:12px}.memory-pairs .memory-cell{aspect-ratio:3/4}.memory-card-back{width:32px;height:40px;border:1.5px solid var(--line);background:var(--soft)}.memory-pair-done{font-size:26px}.memory-cell.is-matched{background:#eceee7;border-color:#c1c4b8}.memory-local-progress{font-size:15px;text-align:center;width:100%;margin:18px 0 0}.brain-scene:has(.memory-pairs){display:flex;flex-direction:column;justify-content:center}.memory-pond{position:relative;width:100%;height:310px;margin:12px 0}.memory-pad{position:absolute;transform:translate(-50%,-50%);width:70px;height:70px;padding:0;border:0;background:transparent;touch-action:manipulation;color:var(--ink)}.memory-pad:disabled{opacity:1}.memory-leaf{position:absolute;inset:3px;border:1.5px solid #808777;border-radius:50%;background:#eceee7}.memory-leaf:after{content:'';position:absolute;left:50%;top:-2px;height:24px;border-left:2px solid #808777;transform:rotate(35deg);transform-origin:bottom}.memory-pad.has-frog .memory-leaf{background:#cdd3c5}.memory-frog-marker{position:absolute;inset:19px 16px 12px;border:2px solid #4b5443;border-radius:48%;background:#fff}.memory-frog-marker:before,.memory-frog-marker:after{content:'';position:absolute;top:-8px;width:13px;height:13px;border:2px solid #4b5443;border-radius:50%;background:#fff}.memory-frog-marker:before{left:0}.memory-frog-marker:after{right:0}.memory-frog-marker i,.memory-frog-marker b{position:absolute;top:-2px;width:3px;height:3px;background:#4b5443;border-radius:50%;z-index:1}.memory-frog-marker i{left:5px}.memory-frog-marker b{right:5px}.memory-route{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.memory-route polyline{fill:none;stroke:#697360;stroke-width:2;stroke-dasharray:5 4}.memory-order{position:absolute;bottom:-10px;left:26px;border:1px solid var(--line);border-radius:50%;width:23px;height:23px;font-size:12px;line-height:21px;background:#fff}.memory-wrong{position:absolute;right:0;top:-4px;font-size:24px}.memory-missing{width:100%;align-self:center}.memory-objects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px;min-height:200px;margin-bottom:28px}.memory-object{position:relative;aspect-ratio:1;display:grid;place-items:center;border:1px solid transparent;padding:5px}.memory-object svg{width:80%;height:80%}.memory-object.is-target{border:2px solid var(--ink);border-radius:3px}.memory-object b{position:absolute;bottom:-17px;font-size:12px;font-weight:500}.memory-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-top:1px solid var(--line);padding-top:20px;min-height:90px}.memory-answer-mark{position:absolute;right:4px;top:0;font-size:19px}.memory-summary{text-align:center;line-height:1.9;font-size:18px}.memory-summary h3{font-size:23px;margin-bottom:18px}.brain-preview .memory-matrix{width:115px;gap:5px}.brain-preview .memory-cell{min-height:20px;padding:2px}.brain-preview .memory-matrix .memory-cell{font-size:14px}.brain-preview .memory-pond{width:160px;height:130px;margin:0}.brain-preview .memory-pad{width:32px;height:32px}.brain-preview .memory-frog-marker{inset:10px 8px 5px;border-width:1px}.brain-preview .memory-frog-marker:before,.brain-preview .memory-frog-marker:after{width:6px;height:6px;top:-4px;border-width:1px}.brain-preview .memory-frog-marker i,.brain-preview .memory-frog-marker b{display:none}.brain-preview .memory-leaf:after{height:10px}.brain-preview .memory-pairs{width:150px;gap:6px}.brain-preview .memory-cell svg{max-height:42px}.brain-preview .memory-local-progress{display:none}.brain-preview .memory-missing{width:170px}.brain-preview .memory-objects{min-height:0;gap:1px;margin:0}.brain-preview .memory-object{max-height:45px}.brain-preview .memory-options{display:none}.memory-live-root .wire-dialog .split{margin-top:14px}.memory-demo-note{font-size:13px;color:var(--muted);max-width:40ch;line-height:1.7}.memory-preview-links{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px}#viewer.memory-live-viewer .viewer-body{grid-template-columns:minmax(0,1fr)}#viewer.memory-live-viewer .contract{display:none}#viewer.memory-live-viewer .phone-host{width:390px;max-width:100%;margin:auto}#viewer.memory-live-viewer .compare-screen>h3{text-align:center}
.memory-demo-frog{position:absolute;width:38px;height:42px;transform:translate(-50%,-50%);pointer-events:none}.memory-demo-frog .memory-frog-marker{inset:5px 0 0;background:#d8dfd0}.brain-preview .memory-demo-frog{width:18px;height:22px}.brain-preview .memory-demo-frog .memory-frog-marker{inset:3px 0 0}

/* 2026-10-19 feedback stays in the incumbent execution area. */
.brain-scene:has(.memory-pond),.brain-scene:has(.memory-matrix){display:flex;flex-direction:column;justify-content:center;align-items:center}
.memory-frog-status,.memory-feedback-key,.memory-choice-receipt{width:100%;text-align:center;font-size:14px;line-height:1.5;margin:8px 0}
.memory-frog-status{border:1px solid var(--line);padding:8px;background:#fff}
.memory-pad.is-start .memory-leaf{outline:2px dashed #51564b;outline-offset:3px}
.memory-order{width:auto;min-width:23px;padding-inline:3px;white-space:nowrap}
.memory-start-label{position:absolute;top:75px;left:50%;transform:translateX(-50%);font-size:12px;white-space:nowrap;background:#fff;border:1px solid var(--line);padding:1px 4px}
.memory-demo-frog .memory-frog-marker{background:#727d67;border-color:#303a28}
.memory-demo-frog .memory-frog-marker:before,.memory-demo-frog .memory-frog-marker:after{background:#727d67}
.memory-demo-frog .memory-frog-marker i,.memory-demo-frog .memory-frog-marker b{background:#fff}
.memory-pairs.has-eight{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.memory-pairs.has-eight .memory-cell{min-height:64px;padding:5px;aspect-ratio:3/4}
.memory-pairs .memory-answer-mark{background:#fff;border:1px solid var(--line);line-height:1.15;min-width:20px}
.memory-options .memory-cell.is-selected:after{content:'你选的';position:absolute;bottom:2px;left:0;right:0;font-size:12px;background:#fff}
.memory-options .memory-cell.is-target .memory-answer-mark{font-weight:bold;border:1px solid var(--ink);border-radius:50%;width:22px;line-height:20px;background:#fff}
.memory-live-root .brain-execution-bottom .stage-copy{font-size:19px;line-height:1.5}
.brain-preview .memory-frog-status,.brain-preview .memory-feedback-key,.brain-preview .memory-choice-receipt,.brain-preview .memory-start-label{display:none}
.brain-preview .memory-pairs.has-eight .memory-cell{min-height:20px;padding:2px}

/* Frog route feedback: accepted history, correct continuation and mistaken attempt stay distinct. */
.brain-scene:has(.memory-pond){padding:16px 20px;gap:0}
.memory-pond{flex-shrink:0}
.memory-pad.is-correct .memory-leaf{border:3px solid #414b3b;background:#e0e5da}
.memory-pad.is-landing .memory-leaf{box-shadow:0 0 0 6px #c3cabb;outline:2px solid #414b3b;outline-offset:4px}
.memory-pad.is-future .memory-leaf{border-style:dashed;background:#f3f4f0}
.memory-pad.is-wrong-attempt .memory-leaf{outline:3px dashed #343b30;outline-offset:5px}
.memory-route line,.memory-route path{fill:none;vector-effect:non-scaling-stroke}
.memory-route .memory-route-done{stroke:#414b3b;stroke-width:4;stroke-linecap:round}
.memory-route .memory-route-future{stroke:#9ca593;stroke-width:2;stroke-dasharray:4 7}
.memory-route .memory-route-wrong{stroke:#30382a;stroke-width:3;stroke-dasharray:9 3 2 3}
.memory-attempt-cross{font-size:25px;font-weight:700;fill:#30382a;stroke:#fafbf8;stroke-width:5px;paint-order:stroke;text-anchor:middle;dominant-baseline:central}
.memory-order{bottom:-13px;left:50%;transform:translateX(-50%);min-width:28px;font-weight:600;z-index:2}
.memory-order.is-correct{border:2px solid #414b3b;background:#fff}
.memory-order.is-future{border:1px dashed #8e9785;color:#6a735f;background:#fafbf8}
.memory-player-label{position:absolute;top:-25px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:12px;font-weight:600;background:#fff;border:1px solid #414b3b;padding:1px 4px}
.memory-wrong{right:-10px;top:-6px;width:29px;height:29px;line-height:25px;font-size:28px;font-weight:700;border:2px solid #30382a;border-radius:50%;background:#fff;z-index:3}
.memory-wrong-label{position:absolute;top:-29px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#30382a;color:#fff;padding:2px 5px;font-size:12px;font-weight:600;z-index:3}
.memory-route-receipt{width:100%;flex-shrink:0;border:2px solid #515b49;background:#fff;padding:8px 6px;display:grid;gap:3px;text-align:center;font-size:13px;line-height:1.35}
.memory-route-receipt strong{font-size:16px}
.memory-route-receipt b{font-variant-numeric:tabular-nums}
.brain-preview .memory-order{bottom:-5px;min-width:17px;height:16px;line-height:14px;font-size:8px;padding-inline:2px;border-width:1px}
.brain-preview .memory-wrong{right:-5px;top:-4px;width:18px;height:18px;font-size:17px;line-height:15px;border-width:1px}
.brain-preview .memory-player-label,.brain-preview .memory-wrong-label,.brain-preview .memory-route-receipt{display:none}
.brain-preview .memory-pad.is-landing .memory-leaf{box-shadow:none;outline-width:1px;outline-offset:2px}
.brain-preview .memory-pad.is-correct .memory-leaf{border-width:2px}
.brain-preview .memory-pad.is-wrong-attempt .memory-leaf{outline-width:2px;outline-offset:2px}
.brain-preview .memory-route .memory-route-done{stroke-width:2}
.brain-preview .memory-route .memory-route-wrong{stroke-width:2}
.brain-preview .memory-route .memory-route-future{stroke-width:1}
@media (prefers-reduced-motion:reduce){.memory-pad.is-landing .memory-leaf{animation:none;transition:none}.memory-demo-frog{transition:none;animation:none}}

/* Missing only: unified answer reveal in the original three choices. */
.memory-missing .memory-options .memory-cell.is-target{border:3px solid #19743d;background:#68c88b;color:#123820}
.memory-missing .memory-options .memory-cell.is-nonanswer{border:3px solid #b64040;background:#d96161;color:#fff}
.memory-missing .memory-choice-cross{position:relative;width:34px;height:34px}
.memory-missing .memory-choice-cross:before,.memory-missing .memory-choice-cross:after{content:'';position:absolute;left:15px;top:0;width:5px;height:34px;border-radius:3px;background:#fff;transform:rotate(45deg)}
.memory-missing .memory-choice-cross:after{transform:rotate(-45deg)}
@media(prefers-reduced-motion:reduce){.memory-missing .memory-options .memory-cell svg,.memory-missing .memory-object svg{animation:none!important;transition:none!important;transform:none!important}}

/* Frog-only orientation and immediate in-place feedback. */
.memory-frog-guide .brain-countdown{inset:auto 8px 0 auto;width:auto;height:auto;background:transparent;display:flex;gap:6px;align-items:center;font-size:12px;pointer-events:none}
.memory-frog-guide .brain-countdown strong{font-size:22px}
.memory-frog-guide .memory-pond{visibility:visible;opacity:1}
.memory-pad.is-wrong-attempt .memory-leaf{background:#ffd1cc;border:3px solid #b52620;outline:3px solid #b52620}
.memory-wrong{right:-15px;top:-12px;width:42px;height:42px;color:#bd211b;border:0;background:#fff;border-radius:50%;line-height:1}
.memory-wrong svg{display:block;width:100%;height:100%}
.memory-wrong-label{background:#a7231d}
.memory-pad.is-landing .memory-frog-marker{animation:memory-frog-land 200ms ease-out}
@keyframes memory-frog-land{0%{transform:translateY(-20px) scale(.92)}65%{transform:translateY(2px) scale(1.08,.9)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){.memory-pad.is-landing .memory-frog-marker{animation:none}}

/* Persistent orange demonstration frog and green player frog. */
.memory-pond .memory-demo-frog{margin-left:18px;z-index:4}
.memory-pond .memory-demo-frog .memory-frog-marker,.memory-pond .memory-demo-frog .memory-frog-marker:before,.memory-pond .memory-demo-frog .memory-frog-marker:after{background:#ef9b47;border-color:#754015}
.memory-pond .memory-pad>.memory-frog-marker{margin-left:-17px;margin-right:17px;background:#88b878;border-color:#355a2d}
.memory-pond .memory-pad>.memory-frog-marker:before,.memory-pond .memory-pad>.memory-frog-marker:after{background:#88b878;border-color:#355a2d}

/* Missing observe clock stays beside its original prompt under the title. */
.brain-execution-top.memory-missing-observe-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px}
.memory-missing-observe-prompt>[data-missing-observe-clock]{font-size:30px;font-weight:700;font-variant-numeric:tabular-nums;min-width:2.8em;text-align:right;flex-shrink:0;white-space:nowrap}
