/* The personal upload and movement experience. Kept separate from team tools. */
.motion-app, .motion-auth {
  --motion-ink: #17191d;
  --motion-muted: #73757d;
  --motion-line: #e4e5e8;
  --motion-blue: #2156ee;
  --motion-paper: #fafaf8;
  color: var(--motion-ink);
  background: var(--motion-paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color-scheme: light;
}
.motion-auth { min-height: 100dvh; }
.motion-app *, .motion-auth * { box-sizing: border-box; }
.motion-app button, .motion-auth button { font-family: inherit; }
.motion-app h1, .motion-auth h1, .motion-app h2, .motion-auth h2, .motion-app h3 { color: var(--motion-ink); }
.motion-app button:focus-visible, .motion-auth button:focus-visible,
.motion-app input:focus-visible, .motion-auth input:focus-visible,
.motion-app a:focus-visible, .motion-auth a:focus-visible { outline: 2px solid var(--motion-blue); outline-offset: 4px; }
.motion-app [hidden], .motion-auth [hidden] { display: none !important; }
.motion-app svg, .motion-auth svg { width: 21px; height: 21px; flex-shrink: 0; }
.motion-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--motion-ink); text-decoration: none; width: fit-content; }
.motion-brand img, .motion-brand .brand-logo-light { width: 32px; height: 37px; object-fit: contain; filter: none; }
.motion-brand span { font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.motion-auth-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 108px; max-width: 1280px; margin: 0 auto; padding: 20px 48px; }
.motion-auth-header { max-width: 1400px; }
.motion-text { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: #5d6068; font-size: 12px; font-weight: 650; padding: 10px 0; min-height: 44px; line-height: 1.4; }
.motion-text:hover { color: var(--motion-blue); }
.motion-primary { display: inline-flex; justify-content: center; align-items: center; gap: 32px; min-height: 52px; padding: 15px 23px; border: 1px solid var(--motion-blue); border-radius: 8px; background: var(--motion-blue); color: #fff; font-size: 12px; font-weight: 650; line-height: 1.5; box-shadow: none; text-decoration: none; }
.motion-primary:hover { background: #1745d0; border-color: #1745d0; }
.motion-primary:disabled { opacity: .42; }
.motion-primary svg { width: 18px; height: 18px; }
.motion-eyebrow { display: block; font-size: 12px; letter-spacing: .16em; font-weight: 750; color: #626975; }
.motion-auth-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); align-items: center; max-width: 1200px; gap: 80px; padding: 58px 48px 80px; margin: 0 auto; min-height: calc(100dvh - 108px); }
.motion-auth-intro { align-self: center; padding-bottom: 38px; }
.motion-auth-intro h1 { font-size: clamp(58px, 6.5vw, 88px); letter-spacing: -.066em; line-height: 1.03; font-weight: 600; margin: 25px 0 28px; }
.motion-auth-intro h1 span { color: var(--motion-blue); }
.motion-auth-intro > p { font-size: 15px; line-height: 1.9; color: #626975; max-width: 350px; }
.motion-auth-foot { margin-top: 81px; font-size: 12px; color: #626975; }
.motion-auth-form { width: 100%; max-width: 364px; justify-self: end; }
.motion-auth-form > h2 { font-size: 27px; letter-spacing: -.045em; font-weight: 650; }
.motion-auth-form > p { margin: 12px 0 25px; font-size: 12px; color: #626975; }
.motion-auth-form .field { margin-bottom: 18px; gap: 8px; }
.motion-auth-form .field span { color: #434750; font-size: 12px; font-weight: 650; }
.motion-auth-form .field input { min-height: 49px; font-size: 13px; color: var(--motion-ink); border: 1px solid #dddfe4; border-radius: 7px; background: #fff; box-shadow: none; padding: 12px 13px; }
.motion-auth-form .field input::placeholder { color: #626975; }
.motion-auth-form .error { font-size: 12px; margin: 12px 0; }
.motion-auth-form .error:empty { display: none; }
.motion-auth-form .motion-primary { width: 100%; justify-content: space-between; margin-top: 4px; }
.motion-auth-form .motion-primary span { font-size: 20px; line-height: 1; }
.motion-auth-form .motion-invite { margin-top: 12px; font-size: 12px; }
.motion-auth-form .motion-auth-note { font-size: 12px; line-height: 1.8; color: #626975; margin: 23px 0 0; border-top: 1px solid #e3e4e7; padding-top: 21px; }
.motion-main { max-width: 1184px; margin: 0 auto; padding: 69px 48px 84px; }
.motion-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 38px; }
.motion-page-heading .motion-eyebrow { margin-bottom: 16px; }
.motion-page-heading h1 { font-size: clamp(34px, 3.5vw, 45px); font-weight: 600; line-height: 1.13; letter-spacing: -.055em; overflow-wrap: anywhere; }
.motion-page-heading p { color: #626975; font-size: 12px; margin-top: 12px; }
.motion-page-heading > button { flex-shrink: 0; }
.motion-upload-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr); gap: 74px; align-items: start; }
.motion-upload-layout form { min-width: 0; }
.motion-drop { min-height: 294px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; text-align: center; border: 1px dashed #c9cdd5; border-radius: 11px; background: #fff; transition: background .15s, border-color .15s; }
.motion-drop.dragging { border-color: var(--motion-blue); background: #f0f4ff; }
.motion-upload-symbol { display: grid; place-items: center; width: 48px; height: 48px; color: #3b5fc7; background: #f0f3fa; border-radius: 50%; margin-bottom: 18px; }
.motion-upload-symbol svg { width: 22px; height: 22px; }
.motion-drop h2 { font-size: 20px; letter-spacing: -.035em; font-weight: 650; }
.motion-drop > p { margin-top: 7px; font-size: 12px; color: #626975; }
.motion-file-actions { display: flex; align-items: center; flex-direction: column; gap: 4px; margin-top: 22px; }
.motion-file-actions .motion-primary { min-height: 44px; font-size: 12px; padding: 11px 20px; gap: 24px; }
.motion-file-actions .motion-text { font-size: 12px; }
.motion-file-actions .motion-text svg { width: 15px; height: 15px; }
.motion-file-limits { color: #626975; font-size: 12px; margin-top: 14px; }
.motion-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.motion-selection { display: flex; align-items: center; gap: 13px; border: 1px solid #dfe3ec; background: #f0f3fa; border-radius: 8px; padding: 14px; margin-top: 13px; }
.motion-file-icon { display: grid; place-items: center; color: #4263b1; width: 28px; }
.motion-selection > div:nth-child(2) { flex: 1; min-width: 0; }
.motion-selection strong { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 650; line-height: 1.5; }
.motion-selection span { font-size: 12px; color: #626975; }
.motion-icon-button { display: grid; place-items: center; width: 36px; min-height: 36px; background: transparent; color: #626975; }
.motion-icon-button svg { width: 17px; height: 17px; }
.motion-permission { margin: 20px 0 21px; }
.motion-permission label { display: flex; gap: 10px; align-items: start; font-size: 12px; color: #626975; line-height: 1.65; }
.motion-permission input { width: 15px; height: 15px; padding: 0; accent-color: var(--motion-blue); margin: 2px 0 0; flex-shrink: 0; }
.motion-permission p { margin: 8px 0 0 25px; font-size: 12px; line-height: 1.75; color: #626975; }
.motion-submit { width: 100%; justify-content: space-between; }
.motion-capture-guide { padding-top: 4px; }
.motion-capture-guide h2 { margin-top: 17px; font-size: 26px; font-weight: 600; letter-spacing: -.05em; }
.motion-capture-guide ol { list-style: none; margin: 26px 0 0; padding: 0; }
.motion-capture-guide li { display: flex; gap: 15px; padding-bottom: 25px; }
.motion-capture-guide li > span { font-size: 12px; color: #626975; padding-top: 3px; }
.motion-capture-guide li strong { font-size: 12px; font-weight: 700; }
.motion-capture-guide li p { color: #626975; font-size: 12px; line-height: 1.7; margin-top: 6px; max-width: 205px; }
.motion-estimate-note { border-top: 1px solid var(--motion-line); padding-top: 22px; font-size: 12px; line-height: 1.9; color: #626975; max-width: 265px; }
.motion-message-error { color: #a33a30; font-size: 12px; line-height: 1.6; margin: 12px 0; }
.motion-message-error:empty, .motion-availability:empty { display: none; }
.motion-availability { font-size: 12px; line-height: 1.7; color: #775923; background: #f4efe5; border: 1px solid #e9dfca; border-radius: 7px; padding: 10px 15px; margin-bottom: 15px; }
.motion-availability .motion-text { display: block; min-height: 34px; font-size: 12px; padding-block: 6px; color: #664a1a; }
.motion-upload-progress > div { display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 15px; }
.motion-upload-progress .motion-text { font-size: 12px; }
.motion-app progress { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 5px; border: 0; border-radius: 4px; background: #e4e8f1; overflow: hidden; }
.motion-app progress::-webkit-progress-bar { background: #e4e8f1; }
.motion-app progress::-webkit-progress-value { background: var(--motion-blue); }
.motion-app progress::-moz-progress-bar { background: var(--motion-blue); }
.motion-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 33px 23px; }
.motion-clip { display: block; min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: var(--motion-ink); text-align: left; }
.motion-thumbnail { position: relative; aspect-ratio: 16/10; border-radius: 9px; background: #e9ebef; display: grid; place-items: center; overflow: hidden; }
.motion-thumbnail > svg { width: 33px; height: 33px; color: #9aa3b3; }
.motion-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.motion-clip:hover .motion-thumbnail { box-shadow: 0 0 0 2px #aabcf2; }
.motion-clip-status { position: absolute; bottom: 12px; left: 12px; padding: 5px 9px; color: #33415d; font-size: 12px; line-height: 1.5; font-weight: 650; background: #fff; border-radius: 5px; }
.motion-clip-status.failed { color: #9b4138; }
.motion-clip h2 { font-size: 12px; font-weight: 650; letter-spacing: -.015em; margin: 12px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.motion-clip > p { font-size: 12px; color: #626975; }
.motion-library-empty { display: flex; min-height: 300px; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px dashed #d7dbe3; border-radius: 10px; gap: 14px; padding: 32px 20px; }
.motion-library-empty > svg { width: 38px; height: 38px; margin-bottom: 8px; color: #9aa6bf; }
.motion-library-empty h2 { font-size: 24px; }
.motion-library-empty p { color: #626975; font-size: 12px; }
.motion-back { margin-top: -29px; margin-bottom: 20px; font-size: 12px; }
.motion-back svg { width: 17px; height: 17px; }
.motion-detail-heading { margin-bottom: 24px; }
.motion-detail-heading h1 { font-size: clamp(25px, 3vw, 35px); }
.motion-delete { font-size: 12px; color: #626975; white-space: nowrap; }
.motion-processing, .motion-failed { text-align: center; min-height: 370px; border-radius: 11px; border: 1px solid var(--motion-line); padding: 60px 35px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.motion-processing h2, .motion-failed h2 { font-size: 26px; margin: 19px 0 12px; }
.motion-processing > p, .motion-failed p { color: #626975; font-size: 12px; max-width: 440px; }
.motion-failed-video { width: 100%; max-width: 480px; max-height: 60vh; border-radius: 9px; background: #000; }
.motion-processing progress { width: 260px; max-width: 100%; margin-top: 24px; }
.motion-processing .motion-processing-note { font-size: 12px; margin-top: 25px; }
.motion-failed .motion-primary { margin-top: 27px; }
.motion-failed .motion-text { font-size: 12px; margin-top: 8px; }
.motion-orbit { width: 32px; height: 32px; border: 2px solid #e2e7f4; border-top-color: #4771dc; border-radius: 50%; margin-bottom: 26px; animation: motion-orbit 1.1s linear infinite; }
@keyframes motion-orbit { to { transform: rotate(360deg); } }
.motion-viewer { border: 1px solid var(--motion-line); border-radius: 10px; overflow: hidden; background: #fff; }
.motion-video-wrap { position: relative; display: block; width: 100%; aspect-ratio: 16/9; max-height: 64vh; min-height: 180px; background: #111318; margin: 0 auto; }
.motion-video-wrap video { width: 100%; height: 100%; display: block; object-fit: contain; }
.motion-video-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.motion-viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 20px; }
.motion-overlay-toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.motion-overlay-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.motion-switch { width: 31px; height: 18px; padding: 2px; border-radius: 12px; background: #b8beca; display: inline-block; }
.motion-switch::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.motion-overlay-toggle input:checked + .motion-switch { background: var(--motion-blue); }
.motion-overlay-toggle input:checked + .motion-switch::before { transform: translateX(13px); }
.motion-overlay-toggle input:focus-visible + .motion-switch { outline: 2px solid var(--motion-blue); outline-offset: 3px; }
.motion-viewer-toolbar > span { font-size: 12px; line-height: 1.6; text-align: right; color: #626975; }
.motion-viewer-toolbar .motion-text { font-size: 12px; min-height: 26px; padding: 0; }
.motion-viewer-notes { display: flex; justify-content: space-between; gap: 35px; margin-top: 28px; }
.motion-viewer-notes h2 { font-size: 18px; font-weight: 650; }
.motion-viewer-notes p { max-width: 555px; font-size: 12px; line-height: 1.8; color: #626975; margin-top: 10px; }
.motion-coverage { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.motion-coverage strong { font-size: 34px; font-weight: 600; letter-spacing: -.05em; }
.motion-coverage span { font-size: 12px; color: #626975; line-height: 1.6; }
.motion-low-coverage { margin-top: 20px; font-size: 12px; color: #626975; }
.motion-delete-dialog { width: min(400px, calc(100vw - 40px)); border: 1px solid #dfe2e9; border-radius: 12px; padding: 27px; box-shadow: 0 20px 80px #0002; color: var(--motion-ink); background: #fff; }
.motion-delete-dialog::backdrop { background: #13192265; }
.motion-delete-dialog h2 { font-size: 23px; }
.motion-delete-dialog > p { font-size: 12px; line-height: 1.8; color: #626975; margin: 14px 0 23px; }
.motion-delete-dialog > div { display: flex; justify-content: flex-end; gap: 23px; }
.motion-delete-dialog .motion-primary { background: #a63d34; border-color: #a63d34; font-size: 12px; min-height: 44px; padding: 12px 18px; }
.motion-embedded { margin-top: -8px; background: transparent; }
.motion-embedded .motion-main { padding: 20px 0 40px; }
.motion-embedded .motion-back { margin-top: 0; }
@media (max-width: 980px) {
  .motion-auth-layout { gap: 44px; }
  .motion-auth-intro h1 { font-size: 66px; }
  .motion-main { padding-inline: 32px; }
  .motion-upload-layout { gap: 40px; grid-template-columns: minmax(0, 1.5fr) minmax(210px, 1fr); }
}
@media (max-width: 680px) {
  .motion-auth-header { min-height: 79px; padding: 18px 24px; }
  .motion-brand img, .motion-brand .brand-logo-light { width: 26px; height: 31px; }
  .motion-brand span { font-size: 12px; letter-spacing: .04em; }
  .motion-auth-layout { grid-template-columns: 1fr; gap: 38px; padding: 35px 27px 42px; min-height: auto; max-width: 430px; }
  .motion-auth-intro { padding: 0; }
  .motion-auth-intro .motion-eyebrow { font-size: 12px; }
  .motion-auth-intro h1 { font-size: clamp(51px, 12vw, 68px); margin: 19px 0 20px; }
  .motion-auth-intro > p { font-size: 12px; line-height: 1.8; }
  .motion-auth-foot { display: none; }
  .motion-auth-form { max-width: none; justify-self: stretch; }
  .motion-auth-form > h2 { font-size: 22px; }
  .motion-auth-form > p { margin: 8px 0 22px; font-size: 12px; }
  .motion-auth-form .field input { font-size: 16px; }
  .motion-auth-form .field { margin-bottom: 15px; }
  .motion-auth-form .motion-auth-note { margin-top: 18px; font-size: 12px; padding-top: 17px; }
  .motion-auth-form .motion-primary { min-height: 49px; }
  .motion-main { padding: 40px 23px 50px; }
  .motion-page-heading { gap: 20px; align-items: start; flex-direction: column; margin-bottom: 26px; }
  .motion-page-heading h1 { font-size: 34px; }
  .motion-page-heading p { font-size: 12px; margin-top: 11px; }
  .motion-page-heading .motion-eyebrow { font-size: 12px; margin-bottom: 14px; }
  .motion-upload-layout { grid-template-columns: 1fr; gap: 38px; }
  .motion-drop { min-height: 282px; padding-inline: 12px; }
  .motion-drop h2 { font-size: 20px; }
  .motion-file-limits { font-size: 12px; }
  .motion-capture-guide { border-top: 1px solid var(--motion-line); padding-top: 26px; }
  .motion-capture-guide h2 { font-size: 24px; margin-top: 12px; }
  .motion-capture-guide ol { margin-top: 23px; }
  .motion-capture-guide li { padding-bottom: 21px; }
  .motion-capture-guide li p { max-width: none; }
  .motion-estimate-note { max-width: none; font-size: 12px; }
  .motion-permission label { font-size: 12px; }
  .motion-library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .motion-library .motion-thumbnail { aspect-ratio: 1; }
  .motion-clip-status { left: 7px; bottom: 7px; font-size: 12px; padding: 4px 6px; }
  .motion-clip h2 { font-size: 12px; }
  .motion-clip > p { font-size: 12px; }
  .motion-library-empty h2 { font-size: 23px; }
  .motion-back { margin-top: -13px; margin-bottom: 18px; }
  .motion-detail-heading { gap: 10px; }
  .motion-detail-heading h1 { font-size: 27px; }
  .motion-detail-heading .motion-delete { min-height: 26px; padding: 3px 0; }
  .motion-viewer-toolbar { gap: 12px; padding: 12px; align-items: start; }
  .motion-overlay-toggle { font-size: 12px; gap: 6px; }
  .motion-viewer-toolbar > span { font-size: 12px; }
  .motion-viewer-notes { flex-direction: column; gap: 22px; }
  .motion-viewer-notes h2 { font-size: 18px; }
  .motion-viewer-notes p { font-size: 12px; }
  .motion-coverage strong { font-size: 29px; }
  .motion-video-wrap { min-height: 150px; }
  .motion-processing, .motion-failed { padding: 40px 23px; min-height: 340px; }
  .motion-processing h2, .motion-failed h2 { font-size: 23px; }
  .motion-processing > p, .motion-failed p { font-size: 12px; }
  .motion-processing .motion-eyebrow { font-size: 12px; }
  .motion-embedded .motion-main { padding-top: 9px; }
}
@media (prefers-reduced-motion: reduce) { .motion-app *, .motion-auth * { transition: none !important; } .motion-orbit { animation: none; } }

/* Comfortable reading sizes and controls on every screen. */
.motion-text, .motion-primary { font-size: 14px; }
.motion-eyebrow, .motion-auth-intro .motion-eyebrow, .motion-page-heading .motion-eyebrow, .motion-processing .motion-eyebrow { font-size: 10px; }
.motion-auth-intro > p, .motion-auth-form > p, .motion-page-heading p,
.motion-drop > p, .motion-permission label, .motion-capture-guide li strong,
.motion-capture-guide li p, .motion-library-empty p, .motion-processing > p,
.motion-failed p, .motion-viewer-notes p, .motion-delete-dialog > p { font-size: 14px; }
.motion-auth-form .field span { font-size: 12px; }
.motion-auth-form .field input { font-size: 16px; }
.motion-auth-form .motion-invite, .motion-auth-form .motion-auth-note,
.motion-auth-foot,
.motion-file-actions .motion-text, .motion-file-limits,
.motion-permission p, .motion-estimate-note, .motion-clip-status,
.motion-clip > p, .motion-viewer-toolbar > span, .motion-coverage span,
.motion-low-coverage { font-size: 12px; }
.motion-file-actions .motion-primary,
.motion-clip h2, .motion-overlay-toggle { font-size: 14px; }
.motion-permission label { min-height: 44px; align-items: center; cursor: pointer; }
.motion-permission input { width: 18px; height: 18px; margin-top: 0; }
.motion-permission p { margin-left: 28px; }
.motion-overlay-toggle { min-height: 44px; }
.motion-message-error, .motion-availability { font-size: 14px; }
.motion-file-limits { max-width: 32ch; line-height: 1.8; }
.motion-drop { padding-block: 30px; }
.motion-capture-guide li p { max-width: 265px; }
.motion-viewer-toolbar > span { color: #626975; }
@media (max-width: 680px) {
  .motion-viewer-toolbar { flex-wrap: wrap; }
  .motion-viewer-toolbar > span { text-align: left; }
  .motion-delete, .motion-detail-heading .motion-delete { min-height: 44px; }
  .motion-capture-guide li p { max-width: none; }
  .motion-file-limits { max-width: 27ch; }
}

/* Optional movement tools stay out of the way until selected. */
.motion-insights { margin-top: 18px; color: #233247; }
.motion-insights [hidden] { display: none !important; }
.motion-insights h2 { font-size: 20px; font-weight: 650; letter-spacing: -.035em; margin: 0 0 15px; }
.motion-insights p { font-size: 14px; line-height: 1.65; }
.insights-analysis-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 13px; }
.insights-status { color: #626975; font-size: 13px; }
.insights-options { margin: 0; border: 1px solid #dde4ee; border-radius: 12px; background: #fff; padding: 0 18px; }
.insights-options > summary { cursor: pointer; min-height: 52px; padding: 15px 0; color: #334e76; font-size: 14px; font-weight: 650; }
.insights-options > summary span { font-size: 12px; font-weight: 400; color: #626975; margin-left: 12px; }
.insights-toggle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px 14px; padding: 0 0 17px; }
.insights-toggle-grid label { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; color: #40536e; cursor: pointer; }
.insights-toggle-grid input { width: 17px; height: 17px; min-height: 0; padding: 0; flex-shrink: 0; accent-color: #225bd7; }
.insights-button { min-height: 44px; padding: 10px 14px; font-size: 13px; line-height: 1.5; border: 1px solid #d9e2ef; background: #fff; border-radius: 8px; color: #285791; font-weight: 600; }
.insights-button:hover { background: #edf3fc; border-color: #a8bcda; }
.insights-button:disabled { opacity: .5; }
.insights-button[aria-pressed="true"] { border-color: #225bd7; background: #eaf1ff; }
.insights-frame-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 16px 0 3px; }
.insights-frame-tools label, .insights-inline-label { display: flex; align-items: center; gap: 9px; color: #546780; font-size: 13px; }
.insights-frame-tools select, .insights-inline-label select { width: auto; min-width: 90px; min-height: 44px; padding: 8px; font-size: 14px; background: #fff; border: 1px solid #d9e2ef; border-radius: 8px; }
#insights-frame-time { font-size: 12px; color: #626975; font-variant-numeric: tabular-nums; }
#insights-angle-tools { margin-top: 16px; }
.insights-note { font-size: 12px !important; color: #626975; line-height: 1.75; margin: 12px 0; }
.insights-panel { padding: 23px; border: 1px solid #dde4ee; border-radius: 12px; background: #fff; margin-top: 16px; }
.insights-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; }
.insights-metrics > div { min-width: 0; }
.insights-metrics span { display: block; font-size: 13px; color: #626975; }
.insights-metrics strong { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.035em; margin: 8px 0; }
.insights-metrics small { display: block; font-size: 12px; color: #626975; }
.insights-events { list-style: none; padding: 0; margin: 0; }
.insights-events li { padding: 12px 0; border-bottom: 1px solid #e4e9f0; }
.insights-events li:first-child { padding-top: 0; }
.insights-events .insights-button { background: transparent; border: 0; padding: 7px 0; color: #2f5d9d; text-align: left; }
.insights-events li > span { display: block; font-size: 12px; color: #626975; }
.insights-events p { margin: 6px 0 0; font-size: 12px; color: #626975; }
.insights-edit-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.insights-edit-row label, .insights-ball-coordinates label, .insights-practice-fields label, .insights-compare-fields label, .insights-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #43536b; min-width: 0; }
.motion-insights input:not([type=checkbox]), .motion-insights select, .motion-insights textarea { min-height: 44px; min-width: 0; width: 100%; border: 1px solid #d9e2ef; padding: 10px 12px; border-radius: 8px; background: #fff; color: #233247; font-size: 16px; font-family: inherit; }
.motion-insights textarea { line-height: 1.65; min-height: 94px; resize: vertical; }
.motion-insights input::placeholder { font-size: 13px; color: #6d7888; }
.insights-edit-row select { min-width: 160px; }
.insights-ball-coordinates { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; margin: 20px 0; }
.insights-practice-fields, .insights-compare-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin: 18px 0; }
.insights-field { margin: 18px 0; }
.insights-save-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; padding: 17px 0; border-top: 1px solid #dfe5ef; }
.insights-save-bar > span { flex: 1 1 200px; font-size: 13px; color: #626975; }
#insights-save { background: #225bd7; color: #fff; border-color: #225bd7; }
.insights-error { color: #a33c32; font-size: 14px; margin-top: 12px; }
.insights-error:empty { display: none; }
.insights-table-wrap { overflow-x: auto; width: 100%; }
.insights-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.insights-table-wrap th, .insights-table-wrap td { vertical-align: top; padding: 14px 12px; border-bottom: 1px solid #e1e7f0; font-weight: 400; min-width: 130px; }
.insights-table-wrap thead th { font-size: 12px; font-weight: 650; color: #526680; }
.insights-table-wrap small { display: block; font-size: 12px; color: #626975; line-height: 1.6; margin-top: 6px; overflow-wrap: anywhere; }
.insights-comparing { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 0 14px; }
.insights-comparing > * { grid-column: 1 / -1; }
.insights-comparing > .motion-viewer { grid-column: 1; }
.insights-comparing > .insights-reference-stage { grid-column: 2; }
.insights-comparing > .motion-viewer { min-width: 0; }
.insights-comparing .motion-video-wrap { min-height: 0; }
.insights-reference-stage { background: #fff; border: 1px solid #dde4ee; border-radius: 10px; overflow: hidden; min-width: 0; }
.insights-reference-stage h3 { padding: 12px 15px; font-size: 13px; color: #425878; }
.insights-reference-stage > p { padding: 12px 15px; font-size: 12px; color: #626975; overflow-wrap: anywhere; }
.insights-reference-video { position: relative; aspect-ratio: 16/9; max-height: 64vh; background: #111318; }
.insights-reference-video video { width: 100%; height: 100%; display: block; object-fit: contain; }
.insights-reference-video canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.insights-reference-notice { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; background: #111318ed; color: #fff; padding: 20px; font-size: 14px; line-height: 1.7; }
@media(max-width:680px) {
  .insights-toggle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 10px; }
  .insights-toggle-grid label { font-size: 13px; gap: 7px; }
  .insights-options { padding-inline: 14px; }
  .insights-options > summary span { display: none; }
  .insights-panel { padding: 19px; }
  .insights-metrics { grid-template-columns: 1fr; }
  .insights-practice-fields, .insights-compare-fields { grid-template-columns: 1fr; }
  .insights-ball-coordinates { grid-template-columns: 1fr 1fr; }
  .insights-ball-coordinates > button { grid-column: 1 / -1; }
  .insights-comparing { gap: 0 7px; }
  .insights-comparing .motion-viewer-toolbar { padding: 8px; }
  .insights-comparing .motion-overlay-toggle { font-size: 11px; }
  .insights-comparing #motion-pose-status { display: none; }
  .insights-reference-stage h3, .insights-reference-stage > p { padding: 8px; font-size: 11px; }
  .insights-reference-notice { font-size: 12px; padding: 10px; }
}

.insights-ball-region { margin: 5px 0 18px; border-bottom: 1px solid #e1e7f0; padding-bottom: 12px; }
.insights-ball-region > summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 13px; color: #43536b; }
.insights-region-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.insights-region-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #43536b; min-width: 0; }

/* Keep active tracking controls immediately against the video. */
.motion-detail-heading h1 { font-size:clamp(30px,4vw,42px); }
.motion-video-wrap { max-height:42vh; }
#motion-controls-dock .insights-options { margin:0; border:0; border-top:1px solid #e1e7f0; border-radius:0; padding:10px 18px; }
#motion-controls-dock .insights-options > summary { padding:4px 0; font-size:12px; }
#motion-controls-dock .insights-toggle-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:3px 12px; margin-top:8px; }
#motion-controls-dock .insights-toggle-grid label {font-size:11px;min-height:34px;}
@media(max-width:800px){#motion-controls-dock .insights-toggle-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 8px}#motion-controls-dock .insights-toggle-grid label{font-size:11px;min-height:36px}}

/* Optional video measurements share review saving and frame controls. */
.insights-chain-hand { justify-content: space-between; max-width: 340px; margin: 18px 0; }
.insights-chain-hand select { max-width: 190px; }
.insights-markers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.insights-markers > div { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px; background: #f6f8fc; border-radius: 10px; min-width: 0; }
.insights-markers > div > span { font-size: 12px; color: #526680; }
.insights-markers small { font-size: 11px; color: #626975; line-height: 1.5; }
.insights-mark-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.insights-mark-actions > button { flex: 1; padding-inline: 9px; white-space: nowrap; }
.insights-chain-segments { list-style: none; margin: 16px 0; padding: 0; }
.insights-chain-segments li { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #e1e7f0; padding: 14px 0; }
.insights-chain-segments strong { font-size: 14px; font-weight: 600; }
.insights-chain-segments small, .insights-chain-order small { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: #626975; line-height: 1.5; }
.insights-chain-segments .insights-button { flex-shrink: 0; min-width: 125px; }
.insights-chain-segments .insights-note { margin: 0; text-align: right; max-width: 125px; }
.insights-chain-order { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; }
.insights-chain-order > span:first-child { flex-basis: 100%; font-size: 12px; color: #526680; }
.insights-chain-arrow { color: #8c99aa; }
.insights-running-fields { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 12px; margin-top: 18px; }
.insights-running-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #43536b; }
.insights-running-frames { align-items: center; }
#insights-running-current { font-size: 12px; color: #626975; font-variant-numeric: tabular-nums; }
.insights-running-result { margin: 15px 0; }
.insights-running-result > span { color: #626975; font-size: 12px; }
.insights-running-result > strong { display: block; font-size: 36px; font-weight: 600; letter-spacing: -.04em; margin: 5px 0; }
.insights-running-result > strong small { color: #626975; font-size: 17px; font-weight: 400; letter-spacing: 0; }
.insights-running-result > p { margin: 6px 0 14px; }
@media(max-width:420px) {
  .insights-markers { gap: 8px; }
  .insights-markers > div { padding: 10px; }
  .insights-markers .insights-button { font-size: 12px; padding-inline: 8px; }
  .insights-chain-segments li { align-items: flex-start; gap: 8px; }
  .insights-chain-segments .insights-button { min-width: 112px; padding-inline: 8px; }
}
/* Every player's position (web/motion-positions.js). */
.mp-panel { margin-top: 16px; padding: 20px; border: 1px solid var(--motion-line, #e2e7ef); border-radius: 20px; background: #fff; }
.mp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.mp-head h2 { font-size: 19px; letter-spacing: -.02em; }
.mp-head p, .mp-note { margin-top: 6px; color: var(--motion-muted, #686b73); font-size: 13px; line-height: 1.55; }
.mp-error { color: #ac343d; }
.mp-start { margin-top: 10px; font-weight: 600; }
.mp-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--motion-ink, #1d1d1f); }
.mp-legend li.is-brief { color: var(--motion-muted, #686b73); }
.mp-key { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--mp); box-shadow: 0 0 0 1px #c9d2df; vertical-align: -2px; }
.mp-limits { margin-top: 12px; font-size: 13px; color: var(--motion-muted, #686b73); }
.mp-limits summary { cursor: pointer; color: var(--motion-blue, #1046ab); }
.mp-limits ul { margin: 8px 0 0 18px; padding: 0; line-height: 1.55; }

/* Video tools links on a rep (web/video-tools.js) */
.motion-video-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 4px; }
.motion-video-tools a { color: var(--accent, #1046ab); font-size: 14px; font-weight: 600; text-decoration: none; }

/* DM12: Pro tools fold on the Rep page (web/ia/rep.js). */
.motion-pro .motion-main { padding: 0; }
.motion-pro .motion-viewer { margin-top: 8px; }
/* Connection lost mid-upload: a calm amber note; the upload keeps waiting and resumes by itself. */
#motion-upload-form[data-connection="lost"] #motion-upload-label { color: #775923; }
#motion-upload-form[data-connection="lost"] #motion-progress { opacity: .55; }
