/* Bundles and Rough Cuts share a quiet, content-first surface. Scoped so Library
   and the other workspaces keep their existing presentation and interactions. */
:is(#episodesView, #roughCutsView) { background: #f6f6f8 !important; color: #1d1d1f; }
:is(#episodesView, #roughCutsView) :is(.episodesMain, .roughMain) { max-width: 1360px !important; margin: 0 auto; padding: 42px 40px 72px !important; background: transparent !important; }
:is(#episodesView, #roughCutsView) :is(button, input, textarea, a, h1, h2, h3, p, b, span, small) { font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; }
:is(#episodesView, #roughCutsView) .episodeHeader { gap: 24px; margin-bottom: 28px; align-items: center; }
:is(#episodesView, #roughCutsView) .episodeHeader h1 { margin: 5px 0 8px; font-size: clamp(30px, 3vw, 40px) !important; font-weight: 720 !important; line-height: 1.12; letter-spacing: -.045em !important; text-transform: none !important; }
:is(#episodesView, #roughCutsView) .episodeHeader p { color: #73737c !important; font-size: 14px !important; line-height: 1.5; }
:is(#episodesView, #roughCutsView) .eyebrow { color: #85858d !important; font-size: 10px; letter-spacing: .14em; }
:is(#episodesView, #roughCutsView) .button { min-height: 42px; padding: 10px 16px !important; border-radius: 11px !important; font-size: 13px !important; font-weight: 620 !important; box-shadow: none !important; letter-spacing: -.01em !important; text-decoration: none; }
:is(#episodesView, #roughCutsView) .button.primary { background: #e71924 !important; color: #fff !important; border-color: #e71924 !important; }
:is(#episodesView, #roughCutsView) .button:focus-visible { outline: 3px solid #e7192460; outline-offset: 3px; }
:is(#episodesView, #roughCutsView) [hidden] { display: none !important; }
#episodesView .bundleMetrics { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 26px; padding: 0 0 22px; border: 0; border-bottom: 1px solid #e2e2e8; border-radius: 0; background: transparent; }
#episodesView .bundleMetrics > div { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 7px; padding: 0; min-height: 0; border: 0; }
#episodesView .bundleMetrics span { font-size: 13px; font-weight: 450; letter-spacing: 0; text-transform: none; }
#episodesView .bundleMetrics b { font-size: 14px; font-weight: 680; letter-spacing: -.02em; }
#episodesView #episodeGrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 22px !important; }
#episodesView .bundleCard { min-height: 0 !important; border: 1px solid #e4e4e9 !important; border-radius: 20px !important; background: #fff !important; box-shadow: 0 3px 8px #20202a04 !important; transition: box-shadow .22s, border-color .22s; }
#episodesView .bundleCard::before, #episodesView .bundleCard::after { display: none !important; }
#episodesView .bundleCard:hover { transform: none !important; border-color: #cbccd3 !important; box-shadow: 0 10px 28px #20202a09 !important; }
#episodesView .bundleCardMedia { position: relative; display: flex; height: 168px; gap: 3px; background: #ececf0; overflow: hidden; }
#episodesView .bundleCardMedia > span { display: block; flex: 1; min-width: 0; background: linear-gradient(135deg, #ededef, #e2e2e8); }
#episodesView .bundleCardMedia > span:first-child { flex: 2; }
#episodesView .bundleCardMedia img { width: 100%; height: 100%; object-fit: cover; }
#episodesView .bundleCardMedia > small { position: absolute; bottom: 12px; right: 12px; padding: 5px 9px; border-radius: 7px; background: #1d1d1fd9; color: #fff !important; font-size: 11px; font-weight: 560; backdrop-filter: blur(12px); }
#episodesView .bundleCoverPlaceholder { display: grid !important; place-items: center; }
#episodesView .bundleCoverPlaceholder svg { width: 56px; height: 56px; color: #acaeb8; }
#episodesView .bundleCardTop { display: block; padding: 20px 20px 14px; }
#episodesView .bundleCardDate { display: block; margin-bottom: 7px; font-size: 11px; color: #797982 !important; }
#episodesView .bundleCardTitle h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 20px; font-weight: 660; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
#episodesView .bundleCardTitle p { color: #777780 !important; font-size: 13px; line-height: 1.5; }
#episodesView .bundleCardStats { display: flex; gap: 18px; margin: auto 20px 18px; padding-top: 12px; border: 0; border-top: 1px solid #efeff2; border-radius: 0; background: transparent; }
#episodesView .bundleCardStats > span { display: flex; align-items: baseline; gap: 5px; padding: 0; border: 0; }
#episodesView .bundleCardStats b { font-size: 13px; font-weight: 650; }
#episodesView .bundleCardStats small { font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 450; }
#episodesView .bundleCardActions { display: flex; flex-direction: row-reverse; justify-content: space-between; padding: 0 20px 20px; gap: 8px; }
#episodesView .bundleCard .bundleOpenButton { gap: 18px; background: #f4f4f7 !important; color: #1d1d1f !important; border: 1px solid #e7e7ed !important; }
#episodesView .bundleCard .bundleOpenButton:hover { background: #fff0f1 !important; color: #ce161d !important; border-color: #f6d5d7 !important; }
#episodesView .bundleCard .bundleCardDelete { color: #7d7d86 !important; background: transparent !important; border-color: transparent !important; padding-inline: 0 !important; font-weight: 450 !important; }
#episodesView .bundleCard .bundleCardDelete:hover { color: #ce161d !important; }
#episodesView .bundleZeroCard { grid-column: 1/-1; padding: 70px 24px; border: 1px dashed #d5d5dc; border-radius: 20px; background: #fff; text-align: center; }
#episodesView .episodeDetailGrid { gap: 24px; grid-template-columns: minmax(0, 1fr) 240px; }
#episodesView .panel { border: 1px solid #e3e3e9 !important; border-radius: 16px !important; box-shadow: none !important; background: #fff !important; }
#episodesView .notesPanel { padding: 20px; margin-bottom: 22px; }
#episodesView .notesPanel label { color: #696973 !important; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
#episodesView #episodeNotes { font-size: 16px; line-height: 1.5; }
#episodesView .textBack { margin-bottom: 22px; color: #74747c !important; }
#episodesView .detailHeader .pageActions { flex-wrap: wrap; }
#roughCutsView #roughCutGrid { max-width: none; }
#roughCutsView .roughWorkerHero { display: flex; align-items: center; gap: 22px; margin: 0 0 32px; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid #e4e4e9; box-shadow: none; }
#roughCutsView .roughWorkerIdentity { flex: 1; gap: 12px; }
#roughCutsView .roughWorkerPulse { width: 34px; height: 34px; flex-basis: 34px; border-radius: 50%; }
#roughCutsView .roughWorkerPulse i { width: 8px; height: 8px; animation: none; }
#roughCutsView .roughWorkerIdentity small { font-size: 9px; letter-spacing: .08em; color: #777780; font-weight: 600; }
#roughCutsView .roughWorkerIdentity h2 { font-size: 17px; font-weight: 650; margin: 3px 0; }
#roughCutsView .roughWorkerIdentity p { max-width: 360px; font-size: 12px; }
#roughCutsView .roughWorkerStats { display: flex; gap: 24px; }
#roughCutsView .roughWorkerStats span { padding: 0; border: 0; background: transparent; }
#roughCutsView .roughWorkerStats small { color: #81818a; font-size: 9px; font-weight: 500; letter-spacing: .03em; }
#roughCutsView .roughWorkerStats b { margin-top: 5px; font-size: 12px; font-weight: 550; }
#roughCutsView .roughJobsHeading { margin-bottom: 16px; }
#roughCutsView .roughJobsHeading h2 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: #6e6e78; }
#roughCutsView .roughJobsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
#roughCutsView .cloudJobCard { padding: 26px; border: 1px solid #e4e4e9; border-radius: 20px; box-shadow: 0 3px 8px #20202a04; }
#roughCutsView .cloudJobCard > header { grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; }
#roughCutsView .cloudJobGlyph { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; }
#roughCutsView .cloudJobTitle > span { font-size: 9px; font-weight: 600; letter-spacing: .08em; color: #85858d; }
#roughCutsView .cloudJobTitle h2 { font-size: 19px; font-weight: 660; line-height: 1.25; overflow-wrap: anywhere; }
#roughCutsView .cloudJobTitle p { margin-top: 4px; font-size: 11px; }
#roughCutsView .cloudJobPercent strong { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
#roughCutsView .cloudJobPercent span { font-size: 11px; max-width: 100px; line-height: 1.4; font-weight: 500; }
#roughCutsView .cloudStages { margin: 26px 0 18px; }
#roughCutsView .cloudStages i { width: 22px; height: 22px; font-weight: 600; }
#roughCutsView .cloudStages::before { top: 10px; }
#roughCutsView .cloudStages b { font-weight: 500; font-size: 10px; }
#roughCutsView .cloudProgress { height: 5px; background: #eeeef2; }
#roughCutsView .cloudJobNow { flex-direction: column; gap: 5px; font-size: 12px; line-height: 1.5; }
#roughCutsView .cloudJobNow b { font-weight: 500; overflow-wrap: anywhere; }
#roughCutsView .cloudJobNow > span { font-size: 11px; }
#roughCutsView :is(.cloudMetrics,.cloudNotices) { gap: 7px; }
#roughCutsView :is(.cloudMetrics,.cloudNotices) > span { min-width: 0; max-width: 100%; padding: 9px 11px; border: 0; background: #f6f6f8; border-radius: 9px; }
#roughCutsView :is(.cloudMetrics,.cloudNotices) b { font-size: 11px; font-weight: 550; }
#roughCutsView :is(.cloudMetrics,.cloudNotices) small { max-width: 100%; font-size: 10px; overflow-wrap: anywhere; }
#roughCutsView .cloudNotices .offline { background: #fff5e8; }
#roughCutsView .cloudNotices .offline b { color: #8d601e; }
#roughCutsView .cloudJobError { display: block; background: #fff4f4 !important; border: 1px solid #f3dcdc !important; border-radius: 10px; padding: 12px; }
#roughCutsView .cloudJobError summary { color: #a93232; font-size: 12px; font-weight: 600; cursor: pointer; }
#roughCutsView .cloudJobError pre { color: #8c4545; font: 11px/1.6 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow-y: auto; margin-bottom: 0; }
#roughCutsView .cloudJobCard > footer { gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #efeff2; }
#roughCutsView .cloudDelete { color: #797983 !important; border-color: transparent !important; background: transparent !important; }
#roughCutsView .cloudDelete:hover { color: #ce161d !important; }
#roughCutsView .is-finished .cloudStages { display: none; }
#roughCutsView .is-finished .cloudProgress { margin-top: 22px; }
#roughCutsView .is-finished .cloudProgress i { background: #25855b !important; }
#roughCutsView .is-finished .cloudJobPercent { color: #25855b; }
#roughCutsView .is-finished .cloudJobPercent strong { color: inherit; }
#roughCutsView .newRoughCutCard { grid-column: 1/-1; border-radius: 20px !important; padding: 42px; }
#roughCutsView .roughLoadError { margin: 0 0 24px; }
@media (min-width: 768px) and (max-width: 1100px) {
  #episodesView #episodeGrid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  #roughCutsView .roughJobsGrid { grid-template-columns: 1fr; }
  #roughCutsView .roughWorkerHero { flex-wrap: wrap; }
  #episodesView .episodeDetailGrid { grid-template-columns: minmax(0,1fr) 200px; }
}
/* The mobile app has its own rendering surface; preserve its interactions. */
@media (max-width: 767px) {
  #scMobileMain[data-sc-view="bundles"], #scMobileMain[data-sc-view="rough-cuts"] { background: #f6f6f8; }
  #scMobileMain:is([data-sc-view="bundles"],[data-sc-view="rough-cuts"]) .scMobilePageHead { padding-bottom: 24px; }
  #scMobileMain:is([data-sc-view="bundles"],[data-sc-view="rough-cuts"]) .scHeadCopy h1 { font-size: 32px; font-weight: 700; letter-spacing: -.04em; }
  #scMobileMain:is([data-sc-view="bundles"],[data-sc-view="rough-cuts"]) .scKicker { display: none; }
  #scMobileMain:is([data-sc-view="bundles"],[data-sc-view="rough-cuts"]) .scHeadAction { width: 48px; height: 48px; border-radius: 14px; }
  #scMobileMain .scBundleList { gap: 18px; }
  #scMobileMain .scBundleCard { display: block; padding: 0; overflow: hidden; border: 1px solid #e1e1e7; border-radius: 18px; box-shadow: 0 3px 8px #20202a04; background: #fff; }
  #scMobileMain .scBundleMosaic { width: 100%; height: 150px; border-radius: 0; grid-template-columns: 2fr 1fr; }
  #scMobileMain .scBundleCard > .scSelectCircle { position: absolute !important; top: 10px; right: 10px; width: 44px; height: 44px; border: 1px solid #ffffff90; background: #ffffffeb; backdrop-filter: blur(16px); }
  #scMobileMain .scBundleCopy { padding: 18px; }
  #scMobileMain .scBundleCopy h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 18px !important; font-weight: 650 !important; line-height: 1.3; white-space: normal !important; overflow-wrap: anywhere; }
  #scMobileMain .scBundleCopy p { font-size: 13px; color: #74747d; }
  #scMobileMain .scBundleStats span { font-size: 12px; white-space: nowrap; }
  #scMobileMain .scRoughList { display: grid; gap: 18px; }
  #scMobileMain .scRoughCard { padding: 20px; border: 1px solid #e1e1e7; border-radius: 18px; box-shadow: 0 3px 8px #20202a04; background: #fff; }
  #scMobileMain .scRoughTop { gap: 12px; }
  #scMobileMain .scRoughIcon { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
  #scMobileMain .scRoughCopy b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 17px; line-height: 1.3; font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
  #scMobileMain .scRoughCopy small { font-size: 11px; }
  #scMobileMain .scRoughStatus b { font-size: 20px; font-weight: 650; }
  #scMobileMain .scProgress { height: 5px; }
  #scMobileMain .scRoughActions { padding-top: 16px; border-top: 1px solid #efeff2; gap: 8px; }
  #scMobileMain .scRoughActions:empty { display: none; }
  #scMobileMain .scRoughActions > * { min-height: 44px; border-radius: 11px; font-size: 12px; }
  #scMobileMain .scRoughOffline { display: grid; gap: 5px; margin-top: 14px; border: 1px solid #f4e9d8; border-radius: 10px; padding: 12px; background: #fff5e8; }
  #scMobileMain .scRoughOffline b { font-size: 13px; }
  #scMobileMain .scRoughOffline span { font-size: 11px; }
  #scMobileMain .scRoughRotation { margin-top: 10px; color: #777780; font-size: 12px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { #episodesView .bundleCard { transition: none; } }
