/* campaign ui: the shared campaign layout (one content frame, split
   columns, page heads, + tiles), the editable-field hover, Markdown,
   and the post-production, finance and export screens. Loaded after
   campaign-boards.css. Compend rules hold: sharp corners, solid colors,
   no shadows, green only for a done state. */

/* ---- header: switches and export at the right of the title row ---- */
#campaignView .wkactions { display: flex; gap: 8px 22px; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; flex: none; padding-top: 8px; }
/* switches are plain text: the current choice bold and underlined,
   the other one a quiet grey word. No filled boxes. */
#campaignView .wkseg { display: inline-flex; gap: 12px; align-items: baseline; }
#campaignView .wkseg button { border: none; background: transparent; border-radius: 0; font-family: var(--cp-sans); font-size: 14px; color: #737373; padding: 2px 0; cursor: pointer; white-space: nowrap; }
#campaignView .wkseg button:hover { color: var(--cp-ink); }
#campaignView .wkseg button.on { color: var(--cp-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
#campaignView .wkseg.static { font-size: 14px; color: #737373; }
#campaignView .wkactions > * + * { padding-left: 22px; border-left: 1px solid #e5e2df; }
#campaignView .wkexport { background: transparent; color: var(--cp-ink); border: none; border-radius: 0; font-family: var(--cp-sans); font-size: 14px; font-weight: 700; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
#campaignView .wkexport:hover { color: #555; }
/* tabs: one ruled row under the header, the active tab marked by a
   bar on the rule. */
#campaignView .wktabs::-webkit-scrollbar { display: none; }
#campaignView .wktabs button { padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; }
#campaignView .wktabs button.on { text-decoration: none; border-bottom-color: #0d0d0d; }
@media (max-width: 759px) {
  #campaignView .wkactions { width: 100%; justify-content: flex-start; margin-left: 0; }
  #campaignView .wktabs { margin: 0; border-bottom: none; }
  #campaignView .wktabs button { border-bottom: none; }
  #campaignView .wktabs button.on { text-decoration: underline; text-underline-offset: 3px; }
  #campaignView .wkhead + .wktabs + * { margin-top: 18px; }
}

/* ---- page layout: every tab is built from the same pieces ---- */
#campaignView .wkpagehead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 30px 0 10px; }
#campaignView .wkpagehead .cdsect { margin: 0; }
#campaignView .wkpageact { display: flex; gap: 16px; flex-wrap: wrap; }
#campaignView .wklink { border: none; background: transparent; border-radius: 0; font-family: var(--cp-sans); font-size: 13px; color: var(--cp-ink); text-decoration: underline; text-underline-offset: 3px; padding: 0; cursor: pointer; white-space: nowrap; }
#campaignView .wklink:disabled { color: #737373; cursor: default; }
#campaignView .wkmain, #campaignView .wkside { min-width: 0; }
#campaignView .wkmain > :first-child, #campaignView .wkside > :first-child, #campaignView .wkbox > :first-child { margin-top: 0; }
#campaignView .wkbox { border: 1px solid #e5e2df; padding: 16px; margin: 0 0 16px; }
#campaignView .wkbox .cdsect { margin: 0 0 10px; }
@media (min-width: 1000px) {
  /* text left, visual or summary right */
  #campaignView .wksplit,
  #campaignView .wkbriefgrid,
  #campaignView .wkshootgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 48px; align-items: start; margin-top: 0; }
  /* the working list left (70%), the context right */
  #campaignView .wkaside { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 0 40px; align-items: start; }
  #campaignView .wkaside > .wkside { position: sticky; top: 72px; }
  #campaignView .wkaside > .wkmain > .wkpagehead:first-child { margin-top: 0; }
}
@media (max-width: 999px) {
  #campaignView .wkside { margin-top: 24px; }
}

/* ---- the + tile: the last cell of every photo grid ---- */
#campaignView .cdplus { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 140px; aspect-ratio: 4 / 5; border: 1px dashed var(--cp-dash); background: #fff; border-radius: 0; font-family: var(--cp-sans); font-size: 14px; color: #555; cursor: pointer; padding: 12px; box-sizing: border-box; }
#campaignView .cdplus:hover { border-color: #0d0d0d; color: var(--cp-ink); background: #faf9f7; }
#campaignView .cdplus .cdplusmark { font-size: 30px; font-weight: 300; line-height: 1; }
#campaignView .wblocphotos .cdplus, #campaignView .wbbriefimgs .cdplus { aspect-ratio: 1.4; }
#campaignView .wbtiles.wbdrop, #campaignView .psgrid.wbdrop { outline: 2px solid var(--cp-green); outline-offset: 4px; }

