/* A paired, quiet editorial plate. The original SVG and directional markers
   stay unchanged; these styles give the two roles a shared visual language. */
.tmotion{
  --turn-ink:#3e3a43;
  --turn-muted:#70666e;
  --turn-gold:#967f62;
  --turn-line:#e1d8cf;
  --turn-paper:#fdfbf8;
  color:var(--turn-ink);
  background:var(--turn-paper);
  border:1px solid var(--turn-line);
  border-radius:16px;
  padding:clamp(14px,3%,25px);
  font-family:inherit;
  container-type:inline-size;
}
.tmotion .tm-stage{
  display:grid;
  grid-template-columns:minmax(52px,1fr) minmax(44px,1.35fr) minmax(52px,1fr);
  align-items:start;
  gap:clamp(5px,2%,18px);
  max-width:680px;
  margin:0 auto 18px;
  padding:clamp(14px,3.5%,28px) clamp(8px,2.9%,24px);
  border:1px solid #e8ddd3;
  border-radius:11px;
  background:
    radial-gradient(ellipse at 12% 12%,#fffdf6 0%,transparent 66%),
    linear-gradient(118deg,#f7f1e9,#f3ece6 55%,#eee5e5);
  text-align:center;
}
.tmotion .tm-person{
  display:grid;
  justify-items:center;
  align-content:start;
  gap:10px;
  min-width:0;
  font-size:clamp(.84rem,2.1cqw,.96rem);
  line-height:1.6;
  color:var(--turn-ink);
}
.tmotion .tm-person span{
  max-width:100%;
  overflow-wrap:anywhere;
  text-wrap:pretty;
}
.tmotion .tm-person b{
  display:grid;
  place-items:center;
  width:clamp(46px,10.5cqw,64px);
  aspect-ratio:1;
  border:1px solid #b1c1b7;
  border-radius:50%;
  background:radial-gradient(ellipse at 32% 20%,#fafff8,#d9e6dd 75%);
  color:#285344;
  box-shadow:inset 0 0 0 3px #fff8,0 4px 11px #564e4030;
  font:500 clamp(1.25rem,3.8cqw,1.6rem)/1.25 var(--serif,serif);
}
.tmotion .tm-person:last-child b{
  color:#684b43;
  border-color:#ccb6ac;
  background:radial-gradient(ellipse at 32% 20%,#fff9f2,#ead9cf 75%);
}
.tmotion .tm-stage svg{
  width:100%;
  height:clamp(46px,10.5cqw,64px);
  overflow:visible;
  min-width:0;
}
.tmotion .tm-line{
  stroke:#aabbb2;
  stroke-dasharray:3 4;
  fill:none;
}
.tmotion .tm-arrow{
  fill:none;
  stroke:#456b5e;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
/* Preserve the green and russet role encodings and exact marker positions. */
.tmotion circle{
  fill:#316457;
  stroke:#fffaf4;
  stroke-width:1.6;
  filter:drop-shadow(0 1px 2px #54453c3b);
}
.tmotion .tm-other{fill:#856357}
.tmotion .tm-copy{
  padding:2px 2px 14px;
  border-bottom:1px solid var(--turn-line);
}
.tmotion .tm-copy strong{
  font:600 clamp(1.13rem,3cqw,1.32rem)/1.5 var(--serif,serif);
  letter-spacing:.012em;
}
.tmotion .tm-copy p{
  margin:6px 0 0;
  font-size:1rem;
  line-height:1.75;
  text-wrap:pretty;
  overflow-wrap:anywhere;
}
.tmotion .tm-controls,.tmotion .tm-steps{
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap;
}
.tmotion .tm-steps{padding-top:14px}
.tmotion .tm-controls{margin-top:12px}
.tmotion button{
  font:500 .94rem/1.4 var(--sans,system-ui,sans-serif);
  color:var(--turn-ink);
  background:var(--turn-paper);
  border:1px solid var(--turn-line);
  border-radius:9px;
  padding:.45rem .8rem;
  min-width:44px;
  min-height:44px;
  cursor:pointer;
}
.tmotion .tm-steps button{
  inline-size:44px;
  border-radius:50%;
  padding:4px;
  font-variant-numeric:tabular-nums;
}
.tmotion .tm-steps button[aria-pressed=true]{
  background:#eee6ef;
  border-color:#a991b0;
  color:#5e4266;
}
.tmotion [data-tm-play]{
  background:#514769;
  color:#fff;
  border-color:#514769;
  min-width:5.2em;
}
.tmotion button:focus-visible{outline:2px solid #826b94;outline-offset:3px}
@container (max-width:390px){
  .tmotion .tm-stage{gap:6px;margin-bottom:14px;padding:14px 6px}
  .tmotion .tm-person{gap:7px;font-size:.86rem}
  .tmotion .tm-person b{width:46px}
  .tmotion .tm-stage svg{height:46px}
  .tmotion .tm-copy{padding-bottom:11px}
  .tmotion .tm-controls,.tmotion .tm-steps{gap:5px}
}
@media (prefers-reduced-motion:reduce){.tmotion circle{filter:none}}
