/* The request becomes a project; the selected chat remains the deal's workspace. */
.copilot-film [hidden] { display: none !important; }
.copilot-film .film-body { display: grid; grid-template-columns: minmax(0,1fr); }
.copilot-film[data-has-project="true"] .film-body { grid-template-columns: 250px minmax(0,1fr); }
.copilot-film .film-project-rail { min-width: 0; padding: 1.25rem 1rem; background: #f5f4ef; border-right: 1px solid #e1ded5; }
.film-project-name { display: grid; gap: .35rem; margin-bottom: 1.25rem; }
.film-project-name > span, .film-project-name > small { font-size: 13px; color: #625f59; }
.film-project-name > strong { font-size: 17px; line-height: 1.35; }
.film-chat-list { display: grid; gap: .5rem; }
.film-supplier { padding: .8rem .75rem; background: #fff; border-radius: 6px; color: #222; transition: background-color .25s ease; }
.film-supplier > strong { display: block; font-size: 14px; line-height: 1.4; }
.film-supplier > span { display: block; margin-top: .3rem; font-size: 12px; line-height: 1.45; color: #625f59; }
.film-supplier .film-supplier-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem .5rem; color: #075f61; }
.film-supplier-bottom > b { font-weight: 600; }
.film-supplier.is-selected { background: #dcefeb; outline: 1px solid #9ecbc1; }
.film-supplier.is-highlighted { background: #e9f2ed; }
.film-rail-note { margin-top: 1.25rem; font-size: 13px; line-height: 1.5; color: #625f59; }
#deal-room .copilot-film .film-scenes { min-width: 0; margin: 0; max-width: none; }
#deal-room .copilot-film .deal-step-panel.is-active { display: block; min-height: 470px; }
.film-scene { padding: 1.5rem 1.75rem; }
.film-copilot-scene { max-width: 50rem; margin-inline: auto; }
.film-thread-head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1.25rem; }
.film-thread-head h3 { font: 600 18px/1.4 Inter, sans-serif; }
.film-thread-head > span { font-size: 13px; line-height: 1.5; color: #625f59; }
.film-welcome { margin: 2rem 0 1rem; font-size: 18px; color: #222; }
.film-composer { padding: 1rem; border: 1px solid #9ebcb5; border-radius: 8px; background: #fff; }
.film-composer > p { min-height: 4.5em; font-size: 16px; line-height: 1.55; color: #222; }
.film-send { display: flex; align-items: center; gap: .65rem; width: fit-content; min-height: 40px; margin: 1rem 0 0 auto; padding: .6rem .85rem; background: #087578; color: #fff; border-radius: 5px; font-size: 14px; font-weight: 600; }
.film-caret { display: inline-block; width: 1px; height: 1em; margin-left: 2px; background: #087578; vertical-align: -.15em; }
.film-message { max-width: 88%; margin-block: .85rem; padding: .85rem 1rem; border-radius: 8px; }
.film-message-buyer { margin-left: auto; background: #e5f1ed; }
.film-message-supplier { margin-right: auto; background: #f2f1ec; }
.film-message-copilot { margin-right: auto; background: #edf1ef; }
.film-author { display: block; margin-bottom: .35rem; font-size: 12.5px; font-weight: 600; color: #075f61; }
.film-message p { font-size: 15px; line-height: 1.55; color: #222; }
.film-message p strong { font-weight: 600; }
.film-explainer { max-width: 62ch; margin-top: 1.25rem; color: #625f59; font-size: 14px; line-height: 1.6; }
.film-project-summary { padding-block: 1rem 1.5rem; border-bottom: 1px solid #e1ded5; margin-bottom: 1.25rem; }
.film-project-summary h4 { font: 500 28px/1.2 'Source Serif 4', Georgia, serif; }
.film-project-summary p { margin-top: .6rem; font-size: 16px; line-height: 1.5; }
.film-project-summary dl { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 1.25rem; }
.film-project-summary dt { font-size: 13px; color: #625f59; }
.film-project-summary dd { margin-top: .3rem; font-size: 15px; font-weight: 600; }
.film-chat-log { height: 210px; max-height: 210px; overflow-y: auto; scrollbar-color: #b5cbc3 #f2f1ec; scrollbar-width: thin; padding-right: .4rem; }
.film-chat-log:focus-visible { outline: 2px solid #087578; outline-offset: 3px; }
.film-chat-log .film-message:first-child { margin-top: 0; }
.film-purchase-log { height: 390px; max-height: 390px; }
.film-shared-terms { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e1ded5; }
.film-terms-label { display: flex; justify-content: space-between; gap: 1rem; font-size: 13px; margin-bottom: .5rem; }
.film-terms-label > span { color: #625f59; }
.film-term-version { display: flex; gap: 1.25rem; padding: .5rem; font-size: 14px; line-height: 1.45; }
.film-term-version > b { flex: 0 0 1.25rem; }
.film-term-version.is-current { background: #e7f2ee; color: #075f61; }
.copilot-film .story-approvals { margin-top: .65rem; gap: .5rem; font-size: 13px; }
.copilot-film .story-action { margin-top: .85rem; font-size: 13px; }
.film-purchase-summary { padding-block: 1rem; border-block: 1px solid #e1ded5; }
.film-purchase-summary > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; font-size: 15px; }
.film-purchase-summary > div > span { color: #625f59; font-size: 14px; }
.film-purchase-summary > p { margin-top: .6rem; color: #075f61; font-size: 15px; font-variant-numeric: tabular-nums; }
.film-delivery { padding-top: 1rem; }
.film-delivery > strong { font-size: 14px; }
.copilot-film .workspace-checks > div { padding-block: .65rem; }
.copilot-film .workspace-checks [data-story-doc].is-confirmed strong { color: #296246; }
.copilot-film .story-release-unavailable { color: #625f59; }
.copilot-film .story-release-status { font-size: 13px; }
.copilot-film .workspace-status { max-width: 20rem; text-align: center; }
@media (min-width: 1024px) {
  .film-negotiation-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; }
  .film-negotiation-grid .film-chat-log { height: 330px; max-height: 330px; }
  .film-negotiation-grid .film-shared-terms { margin: 0; padding: 0 0 0 1.25rem; border-top: 0; border-left: 1px solid #e1ded5; }
}
@media (max-width: 1023px) {
  .copilot-film[data-has-project="true"] .film-body { grid-template-columns: 220px minmax(0,1fr); }
  .film-scene { padding: 1.25rem; }
  .film-thread-head { display: block; }
  .film-thread-head > span { display: block; margin-top: .3rem; }
}
@media (max-width: 767px) {
  .copilot-film[data-has-project="true"] .film-body { grid-template-columns: minmax(0,1fr); }
  .copilot-film .film-project-rail { border-right: 0; border-bottom: 1px solid #e1ded5; padding: 1rem; }
  .film-project-name { grid-template-columns: 1fr auto; gap: .2rem 1rem; margin-bottom: .75rem; }
  .film-project-name > span { display: none; }
  .film-project-name > strong { font-size: 15px; }
  .film-project-name > small { align-self: center; font-size: 12px; }
  .film-supplier { padding: .65rem .75rem; }
  .film-supplier > strong { font-size: 13px; }
  .film-supplier > span:not(.film-supplier-bottom) { display: none; }
  .film-supplier-bottom { margin-top: .15rem; }
  .film-rail-note { display: none; }
  .copilot-film[data-chat-selected="true"] .film-supplier:not(.is-selected), .copilot-film[data-chat-selected="true"] .film-rail-note { display: none; }
  #deal-room .copilot-film .deal-step-panel.is-active { min-height: 390px; }
  .film-scene { padding: 1rem; }
  .film-thread-head h3 { font-size: 16px; }
  .film-thread-head > span { font-size: 12px; }
  .film-welcome { margin-top: 1rem; font-size: 16px; }
  .film-message { max-width: 96%; padding: .75rem; }
  .film-message p, .film-composer > p { font-size: 14px; }
  .film-chat-log { height: 190px; max-height: 190px; }
  .film-purchase-log { height: 390px; max-height: 390px; }
  .copilot-film .workspace-context { display: none; }
  .film-project-summary h4 { font-size: 24px; }
  .film-term-version { gap: .5rem; font-size: 13px; }
  .film-purchase-summary > p { font-size: 14px; }
  .copilot-film .workspace-status { max-width: 11rem; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .film-supplier { transition: none; }
  .film-caret { display: none; }
}
