/* Scoped direct-manipulation model; familiar Chemistry reading surface. */
#ap-canvas[hidden]{display:none!important}#ap-studio{max-width:620px;margin:auto;background:linear-gradient(135deg,#fdfcff,#f7f5fb);padding:14px;touch-action:pan-y}#ap-studio svg{display:block;width:100%;height:auto;overflow:visible;font:16px 'DM Sans',sans-serif;color:#475569}#ap-studio text{text-anchor:middle;fill:#475569}#ap-studio line{stroke:#9c8eb4;stroke-width:2.5;stroke-linecap:round}#ap-studio .aps-extra{stroke:#76649a;stroke-width:3}#ap-studio .aps-carbon{fill:url(#aps-shine);stroke:#9988b4;stroke-width:.6}#ap-studio .aps-carbon-label{fill:#fff;font-size:15px;font-weight:600}#ap-studio .aps-caption{font-size:12px;fill:#758198}#ap-studio .aps-group{fill:#7d4d8d;font-weight:600}#ap-studio .aps-drop{fill:#fff;stroke:#cec4e3;stroke-width:1.5;stroke-dasharray:5 5}#ap-studio .aps-chosen{fill:#eeeafa;stroke:#8e7ab3}#ap-studio .aps-monomer{fill:#f0ebfa;stroke:#b6a5d4;stroke-width:1.5}#ap-studio .aps-repeat{fill:#b1a1cb;stroke:#8f7cae}#ap-studio .aps-bracket{fill:none;stroke:#82709f;stroke-width:3}#ap-studio .aps-grip{fill:#8c77af;stroke:#fff;stroke-width:2}#ap-studio .aps-handle-label{fill:#fff;font-size:21px}#ap-studio .aps-grab{cursor:grab;touch-action:none;outline:none}#ap-studio .aps-grab:focus-visible .aps-monomer,#ap-studio .aps-grab:focus-visible .aps-grip{stroke:#5042bc;stroke-width:4}#ap-studio .aps-held{cursor:grabbing;filter:drop-shadow(0 4px 5px #b8abc8)}#ap-studio .aps-new{stroke:#756092;animation:ap-bond-appear .65s ease-out}#ap-controls button{min-height:44px;cursor:pointer}#ap-controls{align-items:stretch}#ap-controls .aps-help{font-size:13px;margin:0}#ap-controls .aps-row-options{display:flex;flex-wrap:wrap;gap:8px;width:100%}#ap-working .aps-mass{font-size:13px;color:#64748b;margin:14px 0 0}#ap-observation{min-height:86px}#ap-model-name{color:#6f5b90}#ap-controls select{min-height:44px}
@keyframes ap-bond-appear{from{opacity:0;stroke-width:7}to{opacity:1;stroke-width:2.5}}
@media(prefers-reduced-motion:reduce){#ap-studio .aps-new{animation:none}}@media(max-width:600px){#ap-studio{padding:4px}#ap-controls button{flex:1 1 140px}#ap-studio .aps-caption{font-size:13px}}
/* SVG groups do not establish touch-action regions consistently on mobile. */
#ap-studio{touch-action:none}
