body.cbs-unified {
  --cbsu-panel: linear-gradient(180deg, rgba(11,17,32,.96), rgba(15,23,42,.94));
  --cbsu-edge: rgba(148,163,184,.18);
  --cbsu-ink: #e8eefc;
  --cbsu-soft: #9fb0d1;
  --cbsu-accent: #7c3aed;
  --cbsu-accent2: #0ea5e9;
}
body.cbs-unified #seriesroom-app {
  background:
    radial-gradient(circle at 10% 0%, rgba(14,165,233,.13), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(124,58,237,.10), transparent 26%),
    linear-gradient(180deg, #fffaf0 0%, #f6efe2 48%, #f1e6d4 100%) !important;
  color:#2f2114 !important;
}
body.cbs-unified .cbsu-command-band,
body.cbs-unified .cbsu-cockpit-card,
body.cbs-unified .cbsu-budget-board,
body.cbs-unified .sr55-shell .sr55-card,
body.cbs-unified .sr55-shell .sr55-hero {
  background: var(--cbsu-panel) !important;
  border: 1px solid var(--cbsu-edge) !important;
  color: var(--cbsu-ink) !important;
  box-shadow: 0 20px 52px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03) !important;
  backdrop-filter: blur(16px);
}
body.cbs-unified #seriesroom-app .sr55-shell .sr55-card,
body.cbs-unified #seriesroom-app .sr55-shell .sr55-hero {
  background:linear-gradient(180deg, rgba(255,253,248,.98), rgba(250,244,234,.98)) !important;
  border:1px solid rgba(133,94,42,.18) !important;
  color:#2f2114 !important;
  box-shadow:0 18px 42px rgba(91,65,32,.10), inset 0 1px 0 rgba(255,255,255,.78) !important;
}
body.cbs-unified .sr55-shell { max-width: 1500px; margin: 0 auto; }
body.cbs-unified .sr55-hero { border-radius: 28px; overflow: hidden; position: relative; }
body.cbs-unified .sr55-tab,
body.cbs-unified .cbsu-beat-pill,
body.cbs-unified .cbsu-chip { border-radius: 999px !important; }
body.cbs-unified .sr55-tab { background: rgba(15,23,42,.86) !important; color:#d7e0f4 !important; border:1px solid rgba(148,163,184,.16) !important; }
body.cbs-unified .sr55-tab.active { background: linear-gradient(135deg, var(--cbsu-accent), var(--cbsu-accent2)) !important; color:#fff !important; }
body.cbs-unified .cbsu-command-band { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:16px; padding:16px; border-radius:22px; margin-bottom:18px; }
body.cbs-unified .cbsu-cockpit-card { border-radius:20px; padding:18px; }
body.cbs-unified .cbsu-eyebrow,
body.cbs-unified .series-mode-badge,
body.cbs-unified .sr55-kicker,
body.cbs-unified .sr55-eyebrow { color:#a5b7ff !important; text-transform:uppercase; letter-spacing:.12em; font-size:.68rem; font-weight:800; }
body.cbs-unified #seriesroom-app .sr55-kicker,
body.cbs-unified #seriesroom-app .sr55-eyebrow,
body.cbs-unified #seriesroom-app .sr55-card p,
body.cbs-unified #seriesroom-app .sr55-card small,
body.cbs-unified #seriesroom-app .sr55-pill-row span,
body.cbs-unified #seriesroom-app .sr55-chip,
body.cbs-unified #seriesroom-app .sr55-status-pill,
body.cbs-unified #seriesroom-app .sr55-mini-btn,
body.cbs-unified #seriesroom-app .sr55-list-row,
body.cbs-unified #seriesroom-app .sr55-empty {
  color:#2f2114 !important;
}
body.cbs-unified #seriesroom-app .sr55-shell h2,
body.cbs-unified #seriesroom-app .sr55-shell h3,
body.cbs-unified #seriesroom-app .sr55-shell strong,
body.cbs-unified #seriesroom-app svg text {
  color:#21160d !important;
  fill:#21160d !important;
}
body.cbs-unified #seriesroom-app .sr55-tab { background:#fffaf3 !important; color:#2f2114 !important; border:1px solid rgba(133,94,42,.24) !important; }
body.cbs-unified #seriesroom-app .sr55-tab.active { background:linear-gradient(135deg, #5b6cff, #079bd8) !important; color:#fff !important; border-color:rgba(28,92,170,.38) !important; }
body.cbs-unified .cbsu-cockpit-card h3,
body.cbs-unified .cbsu-budget-board h3 { margin:6px 0 10px; color:#fff; }
body.cbs-unified .cbsu-chip-row { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 10px; }
body.cbs-unified .cbsu-chip { display:inline-flex; align-items:center; gap:6px; padding:7px 11px; background:rgba(255,255,255,.05); border:1px solid rgba(148,163,184,.15); color:#e8eefc; font-size:.76rem; }
body.cbs-unified .cbsu-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
body.cbs-unified .cbsu-kpi { padding:14px; border-radius:16px; background:rgba(255,255,255,.04); border:1px solid rgba(148,163,184,.14); }
body.cbs-unified .cbsu-kpi b { display:block; font-size:1.18rem; color:#fff; }
body.cbs-unified .cbsu-kpi span { font-size:.76rem; color:var(--cbsu-soft); }
body.cbs-unified .cbsu-grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.cbs-unified .cbsu-select,
body.cbs-unified .cbsu-beat-lens select,
body.cbs-unified .cbsu-beat-lens button,
body.cbs-unified .cbsu-tagbar select,
body.cbs-unified .cbsu-command-band select,
body.cbs-unified .cbsu-command-band button,
body.cbs-unified .cbsu-inline-filter select {
  min-height:38px; border-radius:12px; padding:7px 10px; font:inherit; background:rgba(15,23,42,.86) !important; color:#edf3ff !important; border:1px solid rgba(148,163,184,.18) !important;
}
body.cbs-unified .cbsu-inline-filter { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
body.cbs-unified .cbsu-tagbar,
body.cbs-unified .cbsu-beat-lens { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 12px; border-radius:14px; background:linear-gradient(180deg, rgba(124,58,237,.08), rgba(14,165,233,.08)); border:1px solid rgba(129,140,248,.14); }
body.cbs-unified .cbsu-tagbar-title { font-size:.76rem; font-weight:800; color:#4c1d95; }
body.cbs-unified .cbsu-series-pill { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; font-size:.72rem; background:#eef2ff; color:#4338ca; border:1px solid #c7d2fe; }
body.cbs-unified .writer-episode-binder { position:sticky; top:0; z-index:44; display:grid; grid-template-columns:minmax(320px,auto) minmax(0,1fr); align-items:center; gap:8px 12px; margin:0 0 10px !important; padding:8px 12px !important; border-radius:0 0 16px 16px; background:linear-gradient(180deg, rgba(255,251,240,.99), rgba(249,241,223,.98)) !important; border:1px solid rgba(160,123,63,.18) !important; border-top:0 !important; box-shadow:0 12px 26px rgba(92,63,23,.1) !important; color:#2f2114 !important; }
body.cbs-unified .writer-episode-binder .web-deck-head { display:flex; align-items:center; justify-content:flex-start; gap:10px; flex-wrap:nowrap; min-width:0; }
body.cbs-unified .writer-episode-binder .web-deck-copy { display:flex; align-items:center; gap:8px; min-width:0; }
body.cbs-unified .writer-episode-binder .web-header { font-weight:900; color:#2f2114; font-size:.84rem; text-align:left; white-space:nowrap; }
body.cbs-unified .writer-episode-binder .web-focus { display:flex; align-items:center; gap:6px; min-width:0; padding:6px 8px; border-radius:999px; background:rgba(255,255,255,.72); border:1px solid rgba(160,123,63,.18); color:#5a3b22; }
body.cbs-unified .writer-episode-binder .web-focus-label { display:none; }
body.cbs-unified .writer-episode-binder .web-focus strong { font-size:.78rem; color:#2f2114; white-space:nowrap; }
body.cbs-unified .writer-episode-binder .web-focus span:last-child { max-width:92px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.72rem; opacity:.86; }
body.cbs-unified .writer-episode-binder .web-tab-row { display:flex; gap:6px; overflow-x:auto; padding-bottom:0; min-width:0; }
body.cbs-unified .writer-episode-binder .web-tab { min-width:86px; max-width:118px; border:1px solid #dbc8ab; background:linear-gradient(180deg,#fffdf8,#f5ecdb); border-radius:12px; color:#2f2114; padding:6px 8px; display:flex; flex-direction:column; gap:2px; cursor:pointer; box-shadow:0 7px 12px rgba(92,63,23,.07); }
body.cbs-unified .writer-episode-binder .web-tab.active { background:linear-gradient(135deg, rgba(124,58,237,.88), rgba(14,165,233,.72)); color:#fff; }
body.cbs-unified .writer-episode-binder .web-tab-code { font-weight:900; font-size:.68rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.cbs-unified .writer-episode-binder .web-tab-title { font-size:.6rem; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.cbs-unified .writer-episode-binder .web-tab-dot { width:6px; height:6px; border-radius:999px; display:inline-block; align-self:flex-end; }
body.cbs-unified .writer-episode-binder .web-tab-dot.bound { background:#38bdf8; box-shadow:0 0 0 2px rgba(56,189,248,.22); }
body.cbs-unified .writer-episode-binder .web-tab-dot.has-script { background:#86efac; }
body.cbs-unified .writer-episode-binder .web-add { display:inline-flex; align-items:center; gap:6px; min-height:32px; border-radius:999px; padding:6px 10px; border:1px dashed rgba(56,121,178,.45); background:linear-gradient(180deg,#f7fbff,#e8f3ff); color:#174264; font:inherit; font-weight:800; white-space:nowrap; }
body.cbs-unified .series-mode-badge { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:5px 8px; border-radius:999px; background:rgba(124,58,237,.08); border:1px solid rgba(124,58,237,.16); color:#8a63e8 !important; font-size:.55rem; margin:0; text-align:center; white-space:nowrap; }
body.cbs-unified #writer-app .editor-column { padding-top:0 !important; }
body.cbs-unified .cbsu-beat-lens { margin:10px 16px 0; }
body.cbs-unified .cbsu-beat-groups { padding:12px 16px 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; }
body.cbs-unified .cbsu-beat-group { border-radius:18px; border:1px solid rgba(148,163,184,.14); background:linear-gradient(180deg, rgba(15,23,42,.9), rgba(30,41,59,.92)); padding:12px; }
body.cbs-unified .cbsu-beat-group h4 { margin:0 0 8px; color:#fff; font-size:.92rem; }
body.cbs-unified .cbsu-beat-pills { display:flex; flex-wrap:wrap; gap:8px; }
body.cbs-unified .cbsu-beat-pill { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:7px 10px; border-radius:999px; background:rgba(255,255,255,.05); border:1px solid rgba(148,163,184,.12); font-size:.74rem; color:#d9e7ff; }
body.cbs-unified .cbsu-radar-list { display:flex; flex-direction:column; gap:10px; }
body.cbs-unified .cbsu-radar-row { display:flex; justify-content:space-between; gap:10px; padding:10px 12px; border-radius:14px; background:rgba(255,255,255,.04); border:1px solid rgba(148,163,184,.12); color:#fff; }
body.cbs-unified .cbsu-radar-meta { font-size:.74rem; color:#9fb0d1; }
body.cbs-unified .cbsu-empty { color:#9fb0d1; }
body.cbs-unified #pcc-app,
body.cbs-unified #pcc-app .pcc-wrap { color:#1f1204 !important; }
body.cbs-unified #pcc-app .cbsu-pcc-band { margin-bottom:16px; border-radius:18px; padding:14px 16px; background:linear-gradient(180deg, rgba(255,248,220,.96), rgba(254,240,200,.98)); border:1px solid rgba(120,53,15,.18); color:#4a2d0a; }
body.cbs-unified .cbsu-pcc-title { font-weight:900; margin-bottom:6px; }
body.cbs-unified .cbsu-pcc-copy { font-size:.82rem; line-height:1.55; }
body.cbs-unified #pcc-app .cbsu-pcc-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:10px; }
body.cbs-unified #pcc-app .cbsu-pcc-kpis > div { border-radius:14px; padding:12px; background:rgba(255,255,255,.58); border:1px solid rgba(120,53,15,.12); }
body.cbs-unified .cbsu-budget-board { margin:0 16px 16px; border-radius:18px; padding:16px; }
body.cbs-unified .cbsu-budget-table { width:100%; border-collapse:separate; border-spacing:0 8px; }
body.cbs-unified .cbsu-budget-table td, body.cbs-unified .cbsu-budget-table th { padding:8px 10px; text-align:left; font-size:.82rem; }
body.cbs-unified .cbsu-budget-table tbody tr { background:rgba(255,255,255,.03); border:1px solid rgba(148,163,184,.10); }
body.cbs-unified .cbsu-budget-table tbody tr td:first-child { border-radius:12px 0 0 12px; }
body.cbs-unified .cbsu-budget-table tbody tr td:last-child { border-radius:0 12px 12px 0; }
body.cbs-unified #shotlist-app .row { align-items:flex-end; }
body.cbs-unified #shotlist-app .shot-table-wrap { overflow-x:auto; max-width:100%; }
body.cbs-unified #shotlist-app .shot-table-wrap table { width:100%; table-layout:fixed; min-width:0 !important; }
body.cbs-unified #shotlist-app .shot-table-wrap th,
body.cbs-unified #shotlist-app .shot-table-wrap td { font-size:.77rem; word-break:break-word; }
body.cbs-unified #shotlist-app .shot-table-wrap input,
body.cbs-unified #shotlist-app .shot-table-wrap select,
body.cbs-unified #shotlist-app #shotlist-scene { width:100%; min-width:0; font-size:.76rem; }
@media (max-width:900px) {
  body.cbs-unified .cbsu-command-band { grid-template-columns:1fr; }
  body.cbs-unified .cbsu-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.cbs-unified .cbsu-grid-2,
  body.cbs-unified .sr55-meta-row { grid-template-columns:1fr !important; }
  body.cbs-unified #props-body { flex-direction:column !important; }
  body.cbs-unified #props-list-panel,
  body.cbs-unified #props-detail-panel { width:100% !important; max-width:none !important; }
  body.cbs-unified #pcc-app .cbsu-pcc-kpis { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  body.cbs-unified #project-shell,
  body.cbs-unified #seriesroom-app,
  body.cbs-unified #writer-app,
  body.cbs-unified #budget-app,
  body.cbs-unified #locations-app,
  body.cbs-unified #props-app,
  body.cbs-unified #wardrobe-app,
  body.cbs-unified #shotlist-app,
  body.cbs-unified #pcc-app,
  body.cbs-unified #schedule-app,
  body.cbs-unified #documentary-app,
  body.cbs-unified #adtreatment-app { padding-bottom:100px !important; }
  body.cbs-unified .cbsu-beat-lens,
  body.cbs-unified .cbsu-tagbar,
  body.cbs-unified .cbsu-inline-filter { gap:8px; padding:10px; }
  body.cbs-unified .cbsu-beat-lens select,
  body.cbs-unified .cbsu-beat-lens button,
  body.cbs-unified .cbsu-tagbar select,
  body.cbs-unified .cbsu-command-band select,
  body.cbs-unified .cbsu-command-band button,
  body.cbs-unified .cbsu-inline-filter select { width:100%; }
  body.cbs-unified .cbsu-kpi-grid { grid-template-columns:1fr 1fr; }
  body.cbs-unified .writer-episode-binder { top:0; grid-template-columns:1fr; padding:8px 10px !important; }
  body.cbs-unified .writer-episode-binder .web-deck-head { align-items:center; flex-wrap:wrap; }
  body.cbs-unified .writer-episode-binder .web-focus { min-width:0; max-width:100%; }
  body.cbs-unified .writer-episode-binder .web-tab { min-width:104px; }
  body.cbs-unified #shotlist-app .row { display:grid !important; grid-template-columns:1fr !important; align-items:stretch !important; }
  body.cbs-unified #shotlist-app .shot-table-wrap table,
  body.cbs-unified #shotlist-app .shot-table-wrap thead,
  body.cbs-unified #shotlist-app .shot-table-wrap tbody,
  body.cbs-unified #shotlist-app .shot-table-wrap tr,
  body.cbs-unified #shotlist-app .shot-table-wrap td { display:block; width:100%; }
  body.cbs-unified #shotlist-app .shot-table-wrap thead { display:none; }
  body.cbs-unified #shotlist-app .shot-table-wrap tr { border:1px solid rgba(148,163,184,.16); border-radius:14px; margin-bottom:12px; padding:10px; background:rgba(255,255,255,.03); }
  body.cbs-unified #shotlist-app .shot-table-wrap td { padding:8px 0 !important; border:0 !important; }
  body.cbs-unified #shotlist-app .shot-table-wrap td::before { content:attr(data-label); display:block; font-size:.68rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; opacity:.72; margin-bottom:4px; }
}
