/* One guided, looping story; a persistent conversation and real details tabs. */
#main-content > #deal-room > .deal-section:first-child { padding-top: 1.5rem; }
.story-heading { margin-bottom: 8px; }
#deal-room .story-chapters .deal-step-link { min-height: 48px; padding-block: .5rem; }
.guided-progress { height: 2px; margin-top: -2px; }
.story-explainer { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 86px; max-width: 900px; margin: 12px auto 14px; padding: 12px 16px; border-radius: 10px; background: #e8f3f3; color: #0f4d4c; }
.story-explainer::after { content: ''; position: absolute; bottom: -5px; left: 36px; width: 10px; height: 10px; transform: rotate(45deg); background: #e8f3f3; }
.story-explainer > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.story-explainer strong { display: block; font-size: 15px; font-weight: 600; }
.story-explainer p { max-width: 84ch; margin-top: 4px; font-size: 13px; line-height: 1.5; }
#deal-room .platform-demo { margin-top: 0; }
.platform-demo .platform-appbar { min-height: 48px; }
#deal-room .platform-demo .workspace-header { min-height: 56px; }
#deal-room .platform-demo[data-chat-selected="true"] .deal-step-panel.is-active { min-height: 360px; }
.platform-demo .film-conversation-scene { padding: 12px 16px; }
.platform-demo .film-deal-history { height: 336px; max-height: 336px; padding: 4px 8px 4px 0; overflow-anchor: none; }
.platform-demo .film-deal-history .film-message:first-child { margin-top: 0; }
.platform-demo .film-deal-history .film-purchase-summary { margin-top: 16px; }
.platform-demo .film-deal-history .film-delivery { padding-bottom: 4px; }
.platform-demo .film-deal-history .film-purchase-summary > div { gap: 4px 16px; }
.platform-details-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid var(--app-line-subtle); }
.platform-details-tabs > button { min-height: 56px; padding: 8px 2px; border-bottom: 2px solid transparent; color: var(--app-secondary); font-size: 12px; font-weight: 500; }
.platform-details-tabs > button[aria-selected="true"] { border-bottom-color: var(--app-primary); color: var(--app-primary-strong); }
.platform-details-tabs > button:hover { background: var(--app-muted); }
.platform-details-tabs > button:focus-visible { outline: 2px solid var(--app-primary); outline-offset: -4px; }
.platform-deal-details [role="tabpanel"]:not([data-deal-progress]) { padding: 16px; }
.platform-seller-identity { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 0 10px; margin-bottom: 20px; }
.platform-seller-identity > span { grid-row: 1 / span 2; display: flex; justify-content: center; align-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--app-cpty-ink); background: var(--app-cpty-soft); font-size: 11px; font-weight: 600; }
.platform-seller-identity > h4 { font: 600 14px/1.4 Inter,sans-serif; color: var(--app-ink); }
.platform-seller-identity > p { margin-top: 3px; font-size: 12px; color: var(--app-secondary); }
.platform-detail-facts { display: grid; gap: 12px; }
.platform-detail-facts > div { display: grid; gap: 3px; }
.platform-detail-facts dt { font-size: 11px; color: var(--app-secondary); }
.platform-detail-facts dd { font-size: 13px; color: var(--app-ink); }
.platform-terms-state { margin-bottom: 16px; color: var(--app-primary-strong); font-size: 12px; font-weight: 500; }
.platform-deal-details .film-shared-terms { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--app-line-subtle); }
.platform-deal-details .film-terms-label { font-size: 12px; }
.platform-deal-details .film-term-version { padding: 5px 6px; font-size: 11px; }
.platform-deal-details .story-approvals { display: grid; grid-template-columns: 1fr; font-size: 11px; }
.platform-deal-details .story-approvals > span { padding: 4px 6px; }
.platform-deal-details .platform-progress-body { padding: 16px; }
.platform-deal-details .platform-progress-list > li { min-height: 40px; }
.platform-deal-details .platform-progress-list { margin-top: 16px; }
.platform-demo .workspace-footnote [data-reading-status] { margin-left: 16px; color: var(--app-primary-strong); }
@media (max-width: 767px) {
  .story-heading { display: flex; align-items: flex-start; gap: 8px; }
  .story-heading .deal-intro { margin-bottom: 0; }
  .story-heading .deal-intro h2 { max-width: 13ch; }
  .story-explainer { min-height: 134px; gap: 8px; margin-block: 12px 18px; padding: 14px 12px; }
  .story-explainer > svg { width: 16px; height: 16px; flex-basis: 16px; }
  .story-explainer strong { font-size: 13px; }
  .story-explainer p { font-size: 12px; line-height: 1.5; }
  .platform-demo .film-conversation-scene { padding: 12px; }
  .platform-demo .film-deal-history { height: 320px; max-height: 320px; }
  #deal-room .platform-demo[data-chat-selected="true"] .deal-step-panel.is-active { min-height: 344px; }
  .platform-details-tabs > button { min-height: 44px; }
  .platform-deal-details [role="tabpanel"]:not([data-deal-progress]) { padding: 12px; }
  .platform-detail-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .platform-deal-details .platform-progress-body { padding: 12px; }
  .platform-demo .workspace-footnote [data-reading-status] { display: block; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .story-explainer, .platform-deal-details *, .film-deal-history * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
