.apm .apm-demo{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin:8px 0 16px;color:var(--dim)}
.apm .apm-howto{margin:8px 0 0}
.apm .apm-lead{color:var(--muted);margin:0 0 16px}
.apm .apm-how{margin:16px auto 0;text-align:left;max-width:560px;border:1px solid var(--line);border-radius:10px;padding:0 14px;background:var(--bg2)}
.apm .apm-how summary{cursor:pointer;padding:10px 0;font-weight:700;color:var(--muted)}
.apm .apm-how[open] summary{color:var(--text)}
.apm .apm-chip.re{border-color:var(--gold);color:var(--gold)}
.apm .apm-demo i{font-style:normal}
.apm .apm-chip{display:inline-grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border-radius:8px;border:1px solid var(--line);border-bottom-width:3px;background:var(--bg2);font:700 16px var(--head);color:var(--text)}
.apm .apm-chip-click{color:var(--gold)}
.apm .apm-chip.done{opacity:.35;text-decoration:line-through}
.apm .apm-chip.next{border-color:var(--pri);color:var(--pri-hi)}
.apm .apm-run{width:100%;padding:12px;display:flex;flex-direction:column;gap:10px;align-self:stretch}
.apm .apm-hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.apm .apm-hud div{background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:6px 10px}
.apm .apm-hud span{display:block;font-size:12px;color:var(--muted);font-weight:600}
.apm .apm-hud b{font-family:var(--head);font-size:24px;font-variant-numeric:tabular-nums}
.apm .apm-field{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:340px;position:relative}
.apm .apm-base{position:relative;border:2px solid var(--line);border-radius:12px;background:var(--bg2);min-height:160px;overflow:hidden;cursor:crosshair;transition:border-color .1s}
.apm .apm-base.sel{border-color:var(--pri);box-shadow:0 0 0 2px rgba(255,90,54,.25) inset}
.apm .apm-base.req{background:#1a1d25}
.apm .apm-num{position:absolute;right:8px;top:8px;min-width:30px;height:30px;padding:0 6px;border-radius:8px;background:var(--card2);display:grid;place-items:center;font:700 20px var(--head);color:var(--dim)}
.apm .apm-base.sel .apm-num{color:var(--pri-hi)}
.apm .apm-seq{position:absolute;left:10px;top:10px;right:46px;display:flex;gap:6px;align-items:center;flex-wrap:wrap;pointer-events:none}
.apm .apm-seq i{font-style:normal;color:var(--dim)}
.apm .apm-dl{position:absolute;left:0;bottom:0;height:5px;background:var(--gold);width:100%;transform-origin:left;pointer-events:none}
.apm .apm-dl.low{background:var(--bad)}
.apm .apm-mark{position:absolute;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:3px solid var(--gold);background:radial-gradient(circle,var(--gold) 0 5px,rgba(245,200,76,.12) 6px);padding:0;cursor:pointer;touch-action:manipulation}
.apm .apm-mark.wait{border-color:var(--dim);background:radial-gradient(circle,var(--dim) 0 4px,transparent 5px)}
.apm .apm-keys{display:none;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.apm.touch .apm-keys{display:grid}
.apm .apm-keys button{height:56px;border-radius:10px;border:1px solid var(--line);border-bottom-width:3px;background:var(--bg2);color:var(--text);font:700 20px var(--head);padding:0;min-width:0;touch-action:manipulation}
.apm .apm-keys button.ab{color:var(--info)}
.apm .apm-keys button:active{background:var(--pri);color:var(--pri-ink)}
.apm .apm-feed{min-height:22px;font-size:14px;color:var(--muted);text-align:center}
.apm .apm-feed b.ok{color:var(--good)}
.apm .apm-feed b.no{color:var(--bad)}
.apm .apm-pad{width:100%;min-height:300px;border:2px dashed var(--line);border-radius:12px;display:grid;place-items:center;font:700 22px var(--head);color:var(--muted);background:var(--bg2);cursor:pointer;touch-action:manipulation;text-align:center;padding:16px}
.apm .apm-pad.hit{border-color:var(--pri)}
.apm .apm-lg{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:6px}
.apm .apm-lg i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:-1px}
@media (max-width:640px){
  .apm .apm-run{padding:8px}
  .apm .apm-hud{gap:6px}
  .apm .apm-hud div{padding:4px 6px}
  .apm .apm-hud b{font-size:19px}
  .apm .apm-hud span{font-size:11px}
  .apm .apm-field{gap:6px;min-height:300px}
  .apm .apm-base{min-height:140px}
  .apm .apm-num{font-size:16px;min-width:24px;height:24px;top:6px;right:6px}
  .apm .apm-chip{min-width:24px;height:26px;font-size:13px;padding:0 5px;border-bottom-width:2px}
  .apm .apm-seq{gap:3px;left:6px;top:6px;right:34px}
  .apm .apm-seq i{font-size:11px}
  .apm .tgt-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .apm .tgt-tab{flex:none}
  .apm .tgt-bar{padding:8px 12px;gap:8px}
}

@media (pointer:coarse){.apm .res-actions kbd{display:none}}

.apm.touch .apm-lead{display:none}
.apm.touch [data-intro]{padding-top:16px}
.apm.touch [data-kick]{display:none}
.apm.touch .tgt-arena{align-content:start}

.apm .tgt-dev{font:700 12px var(--body);letter-spacing:.02em;color:var(--gold);border:1px solid rgba(245,200,76,.45);border-radius:999px;padding:4px 10px;white-space:nowrap;cursor:help}
.apm .tc-coach{display:grid;grid-template-columns:minmax(0,210px) minmax(0,1fr);gap:24px;padding:20px 24px;align-items:center;width:100%}
.apm .tc-demo{order:-1;background:var(--bg2);border:1px solid var(--line);border-radius:14px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:6px}
.apm .tc-demo svg{width:100%;max-width:190px;height:auto;display:block}
.apm .tc-demo p{margin:0;font-size:13px;color:var(--muted);text-align:center}
.apm .tc-steps{text-align:left}
.apm .tc-steps h3{margin:0 0 10px;font-size:22px}
.apm .tc-steps ol{margin:12px 0;padding-left:20px}
.apm .tc-steps li{margin:4px 0;color:#dcd8cf}
.apm .tc-honest{font-size:14px;color:var(--muted);border-left:3px solid var(--gold);padding:6px 10px;background:var(--bg2);border-radius:6px;margin:0}
.apm .tc-btns{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.apm .tc-key{font-size:14px;color:var(--dim);margin:8px 0 0}
.apm .tc-prac{background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px;text-align:left;margin:16px;width:calc(100% - 32px)}
.apm .tc-prac h3{margin:0;font-size:20px}
.apm .tc-prac ul{margin:0;padding-left:20px}
.apm .tc-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.apm .tc-badge{font:700 12px var(--head);letter-spacing:.12em;text-transform:uppercase;padding:4px 10px;border-radius:999px;border:1px solid var(--info);color:var(--info)}
.apm .tc-pracbar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;background:rgba(106,168,255,.08);border:1px solid rgba(106,168,255,.35);border-radius:10px;padding:6px 12px;font-size:14px;color:var(--info);font-weight:700}
.apm .tc-link{appearance:none;background:none;border:0;color:var(--muted);font:600 14px var(--body);text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:10px 4px;min-height:44px}
.apm .tc-link:hover{color:var(--text)}
/* demo parts */
.apm .d-mouse{fill:#1c1f27;stroke:#3a3f4c;stroke-width:2}
.apm .d-line{stroke:#3a3f4c;stroke-width:2;fill:none}
.apm .d-btn{fill:var(--pri);opacity:0}
.apm .d-wheel{fill:#2a2e38}
.apm .d-finger{fill:#d9b08c;stroke:#a37b58;stroke-width:1.5}
.apm .d-nail{fill:#f2d9c2}
.apm .d-cap{fill:#1c1f27;stroke:#3a3f4c;stroke-width:2}
.apm .d-capt{font:700 22px var(--head);fill:#f2efe8;text-anchor:middle}
.apm .d-small{font:600 11px var(--body);fill:#a19e96;text-anchor:middle}
.apm .tc-fade{-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
@media (prefers-reduced-motion:reduce){.apm .tc-demo *{animation:none !important}.apm .d-btn{opacity:.35}}
@media (max-width:760px){.apm .tc-coach{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}.apm .tc-demo svg{max-width:140px}.apm .tc-steps{display:contents}.apm .tc-steps>*{order:2;margin:0}.apm .tc-steps>.tgt-kicker,.apm .tc-steps>h3,.apm .tc-steps>.tc-btns,.apm .tc-steps>.tc-key{order:0}.apm .tc-coach>.tc-demo{order:1;flex-direction:row;justify-content:center;gap:14px;padding:8px 12px}.apm .tc-coach>.tc-demo svg{width:84px;flex:none}.apm .tc-coach>.tc-demo p{text-align:left;max-width:230px}}
@media (max-width:640px){.apm .tc-steps h3{font-size:19px}.apm .tc-coach .tgt-kicker{display:none}.apm .tgt-dev{font-size:11px;padding:3px 8px}}
.apm .apm-demo2{max-width:260px;margin:14px auto 0}
.apm .apm-demo2 svg{max-width:220px}
.apm .apm-alt{margin:4px 0 0}
.apm .am-t{fill:rgba(245,200,76,.12);stroke:#f5c84c;stroke-width:3;animation:apm-t 2.4s infinite}
.apm .am-bar{fill:#f5c84c;transform-origin:10px 137px;animation:apm-bar 2.4s linear infinite}
.apm .am1 rect,.apm .am2 rect,.apm .am3 rect{animation:apm-chip 2.4s infinite}
.apm .am2 rect{animation-delay:.8s}.apm .am3 rect{animation-delay:1.6s}
@keyframes apm-chip{0%,30%{stroke:#ff5a36;stroke-width:3}33%,100%{stroke:#3a3f4c;stroke-width:2;opacity:.6}}
@keyframes apm-t{0%,30%{opacity:.4}33%,40%{opacity:1;transform:scale(1.1)}45%,100%{opacity:.4;transform:scale(1)}}
@keyframes apm-bar{from{transform:scaleX(1)}to{transform:scaleX(.1)}}
.apm.touch .apm-field{min-height:0;grid-template-rows:repeat(2,minmax(0,1fr))}
.apm.touch .apm-base{min-height:0}
.apm.touch .apm-keys{position:sticky;bottom:0;z-index:4;background:var(--card);padding:6px 0 4px;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px}
.apm.touch .apm-keys button{grid-column:span 3;height:52px}
.apm.touch .apm-keys button.ab{grid-column:span 4}
.apm.touch .apm-run{gap:8px}
.apm.touch .apm-feed{min-height:0;font-size:13px;margin:0}
.apm .tc-fadel{-webkit-mask-image:linear-gradient(90deg,transparent,#000 18%);mask-image:linear-gradient(90deg,transparent,#000 18%)}
.apm .tc-fade.tc-fadel{-webkit-mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent)}
.apm .tc-wait{pointer-events:none;opacity:.55;transition:opacity .2s}
