.motion-main { padding-bottom: 78px; }
.motion-breadcrumb { display: flex; gap: 11px; padding-top: 31px; font-size: 12px; color: var(--dim, #9298a5); }
.motion-breadcrumb a { color: inherit; }
.motion-heading { display: flex; justify-content: space-between; align-items: flex-end; padding: 43px 0 47px; gap: 24px; }
.motion-kicker { color: #969ba6; font-size: 10px; font-weight: 600; letter-spacing: .15em; }
.motion-heading h1 { margin: 14px 0 18px; font-size: clamp(38px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.047em; font-weight: 550; }
.motion-heading p { color: #a5aab5; font-size: 15px; line-height: 1.7; }
.motion-text-link { display: inline-flex; align-items: center; gap: 20px; color: #e7e9ed; font-size: 13px; white-space: nowrap; }
.motion-text-link:hover { color: #b9a2ff; }
.motion-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid #2a2d35; }
.motion-toolbar p { display: flex; gap: 11px; align-items: center; font-size: 12px; }
.motion-toolbar strong { font-weight: 500; }
.motion-toolbar p > span:first-of-type { padding: 0 6px; background: #1d2027; border-radius: 4px; color: #a0a5b0; font-size: 10px; }
.motion-format { margin-left: 12px; color: #9298a5; }
.motion-reduced { display: inline-flex; align-items: center; gap: 9px; color: #abb0ba; font-size: 12px; cursor: pointer; }
.motion-reduced input { width: 14px; height: 14px; accent-color: #b9a2ff; }
.motion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.motion-card { min-width: 0; overflow: hidden; border: 1px solid #2a2d35; border-radius: 10px; background: #121419; }
.motion-card-head { padding: 21px 23px 18px; display: flex; gap: 14px; align-items: flex-start; }
.motion-card-head > div:not(.motion-tabs) { min-width: 0; }
.motion-number { font-size: 10px; font-family: ui-monospace, Consolas, monospace; color: #737987; padding-top: 4px; }
.motion-card-head h2 { font-size: 15px; letter-spacing: -.015em; font-weight: 550; line-height: 1.35; }
.motion-card-head p { color: #9298a5; font-size: 12px; margin-top: 4px; }
.motion-tabs { display: flex; align-items: center; gap: 3px; margin-left: auto; padding: 3px; border: 1px solid #2c2f37; border-radius: 6px; }
.motion-tabs { flex-shrink: 0; }
.motion-tabs button { border: 0; font-family: inherit; font-size: 10px; padding: 4px 9px; background: none; color: #9298a5; border-radius: 3px; cursor: pointer; }
.motion-tabs button[aria-selected="true"] { background: #2a2d35; color: #ededf0; }
.motion-preview, .motion-code-pane { position: relative; height: 260px; background: #0e1014; border-top: 1px solid #23262d; border-bottom: 1px solid #23262d; }
.motion-preview { display: flex; align-items: center; justify-content: center; }
.motion-preview > .motion-stage { width: min(100%, 480px); }
.motion-live { position: absolute; left: 20px; top: 15px; display: flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .06em; color: #838997; }
.motion-live::before { content: ''; width: 4px; height: 4px; background: #b9a2ff; border-radius: 50%; }
.motion-live[data-playing="false"]::before { background: #747a87; }
.motion-code-pane { padding: 18px; overflow: auto; }
.motion-code-pane pre { margin: 26px 0 0; color: #bbc0ca; font-size: 11px; line-height: 1.7; white-space: pre; }
.motion-copy-snippet { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; color: #b9a2ff; font-family: inherit; font-size: 10px; cursor: pointer; }
.motion-card [hidden] { display: none !important; }
.motion-card-controls { display: flex; align-items: center; gap: 15px; padding: 16px 20px; }
.motion-play { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 30px; height: 30px; border: 1px solid #343840; border-radius: 5px; color: #dfe2e8; background: #181b22; cursor: pointer; }
.motion-play svg { width: 12px; height: 12px; }
.motion-play:disabled { opacity: .4; cursor: default; }
.motion-speed { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #9298a5; }
.motion-speed select { color-scheme: dark; color: #c6cad2; border: 1px solid #343840; background: #181b22; border-radius: 5px; padding: 5px 7px; font: inherit; cursor: pointer; }
.motion-copy { display: inline-flex; gap: 8px; align-items: center; justify-content: center; margin-left: auto; padding: 7px 10px; min-height: 30px; border: 1px solid #343840; border-radius: 5px; background: #181b22; color: #e2e4e9; font-family: inherit; font-size: 11px; cursor: pointer; }
.motion-copy svg { width: 12px; height: 12px; }
.motion-copy:hover, .motion-play:hover { background: #242730; border-color: #555b69; }
.motion-status { padding: 0 20px 13px; margin: 0; font-size: 11px; color: #b9a2ff; }
.motion-status:empty { display: none; }
.motion-integration { padding-top: 74px; }
.motion-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.motion-section-heading h2 { margin-top: 13px; font-size: 28px; letter-spacing: -.035em; font-weight: 550; }
.motion-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 32px 0; margin-top: 28px; border-top: 1px solid #292d35; }
.motion-step { color: #717885; font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.motion-steps h3 { font-size: 14px; font-weight: 550; margin: 13px 0 9px; }
.motion-steps p { color: #949aa6; font-size: 12px; line-height: 1.75; }
.motion-steps p code { font-size: 11px; color: #b5bac4; }
.motion-steps strong { font-weight: 500; color: #b5bac4; }
.motion-api { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 28px; border: 1px solid #2a2d35; border-radius: 8px; background: #121419; }
.motion-api h3 { font-size: 17px; font-weight: 500; }
.motion-api p { margin-top: 12px; font-size: 13px; color: #949aa6; max-width: 33ch; line-height: 1.7; }
.motion-api pre { font-size: 11px; line-height: 1.8; color: #bfc4ce; margin: 0; overflow-x: auto; }
.motion-agent-link { border-top: 1px solid #2a2d35; margin-top: 60px; padding-top: 29px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.motion-agent-link h2 { font-size: 17px; font-weight: 500; }
.motion-agent-link p { color: #949aa6; font-size: 13px; margin-top: 8px; }
.motion-notice { margin-top: 30px; padding: 20px; border: 1px solid #343840; border-radius: 8px; }
@media(max-width: 760px) {
  .motion-grid { grid-template-columns: 1fr; }
  .motion-heading { padding-top: 30px; }
  .motion-card-head { padding-left: 18px; padding-right: 18px; }
  .motion-steps { grid-template-columns: 1fr; gap: 25px; }
  .motion-api { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .motion-format { display: none; }
  .motion-section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .motion-agent-link { align-items: flex-start; flex-direction: column; }
}
@media(max-width: 440px) {
  .motion-heading { align-items: flex-start; flex-direction: column; }
  .motion-card-head { gap: 10px; }
  .motion-card-head p { max-width: 23ch; }
  .motion-tabs button { padding-left: 6px; padding-right: 6px; }
  .motion-card-controls { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .motion-preview { height: 240px; }
  .motion-toolbar { align-items: flex-start; }
}
/* Keep controls and descriptions readable at ordinary laptop sizes. */
.motion-card-head h2 { font-size: 18px; }
.motion-card-head p { font-size: 14px; color: #b3b8c3; }
.motion-tabs button { font-size: 12px; padding: 6px 10px; }
.motion-live { font-size: 10px; color: #a7aeba; }
.motion-speed, .motion-copy { font-size: 13px; }
.motion-play { width: 36px; height: 36px; }
.motion-copy { min-height: 36px; }
.motion-toolbar p, .motion-reduced { font-size: 13px; }
.motion-steps p { font-size: 14px; }
.motion-steps h3 { font-size: 16px; }
.motion-api pre, .motion-code-pane pre { font-size: 13px; }
@media(max-width: 440px) { .motion-card-head { flex-wrap: wrap; } .motion-tabs { margin-left: auto; } .motion-card-head p { font-size: 13px; } .motion-speed, .motion-copy { font-size: 12px; } }
