qs-brain-wheel { display:block; }
.brain-workshop .page-header { padding-bottom:8px; }
.brain-workshop .page-header h2 { text-align:left; }
.brain-workshop .brain-records {
  border:1px solid #fff; background:var(--glass); border-radius:20px;
  padding:8px 13px; min-height:40px; font-size:14px; white-space:nowrap;
}
.brain-scene {
  position:relative; isolation:isolate; width:100%; aspect-ratio:1.18;
  overflow:hidden; user-select:none; -webkit-user-select:none; touch-action:pan-y;
}
.brain-guide {
  position:absolute; left:7%; top:2%; width:86%; height:92%; border-radius:50%;
  border:1px solid #8ea57542; transform:rotate(-5deg); pointer-events:none;
}
.brain-guide::after {content:"";position:absolute;inset:5%;border:1px dashed #97a77f45;border-radius:inherit;}
.brain-board {
  position:absolute; width:97%; height:58%; left:1.5%; top:31.5%; object-fit:fill;
  filter:drop-shadow(0 5px 3px #48503720); pointer-events:none;
}
.brain-track {
  position:absolute;left:9.5%;width:81%;top:39%;height:43%;border-radius:50%;
  border:2px dotted #faffdfc4;pointer-events:none;
}
.brain-contact {
  position:absolute;left:30%;top:61%;width:40%;height:12%;border-radius:50%;
  background:radial-gradient(ellipse,#59624348,transparent 70%);pointer-events:none;
}
.brain-actor {
  position:absolute;left:25%;width:50%;top:12%;height:60%;z-index:8;pointer-events:none;
}
.brain-pose {
  position:absolute;inset:0;height:100%;width:100%;object-fit:contain;object-position:center bottom;
  opacity:0;transform:translateY(2px) scale(.985);
  transition:opacity .22s ease,transform .34s ease;
}
.brain-pose[data-current="true"] {opacity:1;transform:none;}
.brain-stems { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:3; }
.brain-stems path { fill:none; stroke:#849476; stroke-width:1; vector-effect:non-scaling-stroke; }
.brain-scene .brain-prop,.brain-scene .brain-module {
  position:absolute; padding:0; border:0; background:transparent; border-radius:12px;
  touch-action:pan-y; -webkit-tap-highlight-color:transparent;
}
.brain-scene .brain-prop { width:20%; height:18%; translate:-50% -90%; }
.brain-prop img {
  width:100%;height:100%;object-fit:contain;object-position:center bottom;
  transform:scale(var(--tool-scale,1)); transform-origin:50% 100%;
  filter:drop-shadow(0 2px 2px #594b3333); transition:opacity .2s;
}
.brain-prop[aria-pressed="true"] {pointer-events:none;}
.brain-prop[aria-pressed="true"] img {opacity:0;}
.brain-scene .brain-module {
  z-index:16; translate:-50% -50%; min-height:44px; padding:4px 2px;
  display:grid; place-items:center; outline-offset:-2px;
}
.brain-callout {
  display:block; border:1px solid #fff; border-radius:12px; padding:5px 8px;
  font-family:inherit; font-weight:550; font-size:clamp(12px,3.5vw,14px); line-height:1.35;
  background:linear-gradient(145deg,#fffffff8,#fffdf2ed); color:#324633;
  box-shadow:0 2px 7px #53674d17; white-space:nowrap;
}
.brain-callout i {font-style:normal;margin-inline:.22em;color:#83977b;}
.brain-module[aria-pressed="true"] .brain-callout {
  background:linear-gradient(125deg,#f0f9e3,#c9e2b8); color:#304f2d;box-shadow:0 3px 10px #647c4a32;
}
.brain-module:focus-visible .brain-callout,.brain-keys button:focus-visible {outline:2px solid #437c49;outline-offset:2px;}
.brain-keys {
  margin:3px 16px 0; display:flex; gap:2px; align-items:center; padding:3px;
  border:1px solid #fff; border-radius:22px; background:rgba(255,255,255,.55);
}
.brain-keys button {
  flex:1;min-width:0;min-height:36px; padding:4px 2px; border:0; border-radius:18px;
  color:#435242; background:transparent; font-size:14px;
}
.brain-keys button[aria-pressed="true"] { color:#314e2f; background:#d8e8cc; font-weight:600;}
.brain-workshop .brain-feed {padding-top:9px;gap:8px;}
@media(max-width:350px){.brain-callout{padding:5px 6px;}.brain-keys{margin-inline:12px;}}
@media(prefers-reduced-motion:reduce){.brain-pose,.brain-prop img{transition:none;}}

@media(max-height:650px) and (max-width:599px) {
  .brain-scene{aspect-ratio:1.50;}
  .brain-workshop .page-header{height:52px;padding-block:2px;}
}

qs-brain-wheel:is([data-wheel="heart"],[data-wheel="body"]) .brain-scene {
  aspect-ratio:1.4; max-height:clamp(205px, calc(100dvh - 587px), 350px);
}
qs-brain-wheel:is([data-wheel="heart"],[data-wheel="body"]) .brain-actor {
  left:21%; width:58%; top:5%; height:69%;
}
qs-brain-wheel:is([data-wheel="heart"],[data-wheel="body"]) .brain-prop {
  width:23%; height:24%;
}
qs-brain-wheel:is([data-wheel="heart"],[data-wheel="body"])[data-has-story="true"] .brain-contact {
  left:30%; top:65%; width:40%; height:13%; z-index:2;
  border:2px solid #e1ffcfb8; box-shadow:0 0 8px #e1ffcf9c;
  background:radial-gradient(ellipse,#51754e32,transparent 72%);
}
qs-brain-wheel[data-has-story="false"] .brain-contact { display:none; }
qs-brain-wheel[data-has-story="false"] .brain-prop img { opacity:.57; }
.wheel-story .wheel-story-meta, .wheel-story .wheel-story-actions {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.wheel-story-meta { margin-bottom:6px; color:#687761; font-size:.8125rem; }
.wheel-story-meta span {
  color:#456740; background:#edf4e7; padding:3px 9px; border-radius:20px; font-weight:550;
}
.wheel-story-summary { margin:4px 0 0; color:#4a584a; font-size:.9375rem; line-height:1.5; }
.wheel-story-steps {
  list-style:none; display:flex; padding:7px 4px; margin:10px 0 4px;
  border-radius:13px; background:#f1f6ed; color:#476744;
}
.wheel-story-steps li {
  position:relative; flex:1; min-width:0; text-align:center; display:grid;
  justify-items:center; align-items:center; gap:2px; font-size:.8125rem; line-height:1.35;
}
.wheel-story-steps svg { display:block; width:32px; height:25px; }
.wheel-story-steps li:not(:last-child)::after {
  content:""; position:absolute; width:5px; height:5px; right:-3px; top:43%;
  border:solid #8c9e86; border-width:1px 1px 0 0; transform:rotate(45deg);
}
.wheel-story-actions button {
  display:inline-flex; align-items:center; gap:3px; min-height:38px; padding:4px 0;
  border:0; background:transparent; color:#467447; font:inherit; font-size:.875rem;
}
.wheel-story-actions .child-arrow { width:15px; height:15px; }
.wheel-story-actions .wheel-story-chat {
  border-radius:20px; padding:6px 13px; font-weight:550; color:#365b35; background:#e5f1de;
}
.wheel-story-actions button:focus-visible { outline:2px solid #437c49; outline-offset:2px; }
