/* ATLAS 3.7 — original motion/icon reference labs. */
.term-card .scene-m37{height:344px!important;position:relative;z-index:2;pointer-events:auto;display:block!important;background:#eef3fa!important}
.m37{--m37-blue:#375bd4;--m37-ink:#18304e;--m37-speed:550ms;--m37-move:75px;position:relative;isolation:isolate;display:flex;flex-direction:column;gap:10px;width:100%;height:100%;min-height:286px;padding:14px;overflow:auto;overscroll-behavior:contain;background:linear-gradient(140deg,#f7faff,#e9effb);font:14px/1.55 system-ui,-apple-system,sans-serif;color:var(--m37-ink)}
.m37 *{box-sizing:border-box;font-size:14px}
.m37 [hidden]{display:none!important}
.m37-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center}
.m37-head b{font-size:15px;line-height:1.4}
.m37-head span{font-size:14px;color:#4c6181}
.m37-stage{height:118px;min-height:118px;display:grid;place-items:center;position:relative;overflow:hidden;border:1px solid #b7c8df;border-radius:12px;background:#fff;isolation:isolate}
.m37-object{width:65px;height:65px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(140deg,#456be7,#8bb2fa);color:#fff;font-weight:700;will-change:transform,opacity;position:relative;box-shadow:0 12px 24px #27478122;transition:transform var(--m37-speed) cubic-bezier(.2,.7,.2,1),opacity var(--m37-speed) ease,background-color var(--m37-speed)}
.m37-object.m37-on{transform:translateX(var(--m37-move)) rotate(20deg);opacity:.7}
.m37-stage.m37-expanded .m37-object{width:110px;height:85px;transform:rotate(-4deg)}
.m37-stage.m37-vertical{align-items:start}
.m37-tiles{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;padding:12px}
.m37-tile{min-width:48px;height:53px;padding:8px;display:grid;place-items:center;border-radius:10px;background:#4768d1;color:#fff;font-weight:700}
.m37-tile:nth-child(2){background:#329d9d}.m37-tile:nth-child(3){background:#b274cc}
.m37-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.m37 button,.m37 select,.m37 input{font:inherit;font-size:14px}
.m37 button{padding:8px 11px;min-height:42px;min-width:42px;cursor:pointer;background:#fff;border:1px solid #9fafd0;border-radius:9px;color:#243b63}
.m37 button:hover{border-color:#425fd1}
.m37 button[data-action=run],.m37 button[aria-pressed=true]{background:#3b5dce;color:#fff;border-color:#3b5dce}
.m37 button:focus-visible,.m37 input:focus-visible,.m37 select:focus-visible,.m37 a:focus-visible,[data-m37] [tabindex]:focus-visible{outline:3px solid #b4680d;outline-offset:3px}
.m37 input[type=range]{width:100%;height:30px;accent-color:#405fce}
.m37 input[type=text]{width:100%;border:1px solid #93a9c8;padding:8px;border-radius:8px;min-width:0}
.m37 select{min-height:42px;padding:8px;background:#fff;border:1px solid #9fafd0;border-radius:8px;max-width:100%}
.m37-range{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center;width:100%}
.m37-range label{grid-column:1/-1}
.m37-result{min-height:28px;display:block;font-size:14px;color:#304e79;overflow-wrap:anywhere}
.m37-help{margin:0;font-size:14px;color:#536781;line-height:1.45}
.m37-scroller{height:115px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;width:100%;border:1px solid #b6c7e2;border-radius:8px;background:#f6f9ff;position:relative}
.m37-scroller .m37-line{height:55px;display:grid;place-items:center;background:#e0e8ff;border-bottom:1px solid #cbd8f0}
.m37-scroller .m37-progress{height:9px;position:sticky;top:0;background:#3e64d2;width:0%;z-index:2}
.m37-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;padding:12px}
.m37-list button{font-weight:700;min-height:52px}
.m37-pane{background:#e9effc;border:1px solid #c5d4ea;border-radius:8px;padding:12px;text-align:center;min-width:70%;margin:auto}
.m37-progress-track{width:90%;height:14px;background:#dce5f4;border-radius:20px;overflow:hidden}
.m37-progress-fill{height:100%;width:0%;background:#4165d8;border-radius:20px;transition:width .25s}
.m37-drag{touch-action:none;user-select:none;cursor:grab}
.m37-sprite{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;color:#365bc6}
.m37-sprite svg{width:48px;height:48px;display:block}
.m37-icon-action{min-width:78px!important;min-height:70px!important;display:grid!important;place-items:center;gap:4px}
.m37-icon-action svg{height:34px;width:34px;display:block}
.m37-state{display:flex;gap:8px;justify-content:center;align-items:center;padding:8px 10px;border-radius:9px;background:#e8f0fc;min-height:48px;max-width:100%;overflow-wrap:anywhere}
.m37-state svg{width:26px;height:26px;flex:none}
.m37-status-ok{color:#176d49}.m37-status-warn{color:#845414}.m37-status-error{color:#b02b33}
.m37-symbol-defs{position:absolute;width:0;height:0;overflow:hidden}
.m37-safe{border:2px solid #d4a45f;border-radius:8px;background:#fff5e5;padding:10px;text-align:center}
.m37-shape{display:flex;gap:9px;align-items:center;justify-content:center}
.m37-shape .m37-side{width:57px;height:53px;border-radius:10px;background:#c7d7f3;display:grid;place-items:center}
.m37-shape .m37-side.active{background:#405fc4;color:#fff}
.m37-copy{font-family:ui-monospace,monospace;background:#fff;border:1px solid #d0dcf1;border-radius:7px;padding:6px;overflow-wrap:anywhere;white-space:pre-wrap}
.m37-inspect{border:1px solid #d5dff0;border-radius:9px;background:#fff;padding:7px;width:100%;max-height:90px;overflow:auto}
.m37-note{display:flex;align-items:center;gap:6px}
@media(max-width:740px){.term-card .scene-m37{height:380px!important}.m37{padding:12px}.m37-stage{height:132px;min-height:132px}.m37-tiles{gap:5px}.m37-tile{min-width:40px}.m37-head b{font-size:15px}}
@media(prefers-reduced-motion:reduce){.m37-object,.m37-progress-fill,.m37-tile{transition-duration:.01ms!important;animation:none!important}.m37 *{scroll-behavior:auto!important}}