/* ---- photo tiles: replace and remove sit on the photo on hover ---- */
#campaignView .wbtiles { display: grid; gap: 12px; margin: 8px 0 12px; }
#campaignView .wbbriefimgs, #campaignView .wblocphotos { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { #campaignView .wblocphotos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#campaignView .wbtile { position: relative; margin: 0; min-width: 0; }
#campaignView .wbtileimg { display: block; width: 100%; height: auto; background: #e5e2df; cursor: pointer; }
#campaignView .wbtile .wbtileact { position: absolute; top: 8px; right: 8px; display: none; gap: 6px; }
#campaignView .wbtile:hover .wbtileact, #campaignView .wbtile:focus-within .wbtileact { display: flex; }
@media (hover: none) { #campaignView .wbtile .wbtileact { display: flex; } }
#campaignView .wbtileact button { background: #fff; border: 1px solid #0d0d0d; border-radius: 0; font-family: var(--cp-sans); font-size: 12px; color: #0d0d0d; padding: 4px 8px; cursor: pointer; line-height: 1.2; }
#campaignView .wbtileact .wbtilerm { width: 26px; padding: 4px 0; font-size: 15px; }

/* ---- shots: the note is a label pinned to the foot of the image ---- */
#campaignView .wbshotgrid { align-items: start; }
#campaignView .wbshot { gap: 0; }
#campaignView .wbshotframe { position: relative; }
#campaignView .wbshotblank { display: block; aspect-ratio: 4 / 5; background: #f4f2ef; }
#campaignView .wbshotrm { position: absolute; top: 8px; right: 8px; min-width: 26px; height: 26px; background: #fff; border: 1px solid #0d0d0d; border-radius: 0; font-family: var(--cp-sans); font-size: 14px; color: #0d0d0d; cursor: pointer; display: none; padding: 0 6px; }
#campaignView .wbshot:hover .wbshotrm, #campaignView .wbshotrm[data-armed] { display: block; }
@media (hover: none) { #campaignView .wbshotrm { display: block; } }
#campaignView .wbshotnote { position: relative; z-index: 1; margin: -22px 12px 0; padding: 8px 10px; background: #fff; border: 1px solid #0d0d0d; }
#campaignView .wbshotnum { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid #0d0d0d; display: flex; align-items: center; justify-content: center; font-family: var(--cp-sans); font-size: 13px; font-weight: 700; color: #0d0d0d; }
#campaignView .wbshot textarea.wbshotconcept { display: block; width: 100%; box-sizing: border-box; border: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.5; background: transparent; resize: none; overflow: hidden; min-height: 21px; }
/* the thread: the shot's note, then the replies. Each comment is text
   on its own line, then a meta line below it with the author's pic,
   name, date and delete. One layout everywhere. */
#campaignView .wbcmt { position: relative; font-family: var(--cp-sans); font-size: 14px; line-height: 1.5; overflow-wrap: break-word; }
#campaignView .wbcmt + .wbcmt { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f2f0ef; }
#campaignView .wbcmt.mentionsme { border-left: 2px solid var(--cp-green); padding-left: 8px; }
#campaignView .wbcmtmeta { display: flex; align-items: center; gap: 5px; margin: 3px 0 0; font-size: 10.5px; color: #8a8a8a; white-space: nowrap; }
#campaignView .wbcmtmeta b { color: #555; font-weight: 700; }
#campaignView .wbcmtby { display: inline-flex; align-items: center; flex: none; }
#campaignView .wbcmtby .wbface { width: 20px; height: 20px; }
#campaignView .wbcmtby .wbface .ini { font-size: 8px; }
#campaignView .wbcmtextra { display: block; font-size: 13px; color: #555; margin-top: 2px; }
#campaignView .wbcmtrm { border: none; background: transparent; border-radius: 0; padding: 0; font-family: var(--cp-sans); font-size: 13px; line-height: 1; color: #b3261e; cursor: pointer; }
#campaignView .wbcmtrm:hover, #campaignView .wbcmtrm[data-armed] { color: #8c1d17; }
#campaignView .wbcmtrm[data-armed] { font-size: 10.5px; text-decoration: underline; }
#campaignView .wbreplybox { position: relative; margin-top: 8px; padding-top: 6px; border-top: 1px solid #f2f0ef; }
#campaignView .wbshot textarea.wbreplyin { display: block; width: 100%; box-sizing: border-box; border: none; background: transparent; padding: 2px 0; font-family: var(--cp-sans); font-size: 13px; line-height: 1.5; color: var(--cp-ink); resize: none; overflow: hidden; }
#campaignView .wbreplyin::placeholder { color: #aaa; }
/* the @ list, under the comment box */
.slmention { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border: 1px solid #0d0d0d; }
.slmention.open { display: block; }
.slmention button { display: flex; gap: 8px; align-items: center; width: 100%; border: none; background: #fff; border-radius: 0; padding: 6px 8px; font-family: var(--cp-sans); font-size: 13px; color: var(--cp-ink); text-align: left; cursor: pointer; }
.slmention button span { color: #737373; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slmention button.on, .slmention button:hover { background: #f2f0ef; }
.slmention .wbface { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #f2f0ef; overflow: hidden; flex: none; }
.slmention .wbface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slmention .wbface .ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #555; }
#psReview .psnote { position: relative; }
#campaignView .wbshot .wbconcept { font-size: 14px; line-height: 1.5; white-space: normal; overflow-wrap: break-word; }
#campaignView .wbshotdrop { aspect-ratio: 4 / 5; min-height: 0; }

/* ---- editable fields: a faint wash on hover says "you can edit
   this". Labels and headings never get it. ---- */
@media (hover: hover) {
  #campaignView .cdbrief textarea:hover, #campaignView .cdbrief input:hover,
  #campaignView input.cdtitle:hover, #campaignView .wkmetaedit input:hover,
  #campaignView input.moodline:hover, #campaignView .mdbox:hover,
  #campaignView textarea.wbshotconcept:hover, #campaignView .fnin:hover,
  #campaignView .wbrow input:hover, #campaignView .wbevent input:hover,
  #campaignView textarea.wbeventtitle:hover, #psReview .psnotetext:hover {
    background: #f6f5f3; outline: 6px solid #f6f5f3; cursor: text;
  }
}
#campaignView .mdview:focus, #campaignView .fnin:focus, #campaignView textarea.wbshotconcept:focus,
#campaignView input.cdtitle:focus, #psReview .psnotetext:focus { outline: 6px solid #f2f0ef; background: #f2f0ef; }
#campaignView .cdbrief textarea:focus, #campaignView .cdbrief input:focus { outline: 6px solid #f2f0ef; }

/* ---- markdown ---- */
.cdmd { white-space: normal; }
.cdmd p p { margin: 0 0 10px; }
.cdmd > :last-child > :last-child { margin-bottom: 0; }
.cdmd .mdh .mdh { font-weight: 700; color: var(--cp-ink); margin: 18px 0 6px; line-height: 1.3; }
.cdmd > .mdh:first-child > .mdh:first-child { margin-top: 0; }
.cdmd .mdh1 .mdh1 { font-size: 19px; }
.cdmd .mdh2 .mdh2 { font-size: 16px; }
.cdmd .mdh3 .mdh3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--cp-mute); }
.cdmd ul, .cdmd ol ul ol { margin: 0 0 10px; padding-left: 20px; }
.cdmd li li { margin: 0 0 2px; }
.cdmd blockquote blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 2px solid #0d0d0d; color: #555; }
.cdmd code code { font-family: Menlo, Consolas, monospace; font-size: 13px; background: #f2f0ef; padding: 0 3px; }
.cdmd hr hr { border: none; border-top: 1px solid #e5e2df; margin: 14px 0; }
.cdmd a a { color: var(--cp-ink); }
.mdmention { border: none; background: transparent; border-radius: 0; padding: 0; font: inherit; font-weight: 700; color: var(--cp-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#campaignView .mdview { font-family: var(--cp-sans); font-size: 15px; font-weight: 400; line-height: 1.6; letter-spacing: 0; text-transform: none; color: var(--cp-ink); min-height: 24px; margin-top: 4px; max-width: 72ch; }
#campaignView .mdempty { color: #999; }
#campaignView .mdhint { font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #737373; margin-top: 4px; }
.mdhide { display: none !important; }

/* ---- board: description above the tabs, a real empty board ---- */
#campaignView .cdwall.cdwallempty { column-count: 1; padding: 16px; }
#campaignView .cdmoodempty { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px dashed var(--cp-dash); font-family: var(--cp-sans); font-size: 15px; color: #555; text-align: center; padding: 24px; }
#campaignView .cdmoodempty .cdmoodadd { margin: 6px 0 0; }

/* ---- team ---- */
#campaignView .wbrolen { color: #737373; font-weight: 400; margin-left: 4px; }
#campaignView .wkside .cdowner { padding: 0; font-weight: 400; gap: 12px; }
#campaignView .wkside .cdowner b, #campaignView .wbaccesslabel b { font-weight: 700; font-size: 14px; }
#campaignView .wkside .cdowner .wbhandle, #campaignView .wbaccesslabel .wbhandle { font-size: 12px; }
#campaignView .wbaccesslabel { min-width: 0; overflow-wrap: anywhere; }
#campaignView .wkside .wbaccess, #campaignView .wkside .wbinvite { margin-top: 0; }
#campaignView .wkside .wbinviterow { margin-top: 0; }
#campaignView .wkside .wbinviteemail { font-size: 14px; padding: 6px 0; }
#campaignView .wkside .wbinvitego { background: transparent; color: var(--cp-ink); padding: 6px 0; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---- final shoot grid ---- */
#campaignView .psgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin: 8px 0 12px; align-items: start; }
@media (min-width: 760px) { #campaignView .psgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { #campaignView .psgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#campaignView .psfinal { cursor: zoom-in; min-width: 0; }
.psimg { position: relative; display: block; }
.psimg img { display: block; width: 100%; height: auto; background: #e5e2df; }
.pspin { position: absolute; transform: translate(-50%, -50%); min-width: 20px; height: 20px; padding: 0 4px; box-sizing: border-box; background: #0d0d0d; color: #fff; border: 1px solid #fff; font-family: var(--cp-sans); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; cursor: pointer; }
.pspin.done { background: var(--cp-green); }
.pspin.on { background: #fff; color: #0d0d0d; border-color: #0d0d0d; z-index: 2; }
#campaignView .psfoot { display: flex; gap: 8px; align-items: baseline; padding: 6px 0 0; font-family: var(--cp-sans); font-size: 13px; color: #555; min-width: 0; }
#campaignView .psfoot .psmeta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.psnum { font-family: var(--cp-sans); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--cp-mute); flex: none; }
/* the review pages (R1 Selects, Final): the notes and open notes sit
   below the tabs with room above them. */
#campaignView .pssplit { margin-top: 20px; }
#campaignView .psmsg { font-size: 13px; color: #737373; min-height: 1em; }
#campaignView .psopen { border-top: 1px solid #e5e2df; }
#campaignView .psopenrow { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 10px; width: 100%; text-align: left; border: none; border-bottom: 1px solid #f2f0ef; background: transparent; border-radius: 0; padding: 8px 0; font-family: var(--cp-sans); font-size: 14px; color: var(--cp-ink); cursor: pointer; }
#campaignView .psopenrow:hover { background: #faf9f7; }
#campaignView .psopenrow .psauthor { grid-column: 2; }
.psauthor { display: inline-flex; gap: 6px; align-items: center; font-family: var(--cp-sans); font-size: 12px; color: #555; min-width: 0; }
#campaignView .psauthor .wbface { width: 20px; height: 20px; }
#campaignView .psauthor .wbface .ini { font-size: 8px; }
.psauthor .psdate { color: #737373; }
#campaignView .psdoc { aspect-ratio: 4 / 5; border: 1px solid #0d0d0d; display: flex; align-items: center; justify-content: center; font-family: var(--cp-sans); font-size: 15px; font-weight: 700; color: #555; text-decoration: none; }
#campaignView .pslinks { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.9; }
#campaignView .pslinks a { color: var(--cp-ink); }
#campaignView .psfile .psfoot .wbremove { flex: none; }

/* ---- final review: the photo, its pins, and the notes beside it,
   joined by leader lines ---- */
#psReview { position: fixed; inset: 0; z-index: 50; background: #fff; display: none; font-family: var(--cp-sans); color: var(--cp-ink); }
#psReview.open { display: block; }
#psReview .psrv { position: relative; display: flex; flex-direction: column; height: 100%; }
#psReview .psrvtop { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #e5e2df; }
#psReview .psrvhint { font-size: 13px; color: #737373; }
#psReview .psrvnav { margin-left: auto; display: flex; gap: 16px; align-items: center; }
#psReview .psrvnav button { border: none; background: transparent; border-radius: 0; font-family: var(--cp-sans); font-size: 14px; color: var(--cp-ink); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; cursor: pointer; }
#psReview .psrvnav button:disabled { color: #bbb; text-decoration: none; cursor: default; }
#psReview #psRemove { color: #b3261e; }
#psReview #psClose { font-size: 24px; text-decoration: none; line-height: 1; }
#psReview .psrvbody { flex: 1; display: flex; min-height: 0; }
#psReview .psrvstage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; background: #f4f2ef; overflow: auto; min-width: 0; }
#psReview .psrvimg { position: relative; display: inline-block; line-height: 0; }
#psReview .psrvimg img { display: block; max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; cursor: crosshair; }
#psReview .psrvnotes { width: 380px; flex: none; border-left: 1px solid #e5e2df; overflow-y: auto; padding: 16px; box-sizing: border-box; background: #fff; }
#psReview .psnote { border: 1px solid #e5e2df; padding: 10px 12px; margin: 0 0 10px; background: #fff; }
#psReview .psnote.on { border-color: #0d0d0d; }
#psReview .psnote.done .psnotebody { color: #737373; }
#psReview .psnotehead { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
#psReview .psnotehead .psnum { color: #0d0d0d; }
#psReview .psdone { margin-left: auto; border: none; background: transparent; border-radius: 0; font-family: var(--cp-sans); font-size: 12px; color: var(--cp-ink); text-decoration: underline; text-underline-offset: 3px; padding: 0; cursor: pointer; }
#psReview .psnote.done .psdone { color: var(--cp-green); }
/* delete: hidden until the note is hovered (or the active one on
   touch), then a small red × in the bottom right corner. */
#psReview .psdel { position: absolute; right: 10px; bottom: 8px; border: none; background: transparent; border-radius: 0; font-family: var(--cp-sans); font-size: 15px; color: #b3261e; padding: 0 2px; cursor: pointer; opacity: 0; }
#psReview .psnote:hover .psdel, #psReview .psnote.on .psdel { opacity: 1; }
#psReview .psnotetext { display: block; width: 100%; border: none; background: transparent; padding: 0; font-family: var(--cp-sans); font-size: 14px; line-height: 1.5; color: var(--cp-ink); resize: none; overflow: hidden; box-sizing: border-box; }
#psReview .psnotebody { font-size: 14px; line-height: 1.5; }
#psReview .pstags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
#psReview .pstag { border: none; background: transparent; border-radius: 0; padding: 0; cursor: pointer; }
#psReview .pstag .wbface { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #f2f0ef; overflow: hidden; display: block; }
#psReview .pstag .wbface .ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #555; }
#psReview .pstag .wbface img, #psReview .psauthor .wbface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#psReview .psauthor .wbface { position: relative; width: 20px; height: 20px; border-radius: 50%; background: #f2f0ef; overflow: hidden; display: block; flex: none; }
#psReview .psauthor .wbface .ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #555; }
#psReview .pstag:hover .wbface { outline: 2px solid #0d0d0d; }
#psReview .psrvlines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#psReview .psline { fill: none; stroke: var(--cp-dash); stroke-width: 1; }
#psReview .psline.on { stroke: #0d0d0d; stroke-width: 1.5; }
#psReview .psline.done { stroke: var(--cp-green); }
@media (max-width: 759px) {
  #psReview .psrvbody { flex-direction: column; overflow-y: auto; }
  #psReview .psrvstage { flex: none; padding: 12px; }
  #psReview .psrvimg img { max-height: 60vh; }
  #psReview .psrvnotes { width: auto; border-left: none; border-top: 1px solid #e5e2df; overflow: visible; }
  #psReview .psrvlines { display: none; }
  #psReview .psrvhint { display: none; }
}

/* ---- finance: kept like a production budget. A document head, the
   top sheet by account, budget and variance, then each account in
   detail. Small even type, tabular figures, ledger rules; no display
   sizes, no color beyond red for over budget. ---- */
#campaignView .fndoc { font-family: var(--cp-sans); font-size: 13px; line-height: 1.45; color: var(--cp-ink); font-variant-numeric: tabular-nums; }
#campaignView .fndochead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 12px; border-bottom: 1px solid #0d0d0d; }
#campaignView .fndoctitle { font-size: 15px; font-weight: 700; }
#campaignView .fndocright { text-align: right; }
#campaignView .fndocmeta { font-size: 12px; color: #737373; margin-top: 2px; }
#campaignView .fnlabel { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #555; margin: 26px 0 6px; }
#campaignView .fnrow { display: grid; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid #ecebe9; min-height: 22px; }
#campaignView .fnrow.fnhead { padding: 0 0 5px; border-bottom: 1px solid #0d0d0d; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #555; min-height: 0; }
#campaignView .fntop .fnrow, #campaignView .fnbudgetrows .fnrow { grid-template-columns: 44px minmax(0, 1fr) 56px 110px 110px 110px 48px; }
#campaignView .fntop { border-top: 1px solid #0d0d0d; padding-top: 6px; }
#campaignView .fntop .fnrow.fnhead { padding-top: 0; }
#campaignView .fntop .fntotalrow { font-weight: 700; border-top: 1px solid #0d0d0d; border-bottom: none; }
#campaignView .fnbudgetrows { border-top: 3px double #0d0d0d; }
#campaignView .fnbudgetrows .fnrow { border-bottom: none; padding: 5px 0; }
#campaignView .fnvariance { font-weight: 700; }
#campaignView .fnvariance.over { color: #b3261e; }
#campaignView .fncode { display: inline-block; min-width: 36px; color: #737373; }
#campaignView .fnnum { text-align: right; white-space: nowrap; }
#campaignView .fnsoft { color: #737373; }
#campaignView .fnacct { margin-top: 34px; }
#campaignView .fnaccthead { display: flex; justify-content: space-between; align-items: baseline; padding: 0 32px 6px 0; font-size: 13px; font-weight: 700; }
#campaignView .fnacct .fnrow { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 90px 100px 80px 110px 20px; }
#campaignView .fnacct .fnwide { grid-column: 1 / 6; }
#campaignView .fnacct .fnrow > span:not(.fnnum) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#campaignView .fnmoneyin { display: flex; align-items: baseline; justify-content: flex-end; gap: 1px; }
#campaignView .fnqty { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; }
#campaignView .fnunit { color: #737373; }
#campaignView .fnin { display: block; box-sizing: border-box; border: none; background: transparent; border-radius: 0; padding: 0; font-family: var(--cp-sans); font-size: 13px; color: var(--cp-ink); font-variant-numeric: tabular-nums; width: 100%; }
#campaignView .fnmoneyin .fnin, #campaignView .fnqty .fnin { text-align: right; field-sizing: content; min-width: 2ch; width: auto; max-width: 90px; }
#campaignView .fnbudget { font-weight: 700; }
#campaignView .fnin::placeholder { color: #b5b5b5; }
#campaignView .fnrm { border: none; background: transparent; border-radius: 0; padding: 0; font-size: 13px; color: #aaa; cursor: pointer; visibility: hidden; white-space: nowrap; }
#campaignView .fnrow:hover .fnrm, #campaignView .fnrm[data-armed] { visibility: visible; }
#campaignView .fnrm[data-armed] { color: #b3261e; font-size: 11px; }
@media (hover: none) { #campaignView .fnrm { visibility: visible; } }
#campaignView .fnaddline { border: none; background: transparent; border-radius: 0; padding: 7px 0 0; font-family: var(--cp-sans); font-size: 12px; color: #737373; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#campaignView .fnaddline:hover { color: var(--cp-ink); }
#campaignView .fnempty { font-size: 12px; color: #737373; padding: 6px 0; margin: 0; }
@media (hover: hover) { #campaignView .fnin:hover { background: #f6f5f3; outline: 3px solid #f6f5f3; } }
@media (max-width: 759px) {
  #campaignView .fndoc { overflow-x: auto; }
  #campaignView .fntop, #campaignView .fnbudgetrows, #campaignView .fnacct { min-width: 640px; }
  #campaignView .fndochead { min-width: 0; flex-wrap: wrap; }
  #campaignView .fndocright { text-align: left; }
}

/* ---- export panel and the export document ---- */
#callSheet .xpanel { max-width: 880px; }
#callSheet .xcols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 24px; }
@media (min-width: 760px) { #callSheet .xcols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
#callSheet .xhead { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #0d0d0d; padding-bottom: 6px; }
#callSheet .xhead .cssect { margin: 0; }
#callSheet .xhead button { border: none; background: transparent; border-radius: 0; font-family: var(--cp-sans); font-size: 13px; color: var(--cp-ink); text-decoration: underline; text-underline-offset: 3px; padding: 0; cursor: pointer; }
#callSheet .xopt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #f2f0ef; font-family: var(--cp-sans); font-size: 15px; cursor: pointer; }
#callSheet .xopt input { margin: 0; accent-color: #0d0d0d; }
#callSheet .xsub { font-size: 12px; color: #737373; }
#callSheet .xgo { margin-top: 22px; background: transparent; color: var(--cp-ink); border: none; border-radius: 0; font-family: var(--cp-sans); font-size: 16px; font-weight: 700; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
#callSheet .xgo:disabled { color: #737373; }
#callSheet .xmsg { font-family: var(--cp-sans); font-size: 13px; color: #737373; min-height: 1em; }
/* shots read as an even contact sheet: one 4:5 frame each. */
#campaignView .wbshot .wbshotimg { aspect-ratio: 4 / 5; object-fit: cover; background: #e5e2df; }
/* tagging faces only on the note being written. */
#psReview .psnote:not(.on) .pstags { display: none; }
/* export panel and document: centered like the campaign frame, with
   the call sheet's quiet text links on top. */
#callSheet .xpanel { margin: 0 auto; padding: 28px 32px 90px; box-sizing: border-box; font-family: var(--cp-sans); }
#callSheet .xpanel .cstop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
#callSheet .xpanel .cstop button { border: none; background: transparent; border-radius: 0; font-family: var(--cp-sans); font-size: 14px; color: var(--cp-ink); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; cursor: pointer; }
#callSheet .xpanel h1 { font-family: var(--cp-sans); font-size: 28px; font-weight: 700; margin: 0; }
/* the app shell clips the body to one screen; print needs the full
   document, or every export stops after the first page. */
@media print {
  html, body { height: auto !important; overflow: visible !important; }
  #callSheet { position: static !important; overflow: visible !important; height: auto !important; }
}
@media print {
}

/* ---- shoot: camera reads full width; shot lists are tabs like the
   moodboards, with the final shoot as the last tab ---- */
#campaignView .wkfullw textarea, #campaignView .wkfullw .mdview, #campaignView .wkfullw .cdtext { max-width: none; }
#campaignView .sltabs { display: flex; flex-wrap: nowrap; align-items: flex-end; margin: 34px 0 0; border-bottom: 1px solid #0d0d0d; overflow-x: auto; scrollbar-width: none; }
#campaignView .sltabs::-webkit-scrollbar { display: none; }
#campaignView .sltab { flex: none; border: 1px solid #0d0d0d; border-bottom: none; background: #f4f2ef; border-radius: 0; font-family: var(--cp-sans); font-size: 14px; color: #555; padding: 8px 14px; margin: 0 6px -1px 0; cursor: pointer; white-space: nowrap; }
#campaignView .sltab.on { background: #fff; color: var(--cp-ink); font-weight: 700; }
#campaignView .sltab .sltabn { font-weight: 400; color: #737373; margin-left: 2px; }
/* R1 and Final travel as one group at the right end: R1 takes the auto
   margin so it sits immediately left of Final, with no gap and no
   button between them. */
#campaignView .sltab.slr1 { margin-left: auto; }
#campaignView .sltab.slfinal { margin-left: 0; margin-right: 0; }
#campaignView .sladd { flex: none; border: none; background: transparent; border-radius: 0; font-family: var(--cp-sans); font-size: 13px; color: var(--cp-ink); text-decoration: underline; text-underline-offset: 3px; padding: 0 0 8px 10px; margin-right: 12px; cursor: pointer; white-space: nowrap; }
#campaignView .slhead { margin-top: 20px; }
#campaignView .slnamewrap { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; }
#campaignView input.slname { border: none; background: transparent; border-radius: 0; padding: 0; font-family: var(--cp-sans); font-size: 18px; font-weight: 700; color: var(--cp-ink); min-width: 0; width: auto; max-width: 420px; field-sizing: content; }
#campaignView .slcount { font-size: 13px; color: #737373; white-space: nowrap; }
#campaignView .slnote { margin-top: 0; }
#campaignView .slempty { margin-top: 18px; }
@media (hover: hover) { #campaignView input.slname:hover, #campaignView .wbreplyin:hover { background: #f6f5f3; outline: 6px solid #f6f5f3; } }

/* ---- team: jump list | roster | context ---- */
#campaignView .wbjump { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; }
#campaignView .wbjump::-webkit-scrollbar { display: none; }
#campaignView .wbjump .cdsect { display: none; }
#campaignView .wbjump button { flex: none; border: none; background: transparent; border-radius: 0; font-family: var(--cp-sans); font-size: 14px; color: #555; padding: 4px 0; cursor: pointer; text-align: left; white-space: nowrap; }
#campaignView .wbjump button span { color: #9a9a9a; margin-left: 2px; }
#campaignView .wbjump button:hover, #campaignView .wbjump button.on { color: var(--cp-ink); }
#campaignView .wbjump button.on { font-weight: 700; }
#campaignView .wbrole { scroll-margin-top: 72px; }
@media (min-width: 1000px) {
  #campaignView .wkaside.wkteam { grid-template-columns: 150px minmax(0, 1fr) minmax(240px, 300px); }
  #campaignView .wkjumpcol { position: sticky; top: 72px; align-self: start; }
  #campaignView .wbjump { flex-direction: column; gap: 2px; overflow: visible; margin: 0; }
  #campaignView .wbjump .cdsect { display: block; margin: 0 0 8px; }
  #campaignView .wbjump button.on { border-left: 2px solid #0d0d0d; margin-left: -12px; padding-left: 10px; }
}

/* team side: run by heads the column with no box; access holds the
   invite at its foot. Roles are plain words. */
#campaignView .wkrunby { margin: 0 0 22px; }
#campaignView .wkrunby .cdsect { margin: 0 0 10px; }
#campaignView .wbaccess .wbinvite { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f2f0ef; }
#campaignView .wbinviteas { display: flex; gap: 10px; align-items: baseline; margin-top: 6px; font-size: 12px; color: #737373; }
#campaignView .wbrolechoice { display: inline-flex; gap: 10px; margin-top: 2px; }
#campaignView .wbrolechoice button { border: none; background: transparent; border-radius: 0; padding: 0; font-family: var(--cp-sans); font-size: 12px; color: #9a9a9a; cursor: pointer; }
#campaignView .wbrolechoice button:hover { color: var(--cp-ink); }
#campaignView .wbrolechoice button.on { color: var(--cp-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#campaignView .wbrolechoice.static { font-size: 12px; color: #737373; }
#campaignView .wbaccessrow { align-items: flex-start; }
#campaignView .wbaccessrow .wbaccessremove { margin-top: 2px; }
/* location photos: tap for full size; a small × in the corner removes. */
#campaignView .wbtileview { display: block; width: 100%; height: auto; background: #e5e2df; cursor: zoom-in; }
#campaignView .wbtile .wbtilex { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 6px; background: #fff; border: 1px solid #0d0d0d; border-radius: 0; font-family: var(--cp-sans); font-size: 13px; line-height: 1; color: #0d0d0d; cursor: pointer; display: none; }
#campaignView .wbtile:hover .wbtilex, #campaignView .wbtile .wbtilex[data-armed] { display: block; }
@media (hover: none) { #campaignView .wbtile .wbtilex { display: block; } }

/* copy: a small word in a box's bottom-right corner, on hover only. */
.cdcopyhost { position: relative; }
.cdcopy { position: absolute; right: 0; bottom: 0; display: none; border: 1px solid #d9d9d9; background: #fff; border-radius: 0; padding: 1px 6px; font-family: var(--cp-sans); font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #555; cursor: pointer; z-index: 2; }
.cdcopy:hover { color: var(--cp-ink); border-color: #0d0d0d; }
@media (hover: hover) { .cdcopyhost:hover > .cdcopy { display: block; } }
/* copy sits inside the field, bottom right; the field keeps a strip of
   room at its foot so the button never covers text. */
#campaignView .mdbox { position: relative; font-size: 15px; max-width: 72ch; padding-bottom: 20px; }
#campaignView .wkfullw .mdbox { max-width: none; }
#campaignView .mdbox .mdview { max-width: none; }
#campaignView .cdmd.cdcopyhost { padding-bottom: 20px; }
#campaignView .cdbrief.cdcopyhost { padding-bottom: 20px; }
#campaignView .cdcopyhost > .cdcopy { right: 2px; bottom: 2px; }
/* deletes: quiet words or a small corner ×, always two taps. */
#campaignView .wbmemberrm, #campaignView .wbrolerm { border: none; background: transparent; border-radius: 0; padding: 0; font-family: var(--cp-sans); font-size: 12px; color: #8a8a8a; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
#campaignView .wbmemberrm:hover, #campaignView .wbrolerm:hover, #campaignView .wbmemberrm[data-armed] { color: #b3261e; }
#campaignView .wbteam .wbcardfoot .wbmemberrm { margin-left: 12px; }
#campaignView .wbroleact { display: flex; gap: 14px; align-items: baseline; }
#campaignView .psfinalrm { position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 6px; background: #fff; border: 1px solid #0d0d0d; border-radius: 0; font-family: var(--cp-sans); font-size: 13px; line-height: 1; color: #0d0d0d; cursor: pointer; display: none; z-index: 3; }
#campaignView .psfinal:hover .psfinalrm, #campaignView .psfinalrm[data-armed] { display: block; }
@media (hover: none) { #campaignView .psfinalrm { display: block; } }
#campaignView .wkcoverwrap { position: relative; flex: none; }
#campaignView .wkcoverrm { position: absolute; top: 4px; right: 4px; min-width: 22px; height: 22px; padding: 0 5px; background: #fff; border: 1px solid #0d0d0d; border-radius: 0; font-family: var(--cp-sans); font-size: 12px; line-height: 1; cursor: pointer; display: none; }
#campaignView .wkcoverwrap:hover .wkcoverrm, #campaignView .wkcoverrm[data-armed] { display: block; }
@media (hover: none) { #campaignView .wkcoverrm { display: block; } }
/* role and privacy menus: a quiet word with a small arrow, no box. */
#campaignView select.wbrolesel, #campaignView select.wkprivsel { -webkit-appearance: none; appearance: none; border: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23737373'/%3E%3C/svg%3E") no-repeat right center; border-radius: 0; padding: 2px 12px 2px 0; font-family: var(--cp-sans); font-size: 13px; color: #555; cursor: pointer; flex: none; }
#campaignView select.wkprivsel { font-size: 14px; }
#campaignView select.wbrolesel:hover, #campaignView select.wkprivsel:hover { color: var(--cp-ink); }
#campaignView .wbrolesel.static { font-size: 13px; color: #737373; flex: none; }
#campaignView .wbaccess { margin: 0; }
#campaignView .wbaccessrow { align-items: center; gap: 10px; padding: 7px 0; }
#campaignView .wbaccessrow .wbaccesslabel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
#campaignView .wbaccessrow .wbaccessremove { margin: 0; color: #9a9a9a; font-size: 15px; visibility: hidden; }
#campaignView .wbaccessrow:hover .wbaccessremove, #campaignView .wbaccessremove[data-armed] { visibility: visible; }
#campaignView .wbaccessremove[data-armed] { color: #b3261e; font-size: 12px; }
@media (hover: none) { #campaignView .wbaccessrow .wbaccessremove { visibility: visible; } }
#campaignView .wbaccess .wbinvite { margin-top: 10px; padding-top: 10px; }
#campaignView .wkside .wbinviterow { display: flex; gap: 10px; align-items: baseline; }
#campaignView .wkside .wbinviteemail { font-size: 14px; padding: 4px 0; border-bottom-color: #e5e2df; }
/* the title reads as a title; the hover wash says it is editable. */
#campaignView .wkhead input.cdtitle { border-bottom: none; padding-bottom: 0; }
#campaignView .wkmetaedit input { border-bottom: none; color: #555; }

/* ---- run of show: one row per beat, the people and shots as chips ---- */
#campaignView .rsgrid { border: 1px solid #0d0d0d; font-family: var(--cp-sans); margin: 8px 0 22px; }
#campaignView .rsrow { display: grid; grid-template-columns: 100px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 24px; gap: 8px 16px; align-items: start; padding: 12px 14px; border-bottom: 1px solid #f2f0ef; }
#campaignView .rsrow:last-child { border-bottom: none; }
#campaignView .rsrow.rshead { border-bottom: 1px solid #0d0d0d; padding: 8px 14px; }
#campaignView .rsrow.rshead span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #737373; }
#campaignView .rstimetext, #campaignView .rstime { font-size: 14px; font-weight: 700; }
#campaignView .rsitemtext { display: block; font-size: 14px; line-height: 1.5; }
#campaignView .rsnotetext { display: block; font-size: 13px; color: #737373; margin-top: 2px; }
#campaignView .rsin { display: block; width: 100%; box-sizing: border-box; border: none; background: transparent; border-radius: 0; padding: 2px 0; font-family: var(--cp-sans); font-size: 14px; color: var(--cp-ink); }
#campaignView .rsin.rsnote { font-size: 13px; color: #555; margin-top: 2px; }
#campaignView .rsin::placeholder { color: #aaa; }
@media (hover: hover) { #campaignView .rsin:hover { background: #f6f5f3; outline: 4px solid #f6f5f3; } }
#campaignView .rschips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
#campaignView .rschip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e5e2df; background: #fff; padding: 2px 8px 2px 2px; font-size: 13px; color: var(--cp-ink); cursor: pointer; max-width: 100%; }
#campaignView .rschip:hover { border-color: #0d0d0d; }
#campaignView .rschip > span:not(.wbface) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#campaignView .rschip .wbface { width: 22px; height: 22px; }
#campaignView .rschip .wbface .ini { font-size: 8px; }
#campaignView .rschip img, #campaignView .rschip .rsnoimg { width: 22px; height: 28px; object-fit: cover; display: block; background: #e5e2df; flex: none; }
#campaignView .rsunlink { border: none; background: transparent; border-radius: 0; padding: 0 0 0 2px; font-size: 13px; color: #aaa; cursor: pointer; }
#campaignView .rsunlink:hover { color: #b3261e; }
#campaignView .rsadd { border: none; background: transparent; border-radius: 0; padding: 2px 0; font-family: var(--cp-sans); font-size: 12px; color: #737373; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
#campaignView .rsadd:hover { color: var(--cp-ink); }
#campaignView .wbshottime { position: absolute; top: 12px; left: 46px; background: #fff; border: 1px solid #0d0d0d; padding: 2px 6px; font-family: var(--cp-sans); font-size: 11px; font-weight: 700; color: #0d0d0d; }
@media (max-width: 759px) {
  #campaignView .rsgrid { border: none; }
  #campaignView .rsrow.rshead { display: none; }
  #campaignView .rsrow { grid-template-columns: 80px minmax(0, 1fr) 20px; padding: 12px 0; }
  #campaignView .rsrow > .rschips { grid-column: 2 / 3; }
}
/* the peek and the picker float over the page */
#rsPeek, #rsPick { position: fixed; z-index: 60; display: none; background: #fff; border: 1px solid #0d0d0d; font-family: var(--cp-sans); color: var(--cp-ink); }
#rsPeek.open, #rsPick.open { display: block; }
#rsPeek { width: 260px; padding: 12px; }
#rsPeek .rspeekhead { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
#rsPeek .wbface { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #f2f0ef; overflow: hidden; flex: none; }
#rsPeek .wbface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#rsPeek .wbface .ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #555; }
#rsPeek .wbnamewrap { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
#rsPeek .wbhandle { font-size: 12px; color: #737373; }
#rsPeek a { font-size: 12px; color: var(--cp-ink); overflow-wrap: anywhere; }
#rsPeek .rspeekworks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 10px; }
#rsPeek .rspeekworks img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #e5e2df; }
#rsPeek .rspeekimg { display: block; width: 100%; max-height: 300px; object-fit: cover; background: #e5e2df; margin-bottom: 10px; }
#rsPeek .rspeekbody { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
#rsPeek .wklink, #rsPick .wklink { border: none; background: transparent; border-radius: 0; padding: 0; font-family: var(--cp-sans); font-size: 13px; color: var(--cp-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#rsPick { width: 300px; }
#rsPick .rspickbar { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; border-bottom: 1px solid #e5e2df; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #737373; }
#rsPick .rspicklist { max-height: 320px; overflow-y: auto; }
#rsPick .rspickhead { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #737373; }
#rsPick .rspickopt { display: flex; gap: 8px; align-items: center; width: 100%; border: none; border-left: 2px solid transparent; background: #fff; border-radius: 0; padding: 6px 12px; font-family: var(--cp-sans); font-size: 13px; color: var(--cp-ink); text-align: left; cursor: pointer; }
#rsPick .rspickopt span { color: #737373; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#rsPick .rspickopt:hover { background: #f6f5f3; }
#rsPick .rspickopt.on { border-left-color: #0d0d0d; background: #f2f0ef; font-weight: 700; }
#rsPick .rspickopt img, #rsPick .rsnoimg { width: 26px; height: 32px; object-fit: cover; flex: none; background: #e5e2df; display: block; }
#rsPick .wbface { position: relative; width: 24px; height: 24px; border-radius: 50%; background: #f2f0ef; overflow: hidden; flex: none; }
#rsPick .wbface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#rsPick .wbface .ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #555; }
#campaignView .rschips .rsfold { display: none; }
#campaignView .rschips.rsopen .rsfold { display: inline-flex; }
#campaignView .rsmore { border: 1px solid #e5e2df; background: #fff; border-radius: 0; padding: 4px 8px; font-family: var(--cp-sans); font-size: 12px; color: #555; cursor: pointer; }
#campaignView .rsmore:hover { border-color: #0d0d0d; color: var(--cp-ink); }
/* run of show "all": everyone's faces in one overlapping row, one ×. */
#campaignView .rsall { display: inline-flex; align-items: center; padding-left: 6px; }
#campaignView .rsall .wbface { width: 26px; height: 26px; margin-left: -6px; border: 2px solid #fff; box-sizing: content-box; }
#campaignView .rsall .wbface .ini { font-size: 8px; }
#campaignView .rsall .rsunlink { margin-left: 6px; }
#rsPick .rspickall { border-bottom: 1px solid #e5e2df; }
#campaignView .rsall { flex-wrap: wrap; row-gap: 4px; padding-left: 10px; max-width: 100%; }
#campaignView .rsall .wbface { margin-left: -11px; }
/* finance: a small face beside each person, sized to the ledger line. */
#campaignView .fnacct .fnperson { display: flex; align-items: center; gap: 8px; min-width: 0; }
#campaignView .fnacct .fnperson > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#campaignView .fnacct .fnperson .wbface { width: 22px; height: 22px; }
#campaignView .fnacct .fnperson .wbface .ini { font-size: 8px; }
/* ---- finance cells: editing feels like a spreadsheet. An editable
   cell is a full, softly tinted box; the active one is white with a thin
   slate edge. Computed figures stay plain. ---- */
#campaignView .fndoc { --fn-cell: #eef2f6; --fn-cell-hover: #e3e9ef; --fn-edge: #5f7d95; --fn-head: #f4f6f8; }
#campaignView .fndoc .fncell { display: flex; align-items: center; box-sizing: border-box; min-height: 28px; padding: 3px 8px; background: var(--fn-cell); cursor: text; }
#campaignView .fndoc .fncell.fnnum { justify-content: flex-end; }
#campaignView .fndoc .fncell:hover { background: var(--fn-cell-hover); }
#campaignView .fndoc .fncell:focus-within { background: #fff; outline: 1px solid var(--fn-edge); outline-offset: -1px; }
#campaignView .fndoc .fncell .fnin { flex: 1; min-width: 0; background: transparent; outline: none; }
#campaignView .fndoc .fncell.fnnum .fnin { flex: 0 1 auto; }
#campaignView .fndoc .fnin:hover { background: transparent; outline: none; }
#campaignView .fndoc .fncell .fnunit { margin-right: 2px; }
#campaignView .fndoc .fnqty .fnunit { margin: 0 0 0 4px; }
#campaignView .fndoc .fnrow { padding: 4px 0; gap: 8px; }
#campaignView .fndoc .fnrow.fnhead { background: var(--fn-head); padding: 6px 8px; margin: 0; }
#campaignView .fndoc .fnacct .fnrow.fnhead > span:first-child, #campaignView .fndoc .fntop .fnrow.fnhead > span:first-child { padding-left: 0; }
#campaignView .fndoc .fnstatus { font-size: 12px; }
#campaignView .fndoc .fnstatus.ok { color: #4e7a57; }
#campaignView .fndoc .fnstatus.hold { color: #9a7a2e; }
#campaignView .fndoc .fncode { color: var(--fn-edge); }
#campaignView .fndoc .fnbudgetrows .fncell { justify-self: end; min-width: 110px; }
/* the shot list name: a tinted cell, like the finance cells, so it
   reads as editable. */
#campaignView input.slname { background: #eef2f6; padding: 3px 8px; margin-left: -8px; }
#campaignView input.slname:hover { background: #e3e9ef; outline: none; }
#campaignView input.slname:focus { background: #fff; outline: 1px solid #5f7d95; outline-offset: -1px; }
#campaignView .slnameread { font-size: 18px; font-weight: 700; }
/* shot threads: tighter, a face for the author, text a point smaller. */
#campaignView .wbcmt { font-size: 13px; line-height: 1.45; }
#campaignView .wbshot textarea.wbshotconcept { font-size: 13px; line-height: 1.45; }
#campaignView .wbshot .wbconcept { font-size: 13px; }
#campaignView .wbcmtextra { font-size: 12px; }
#campaignView .wbcmt + .wbcmt { margin-top: 6px; padding-top: 6px; }
#campaignView .wbshot textarea.wbreplyin { font-size: 12px; }
#campaignView .wbreplybox { margin-top: 6px; padding-top: 4px; }
/* shot number: white figure in a white ring, nothing behind it. */
#campaignView .wbshotnum { background: transparent; border: 1.5px solid #fff; color: #fff; }
/* the run time on a shot: white type straight on the photo, no box. */
#campaignView .wbshottime { top: 16px; left: 46px; background: transparent; border: none; padding: 0; color: #fff; font-size: 12px; }
/* tab strips: the rule under the tabs is drawn as a background line, so
   nothing hangs outside the strip and it only scrolls sideways. The
   inactive tabs carry the rule; the open tab leaves it out and joins
   the page below. */
#campaignView .sltabs, #campaignView .cdmoodtabs { overflow-y: hidden; border-bottom: none; background: linear-gradient(#0d0d0d, #0d0d0d) left bottom / 100% 1px no-repeat; }
#campaignView .sltab, #campaignView .cdmoodtabs button.cdmoodtab { margin-bottom: 0; border-bottom: 1px solid #0d0d0d; }
#campaignView .sltab.on, #campaignView .cdmoodtabs button.cdmoodtab.on { border-bottom-color: #fff; }
/* gear on Shoot: tinted cells, like every editable field. */
#campaignView .slgear { margin: 0 0 8px; max-width: 760px; }
#campaignView .slgearrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 20px; gap: 8px; align-items: center; padding: 3px 0; }
#campaignView .slcell { display: flex; background: #eef2f6; padding: 4px 8px; min-height: 26px; box-sizing: border-box; cursor: text; }
#campaignView .slcell:hover { background: #e3e9ef; }
#campaignView .slcell:focus-within { background: #fff; outline: 1px solid #5f7d95; outline-offset: -1px; }
#campaignView .slcell input { flex: 1; min-width: 0; border: none; background: transparent; padding: 0; font-family: var(--cp-sans); font-size: 13px; color: var(--cp-ink); outline: none; }
#campaignView .slgearrm { border: none; background: transparent; border-radius: 0; padding: 0; font-size: 13px; color: #b3261e; cursor: pointer; visibility: hidden; }
#campaignView .slgearrow:hover .slgearrm, #campaignView .slgearrm[data-armed] { visibility: visible; }
#campaignView .slgearrm[data-armed] { font-size: 10.5px; }
@media (hover: none) { #campaignView .slgearrm { visibility: visible; } }
#campaignView .slshoottop { margin-bottom: 8px; }
#campaignView .slshoottop .cdbrief { margin-top: 0; }
#campaignView .slshoottop .slgear { max-width: none; }
@media (min-width: 1000px) { #campaignView .slshoottop { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); gap: 0 40px; align-items: start; } }
#campaignView .slshoottop .wkpagehead { margin-top: 0; }
/* gear rows: the person (face, first name, a menu arrow) on the left,
   the gear as plain text on the right. */
#campaignView .slgearrow { grid-template-columns: 170px minmax(0, 1fr) 20px; gap: 12px; padding: 5px 0; border-bottom: 1px solid #f2f0ef; }
#campaignView .slwho { display: inline-flex; align-items: center; gap: 8px; min-width: 0; border: none; background: transparent; border-radius: 0; padding: 2px 0; font-family: var(--cp-sans); font-size: 13px; color: var(--cp-ink); cursor: pointer; text-align: left; }
#campaignView .slwho .wbface { width: 22px; height: 22px; }
#campaignView .slwho .wbface .ini { font-size: 8px; }
#campaignView .slwho > span:not(.wbface):not(.slwhoarrow) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#campaignView .slwhoarrow { font-size: 9px; color: #9a9a9a; }
#campaignView .slwho:hover .slwhoarrow { color: var(--cp-ink); }
#campaignView input.slgearname { min-width: 0; border: none; background: transparent; border-radius: 0; padding: 2px 0; font-family: var(--cp-sans); font-size: 13px; color: var(--cp-ink); outline: none; }
#campaignView input.slgearname::placeholder { color: #aaa; }
@media (hover: hover) { #campaignView input.slgearname:hover { background: #f6f5f3; outline: 4px solid #f6f5f3; } }
