/* Motion follows one illustrative deal; the controls sit outside the fictional UI. */
#main-content #deal-room > .deal-section { padding-block: 2rem; }
.story-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; }
.story-heading .deal-intro { margin: 0; }
.story-heading .deal-intro h2 { font-size: clamp(1.75rem, 2.5vw, 2.25rem); }
.story-heading .story-player-controls { flex: 0 1 440px; margin: 0; }
[data-story-player] .workspace-main { padding: 1.25rem 1.5rem; }
[data-story-player] .workspace-main h3 { margin-bottom: .75rem; }
[data-story-player] .workspace-versions > div { padding-block: .45rem; }
[data-story-player] .workspace-fields { margin-top: 1rem; }
[data-story-player] .deal-step-panel.is-active { min-height: 340px; }
body[data-story-watching="true"] #mobile-sticky-cta { display: none !important; }
@media (min-width: 1024px) {
  [data-story-player] .workspace-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.story-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.story-player-controls { display: flex; align-items: center; gap: .75rem; margin: 0 0 .55rem; }
.story-player-controls button { min-height: 44px; padding: .55rem 1rem; border: 1px solid #bdbab2; border-radius: 6px; color: #075f61; font-size: 14px; font-weight: 600; }
.story-player-controls button:first-child { background: #087578; border-color: #087578; color: #fff; }
.story-player-controls button:hover { background: #e4efeb; }
.story-player-controls button:first-child:hover { background: #075b5d; }
.story-timeline { display: flex; align-items: center; flex: 1; gap: .75rem; min-width: 0; color: #625f59; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.story-progress-track { height: 4px; flex: 1; overflow: hidden; background: #d8d6ce; border-radius: 2px; }
.story-progress-track > span { display: block; width: 100%; height: 100%; background: #087578; transform: scaleX(0); transform-origin: left; }
.story-caption { color: #625f59; font-size: 14px; line-height: 1.45; margin-bottom: .75rem; min-height: 1.45em; }
#deal-room .story-chapters { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 0; background: transparent; }
#deal-room .story-chapters .deal-step-link { min-height: 48px; }
#deal-room .story-chapters .deal-step-title { font-size: 14px; }
[data-story-workspace] { position: relative; }
.story-action { margin-top: 1.35rem; cursor: default; }
.workspace-result > .story-action { color: #fff; }
.workspace-result > .story-release-unavailable { color: #625f59; }
.story-action.is-confirmed { background: #296246; }
.story-approvals { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; color: #625f59; font-size: 14px; }
.story-approvals span { padding: .35rem .65rem; background: #f4f2ec; border-radius: 4px; }
.story-approvals .is-confirmed { color: #075a5c; background: #dcefeb; }
.story-terms-status, .story-release-status { margin-top: .75rem; color: #625f59; font-size: 14px; line-height: 1.45; }
.story-release-unavailable { background: #deded8; color: #66645f; }
[data-story-field], [data-story-supplier], [data-story-terms-version], [data-story-doc] { transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
[data-story-field].is-highlighted, [data-story-supplier].is-highlighted, [data-story-terms-version].is-highlighted, [data-story-doc].is-highlighted { background: #e4f1ee; outline: 1px solid #b8d9d2; outline-offset: 2px; }
[data-story-supplier].selected, [data-story-supplier].is-selected, [data-story-terms-version].current, [data-story-terms-version].is-current { color: #075f61; background: #edf6f3; }
.workspace-checks [data-story-doc].is-confirmed strong { color: #296246; }
.story-cursor { position: absolute; z-index: 5; top: 0; left: 0; pointer-events: none; opacity: 0; transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .2s ease; }
[data-playing="true"] .story-cursor { opacity: 1; }
.story-cursor::before { content: ''; position: absolute; left: -10px; top: -10px; width: 24px; height: 24px; border: 2px solid #087578; border-radius: 50%; opacity: 0; transform: scale(.45); }
.story-cursor.is-clicking::before { animation: story-click .45s ease-out; }
@keyframes story-click { 0% { opacity: .8; transform: scale(.45); } 100% { opacity: 0; transform: scale(1.5); } }
[data-playing="false"] .story-cursor::before { animation-play-state: paused; }
.story-reduced .story-cursor { display: none; }
.workspace-status[data-state="ready"] { background: #e8f2ec; color: #296246; }
[data-story-mounted] .workspace-quote { min-height: 3.2em; }
[data-story-mounted] [data-story-field], [data-story-mounted] [data-story-supplier], [data-story-mounted] [data-story-terms-version] { transition: opacity .25s ease, transform .3s ease, background-color .25s ease; }
[data-story-mounted] [data-story-field]:not(.is-revealed), [data-story-mounted] [data-story-supplier]:not(.is-revealed), [data-story-mounted] [data-story-terms-version]:not(.is-revealed) { opacity: 0; transform: translateY(6px); }
.story-reduced [data-story-field], .story-reduced [data-story-supplier], .story-reduced [data-story-terms-version] { opacity: 1 !important; transform: none !important; }
.story-chapter-short { display: none; }
@media (max-width: 767px) {
  .story-heading { display: block; }
  .story-heading .deal-intro { margin-bottom: .75rem; }
  .story-heading .deal-intro h2 { font-size: 26px; }
  [data-story-player] .workspace-main { padding: 1rem; }
  [data-story-player] .workspace-result { padding: 1rem; }
  [data-story-player] .workspace-result > span { display: none; }
  [data-story-player] .workspace-result p { margin-top: 0; font-size: 14px; }
  [data-story-player] .workspace-fields { gap: .6rem; }
  [data-story-player] .workspace-fields strong { font-size: 14px; }
  [data-story-player] .workspace-fields span { font-size: 12px; }
  [data-story-player] .deal-step-panel.is-active { min-height: 0; }
  .story-player-controls { flex-wrap: wrap; }
  .story-timeline { flex-basis: 100%; padding-bottom: .25rem; }
  #deal-room .story-chapters { grid-template-columns: repeat(5,minmax(0,1fr)); }
  #deal-room .story-chapters .deal-step-link { min-height: 48px; padding: .4rem .15rem; }
  #deal-room .story-chapters .deal-step-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .story-chapter-short { display: block; font-size: 12px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .story-cursor { display: none; }
  [data-story-field], [data-story-supplier], [data-story-terms-version], [data-story-doc] { transition: none; }
}
