/* Additions to the handoff's studio.css: base primitives (dialogs, sheets, selects, progress, toasts)
   and the one-screen layout (brief panel, results, video cards, settings). */
html, body { margin: 0; background: #fff; }
body { font-family: Arial, Helvetica, sans-serif; color: #26272d; }
*, *::before, *::after { box-sizing: border-box; }
.content-studio input, .content-studio textarea, .content-studio select { font-family: inherit; color: inherit; font-size: 14px; }
:where(.content-studio) input:not([type=checkbox]):not([type=radio]), :where(.content-studio) textarea, :where(.content-studio) select.pick {
  width: 100%; border: 1px solid #e3d7e5; border-radius: 7px; padding: 10px 12px; background: #fff; font-size: 14px; min-height: 44px; outline: none;
}
:where(.content-studio) textarea { resize: vertical; line-height: 1.5; }
:where(.content-studio) input:focus, :where(.content-studio) textarea:focus, :where(.content-studio) select:focus { border-color: #a451b1; box-shadow: 0 0 0 3px rgba(145, 175, 83, .18); }
:where(.content-studio) select.pick { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2372757d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
:where(.content-studio) .brief-picker select.pick { background-color: transparent; }
:where(.content-studio) .check-box, :where(.content-studio) .check-line input { accent-color: #2e2731; width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
:where(.content-studio) button { font: inherit; background: none; border: 0; color: inherit; }
:where(.content-studio) .primary, :where(.content-studio) .secondary, :where(.content-studio) .danger { cursor: pointer; }
:where(.content-studio) .danger { background: #fff; color: #b33a2c; border: 1px solid #efc9c1; }
:where(.content-studio) .text-button { color: #63236d; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; padding: 4px 2px; cursor: pointer; }
:where(.content-studio) .icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #e0e3e8; border-radius: 8px; background: #fff; cursor: pointer; }
:where(.content-studio) .small { padding: 7px 11px !important; font-size: 13px !important; min-height: 0 !important; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* dialogs + sheets (stand-ins for Radix Dialog / Sheet) */
.overlay { position: fixed; inset: 0; background: rgba(24, 27, 22, .42); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.sheet-overlay { place-items: stretch end; padding: 0; }
@keyframes fade { from { opacity: 0; } }
.dialog-content { position: relative; background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); width: min(520px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.dialog-content > [data-slot=dialog-title] { font-size: 21px; font-weight: 600; letter-spacing: -.4px; margin: 0; padding-right: 30px; }
.dialog-content > [data-slot=dialog-description] { margin: 0; font-size: 14px; color: #72757d; }
.sheet-content { position: relative; height: 100dvh; display: flex; flex-direction: column; gap: 10px; box-shadow: -18px 0 50px rgba(0, 0, 0, .18); animation: slidein .2s ease; }
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } }
.sheet-content > [data-slot=sheet-title] { margin: 0; font-weight: 600; }
.sheet-content > [data-slot=sheet-description] { margin: 0; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: #72757d; z-index: 2; }
.dialog-close:hover { background: #f3f5f7; }
.content-studio.video-sheet { overflow-y: auto !important; }
.content-studio.automation-sheet { width: min(760px, 100vw) !important; max-width: 760px !important; }

/* progress */
.progress-root { position: relative; height: 6px; width: 100%; background: #f1e5f2; border-radius: 99px; overflow: hidden; }
.progress-root > [data-slot=progress-indicator] { height: 100%; background: #b471bf; border-radius: inherit; transition: width .3s; }
.progress-root.indeterminate > [data-slot=progress-indicator] { width: 30%; animation: slide 1.2s infinite ease-in-out; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* toasts */
.toaster { position: fixed; top: 18px; right: 18px; display: grid; gap: 8px; z-index: 100; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #e3e5e8; border-radius: 10px; padding: 12px 14px; font: 14px/1.4 Arial, Helvetica, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); animation: fade .2s; }
.toast.success { border-color: #daace1; background: #f9eefa; color: #371c3b; }
.toast.error { border-color: #f0c7bf; background: #fff5f3; color: #8f2a1c; }
.toast svg { margin-top: 1px; flex-shrink: 0; }

.auto-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.auto-chip { font-size: 12px; border: 1px solid #e3e5e8; border-radius: 99px; padding: 3px 10px 3px 8px; color: #72757d; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.auto-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #d3a44b; }
.auto-chip.ok::before { background: #9738a6; }
.check-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #413845; cursor: pointer; line-height: 1.4; }
.check-line small { display: block; color: #887a8e; font-size: 12px; }
.more-options { font-size: 13px; }
.more-options > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: #63236d; font-weight: 600; list-style: none; }
.more-options > summary::-webkit-details-marker { display: none; }
.more-options > div { display: grid; gap: 10px; padding: 12px 0 2px; }
.more-options small { color: #887a8e; font-size: 12px; }

/* automation settings */
.automation { display: grid; gap: 18px; padding-bottom: 20px; }
.auto-section { display: grid; gap: 12px; padding: 18px; border: 1px solid #e6e2e8; border-radius: 12px; }
.auto-section h3 { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 16px; }
:where(.content-studio) .auto-section .settings-help { margin: 0; font-size: 13px; line-height: 1.6; color: #72757d; }
.auto-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
:where(.content-studio) .auto-head .secondary { width: auto; }
.box-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; background: #f8f2f9; border-radius: 9px; }
.box-line small { display: block; font-size: 12px; color: #72757d; }
:where(.content-studio) .box-line .primary { width: auto; }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .form-grid.four { grid-template-columns: 1fr 1fr; } }
.auto-save { position: sticky; bottom: -30px; background: #fff; padding: 12px 0; border-top: 1px solid #eef0f2; }


:where(.content-studio) .multi input[type=checkbox], :where(.content-studio) .check-line input[type=checkbox], :where(.content-studio) .toggle-chip input[type=checkbox] { width: 16px !important; height: 16px !important; min-height: 0 !important; padding: 0 !important; flex: 0 0 auto; }
.auto-chip.demo { border-color: #ecd9a8; background: #fdf8ea; color: #7a5a14; }
.auto-chip.demo::before { background: #d3a44b; }
:where(.content-studio) .text-button.muted { color: #7a818c; }
:where(.content-studio) .button-row.end { justify-content: flex-end; }

/* ---------- page (the handoff's studio layout) ---------- */
.content-studio.app { min-height: 100vh; background: #f8f4f8; }
:where(.content-studio) .app .studio-header { position: sticky; top: 0; z-index: 30; }
.content-studio .studio-header .auto-chips { margin-right: 4px; }
.demo-chip { border-color: #ecd9a8 !important; background: #fdf8ea; color: #7a5a14 !important; }
:where(.content-studio) .app .studio-wordmark .mode-chip { display: inline-flex; }
:where(.content-studio) .workspace-strip .edit-brief { margin-left: auto; }
:where(.content-studio) .workspace-strip .brief-picker select.pick { font-weight: 600; font-size: 16px; border: 0; padding-left: 0; min-height: 32px; background-position: right 4px center; }
:where(.content-studio) .workspace-strip .strip-platforms { margin-left: 0; }
.studio-bottom-note a { color: #7d8794; }

/* find references */
.find-panel { display: grid; gap: 14px; padding: 20px 24px; margin-bottom: 24px; background: #fff; border: 1px solid #e4cbe8; border-radius: 16px; }
.find-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.find-head p { margin-top: 6px; font-size: 14px; color: #7e6f85; max-width: 560px; }
.find-actions { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; min-width: 320px; }
:where(.content-studio) .find-actions .primary { flex-shrink: 0; }
.pillar-slots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.slot-chip { display: grid; gap: 1px; text-align: left; padding: 9px 13px; border: 1px solid #e5d9e7; border-radius: 10px; background: #fff; cursor: pointer; min-width: 180px; }
.slot-chip:hover { border-color: #c9a5cf; background: #fcf5fd; }
.slot-chip b { font-size: 14px; font-weight: 600; color: #413845; }
.slot-chip .slot-count { font-size: 13px; color: #63236d; font-weight: 600; }
.slot-chip.open .slot-count { color: #8a6414; }
.slot-chip small { font-size: 12px; color: #887a8e; }
.content-studio .ai-problem { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; padding: 10px 12px; border-radius: 9px; background: #fff5f3; color: #8f2a1c; font-size: 13px; line-height: 1.5; }
.ai-problem svg { flex-shrink: 0; margin-top: 2px; }

/* brief form (in the side panel) */
:where(.content-studio) .brief-form .multi { gap: 6px; }
:where(.content-studio) .brief-form .multi > label { padding: 7px 9px; gap: 6px; font-size: 13px; }
.brief-form { display: grid; gap: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; min-height: 26px; }
.pillar-rows { display: grid; gap: 8px; }
.pillar-row { display: grid; gap: 6px; padding: 8px; border: 1px solid #ebe2ec; border-radius: 9px; background: #fcf9fc; }
.pillar-line { display: grid; grid-template-columns: minmax(0, 1fr) 104px auto; gap: 6px; }
.count-input { position: relative; }
:where(.content-studio) .count-input input { padding-right: 52px; }
.count-input small { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #8d7e93; pointer-events: none; }
:where(.content-studio) .pillar-row .terms-input { min-height: 38px; font-size: 13px; }
:where(.content-studio) .icon-button.small-icon { width: 38px; height: 44px; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; background: #f3edf4; border-radius: 8px; width: fit-content; }
.segmented button { padding: 7px 14px; border-radius: 6px; font-size: 13px; color: #605764; cursor: pointer; }
.segmented button.selected { background: #fff; color: #26272d; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.bench-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bench-grid label { display: grid; gap: 4px; }
.bench-grid small { font-size: 12px; color: #6e6274; }
.search-on { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toggle-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #e4d8e6; border-radius: 7px; font-size: 13px; cursor: pointer; background: #fff; }
.toggle-chip.selected { background: #f5e7f7; border-color: #c9a5cf; }
.per-term { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
:where(.content-studio) .per-term input { width: 68px; min-height: 36px; padding: 6px 8px; }
.per-term small { font-size: 12px; color: #6e6274; }
.brief-actions { position: sticky; bottom: -30px; display: flex; gap: 8px; margin: 0 -30px -30px; padding: 14px 30px 22px; background: linear-gradient(to bottom, rgba(255, 255, 255, .85), #fff 30%); border-top: 1px solid #f0edf1; }
:where(.content-studio) .brief-actions .primary { flex: 1; }
.dirty-note { font-size: 12px; color: #8a6414; }
.content-studio.brief-sheet { width: min(560px, 100vw) !important; max-width: 560px !important; }
.first-brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: start; }
.first-intro { padding: 10px 6px; }
.content-studio .first-intro h2 { font-size: 26px; margin: 8px 0 12px; letter-spacing: -.6px; }
.content-studio .first-intro p { font-size: 15px; line-height: 1.7; }
.content-studio .first-intro .hint { display: flex; align-items: center; gap: 6px; margin-top: 18px; padding: 10px 12px; border-radius: 9px; background: #fbf6e8; color: #7a5a14; font-size: 14px; }
.first-form { border: 1px solid #ebe2ec; border-radius: 12px; padding: 22px 22px 0; }
.first-form .brief-actions { margin: 0 -22px; bottom: 0; padding: 14px 22px 18px; border-radius: 0 0 12px 12px; }

/* shared bits */
.add-link { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 260px; max-width: 560px; padding: 4px 4px 4px 12px; background: #fff; border: 1px solid #e3e5e8; border-radius: 10px; color: #7e6f85; }
.add-link:focus-within { border-color: #a451b1; box-shadow: 0 0 0 3px rgba(145, 175, 83, .18); }
:where(.content-studio) .add-link input { border: 0 !important; box-shadow: none !important; min-height: 34px !important; padding: 0 !important; background: transparent !important; }
:where(.content-studio) .add-link select.pick { width: auto !important; max-width: 180px; min-height: 34px; font-size: 13px; padding: 6px 32px 6px 10px; }
.run-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #fcf9fc; border: 1px solid #ebe2ec; border-radius: 10px; font-size: 13px; color: #605764; }
.run-bar.active { display: grid; gap: 9px; border-color: #dfbee4; background: #fcf6fd; }
.run-line { display: flex; align-items: center; gap: 8px; }
.run-line span { flex: 1; color: #72757d; }
.run-bar.error { border-color: #f0c7bf; background: #fff5f3; color: #8f2a1c; }
.run-bar > svg { flex-shrink: 0; color: #9738a6; }
.run-bar.error > svg { color: #b33a2c; }
.list-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; text-align: center; background: #fff; border: 1px dashed #e3d6e5; border-radius: 12px; color: #72757d; font-size: 14px; }
.list-empty p { max-width: 460px; color: #6e6274; }
.vc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vc-top b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-top small { font-size: 12px; color: #887a8e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verdict { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #f2ecf3; color: #6e6274; white-space: nowrap; width: fit-content; }
.verdict.meets { background: #efd1f4; color: #501559; }
.verdict.misses { background: #fbece8; color: #9a3b2a; }
.content-studio .caption { margin: 0; font-size: 13px; color: #605764; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.crits { display: flex; flex-wrap: wrap; gap: 6px; }
.crit { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: default; }
.crit.ok { background: #f2dcf6; color: #5a1864; }
.crit.miss { background: #fbece8; color: #9a3b2a; }
.crit.pending { background: #f3f1f4; color: #8d7e93; font-weight: 500; }
.content-studio .why { margin: 0; font-size: 12.5px; color: #8a5a4f; }
.content-studio .why.error { color: #9a3b2a; }
.content-studio .transcript-note { margin: 0; font-size: 12px; color: #887a8e; }
.content-studio .transcript-note.error { color: #9a3b2a; }
.details { display: grid; gap: 10px; padding-top: 12px; }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-field { display: grid; gap: 4px; font-size: 12px; color: #605764; min-width: 0; }
.mini-field > span { display: flex; align-items: center; gap: 6px; font-weight: 600; }
:where(.content-studio) .mini-field input, :where(.content-studio) .mini-field textarea, :where(.content-studio) .mini-field select.pick { min-height: 38px; font-size: 13px; padding: 8px 10px; }
:where(.content-studio) .mini-field select.pick { padding-right: 32px; }
.src-badge { padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.src-badge.ai { background: #f1ebfa; color: #6a45a3; }
.src-badge.scraped { background: #e7f0fb; color: #2d5a8f; }
.src-badge.you { background: #f2dcf6; color: #5a1864; }
:where(.content-studio) .button-row.tight { gap: 4px 14px; }
.content-studio .panel-head .text-button { font-size: 13px; }

/* ---------- board cards (additions to the handoff's .video-ticket) ---------- */
/* eleven lanes: the board scrolls sideways (drag the scrollbar, or shift + scroll) */
/* the board, a phase at a time: tabs, then that phase's stages as roomy columns (All stages: every column, scrolling) */
.content-studio .board-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--cq-line, #ebe2ef); margin: 2px 0 14px; overflow-x: auto; }
.content-studio .board-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--cq-muted, #6f6377); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.content-studio .board-tab:hover { color: var(--cq-ink, #1f1027); }
.content-studio .board-tab.on { color: var(--cq-plum, #5e0466); border-bottom-color: var(--cq-plum, #5e0466); }
.content-studio .board-tab-n { font-size: 12px; font-weight: 600; background: #f1e9f4; color: var(--cq-muted, #6f6377); border-radius: 99px; padding: 1px 8px; }
.content-studio .board-tab.on .board-tab-n { background: var(--cq-plum, #5e0466); color: #fff; }
.content-studio .board-tab.all { margin-left: auto; }
:where(.content-studio) .kanban-board { display: grid; gap: 12px; min-width: 0; align-items: stretch; }
:where(.content-studio) .kanban-board.cols-1 { grid-template-columns: minmax(0, 1fr); }
:where(.content-studio) .kanban-board.cols-3 { grid-template-columns: repeat(3, minmax(260px, 1fr)); }
:where(.content-studio) .kanban-board.cols-4 { grid-template-columns: repeat(4, minmax(240px, 1fr)); }
:where(.content-studio) .kanban-board.all-stages { grid-template-columns: repeat(12, minmax(210px, 1fr)); min-width: 2660px; gap: 10px; }
/* a wide column lays its cards out side by side */
.content-studio .kanban-board:not(.all-stages) .lane-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
.content-studio .kanban-board:not(.all-stages) .lane-cards > .lane-add, .content-studio .kanban-board:not(.all-stages) .lane-cards > .lane-actions, .content-studio .kanban-board:not(.all-stages) .lane-cards > .empty-lane { grid-column: 1 / -1; }
.content-studio .kanban-board.cols-1 .lane-cards > .lane-add { justify-self: start; width: auto; padding: 9px 16px; }
.content-studio .kanban-lane > header .lane-expand { margin: 0 0 0 2px; border: 0; background: transparent; color: var(--lane-color); padding: 4px; border-radius: 6px; cursor: pointer; display: inline-flex; line-height: 0; }
.content-studio .kanban-lane > header .lane-expand:hover { background: #ffffffb3; color: var(--cq-ink, #1f1027); }
/* a stage, as a list */
.content-studio .stage-list { border: 1px solid var(--cq-line, #ebe2ef); border-top: 3px solid var(--lane-color); border-radius: 14px; background: #fff; overflow: hidden; }
.content-studio .stage-list-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; background: var(--lane-soft); border-bottom: 1px solid #efe7f2; }
.content-studio .stage-list-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 220px; }
.content-studio .stage-list-title h3 { margin: 0; font-size: 17px; color: var(--cq-ink, #1f1027); }
.content-studio .stage-list-title .n { font-size: 12px; background: #ffffffb3; border-radius: 6px; padding: 2px 7px; color: var(--cq-muted, #6f6377); }
.content-studio .stage-list-title small { flex-basis: 100%; font-size: 12.5px; color: var(--cq-muted, #6f6377); }
.content-studio .stage-list-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.content-studio .stage-list-actions .lane-add, .content-studio .stage-list-actions .lane-actions { width: auto; }
.content-studio .stage-list-actions .lane-add { padding: 8px 12px; background: #fff; border-style: solid; }
.content-studio .stage-list-actions .lane-actions { display: flex; gap: 8px; }
.content-studio .stage-table tbody tr { cursor: pointer; }
.content-studio .stage-table tbody tr.warn td:first-child { box-shadow: inset 3px 0 0 #d14343; }
.content-studio .stage-table td small { display: block; font-size: 12px; color: var(--cq-muted, #6f6377); margin-top: 2px; }
.content-studio .stage-status.warn { color: #b3261e; font-weight: 600; }
.content-studio .stage-next { color: var(--cq-plum, #5e0466); font-weight: 600; white-space: nowrap; }
.content-studio .stage-list-empty { padding: 28px 16px; margin: 0; color: var(--cq-muted, #6f6377); font-size: 14px; }
:where(.content-studio) .lane-teal { --lane-color: #5f9e93; --lane-soft: #e8f4f1; }
:where(.content-studio) .lane-amber { --lane-color: #c9853a; --lane-soft: #fbf1e4; }
:where(.content-studio) .lane-indigo { --lane-color: #6f78c2; --lane-soft: #eeeffa; }
:where(.content-studio) .lane-green { --lane-color: #4f9467; --lane-soft: #e7f3ea; }
:where(.content-studio) .lane-sky { --lane-color: #3b8fb8; --lane-soft: #e6f3fa; }
:where(.content-studio) .lane-slate { --lane-color: #6f7c8f; --lane-soft: #eef1f5; }
:where(.content-studio) .lane-red { --lane-color: #d14343; --lane-soft: #fdecec; }
/* dragging a card to another stage after the handoff */
:where(.content-studio) .video-ticket[draggable="true"] { cursor: grab; }
:where(.content-studio) .video-ticket.dragging { opacity: .45; }
.kanban-lane { transition: border-color .12s, box-shadow .12s, background .12s; }
:where(.content-studio) .kanban-lane.drop-ok { border-style: dashed; border-color: var(--lane-color); }
:where(.content-studio) .kanban-lane.drop-over { background: var(--lane-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lane-color) 25%, transparent); }
:where(.content-studio) .video-search input { border: 0 !important; box-shadow: none !important; min-height: 0 !important; padding: 0 !important; background: transparent !important; }
@media (min-width: 1101px) { :where(.content-studio) .board-filters { grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(165px, 1fr) minmax(170px, 1fr) auto; } }
.ticket-main { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
:where(.content-studio) .ticket-main h4 { margin: 14px 0 !important; flex: 1; }
.ticket-thumb { width: 40px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 5px; margin-top: 14px; flex-shrink: 0; background: #f0e9f1; }
.ticket-check { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.ticket-check > span { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; }
.ticket-check .ok { background: #f2dcf6; color: #5a1864; }
.ticket-check .miss { background: #fbece8; color: #9a3b2a; }
.ticket-check .pending { background: #f3f1f4; color: #8d7e93; }
.ticket-check.busy { font-size: 12px; color: #7e6f85; align-items: center; gap: 6px; }

/* ---------- card drawer ---------- */
.content-studio.ticket-sheet { gap: 14px; }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #7a818c; }
.drawer-meta .banger-badge { margin: 0 !important; }
.drawer-ref { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px; border: 1px solid #e6e2e8; border-radius: 12px; }
.drawer-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #f0e9f1; align-self: start; }
.drawer-thumb > span { display: grid; place-items: center; height: 100%; }
.drawer-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drawer-thumb i { position: absolute; left: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 5px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.drawer-ref-body { display: grid; gap: 9px; min-width: 0; align-content: start; }
.drawer-ref-body .checking { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #7e6f85; }
.drawer-ref-body .model { font-size: 11px; color: #9c8ea2; margin-left: auto; }
.drawer-ref-body a.text-button { text-decoration: none; }
.drawer-transcript { border: 1px solid #e6e2e8; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.drawer-transcript > summary, .drawer-box > summary, .drawer-activity > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; color: #413845; list-style: none; }
.drawer-transcript > summary::-webkit-details-marker, .drawer-box > summary::-webkit-details-marker, .drawer-activity > summary::-webkit-details-marker { display: none; }
.drawer-transcript > summary small, .drawer-box > summary small { font-weight: 400; color: #8d7e93; margin-left: auto; font-size: 12px; }
.content-studio .drawer-transcript p { margin-top: 10px; white-space: pre-wrap; line-height: 1.6; color: #4d4551; max-height: 260px; overflow: auto; }
.drawer-box { display: grid; gap: 12px; padding: 16px; border: 1px solid #e6e2e8; border-radius: 12px; background: #fff; }
.drawer-box h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
:where(.content-studio) .drawer-box .settings-help { margin: 0; font-size: 13px; line-height: 1.6; color: #72757d; }
.drawer-box.review-box { border-color: #d9cdee; background: #fcfaff; }
.drawer-box.replace-box { border-color: #f0d7cb; background: #fffaf7; }
.drawer-box.rejected-box { border-color: #f2c4c2; background: #fff8f8; }
.drawer-box.rejected-box h3 { color: #a33a35; }
.drawer-box:not([open]) { gap: 0; }
:where(.content-studio) .kanban-board .video-ticket h4 { font-size: 15px; }
.stage-box.current { border-color: #cc99d4; box-shadow: 0 0 0 1px #cc99d4; }
.stage-body { display: grid; gap: 14px; padding-top: 12px; }
.done-chip { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; font-weight: 600; color: #5a1864; background: #f2dcf6; padding: 2px 8px; border-radius: 99px; }
.drawer-foot { display: flex; justify-content: flex-end; }
.drawer-activity { font-size: 13px; color: #7a818c; padding: 4px 2px 20px; }
.drawer-activity > summary span { font-weight: 400; background: #f2ecf3; padding: 1px 7px; border-radius: 6px; font-size: 12px; }
.drawer-activity > div { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid #f0e9f1; margin-top: 8px; }
.drawer-activity > div span { color: #9c8ea2; min-width: 150px; }
.drawer-activity b { font-weight: 500; color: #4d4551; }
.content-studio .alt-title { margin-top: 4px; font-size: 11px; }
.alt-list { display: grid; gap: 8px; }
.alt-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid #ece9e3; border-radius: 10px; background: #fff; }
.alt-row.skipped { opacity: .7; }
.alt-row > div { display: grid; gap: 4px; min-width: 0; }
.alt-row b { font-size: 13px; font-weight: 600; color: #413845; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-row small { font-size: 12px; color: #887a8e; }
.alt-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: #f0e9f1; }
.alt-thumb > span { display: grid; place-items: center; height: 100%; }
.alt-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.alt-list.big .alt-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
.alt-actions { display: grid; gap: 4px; justify-items: end; }
.alt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.alt-tabs button { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border: 1px solid #e4d8e6; border-radius: 99px; font-size: 13px; background: #fff; cursor: pointer; }
.alt-tabs button span { font-size: 12px; color: #8d7e93; }
.alt-tabs button.selected { background: #2e2731; border-color: #2e2731; color: #fff; }
.alt-tabs button.selected span { color: #e4cee8; }
.content-studio.alt-sheet { width: min(760px, 100vw) !important; max-width: 760px !important; }

@media (max-width: 900px) {
  .first-brief { grid-template-columns: 1fr; }
  .find-actions { min-width: 0; flex-basis: 100%; flex-wrap: wrap; }
  .add-link { min-width: 0; max-width: none; flex-basis: 100%; }
}
@media (max-width: 640px) {
  .content-studio .studio-header .auto-chips { display: none; }
  .drawer-ref { grid-template-columns: 72px minmax(0, 1fr); }
  .details-grid { grid-template-columns: 1fr 1fr; }
  :where(.content-studio) .add-link select.pick { max-width: 130px; }
  .per-term { margin-left: 0; }
  .slot-chip { min-width: 0; flex: 1 1 140px; }
}

/* ---------- scraper panel (like TikTok Scout) ---------- */
.content-studio.scraper-sheet { width: min(1040px, 100vw) !important; max-width: 1040px !important; gap: 16px; }
.scraper-form { display: grid; gap: 14px; padding: 18px; border: 1px solid #e4cbe8; border-radius: 14px; background: #fcf6fd; }
.scraper-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.scraper-row .grow { flex: 1; min-width: 220px; }
.slot-note { font-size: 13px; color: #6e6274; padding-bottom: 12px; }
.slot-note b { color: #413845; }
.scraper-options { display: grid; grid-template-columns: auto 130px minmax(150px, 1fr) minmax(150px, 1fr); gap: 14px; align-items: end; }
.scraper-options .field > span small, .scraper-form .field > span small { font-weight: 400; color: #8d7e93; font-size: 11px; margin-left: 4px; }
.after-scrape { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #ebe2ec; font-size: 13px; }
.after-scrape > b { flex-basis: 100%; font-size: 13px; color: #413845; }
.inline-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #605764; }
.content-studio .inline-count input { width: 70px !important; min-height: 32px !important; padding: 4px 8px !important; }
.inline-count { white-space: nowrap; flex-wrap: wrap; }
.scraper-run { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.scraper-run .cost { font-size: 13px; color: #7e6f85; }
:where(.content-studio) .toggle-chip .platform-icon { width: 22px; height: 22px; }
.scraper-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.results-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.results-bar h3 { font-size: 17px; margin-right: auto; }
:where(.content-studio) .results-bar select.pick { width: auto !important; min-height: 36px; font-size: 13px; padding: 6px 32px 6px 10px; max-width: min(420px, 100%); min-width: 0; text-overflow: ellipsis; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: #ece9ed; border-radius: 9px; flex-wrap: wrap; margin-right: auto; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 7px; font-size: 13px; color: #605764; cursor: pointer; }
.tabs button span { font-size: 12px; color: #8d7e93; }
.tabs button.selected { background: #fff; color: #26272d; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.result-list { display: grid; gap: 10px; }
.result-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px; background: #fff; border: 1px solid #e3e5e8; border-radius: 12px; }
.result-row.meets { border-color: #deb3e4; }
.result-row.on-board { background: #fcf9fc; }
.thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #f0e9f1; align-self: start; }
.thumb > span { display: grid; place-items: center; height: 100%; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb i { position: absolute; left: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 5px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.result-body { display: grid; gap: 7px; min-width: 0; align-content: start; }
.result-verdict { margin-left: auto; flex-shrink: 0; }
.content-studio .one-line { margin: 0; font-size: 14px; font-weight: 600; color: #2f2832; }
.result-transcript { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; padding: 8px 10px; background: #f9f6f9; border-radius: 8px; font-size: 13px; }
.result-transcript > svg { margin-top: 3px; color: #7e6f85; }
.content-studio .result-transcript p { margin: 0; color: #4d4551; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.content-studio .result-transcript.open p { display: block; max-height: 260px; overflow: auto; white-space: pre-wrap; }
.result-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.result-actions a.text-button { text-decoration: none; }
.content-studio .result-actions .text-button { font-size: 13px; }
.result-actions .model { margin-left: auto; font-size: 11px; color: #9c8ea2; }
@media (max-width: 760px) {
  .scraper-options { grid-template-columns: 1fr 1fr; }
  .result-row { grid-template-columns: 70px minmax(0, 1fr); }
  .result-actions .model { display: none; }
}

/* ---------- adding videos by hand + editable reference details ---------- */
.lane-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; border: 1px dashed #c9cfd8; border-radius: 10px; background: transparent; color: #6a6f80; font-size: 13px; font-weight: 600; cursor: pointer; }
.lane-add:hover { border-color: #8e7cc3; color: #5b45a3; background: #faf8ff; }
.slot-chip:disabled { cursor: default; opacity: .85; }
.slot-chip:disabled:hover { border-color: #e5d9e7; background: #fff; }
:where(.content-studio) .button-row.center { justify-content: center; }
.content-studio .field-note { margin-top: -2px; }
.ref-hint { font-size: 11.5px; color: #9c8ea2; margin-left: auto; }
.content-studio .f-transcript textarea { font-size: 12.5px; line-height: 1.55; }


/* scraper: which pillar a result goes to */
.slot-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #7e6f85; }
.slot-mini { padding: 3px 8px; border-radius: 6px; background: #f4eff5; color: #524558; }
.slot-mini b { font-weight: 700; }
.slot-mini.full { background: #fdf3df; color: #8a6414; }
.add-to { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
:where(.content-studio) .add-to select.pick { width: auto !important; max-width: 230px; min-height: 32px !important; font-size: 12.5px; padding: 4px 30px 4px 9px; }
.result-body .ref-fields.compact { margin: 2px 0; padding: 12px; }
@media (max-width: 640px) {
  :where(.content-studio) .add-to select.pick { max-width: 100%; }
  .ref-hint { margin-left: 0; }
}

/* ---------- the research brief, as the Scraper shows it ---------- */
.brief-view { border: 1px solid #e3dcc6; border-radius: 14px; background: #fffdf7; }
.brief-view > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.brief-view > summary::-webkit-details-marker { display: none; }
.bv-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #f6edd2; color: #8a6414; flex-shrink: 0; }
.bv-title { display: grid; gap: 2px; min-width: 0; }
.bv-title .eyebrow { display: flex; align-items: center; gap: 6px; }
.bv-title b { font-size: 15px; color: #362e39; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-chip { font-style: normal; letter-spacing: .3px; padding: 1px 6px; border-radius: 4px; background: #f6edd2; color: #8a6414; font-size: 10px; }
.bv-progress { margin-left: auto; font-size: 12.5px; font-weight: 600; color: #6d5a1c; white-space: nowrap; }
.bv-chevron { color: #9b917a; transition: transform .15s; flex-shrink: 0; }
.brief-view[open] .bv-chevron { transform: rotate(180deg); }
.bv-body { display: grid; gap: 16px; padding: 2px 16px 16px; }
.bv-body h4 { font-size: 13px; font-weight: 700; color: #413845; margin: 0 0 8px; }
.bv-body h4 small { font-weight: 400; color: #8d7e93; margin-left: 6px; font-size: 12px; }
.bv-for { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: #7e6f85; }
.bv-platform { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 2px; border: 1px solid #ebe6d6; border-radius: 8px; background: #fff; color: #524558; font-weight: 600; }
.bv-platform .platform-icon { width: 22px; height: 22px; }
.bv-criteria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 8px; }
.bv-criteria > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid #ebe6d6; border-radius: 10px; background: #fff; color: #8a6414; }
.bv-criteria small { font-size: 11.5px; color: #8d7e93; }
.bv-criteria b { grid-column: 2; font-size: 15px; color: #362e39; }
.bv-criteria span { grid-column: 2; font-size: 12px; color: #736479; line-height: 1.4; }
.bv-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bv-pillar { padding: 10px 12px; border: 1px solid #ebe6d6; border-radius: 10px; background: #fff; }
.bv-pillar > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bv-pillar b { font-size: 13.5px; color: #362e39; }
.bv-count { font-size: 12px; font-weight: 600; color: #8a6414; white-space: nowrap; }
.bv-pillar.full .bv-count { color: #5a1864; }
.content-studio .bv-pillar p { margin: 4px 0 0; font-size: 12.5px; color: #605764; line-height: 1.5; }
.content-studio .bv-pillar p.muted { color: #a294a8; font-style: italic; }
.content-studio .bv-notes { margin: 0; padding: 10px 12px; border-left: 3px solid #e3cf8e; background: #fff; border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.6; color: #4d4152; white-space: pre-wrap; }
.bv-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; border-top: 1px dashed #e8e1cc; padding-top: 12px; }
.content-studio .bv-foot p { margin: 0; font-size: 12.5px; color: #7e6f85; }
.content-studio .sample-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 0; font-size: 13px; color: #7e6f85; }
@media (max-width: 760px) {
  .bv-criteria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bv-criteria > div { padding: 9px 10px; column-gap: 6px; }
  .bv-criteria b { font-size: 14px; }
  .bv-title b { white-space: normal; }
  .bv-criteria > div.wide { grid-column: 1 / -1; }
  .bv-pillars { grid-template-columns: 1fr; }
  .bv-progress { display: none; }
}

/* ---------- outlier score (views ÷ followers) ---------- */
.outlier-chip { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 3px 9px; border-radius: 6px; font-size: 12px; background: #f3f1f4; color: #736479; cursor: default; }
.outlier-chip b { font-weight: 700; }
.outlier-chip.outlier { background: #fdf1e2; color: #9a5b14; }
.outlier-chip.big { background: #fde7d9; color: #a33f12; font-weight: 600; }
.content-studio .outlier-hint { font-size: 13px; color: #a3501a; margin-left: auto; }
.content-studio .outlier-hint + .secondary { margin-left: 0; }

/* ---------- reviewing: previous / next, Mega Banger toggle, player ---------- */
.drawer-nav { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: #736479; white-space: nowrap; }
.drawer-nav .icon-button { width: 30px; height: 30px; }
.drawer-nav .icon-button:disabled { opacity: .35; cursor: default; }
.content-studio .drawer-meta .banger-toggle { padding: 4px 9px; font-size: 12px; font-weight: 600; cursor: pointer; }
.content-studio .drawer-meta .banger-toggle:not(.chosen) { border-color: #e7e0c8; color: #9a8a55; background: #fff; }
.video-embed { display: grid; justify-items: center; gap: 6px; }
.video-embed iframe { display: block; border: 0; border-radius: 12px; background: #111; }
.video-embed.tall iframe { width: min(325px, 100%); aspect-ratio: 9 / 16; }
.video-embed.wide iframe { width: 100%; aspect-ratio: 16 / 9; }
.video-embed.post iframe { width: min(420px, 100%); height: 680px; background: #fff; border: 1px solid #e6e2e8; }
.content-studio .video-embed small { font-size: 11.5px; color: #9c8ea2; }
.content-studio .video-embed small a { text-decoration: underline; }

/* the "Save your changes?" box sits above every panel */
.confirm-overlay { z-index: 90; }
.content-studio.confirm-dialog { width: min(440px, calc(100vw - 32px)); }
:where(.content-studio) .button-row.end { justify-content: flex-end; }
@media (max-width: 640px) { .drawer-nav { margin-left: 0; } }
/* dialogs share .content-studio, which is min-height: 100vh for the page — not for a dialog */
.content-studio.dialog-content { min-height: 0; height: auto; }

/* ---------- clients and projects ---------- */
:where(.content-studio) a.studio-wordmark { color: inherit; text-decoration: none; }
:where(.content-studio) .studio-canvas { max-width: 1280px; }
:where(.content-studio) .studio-canvas.page-project { max-width: 1600px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: 13px; color: #a294a8; }
.content-studio .crumbs a { color: #766e7a; text-decoration: none; font-weight: 500; }
.content-studio .crumbs a:hover { color: #413845; text-decoration: underline; }
.content-studio .page-heading { margin: 4px 0 26px; }
.content-studio .page-heading h1 { font-size: 31px; letter-spacing: -1px; margin-top: 8px; }
.content-studio .page-heading p { font-size: 14px; color: #7e6f85; }
.sample-chip { margin-left: 8px; vertical-align: middle; }
.content-studio h1 .sample-chip, .content-studio h2 .sample-chip { font-size: 11px; }

/* monograms (the handoff's .client-monogram, in a few tints) */
.client-monogram.tint-green { background: #efe3f0; color: #6b3f72; }
.client-monogram.tint-blue { background: #e9eef8; color: #4f6690; }
.client-monogram.tint-gold { background: #f7efd8; color: #8a6414; }
.client-monogram.tint-coral { background: #fbeae4; color: #a5543d; }
.client-monogram.tint-violet { background: #efeaf8; color: #6a5893; }
.client-monogram.large { width: 58px; height: 58px; border-radius: 14px; font-size: 19px; letter-spacing: .5px; }

/* the clients page */
.client-search { display: flex; align-items: center; gap: 8px; max-width: 360px; margin: -8px 0 16px; padding: 0 12px; border: 1px solid #e3d7e5; border-radius: 8px; background: #fff; color: #9e8fa5; }
.content-studio .client-search input { border: 0; outline: none; padding: 10px 0; font-size: 14px; width: 100%; background: transparent; }
.client-directory { background: #fff; }
.client-row { cursor: pointer; transition: background .15s; }
.client-row:hover { background: #fcf8fc; }
.client-row-main { flex: 1; min-width: 0; }
.content-studio .client-row-main h3 { display: flex; align-items: center; font-size: 16px; }
.content-studio .client-row-main h3 a { color: #26272d; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-studio .client-row-main p { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #887a8e; margin-top: 5px; }
.row-platforms { display: inline-flex; gap: 4px; }
.row-platforms .platform-icon { width: 22px; height: 22px; }
.content-studio .client-row-latest { display: grid; gap: 1px; text-align: right; padding: 7px 12px; border-radius: 8px; color: inherit; text-decoration: none; max-width: 260px; }
.content-studio .client-row-latest:hover { background: #f4ecf5; }
.client-row-latest small { font-size: 11px; color: #9c8ea2; }
.client-row-latest b { font-size: 13.5px; font-weight: 600; color: #524558; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-chevron { color: #b4a9b9; flex-shrink: 0; }
.directory-empty { padding: 22px; font-size: 14px; color: #887a8e; }
.first-client .first-form { padding-bottom: 22px; display: grid; gap: 14px; }

/* one client */
.client-hero { background: #fff; border: 1px solid #e1e4e9; border-radius: 16px; padding: 24px; margin-bottom: 30px; display: grid; gap: 20px; }
.client-hero-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.client-hero-title { flex: 1; min-width: 220px; }
.content-studio .client-hero-title h1 { font-size: 29px; letter-spacing: -.9px; margin: 4px 0 8px; line-height: 1.2; }
.client-hero-title .project-meta { gap: 6px; font-size: 13px; }
.client-hero-title .project-meta > span:last-child { margin-left: 6px; color: #887a8e; }
.client-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.client-profile > div { padding: 14px 16px; border-radius: 10px; background: #f8f4f9; border: 1px solid #ede5ef; }
.client-profile h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: #7e6f85; }
.content-studio .client-profile p { font-size: 14px; line-height: 1.6; color: #4d4152; white-space: pre-wrap; }
.content-studio .client-profile-empty { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: #fbf6e8; color: #7a5a14; font-size: 13.5px; line-height: 1.6; }
.client-profile-empty svg { margin-top: 3px; }
.content-studio .client-profile-empty .text-button { padding: 0; margin-left: 4px; }

/* project cards (the handoff's .project-card) */
.content-studio a.project-card { display: block; color: inherit; text-decoration: none; }
.content-studio .project-card .card-top { margin-bottom: 18px; }
.content-studio .project-card .card-top .sample-chip { margin-left: 0; }
.content-studio .project-card .card-platforms { margin: 16px 0 20px; }
.content-studio .project-card .card-footer { font-size: 12.5px; color: #7e6f85; gap: 10px; }
.content-studio .project-card .card-footer svg { color: #af8ab5; flex-shrink: 0; }
.content-studio .project-card:hover .card-footer svg { color: #75397e; }
.content-studio .new-project-card { display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; border-style: dashed; background: #fdfafe; min-height: 250px; }
.content-studio .new-project-card .empty-icon { margin: 0 0 6px; }
.new-project-card b { font-size: 15px; font-weight: 600; color: #413845; }
.new-project-card small { font-size: 12.5px; color: #8e7c96; max-width: 230px; line-height: 1.5; }
.content-studio .empty-project h3 { font-size: 17px; }
.content-studio .empty-project.gone { margin-top: 30px; }

/* a project's page */
.project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.content-studio .project-head h1 { font-size: 31px; letter-spacing: -1px; line-height: 1.2; }
.project-criteria { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; color: #605764; }
.project-criteria > span { display: inline-flex; align-items: center; gap: 6px; }
.project-criteria svg { color: #9c8ea2; }
.project-criteria .strip-platforms { gap: 4px; }

/* planning a new project */
.new-project-head { max-width: 760px; margin: 0 auto 22px; }
.content-studio .new-project-head h1 { font-size: 31px; letter-spacing: -1px; margin: 8px 0 8px; line-height: 1.2; }
.content-studio .new-project-head p { font-size: 14.5px; line-height: 1.65; color: #7e6f85; }
.page-new-project .crumbs { max-width: 760px; margin-left: auto; margin-right: auto; }
.brief-page-form { max-width: 760px; margin: 0 auto; gap: 14px; }
.start-from { display: grid; gap: 8px; }
.start-from > span { font-size: 13px; font-weight: 600; color: #413845; }
.start-from > small { font-size: 12.5px; color: #7e6f85; }
.start-options { display: flex; flex-wrap: wrap; gap: 8px; }
.content-studio .start-option { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid #e3d7e5; border-radius: 9px; background: #fff; font-size: 13.5px; color: #4d4152; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-studio .start-option.selected { background: #f5e7f7; border-color: #b885c0; color: #37233b; font-weight: 600; }

/* the brief's four sections: cards on the New project page, plain blocks with dividers in the Edit brief panel */
.form-section { display: grid; gap: 14px; }
.form-section > header { display: flex; align-items: flex-start; gap: 12px; }
.form-section > header > div { flex: 1; min-width: 0; }
.content-studio .form-section h3 { font-size: 16px; letter-spacing: -.2px; }
.content-studio .form-section > header p { font-size: 13px; line-height: 1.55; color: #887a8e; margin-top: 3px; }
.form-section .step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f1e4f3; color: #6b3f72; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.section-aside { font-size: 12.5px; font-weight: 600; color: #63236d; background: #f5e7f7; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.brief-sheet .form-section + .form-section { border-top: 1px solid #f0e9f1; padding-top: 18px; }
.brief-page-form .form-section { background: #fff; border: 1px solid #e1e4e9; border-radius: 14px; padding: 22px 24px; }
.brief-page-form .pillar-row { background: #fcf9fc; }
.brief-page-form .bench-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.voice-note { padding: 10px 12px; border-left: 3px solid #d3acd9; background: #f9f3fa; border-radius: 0 8px 8px 0; }
.voice-note small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #764b7d; font-weight: 600; }
.content-studio .voice-note p { margin-top: 4px; font-size: 13px; line-height: 1.55; color: #4d4152; white-space: pre-wrap; }
.content-studio .brief-form textarea { border: 1px solid #e3d7e5; border-radius: 6px; padding: 11px 12px; width: 100%; font: inherit; font-size: 14px; line-height: 1.5; color: #332b37; resize: vertical; min-height: 75px; outline: none; }
.content-studio .brief-form textarea:focus { border-color: #944e9f; box-shadow: 0 0 0 3px #819d5015; }
.brief-page-form .brief-actions { position: sticky; bottom: 16px; z-index: 5; margin: 6px 0 0; padding: 12px 14px 12px 20px; align-items: center; gap: 10px; background: #fff; border: 1px solid #e1dce3; border-radius: 12px; box-shadow: 0 10px 30px rgba(30, 40, 20, .1); }
:where(.content-studio) .brief-page-form .brief-actions .primary { flex: 0 0 auto; }
.brief-summary { flex: 1; display: grid; font-size: 12.5px; color: #887a8e; min-width: 0; }
.brief-summary b { font-size: 14px; color: #362e39; font-weight: 600; }

/* the client form */
.client-form { display: grid; gap: 16px; }
.content-studio .client-form textarea { min-height: 70px; }
.client-form-actions { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 4px; }
.client-form-actions > .button-row { margin-left: auto; }
.content-studio.client-dialog { width: min(580px, calc(100vw - 32px)); }

/* the client, as the Scraper shows it */
.bv-client { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bv-client > div { padding: 10px 12px; border: 1px solid #ebe6d6; border-radius: 10px; background: #fff; }
.bv-client h4 { margin-bottom: 4px !important; }
.content-studio .bv-client p { margin: 0; font-size: 12.5px; line-height: 1.55; color: #4d4152; white-space: pre-wrap; }

@media (max-width: 760px) {
  .client-profile, .bv-client { grid-template-columns: 1fr; }
  .content-studio .client-row-latest, .content-studio .client-row .status { display: none; }
  .content-studio .client-row { padding: 16px; gap: 12px; }
  .brief-page-form .bench-grid { grid-template-columns: 1fr 1fr; }
  .brief-page-form .form-section { padding: 18px 16px; }
  .content-studio .page-heading h1, .content-studio .project-head h1, .content-studio .new-project-head h1 { font-size: 26px; }
  .client-hero { padding: 18px; }
  .client-hero-top .button-row { width: 100%; }
}
@media (max-width: 520px) {
  .brief-page-form .brief-actions { flex-wrap: wrap; }
  .brief-summary { flex-basis: 100%; }
  :where(.content-studio) .brief-page-form .brief-actions .primary { flex: 1; }
}
.crumbs [aria-current=page] { color: #9c8ea2; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-studio .first-intro p + p { margin-top: 12px; }
.content-studio .first-intro .sample-note { margin-top: 18px; }

/* an empty board still shows its lanes, with how to fill it above them */
.board-start { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 14px; border: 1px dashed #dbcadd; border-radius: 10px; background: #fcf6fd; color: #85528c; }
.content-studio .board-start p { flex: 1; min-width: 240px; font-size: 13.5px; line-height: 1.55; color: #605764; }
.board-start b { color: #413845; }

/* ---------- adding a video by hand: full screen, in steps ---------- */
.content-studio.add-flow { position: fixed; inset: 0; z-index: 65; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #f7f8fa; animation: fade .15s ease; }
.af-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; height: 68px; padding: 0 24px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.af-where { display: flex; align-items: center; gap: 12px; min-width: 0; }
.af-where b { display: block; font-size: 15px; }
.af-where small { display: block; font-size: 12.5px; color: #7e6f85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-mark { width: 34px; height: 34px; border-radius: 10px; background: #d787e3; display: grid; place-items: center; color: #26272d; flex-shrink: 0; }
.af-steps { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: #8d7e93; white-space: nowrap; }
.af-steps li { display: flex; align-items: center; gap: 8px; }
.af-steps li + li::before { content: ''; width: 40px; height: 1px; background: #e1dce3; margin-right: 2px; }
.af-steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #e1dce3; background: #fff; font-size: 12px; font-weight: 600; }
.af-steps .now { color: #26272d; font-weight: 600; }
.af-steps .now span { background: #2e2731; border-color: #2e2731; color: #fff; }
.af-steps .done { color: #6b3f72; }
.af-steps .done span { background: #f1e4f3; border-color: #f1e4f3; color: #6b3f72; }
:where(.content-studio) .af-close { justify-self: end; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #6e6274; }
:where(.content-studio) .af-close:hover { background: #f4eff4; }
.af-main { overflow-y: auto; overscroll-behavior: contain; padding: 52px 24px 72px; }
.af-body { max-width: 720px; margin: 0 auto; display: grid; gap: 36px; animation: af-in .22s ease; }
@keyframes af-in { from { opacity: 0; transform: translateY(8px); } }
.af-section { display: grid; gap: 14px; }
.content-studio .af-q h1 { font-size: 30px; letter-spacing: -.9px; line-height: 1.2; }
.content-studio .af-q h2 { font-size: 19px; letter-spacing: -.3px; }
.content-studio .af-q p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: #7e6f85; }
.content-studio .af-q p b { color: #413845; }
.content-studio .af-q p.af-hint { margin-top: 4px; font-size: 13px; color: #8d7e93; }
.af-link { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 10px 0 18px; background: #fff; border: 1px solid #e1dce3; border-radius: 14px; color: #8d7e93; transition: border-color .15s, box-shadow .15s; }
.af-link:focus-within { border-color: #944e9f; box-shadow: 0 0 0 4px #819d5018; }
.af-link.bad { border-color: #e4b4a8; }
.content-studio .af-link input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 17px; color: #26272d; }
.content-studio .af-link input::placeholder { color: #a596ac; }
:where(.content-studio) .af-clear { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #8d7e93; }
:where(.content-studio) .af-clear:hover { background: #f4eff4; }
.content-studio .af-note.bad { margin-top: -6px; font-size: 13px; color: #a5543d; }
.af-preview, .af-video { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid #e6e2e8; border-radius: 12px; animation: af-in .2s ease; }
.af-preview.bad { border-color: #efc9c1; background: #fffaf8; }
.af-thumb { position: relative; width: 44px; height: 58px; border-radius: 8px; overflow: hidden; background: #f3edf4; display: grid; place-items: center; flex-shrink: 0; }
.af-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.af-preview-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.af-preview-text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-preview-text small { font-size: 13px; color: #7e6f85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-studio .af-preview-text small a { color: inherit; text-decoration: underline; text-decoration-color: #d0c8d3; }
.af-preview.bad .af-preview-text small { color: #a5543d; }
.af-preview-state { display: grid; place-items: center; color: #924d9d; flex-shrink: 0; }
.af-preview.bad .af-preview-state { color: #b33a2c; }
.af-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
:where(.content-studio) .af-pillar { display: grid; gap: 8px; align-content: start; text-align: left; padding: 16px 18px; background: #fff; border: 1px solid #e1e4e9; border-radius: 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
:where(.content-studio) .af-pillar:hover:not(:disabled) { border-color: #c9a5cf; filter: none; }
:where(.content-studio) .af-pillar.selected { border-color: #924d9d; background: #faf1fb; box-shadow: 0 0 0 3px #a9bf8633; }
:where(.content-studio) .af-pillar:disabled { opacity: 1; background: #f4f2f5; }
.af-pillar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.af-pillar-top b { font-size: 15px; color: #26272d; }
.af-pillar:disabled .af-pillar-top b { color: #8d7e93; }
.af-count { font-size: 12.5px; color: #7e6f85; white-space: nowrap; }
.af-pillar.selected .af-count { color: #63236d; font-weight: 600; }
.content-studio .af-pillar p { font-size: 13px; line-height: 1.5; color: #7e6f85; }
.af-meter { display: block; height: 4px; border-radius: 4px; background: #f0e9f1; overflow: hidden; }
.af-meter i { display: block; height: 100%; background: #b471bf; border-radius: 4px; transition: width .3s; }
.af-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: #f5e7f7; color: #4c2153; font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.af-pill svg { color: #924d9d; }
.af-h { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; font-size: 15px; font-weight: 600; color: #26272d; }
.af-h small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; color: #8d7e93; }
.af-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.af-grid .field { grid-column: span 2; }
.af-grid .field.wide { grid-column: span 4; }
.af-src { font-style: normal; font-size: 11px; font-weight: 600; margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: #f1e4f3; color: #6b3f72; white-space: nowrap; display: inline-block; }
.af-src.you { background: #eef0f9; color: #4f6690; }
/* the transcript of the whole video, filled in while the form is open */
.af-transcript .af-h-label { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; font-size: 15px; font-weight: 600; color: #26272d; }
.af-tx-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; color: #8d7e93; }
.af-tx-note.bad { color: #b4475f; }
.af-transcript textarea { min-height: 240px; line-height: 1.6; }
.af-transcript textarea::placeholder { color: #9a8ea0; }
.af-checks { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #7e6f85; }
.af-checks > span:first-child { margin-right: 4px; }
.af-check { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.af-check small { font-weight: 400; opacity: .8; margin-left: 2px; }
.af-check.ok { background: #e9f3e9; color: #3f6f41; }
.af-check.miss { background: #fff0ec; color: #a5543d; }
.af-check.unknown { background: #f2f0f3; color: #7e6f85; }
.af-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.af-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px; background: #fff; border-top: 1px solid #e5e7eb; }
.af-foot-note { flex: 1; font-size: 13px; color: #7e6f85; text-align: center; }
.af-foot > :first-child.af-foot-note { text-align: left; }
.af-done { justify-items: center; text-align: center; gap: 24px; padding-top: 24px; }
.af-done-icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: #f1e4f3; color: #6b3f72; }
.af-slots { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }
.af-slot { display: grid; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid #e6e2e8; border-radius: 12px; }
.af-slot > span:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.af-slot small { color: #8a6414; font-weight: 600; font-size: 12.5px; }
.af-slot.full small { color: #63236d; }
.content-studio .af-tally { font-size: 13px; color: #8d7e93; }
@media (max-width: 760px) {
  .af-top { grid-template-columns: minmax(0, 1fr) auto; padding: 0 14px; }
  .af-steps { display: none; }
  .af-main { padding: 28px 16px 48px; }
  .content-studio .af-q h1 { font-size: 25px; }
  .af-pillars, .af-pair, .af-slots { grid-template-columns: 1fr; }
  .af-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-grid .field, .af-grid .field.wide { grid-column: span 1; }
  .af-grid .field.af-poster { grid-column: 1 / -1; }
  .af-foot { padding: 12px 14px; }
  .af-foot-note { display: none; }
}
.af-foot { justify-content: flex-end; }
.af-foot > .secondary:first-child { margin-right: auto; }

/* ---------- the script writer: shoot plans, full screen, one video after another ---------- */
.sp-top-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.sp-count { display: flex; align-items: center; gap: 2px; font-size: 13px; color: #6e6274; white-space: nowrap; }
:where(.content-studio) .sp-count .af-close { width: 32px; height: 32px; }
.writer .af-main { padding-top: 36px; }
.sp-body { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 36px; align-items: start; animation: af-in .22s ease; }
.sp-ref { position: sticky; top: 0; display: grid; gap: 12px; }
.sp-card { display: grid; gap: 10px; padding: 16px; background: #fff; border: 1px solid #e6e2e8; border-radius: 14px; min-width: 0; }
.sp-video-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.content-studio .sp-ref h4 { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #7e6f85; }
.content-studio .sp-ref p { font-size: 14px; line-height: 1.6; color: #413845; }
.content-studio .sp-line { font-weight: 600; }
.content-studio .sp-adapt { padding: 10px 12px; border-left: 3px solid #d3acd9; background: #f9f3fa; border-radius: 0 8px 8px 0; }
.content-studio .sp-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.content-studio .sp-scroll { max-height: 240px; overflow-y: auto; padding-right: 6px; }
.content-studio .sp-muted { color: #9c8ea2 !important; font-style: italic; }
.sp-brief summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: #413845; }
.sp-brief[open] summary { margin-bottom: 2px; }
.sp-ref .video-embed iframe { max-height: 62vh; }
.sp-write { display: grid; gap: 14px; min-width: 0; }
.content-studio .sp-write .af-q h1 { font-size: 26px; letter-spacing: -.7px; }
.content-studio .sp-write .af-q p { font-size: 14.5px; }
.sp-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 6px; }
.sp-label > b { font-size: 15px; }
.sp-tools { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
:where(.content-studio) .sp-tools .secondary.small { padding: 7px 12px; font-size: 13px; }
.content-studio .sp-script { width: 100%; min-height: 50vh; field-sizing: content; padding: 22px 24px; border: 1px solid #e1dce3; border-radius: 14px; background: #fff; font: inherit; font-size: 18px; line-height: 1.75; color: #26272d; resize: vertical; outline: none; transition: border-color .15s, box-shadow .15s; }
.content-studio .sp-script:focus { border-color: #944e9f; box-shadow: 0 0 0 4px #819d5018; }
.content-studio .sp-script::placeholder { color: #a596ac; }
.sp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #7e6f85; }
.sp-len.ok { color: #3f6f41; font-weight: 600; }
.sp-len.long { color: #a5543d; font-weight: 600; }
.content-studio .sp-notes textarea { min-height: 170px; field-sizing: content; font-size: 15px; line-height: 1.7; padding: 14px 16px; border-radius: 12px; }
.sp-sound { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.content-studio .sp-sound .field small { display: inline; font-weight: 400; margin-left: 4px; }
.lane-add.write:hover { border-color: #a56aae; color: #62226c; background: #faeffb; }
.plan-preview { display: grid; gap: 6px; padding: 12px 14px; border-radius: 10px; background: #f9f5fa; border: 1px solid #ede5ef; }
.content-studio .plan-preview h4 { margin: 6px 0 0; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #7e6f85; }
.content-studio .plan-preview h4:first-child { margin-top: 0; }
.content-studio .plan-preview p { font-size: 13.5px; line-height: 1.6; color: #413845; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9.6em; overflow: hidden; }
@media (max-width: 960px) {
  .sp-body { grid-template-columns: 1fr; gap: 20px; }
  .sp-ref { position: static; }
  .sp-write { order: -1; }
  .sp-count { display: none; }
  .content-studio .sp-script { min-height: 40vh; font-size: 17px; padding: 16px; }
  .sp-sound { grid-template-columns: 1fr; }
}
.content-studio .sp-brief h4 { margin-top: 12px; }
.content-studio .sp-brief p { margin-top: 4px; }

/* the script writer: Structured (beats) or Freeform */
:where(.content-studio) .sp-mode button { display: inline-flex; align-items: center; gap: 6px; }
.sp-beats { display: grid; gap: 12px; }
.sp-beat { display: grid; gap: 10px; padding: 14px 16px 16px; background: #fff; border: 1px solid #e1e4e9; border-left: 4px solid #d6ced9; border-radius: 12px; animation: af-in .18s ease; }
.sp-beat.hook { border-left-color: #a56aae; }
.sp-beat.cta { border-left-color: #c9a75e; }
.sp-beat > header { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.sp-beat > header b { font-size: 14.5px; color: #26272d; }
.sp-beat > header small { font-size: 12.5px; color: #8d7e93; }
.sp-beat-time { margin-left: auto; font-size: 12.5px; font-weight: 600; color: #6e6274; white-space: nowrap; }
.sp-beat-tools { display: flex; gap: 2px; }
:where(.content-studio) .sp-beat-tools .icon-button { width: 28px; height: 28px; border: 0; background: transparent; color: #8d7e93; }
:where(.content-studio) .sp-beat-tools .icon-button:hover:not(:disabled) { background: #f4eff4; color: #413845; }
.sp-beat-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
.sp-said, .sp-seen label { display: grid; gap: 5px; align-content: start; }
.sp-seen { display: grid; gap: 10px; align-content: start; }
.sp-said > span, .sp-seen label > span { font-size: 12px; font-weight: 600; color: #6e6274; }
.content-studio .sp-beat textarea, .content-studio .sp-beat input { width: 100%; border: 1px solid #e3d7e5; border-radius: 8px; padding: 9px 11px; font: inherit; color: #26272d; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.content-studio .sp-beat textarea { resize: vertical; field-sizing: content; line-height: 1.55; }
.content-studio .sp-said textarea { min-height: 104px; font-size: 16px; }
.content-studio .sp-seen textarea { min-height: 62px; font-size: 14px; }
.content-studio .sp-seen input { font-size: 14px; }
.content-studio .sp-beat textarea:focus, .content-studio .sp-beat input:focus { border-color: #944e9f; box-shadow: 0 0 0 3px #819d5018; }
.content-studio .sp-beat textarea::placeholder, .content-studio .sp-beat input::placeholder { color: #aa9cb0; }
:where(.content-studio) .sp-add-scene { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; border: 1px dashed #c9cfd8; border-radius: 12px; background: transparent; color: #605764; font-size: 13.5px; font-weight: 600; }
:where(.content-studio) .sp-add-scene:hover { border-color: #a56aae; color: #62226c; background: #faeffb; filter: none; }
.sp-notes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500; }
.content-studio .sp-notes-head .text-button { padding: 0; font-size: 13px; }
.sp-mini-beats { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.sp-mini-beats > div { display: grid; gap: 3px; padding: 8px 10px; border-left: 3px solid #d6ced9; background: #fbf8fb; border-radius: 0 8px 8px 0; }
.sp-mini-beats > div.hook { border-left-color: #a56aae; }
.sp-mini-beats > div.cta { border-left-color: #c9a75e; }
.sp-mini-beats b { font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #6e6274; }
.content-studio .sp-mini-beats p { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.sp-mini-beats small { font-size: 12px; color: #8d7e93; }
/* Shoot plan: the script the client approved, beside the notes */
.sp-approved-by { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #73387c; margin: -2px 0 10px; }
.sp-approved .sp-mini-beats { max-height: 460px; }
.sp-label-text { font-size: 13px; font-weight: 600; color: #6e6274; }
.sp-mini-overlay { font-size: 12.5px; font-weight: 600; color: #4f6690; }
.sp-mini-overlay::before { content: '['; } .sp-mini-overlay::after { content: ']'; }
@media (max-width: 960px) {
  .sp-beat-grid { grid-template-columns: 1fr; }
  .sp-beat > header small { display: none; }
}

/* ---------- the team: who's using the app (until there are logins) ---------- */
.avatar-chip { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #e9e8fb; color: #5f5390; font-size: 12.5px; font-weight: 700; letter-spacing: .3px; }
.avatar-chip.small { width: 28px; height: 28px; font-size: 11px; }
.user-menu { position: relative; }
:where(.content-studio) .user-chip-btn { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border: 1px solid #ddd7e0; border-radius: 99px; background: #fff; color: #342c37; }
.user-chip-text { display: grid; text-align: left; line-height: 1.2; }
.user-chip-text b { font-size: 13px; font-weight: 600; }
.user-chip-text small { font-size: 11px; color: #887a8e; }
.user-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 260px; display: grid; gap: 2px; padding: 8px; background: #fff; border: 1px solid #e1e4e9; border-radius: 12px; box-shadow: 0 16px 40px rgba(20, 30, 10, .14); animation: fade .12s ease; }
.user-pop-label { padding: 4px 8px; font-size: 11.5px; font-weight: 600; color: #8d7e93; }
:where(.content-studio) .user-pop-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 8px; text-align: left; font-size: 13.5px; color: #26272d; }
:where(.content-studio) .user-pop-row:hover { background: #f5f1f6; filter: none; }
.user-pop-row > span { flex: 1; display: grid; }
.user-pop-row small { font-size: 11.5px; color: #887a8e; }
.user-pop-row.current { font-weight: 600; }
.user-pop-row.current svg { color: #75397e; }
:where(.content-studio) .user-pop-row.manage { border-top: 1px solid #f0e9f1; margin-top: 4px; padding-top: 10px; border-radius: 0 0 8px 8px; }
.content-studio .user-pop-note { padding: 6px 8px 2px; font-size: 11.5px; line-height: 1.45; color: #9c8ea2; }
.content-studio.who-dialog { width: min(460px, calc(100vw - 32px)); }
.who-list { display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; }
:where(.content-studio) .who-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e1e4e9; border-radius: 10px; background: #fff; text-align: left; }
:where(.content-studio) .who-row:hover { border-color: #c9a5cf; background: #fcf5fd; filter: none; }
.who-row > span { flex: 1; display: grid; }
.who-row b { font-size: 14.5px; }
.who-row small { font-size: 12px; color: #887a8e; }
.who-form { display: grid; gap: 12px; }
.team-panel { display: grid; gap: 18px; }
.team-list { display: grid; border: 1px solid #e6e2e8; border-radius: 12px; overflow: hidden; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #f0e9f1; background: #fff; }
.team-row:last-child { border-bottom: 0; }
.team-name { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-name b { font-size: 14.5px; }
.team-name small { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #f1e4f3; color: #6b3f72; }
:where(.content-studio) .team-row .pick.team-role { width: 150px !important; min-height: 36px; font-size: 13.5px; }
.team-role-label { font-size: 13px; color: #6e6274; }
.team-add { display: grid; gap: 10px; }
.content-studio .team-add h3 { font-size: 15px; }
.team-add-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 8px; }
.content-studio .team-add-row input { border: 1px solid #e3d7e5; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; outline: none; }
.content-studio .team-add-row input:focus { border-color: #944e9f; box-shadow: 0 0 0 3px #819d5018; }
:where(.content-studio) .team-add-row .pick { width: 150px !important; min-height: 42px; }
.content-studio.team-sheet { width: min(560px, 100vw) !important; max-width: 560px !important; }
@media (max-width: 640px) {
  .user-chip-text { display: none; }
  .team-add-row { grid-template-columns: 1fr; }
  :where(.content-studio) .team-add-row .pick { width: 100% !important; }
}

/* ---------- shoot plan approval, history, shooting and production (the card) ---------- */
.lane-add.review:hover { border-color: #839dc5; color: #3d5b8c; background: #f3f7fd; }
.lane-add.plan:hover { border-color: #5f9e93; color: #2f6b61; background: #f0f8f6; }
.ticket-details .needs-changes { color: #c53030; font-weight: 700; }
/* A card sent back for changes: outlined in red, at the top of its lane, with who asked and what. */
:where(.content-studio) .video-ticket.needs-changes, :where(.content-studio) .video-ticket.needs-changes:hover { border-color: #e5484d; box-shadow: 0 0 0 1px #e5484d, 0 6px 16px #e5484d1f; background: #fffbfb; }
.content-studio .ticket-feedback.changes { color: #a33a35 !important; border-left-color: #f2b8b5; -webkit-line-clamp: 4; }
.plan-status { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.plan-status svg { margin-top: 2px; flex-shrink: 0; }
.content-studio .plan-status p { margin-top: 4px; font-size: 13px; white-space: pre-wrap; color: inherit; }
.plan-status.pending { background: #eef3fb; color: #3d5b8c; }
.plan-status.ok { background: #eef6ee; color: #3f6f41; }
.plan-status.changes { background: #fff3ee; color: #9c4a33; }
.plan-history { border-top: 1px dashed #e3dee5; padding-top: 10px; }
.plan-history summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #524558; }
.plan-history summary span { font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: #f2ebf3; color: #6e6274; }
.plan-version { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid #efedf0; }
.plan-version:last-child { border-bottom: 0; }
.plan-version-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.plan-version-top .text-button { margin-left: auto; padding: 0; font-size: 12.5px; }
.by-other { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; background: #fdf3dc; color: #8a6414; }
.plan-version small { font-size: 12px; color: #887a8e; }
.content-studio .plan-version-note { font-size: 12.5px; font-style: italic; color: #6c6270; }
.plan-version .plan-preview { margin-top: 6px; }

/* the script writer: notes from the review, and asking for changes */
.sp-callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #eef3fb; color: #3d5b8c; font-size: 13.5px; }
.sp-callout svg { margin-top: 2px; flex-shrink: 0; }
.sp-callout b { font-weight: 600; }
.content-studio .sp-callout p { margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: inherit; white-space: pre-wrap; }
.content-studio .sp-callout .sp-suggest { margin-top: 8px; flex-wrap: wrap; gap: 6px; }
.sp-callout.ok { background: #f3e6f5; color: #54275b; }
.content-studio .pf-comment { display: grid; gap: 6px; }
.content-studio .pf-comment textarea { border: 1px solid #e3d7e5; border-radius: 8px; padding: 9px 11px; font-size: 14px; background: #fff; width: 100%; min-height: 60px; }
/* Scheduling: each platform's extras for OneUp */
.content-studio .pf-extras { border: 1px solid #e6dbe8; border-radius: 12px; padding: 10px 14px; background: #fcf9fc; }
.content-studio .pf-extras > summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; list-style-position: outside; }
.content-studio .pf-extras > summary > span { font-weight: 600; font-size: 14px; }
.content-studio .pf-extras > summary > small { font-size: 12px; color: #887a8e; }
.content-studio .pf-extras[open] > summary { margin-bottom: 10px; }
.content-studio .pf-extra { display: grid; gap: 5px; margin-top: 10px; font-size: 13px; }
.content-studio .pf-extra small, .content-studio .pf-group small { font-size: 12px; color: #736479; }
.content-studio .pf-extra input:not([type=checkbox]), .content-studio .pf-extra textarea, .content-studio .pf-group input:not([type=checkbox]) { border: 1px solid #e3d7e5; border-radius: 8px; padding: 9px 11px; font-size: 14px; background: #fff; width: 100%; }
.content-studio .pf-group { border: 1px solid #ebe2ec; border-radius: 10px; padding: 8px 12px 12px; display: grid; gap: 8px; background: #fff; }
.content-studio .pf-group legend { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; padding: 0 4px; }
.content-studio .pf-group legend .platform-icon, .content-studio .pf-check .platform-icon { width: 20px; height: 20px; }
.content-studio .pf-group label { display: grid; gap: 5px; }
.content-studio .pf-check { display: flex !important; align-items: center; gap: 8px; font-size: 13px; color: #403644; }
.sp-callout.changes { background: #fff3ee; color: #9c4a33; }
.sp-callout.ok { background: #eef6ee; color: #3f6f41; }
.af-foot.sp-ask { display: grid; gap: 10px; }
.sp-ask-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #413845; }
.sp-ask-field span { font-weight: 500; color: #6e6274; }
.content-studio .sp-ask-field textarea { width: 100%; min-height: 76px; field-sizing: content; border: 1px solid #e3d7e5; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px; line-height: 1.55; outline: none; resize: vertical; }
.content-studio .sp-ask-field textarea:focus { border-color: #c9784f; box-shadow: 0 0 0 3px #c9784f1f; }

/* ---------- the shoot plan document (the handoff's .shoot-guide; prints alone, one video per page) ---------- */
.page-shoot-plan .guide-host { margin-top: 14px; }
.content-studio .guide-hint { font-size: 12.5px; color: #8d7e93; }
.content-studio .guide-heading p { font-size: 14px; color: #6e6274; }
.guide-brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.content-studio .guide-brief h4 { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: #835889; margin-bottom: 4px; font-weight: 600; }
.content-studio .guide-brief p { font-size: 13px; line-height: 1.6; color: #4d4152; }
.guide-item-heading h3 { display: flex; align-items: baseline; gap: 10px; font-size: 18px; line-height: 1.35; }
.guide-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: #2e2731; color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.guide-item-heading .status { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.content-studio .guide-meta b { color: #524558; font-weight: 600; margin-right: 4px; }
.guide-beats { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.55; table-layout: fixed; }
.guide-beats th, .guide-beats td { text-align: left; vertical-align: top; padding: 9px 10px; border: 1px solid #e3dee5; white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-beats thead th { background: #f7f2f8; font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; color: #6e6274; font-weight: 700; }
.guide-beats thead th:first-child { width: 96px; }
.guide-beats tbody th { font-weight: 700; color: #413845; background: #fcf9fc; }
.guide-beats tr.hook th { box-shadow: inset 3px 0 0 #a56aae; }
.guide-beats tr.cta th { box-shadow: inset 3px 0 0 #c9a75e; }
.guide-beats td:nth-child(3) { color: #3d5b8c; font-weight: 600; }
.guide-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
@media (max-width: 760px) {
  .guide-brief, .guide-two { grid-template-columns: 1fr; }
  .guide-beats { table-layout: auto; font-size: 13px; }
}
@media print {
  .content-studio .crumbs, .toaster, .overlay, .add-flow { display: none !important; }
  :where(.content-studio) .guide-item + .guide-item, :where(.content-studio) .guide-pillar { break-before: page; }   /* a cover page, then one video per page */
  :where(.content-studio) .guide-pillar > h2 { break-after: avoid; margin-bottom: 14px; }
  :where(.content-studio) .guide-item { border: 0; padding: 0; }
  .guide-beats { font-size: 10.5px; }
  .guide-beats th, .guide-beats td { padding: 5px 6px; }
  .guide-beats thead { display: table-header-group; }
  .guide-beats tr { break-inside: avoid; }
  .content-studio .guide-meta a { color: #222; text-decoration: none; }
  .guide-n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* a narrow window or a phone: the header's buttons go icon-only, so nothing pushes the page sideways */
@media (max-width: 640px) {
  .content-studio .studio-header { gap: 8px; }
  .content-studio .studio-header .button-row { flex-wrap: nowrap; gap: 6px; }
  .content-studio .studio-header .label-wide { display: none; }
  :where(.content-studio) .studio-header .secondary { padding: 9px 10px; }
  :where(.content-studio) .user-chip-btn { padding: 4px 8px 4px 4px; }
}
@media (max-width: 380px) { .content-studio .studio-wordmark b { display: none; } }

/* ---------- Production: full screen, one video after another ---------- */
.lane-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
:where(.content-studio) .lane-actions .lane-add { padding: 9px 6px; font-size: 12.5px; }
.lane-add.produce:hover { border-color: #bd8ca9; color: #8a4a70; background: #fcf5f9; }
.pf-ok { display: flex; align-items: center; gap: 6px; margin-top: -4px; font-size: 13.5px; color: #3f6f41; }
.content-studio .pf-ok a { text-decoration: underline; }
.content-studio .pf-hint { margin-top: -4px; font-size: 13.5px; line-height: 1.6; color: #7e6f85; }
.content-studio a.pf-final { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #524558; }
.pf-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
:where(.content-studio) .pf-day { display: grid; justify-items: center; gap: 1px; padding: 8px 4px 7px; border: 1px solid #e1e4e9; border-radius: 10px; background: #fff; color: #413845; }
:where(.content-studio) .pf-day:hover { border-color: #c9a5cf; filter: none; }
.pf-day small { font-size: 11px; color: #8d7e93; text-transform: uppercase; letter-spacing: .4px; }
.pf-day b { font-size: 17px; line-height: 1.3; }
.pf-dots { min-height: 14px; font-size: 10.5px; font-weight: 600; color: #a07a1c; }
:where(.content-studio) .pf-day.selected { border-color: #924d9d; background: #f5e7f7; box-shadow: 0 0 0 3px #a9bf8633; }
.pf-day.selected small { color: #63236d; }
.pf-when { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.pf-when label { display: grid; gap: 4px; }
.pf-when small { font-size: 12px; color: #6e6274; }
.content-studio .pf-when input { width: 100%; border: 1px solid #e3d7e5; border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 14px; background: #fff; outline: none; }
.content-studio .pf-when input:focus { border-color: #944e9f; box-shadow: 0 0 0 3px #819d5018; }
.content-studio .pf-caption textarea { min-height: 200px; field-sizing: content; font-size: 16px; line-height: 1.65; padding: 14px 16px; border-radius: 12px; }
.pf-count { font-size: 12.5px; color: #7e6f85; }
.pf-count.over { color: #a5543d; font-weight: 600; }
.footage-input { display: grid; gap: 5px; min-width: 0; }
.footage-field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid #e1dce3; border-radius: 10px; background: #fff; color: #8d7e93; transition: border-color .15s, box-shadow .15s; }
.footage-field:focus-within { border-color: #944e9f; box-shadow: 0 0 0 3px #819d5018; }
.footage-field.ok { border-color: #b885c0; }
.footage-field.bad { border-color: #e4b4a8; }
.content-studio .footage-field input { flex: 1; min-width: 0; height: auto; padding: 0; border: 0; outline: none; box-shadow: none; background: transparent; font-size: 14px; color: #26272d; }
.content-studio .footage-field input::placeholder { color: #a596ac; }
.footage-field .footage-ok { flex: none; color: #3f6f41; }
.footage-bad { font-size: 12px; line-height: 1.45; color: #a4492f; overflow-wrap: anywhere; }
.footage-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footage-edit { display: grid; gap: 8px; }
@media (max-width: 760px) {
  .pf-days { grid-template-columns: repeat(7, minmax(42px, 1fr)); overflow-x: auto; }
  .pf-when { grid-template-columns: 1fr 1fr; }
}

/* ---------- the footage handoff: full screen, one video after another — the Drive folder, then monday.com ---------- */
.content-studio .ho-label { display: flex; align-items: center; gap: 8px; }
.mp-tag { display: inline-block; padding: 1px 7px; border-radius: 99px; background: #f1eef2; color: #736479; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.mp-tag.week { background: #eaf2ff; color: #2f5fa8; }
.mp { position: relative; }
:where(.content-studio) .mp-trigger { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 10px 16px; text-align: left; background: #fff; border: 1px solid #e1dce3; border-radius: 14px; color: #8d7e93; transition: border-color .15s, box-shadow .15s; }
:where(.content-studio) .mp-trigger:hover { border-color: #c9a5cf; filter: none; }
:where(.content-studio) .mp-trigger.open { border-color: #944e9f; box-shadow: 0 0 0 4px #819d5018; }
.mp-board-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #f5f1f6; flex: none; }
.mp-value { flex: 1; min-width: 0; display: grid; gap: 1px; }
.mp-value b { font-size: 16px; font-weight: 650; color: #26272d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-value small { font-size: 12px; color: #8d7e93; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-trigger.empty .mp-value b { color: #5f5065; font-weight: 600; }
.mp-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: 380px; background: #fff; border: 1px solid #e1dce3; border-radius: 14px; box-shadow: 0 18px 40px -12px #1f2a1430, 0 2px 6px #1f2a140f; overflow: hidden; }
.mp-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid #eeebf0; color: #8d7e93; }
.content-studio .mp-search input { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; outline: none; box-shadow: none; background: transparent; font-size: 14.5px; color: #26272d; }
.mp-list { overflow-y: auto; padding: 4px 6px 8px; }
.mp-group { display: flex; align-items: center; gap: 8px; padding: 10px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #736479; }
.mp-group-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.mp-row { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 8px 4px calc(4px + var(--depth, 0) * 20px); border-radius: 9px; cursor: pointer; color: #312935; font-size: 14px; }
.mp-row.active { background: #f6eef7; }
.mp-row.selected { background: #f3e2f5; }
.mp-row.off { cursor: not-allowed; color: #a596ac; }
:where(.content-studio) .mp-twist { width: 22px; height: 22px; display: grid; place-items: center; flex: none; padding: 0; border-radius: 6px; background: none; color: #8d7e93; }
:where(.content-studio) button.mp-twist:hover { background: #ece3ed; filter: none; }
.mp-name { flex: 1; min-width: 0; display: grid; }
.mp-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-name small { font-size: 11.5px; color: #8d7e93; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-count { min-width: 20px; padding: 0 6px; border-radius: 99px; background: #f1eef2; color: #7e6f85; font-size: 11.5px; font-weight: 600; text-align: center; }
.mp-check { color: #62226c; flex: none; }
.content-studio .mp-empty { padding: 18px 10px; font-size: 13.5px; color: #8d7e93; text-align: center; }
.mp-foot { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-top: 1px solid #eeebf0; background: #fbf8fb; font-size: 12px; color: #8d7e93; }
.mp-recent { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.mp-recent small { font-size: 12px; color: #8d7e93; margin-right: 2px; }
:where(.content-studio) .mp-chip { padding: 5px 11px; border: 1px solid #e1e4e9; border-radius: 99px; background: #fff; color: #413845; font-size: 12.5px; font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.content-studio) .mp-chip:hover { border-color: #c9a5cf; filter: none; }
:where(.content-studio) .mp-chip.on { border-color: #924d9d; background: #f5e7f7; color: #4c2153; }

.ms-preview { display: grid; gap: 12px; padding: 16px 18px; background: #fcf9fc; border: 1px solid #e6dbe8; border-radius: 14px; }
.ms-preview.empty { display: flex; align-items: center; gap: 10px; color: #8d7e93; font-size: 13.5px; border-style: dashed; background: #fff; }
.ms-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #7e6f85; }
.ms-board { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12.5px; color: #5f5065; }
.ms-tree { display: grid; gap: 2px; }
.ms-row { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 10px; margin-left: calc(var(--depth, 0) * 22px); border-radius: 8px; font-size: 13.5px; color: #8d7e93; min-width: 0; }
.ms-row.parent { background: #fff; border: 1px solid #e6e2e8; color: #312935; font-weight: 600; }
.ms-row.parent > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-row.parent small { font-weight: 500; font-size: 12px; color: #8d7e93; white-space: nowrap; }
.ms-row.new { background: #fff; border: 1.5px solid #b26dbd; box-shadow: 0 0 0 3px #a9bf8622; color: #62226c; }
.ms-row.new b { flex: 1; min-width: 0; font-size: 14px; font-weight: 650; color: #26272d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-new { padding: 2px 8px; border-radius: 99px; background: #edd1f2; color: #4c2153; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ms-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; background: #fff; border: 1px solid #e6e2e8; border-radius: 10px; overflow: hidden; }
.ms-cols > div { display: grid; gap: 4px; padding: 9px 12px; min-width: 0; }
.ms-cols > div + div { border-left: 1px solid #eeebf0; }
.ms-cols dt { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #8d7e93; }
.ms-cols dd { margin: 0; font-size: 13.5px; color: #312935; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-studio .ms-cols a { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: #3f6a8f; }
.ms-status { display: inline-block; padding: 2px 9px; border-radius: 4px; background: #e8a33d; color: #fff; font-size: 12.5px; font-weight: 600; }
.ms-missing { color: #a596ac; font-style: italic; }
@media (max-width: 760px) { .ms-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ms-cols > div:nth-child(3) { border-left: 0; } .ms-cols > div:nth-child(n+3) { border-top: 1px solid #eeebf0; } }

.ho-done { display: grid; gap: 6px; width: min(620px, 100%); text-align: left; }
.ho-done-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid #e1e4e9; border-radius: 12px; }
.ho-done-row > span { display: grid; gap: 3px; min-width: 0; }
.ho-done-row b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-done-row small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #887a8e; min-width: 0; }
.content-studio .ho-placeholder { font-size: 12.5px; color: #8d7e93; }
.ho-links { display: grid; gap: 6px; }
.content-studio .ho-monday { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12.5px; line-height: 1.45; color: #7e6f85; }
.ho-monday svg { flex: none; margin-top: 2px; }
.ho-pair { display: grid; gap: 6px; }
.content-studio a.ho-plan { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

/* ---------- the editor brief: one video, for the editors ---------- */
.page-editor-brief .guide-host { margin-top: 14px; }
.content-studio .eb-monday { display: flex; align-items: center; gap: 6px; font-size: 13px !important; color: #7e6f85; }
.eb-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 18px 0 8px; }
.content-studio a.eb-link, .eb-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e1e4e9; border-radius: 14px; background: #fff; color: #312935; text-decoration: none; }
.content-studio a.eb-link:hover { border-color: #c9a5cf; }
.eb-link > span { flex: 1; min-width: 0; display: grid; gap: 1px; }
.eb-link b { font-size: 15px; font-weight: 650; }
.eb-link small { font-size: 12.5px; color: #8d7e93; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-studio a.eb-link.footage { background: #2e2731; border-color: #2e2731; color: #fff; }
.eb-link.footage small { color: #d1b7d5; }
.eb-link.missing { border-style: dashed; color: #8d7e93; }
.eb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.eb-main { min-width: 0; }
.eb-ref { position: sticky; top: 16px; }
.eb-edit { padding: 14px 16px; border-radius: 12px; background: #f7f1f8; border: 1px solid #e7d6e9; }
.content-studio .eb-caption { white-space: pre-wrap; }
@media (max-width: 900px) { .eb-grid { grid-template-columns: 1fr; } .eb-ref { position: static; } }
@media print {
  .eb-ref { display: none !important; }
  .eb-grid { display: block; }
  .content-studio a.eb-link.footage { background: #fff; color: #222; border-color: #999; }
  .eb-link.footage small { color: #555; }
}

.content-studio .drawer-loading { display: flex; align-items: center; gap: 8px; padding: 18px 2px; }

/* ---------- after the handoff: Editing → Management review → Scheduling → Client review → Scheduled ---------- */
.pp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 2px 0 6px; padding: 0; list-style: none; counter-reset: none; }
.pp-steps li { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 11px; line-height: 1.25; color: #9c8ea2; position: relative; }
.pp-steps li::before { content: ''; position: absolute; top: 8px; left: -50%; right: 50%; height: 2px; background: #e6dbe8; z-index: 0; }
.pp-steps li:first-child::before { display: none; }
.pp-steps li.done::before, .pp-steps li.now::before { background: #b885c0; }
.pp-steps li > span { position: relative; z-index: 1; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid #d9d3dc; color: #fff; }
.pp-steps li.done > span { background: #924d9d; border-color: #924d9d; }
.pp-steps li.now > span { border-color: #62226c; box-shadow: 0 0 0 3px #a9bf8640; }
.pp-steps li.now { color: #312935; font-weight: 650; }
.pp-move { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding-top: 10px; border-top: 1px solid #ebe7ed; font-size: 13px; color: #7e6f85; }
.pp-move select { flex: 1; min-width: 0; }
.content-studio .oneup-line { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #f5f1f6; color: #4f4255; font-size: 13px; line-height: 1.5; }
.content-studio .oneup-line > svg { margin-top: 2px; flex-shrink: 0; }
.content-studio .oneup-line > div { display: grid; gap: 6px; min-width: 0; }
.content-studio .oneup-line p { margin: 0; font-size: 13px; color: inherit; }
.content-studio .oneup-line b { font-weight: 600; }
.content-studio .oneup-line.ok { background: #f3e6f5; color: #54275b; }
.content-studio .oneup-line.warn { background: #fdf4e3; color: #7a5a1c; }
.content-studio .oneup-line.bad { background: #fdeee9; color: #8f3f2b; }
.ap-list { display: grid; gap: 6px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.ap-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #e1e4e9; border-radius: 10px; background: #fff; cursor: pointer; }
.ap-row.picked { border-color: #b885c0; background: #faf1fb; }
.ap-row > span { display: grid; gap: 2px; min-width: 0; }
.ap-row b { font-size: 14px; font-weight: 600; line-height: 1.4; }
.ap-row small { font-size: 12px; color: #887a8e; }
.content-studio .ap-row a { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; color: #3f6a8f; width: fit-content; }
.af-link.small { height: 46px; border-radius: 11px; }
.content-studio .af-link.small input { font-size: 15px; }

/* ---------- ideas without a reference video: original ideas and formats ---------- */
.content-studio .af-alt { margin-top: 2px; font-size: 13.5px; }
:where(.content-studio) .af-step-jump { display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; color: inherit; font: inherit; }
:where(.content-studio) .af-step-jump:hover { filter: none; color: #26272d; }
.made-picker .af-pillar-top b { display: inline-flex; align-items: center; gap: 7px; }
.made-picker .af-pillar-top svg { color: #924d9d; }
.made-chip { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: #f1e4f3; color: #62226c; white-space: nowrap; }
.made-chip.client { background: #eaf2ff; color: #2f5fa8; }
.made-chip.library { background: #f6eedf; color: #8a5a12; }
.made-chip.none { background: #f1eef2; color: #605764; }
.idea-chip { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #fff6d6; color: #8a6a0c; }
.idea-chip.format { background: #efeafd; color: #5b44a8; }
.content-studio .ticket-check.idea-note { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #7e6f85; }
.made-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #e6e2e8; border-radius: 12px; font-size: 13.5px; color: #4e4353; }
.made-row > span { font-weight: 600; white-space: nowrap; }
.made-row select { flex: 1; min-width: 0; }
.drawer-idea { grid-template-columns: 54px minmax(0, 1fr); }
.drawer-idea-mark { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: #fff6d6; color: #8a6a0c; }
.content-studio .drawer-idea .vc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.content-studio .drawer-idea .caption { white-space: pre-wrap; }
.content-studio .idea-why { font-size: 13.5px; color: #605764; margin-top: 6px; }
.idea-links { display: grid; gap: 2px; margin-top: 6px; }
.content-studio .idea-links .text-button { justify-content: flex-start; font-size: 12.5px; }
.idea-edit { display: grid; gap: 10px; margin-top: 8px; }
.af-mark.small { width: 30px; height: 30px; border-radius: 9px; background: #fff6d6; color: #8a6a0c; }
.content-studio .sp-line.muted { color: #887a8e; font-size: 13px; }
.content-studio .sp-idea .sp-link { justify-content: flex-start; font-size: 12.5px; padding: 2px 0; }
.content-studio .sp-blanks { border-color: #ecd9c4; background: #fdf8f1; }
.sp-blanks p, .format-blanks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.content-studio .sp-blanks code, .content-studio .format-blanks code, .content-studio .af-q code { padding: 1px 6px; border-radius: 5px; background: #f6eedf; color: #8a5a12; font-size: 12.5px; }
.content-studio .format-blanks { margin-top: 10px; font-size: 13px; color: #7e6f85; }
.format-script { display: grid; gap: 14px; }
.content-studio textarea.format-freeform { min-height: 260px; font-size: 15px; line-height: 1.6; }
.format-danger { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid #ebe7ed; font-size: 13.5px; color: #7e6f85; }
:where(.content-studio) .lane-actions.single { grid-template-columns: 1fr; }
/* the client's formats */
.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 30px; }
:where(.content-studio) .format-card { display: grid; gap: 8px; align-content: start; text-align: left; padding: 16px 18px; border: 1px solid #e1e4e9; border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
:where(.content-studio) .format-card:hover { border-color: #c9bdf0; filter: none; box-shadow: 0 6px 18px -10px #5b44a855; }
.format-card-top { display: flex; align-items: center; gap: 8px; color: #5b44a8; }
.format-card-top b { color: #26272d; font-size: 15px; }
.content-studio .format-card p { font-size: 13px; line-height: 1.5; color: #7e6f85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.format-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #887a8e; }
.content-studio .client-hero + .section-title, .content-studio .project-grid + .section-title, .content-studio .empty-project + .section-title { margin-top: 34px; }
/* making videos from a format */
.format-pick { display: grid; gap: 8px; margin-bottom: 8px; }
.format-row { border: 1px solid #e1e4e9; border-radius: 12px; background: #fff; overflow: hidden; }
.format-row.open { border-color: #c9bdf0; }
:where(.content-studio) .format-row-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; text-align: left; background: none; border: 0; color: #5b44a8; }
:where(.content-studio) .format-row-head:hover { filter: none; background: #faf8ff; }
.format-row-head > .format-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.format-row-head b { color: #26272d; font-size: 14.5px; }
.format-row-head small { font-size: 12.5px; color: #887a8e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.format-make { display: grid; gap: 10px; padding: 4px 14px 14px; border-top: 1px solid #f0edf9; }
.format-make-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; padding-top: 10px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; padding: 3px; border: 1px solid #e1dce3; border-radius: 10px; background: #fff; }
.stepper b { min-width: 26px; text-align: center; font-size: 15px; }
.format-titles { display: grid; gap: 6px; max-height: 36vh; overflow-y: auto; padding: 2px; }
.format-title { display: flex; align-items: center; gap: 8px; }
.format-title > span { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #f1eef2; color: #7e6f85; font-size: 11.5px; font-weight: 600; }
.format-title input { flex: 1; min-width: 0; }
.empty-formats { display: grid; gap: 14px; justify-items: start; }
.content-studio .empty-formats p { font-size: 14px; line-height: 1.6; }

/* ---------- Pitch: ideas go to the client before the shoot plan ---------- */
.af-mark.pitch { background: #d5ecf8; color: #1f5f80; }
.content-studio textarea.pitch-script { min-height: 260px; font-size: 15px; line-height: 1.6; }
.pitch-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 10px 14px; border: 1px solid #d5e6f0; border-radius: 12px; background: #f4fafd; color: #1f5f80; font-size: 14px; }
.content-studio .pitch-link a { font-weight: 600; color: #1f5f80; word-break: break-all; }
.content-studio .client-said { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #eef6fb; color: #2f5a70; font-size: 13px; line-height: 1.5; }
.client-said svg { flex: none; margin-top: 2px; }
.content-studio .client-said.warn { background: #fdf3e6; color: #8a5a12; }
.content-studio .sp-ref .client-said { margin-bottom: 2px; }

/* ---------- Rejected: off the board, in a row of their own under it ---------- */
:where(.content-studio) .rejected-row { margin-top: 18px; border: 1px solid #f0d4d3; border-radius: 12px; background: #fffafa; padding: 14px 16px; }
:where(.content-studio) .rejected-row > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #a33a35; list-style: none; flex-wrap: wrap; }
:where(.content-studio) .rejected-row > summary::-webkit-details-marker { display: none; }
:where(.content-studio) .rejected-row > summary b { font-size: 15px; }
:where(.content-studio) .rejected-row > summary small { color: #a07d7b; font-size: 12.5px; margin-left: 4px; }
:where(.content-studio) .rejected-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
@media (max-width: 760px) { :where(.content-studio) .rejected-groups { grid-template-columns: 1fr; } }
:where(.content-studio) .rejected-group h4 { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #6d5452; margin-bottom: 8px; }
:where(.content-studio) .rejected-group h4 span { font-size: 11.5px; background: #f6e3e2; color: #9a5250; border-radius: 6px; padding: 1px 6px; }
:where(.content-studio) .rejected-cards { display: grid; gap: 8px; }
:where(.content-studio) .rejected-none { font-size: 12.5px; color: #b9a5a4; padding: 10px 2px; }
:where(.content-studio) .rejected-card { display: grid; gap: 6px; text-align: left; background: #fff; border: 1px solid #ecdad9; border-radius: 9px; padding: 11px 12px; transition: border-color .15s, box-shadow .15s; }
:where(.content-studio) .rejected-card:hover { border-color: #d9a7a5; box-shadow: 0 4px 12px #a33a3512; }
:where(.content-studio) .rejected-card b { font-size: 14px; font-weight: 500; color: #4a4e5b; line-height: 1.4; overflow-wrap: anywhere; }
:where(.content-studio) .rejected-card p { font-size: 12.5px; color: #8e5f5c; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:where(.content-studio) .rejected-card small { font-size: 11.5px; color: #a3a7b1; }
:where(.content-studio) .rejected-card .ticket-top { font-size: 11.5px; }


/* ---------- monday.com: a card's subitem status, the client's label ---------- */
:where(.content-studio) .monday-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 9px 11px; border: 1px solid #e3e6ee; border-radius: 9px; background: #f8f9fc; font-size: 13px; color: #5b6170; }
:where(.content-studio) .monday-line > svg { color: #6c63c9; flex-shrink: 0; }
:where(.content-studio) .monday-line > span { flex: 1; min-width: 180px; }
:where(.content-studio) .monday-line code { font-size: 12px; background: #eef0f6; padding: 1px 5px; border-radius: 4px; }
:where(.content-studio) .monday-label select { max-width: 360px; }
:where(.content-studio) .monday-label .text-button { justify-self: start; }
:where(.content-studio) .oneup-setup select { max-width: 360px; }
:where(.content-studio) .oneup-setup .text-button { justify-self: start; }
.oneup-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 4px; }
.content-studio .oneup-account { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid #e4d8e6; border-radius: 9px; background: #fff; cursor: pointer; font-size: 13px; }
.content-studio .oneup-account.on { background: #f5e7f7; border-color: #c9a5cf; }
.content-studio .oneup-account.off { opacity: .55; cursor: default; }
.content-studio .oneup-account > span { display: grid; gap: 1px; min-width: 0; }
.content-studio .oneup-account b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-studio .oneup-account small { font-size: 11.5px; color: #887a8e; }
.oneup-modes { display: grid; gap: 6px; margin-top: 6px; }
.content-studio .oneup-mode { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border: 1px solid #e4d8e6; border-radius: 9px; background: #fff; cursor: pointer; }
.content-studio .oneup-mode.on { background: #f5e7f7; border-color: #c9a5cf; }
.content-studio .oneup-mode input { margin-top: 3px; }
.content-studio .oneup-account input[type=checkbox], .content-studio .oneup-mode input[type=radio], .content-studio .pf-check input[type=checkbox] { width: auto; flex: none; padding: 0; margin: 0; box-shadow: none; }
.content-studio .oneup-mode > span { display: grid; gap: 2px; }
.content-studio .oneup-mode b { font-size: 13px; font-weight: 600; }
.content-studio .oneup-mode small { font-size: 12px; color: #887a8e; }
:where(.content-studio) .zf-stages { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #6b7080; }
:where(.content-studio) .zf-stage { padding: 2px 8px; border-radius: 999px; background: #eef0f6; color: #5b6170; }
:where(.content-studio) .zf-stage.approved, :where(.content-studio) .zf-stage.approved_with_changes { background: #e7f3ea; color: #3e7a52; }
:where(.content-studio) .zf-stage.changes_required { background: #fdecec; color: #a33a35; }

/* ---------- the edited video (the Ziflow proof): its player, and Review cuts ---------- */
:where(.content-studio) .proof-player { display: grid; gap: 10px; }
:where(.content-studio) .proof-video { width: 100%; max-height: 420px; background: #0f1115; border-radius: 10px; object-fit: contain; display: block; }
:where(.content-studio) .proof-player.big .proof-video { max-height: calc(100vh - 150px); height: calc(100vh - 150px); border-radius: 14px; }
:where(.content-studio) .proof-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 13px; color: #5b6170; }
:where(.content-studio) .proof-meta b { font-size: 13.5px; color: #3c4150; }
:where(.content-studio) .proof-failed { display: grid; justify-items: center; gap: 8px; padding: 40px 16px; background: #f4f5f8; border-radius: 10px; color: #6b7080; font-size: 13.5px; }
:where(.content-studio) .zf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
:where(.content-studio) .zf-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: #eef0f6; color: #5b6170; border: 1px solid transparent; }
:where(.content-studio) .zf-chip.done { background: #e7f3ea; color: #3e7a52; }
:where(.content-studio) .zf-chip.changes { background: #fdecec; color: #a33a35; }
:where(.content-studio) .zf-chip.now { border-color: #c9a64a; background: #fbf4e2; color: #7a5d16; font-weight: 600; }
:where(.content-studio) .zf-chip.skipped { opacity: .55; text-decoration: line-through; }
:where(.content-studio) .ticket-thumb.cut { outline: 2px solid #c9a64a; outline-offset: 1px; }

/* Review cuts: the cut big on the left, what it needs on the right; Ziflow's viewer full width when commenting */
:where(.content-studio) .cr-main { overflow: hidden; }
:where(.content-studio) .cr-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; height: 100%; padding: 20px 28px; box-sizing: border-box; }
:where(.content-studio) .cr-stage { display: flex; align-items: center; justify-content: center; min-height: 0; background: #0f1115; border-radius: 16px; padding: 12px; }
:where(.content-studio) .cr-stage .proof-player, :where(.content-studio) .cr-stage .proof-video { width: 100%; }
:where(.content-studio) .cr-panel { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; padding-right: 4px; }
:where(.content-studio) .cr-panel .af-q h1 { font-size: 24px; }
:where(.content-studio) .cr-status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4a4e5b; margin: 0; }
:where(.content-studio) .cr-note { font-size: 13px; color: #7a6a52; background: #fbf6ec; border-radius: 8px; padding: 9px 11px; margin: 0; }
:where(.content-studio) .cr-actions { display: grid; gap: 10px; margin-top: 4px; }
:where(.content-studio) .cr-actions button.big { justify-content: center; padding: 14px 16px; font-size: 15.5px; gap: 8px; }
:where(.content-studio) .cr-actions button small { font-size: 12px; opacity: .8; font-weight: 400; margin-left: 4px; }
:where(.content-studio) .cr-hint { font-size: 12.5px; color: #8a8f9c; margin: 0; }
:where(.content-studio) .cr-more { border-top: 1px solid #eceef2; padding-top: 10px; }
:where(.content-studio) .cr-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #5b6170; }
:where(.content-studio) .cr-more > :not(summary) { margin-top: 8px; }
:where(.content-studio) .cr-open { align-self: flex-start; }
:where(.content-studio) .cr-email { display: grid; gap: 8px; padding: 12px; border: 1px solid #e3e6ee; border-radius: 10px; background: #f8f9fc; }
:where(.content-studio) .cr-email small { font-size: 12.5px; color: #7a7f8c; }
:where(.content-studio) .cr-email-picks { display: flex; flex-wrap: wrap; gap: 6px; }
:where(.content-studio) .cr-email-form { display: flex; gap: 6px; }
:where(.content-studio) .cr-email-form input { flex: 1; min-width: 0; }
:where(.content-studio) .cr-viewer { display: flex; flex-direction: column; height: 100%; }
:where(.content-studio) .cr-viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: #fbf6ec; border-bottom: 1px solid #efe3cb; font-size: 14px; color: #5d4a27; }
:where(.content-studio) .cr-viewer-bar span { flex: 1; }
:where(.content-studio) .cr-frame { flex: 1; width: 100%; border: 0; background: #fff; min-height: 0; }
:where(.content-studio) .cr-loading { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; color: #6b7080; }
@media (max-width: 900px) { :where(.content-studio) .cr-body { grid-template-columns: 1fr; overflow-y: auto; } :where(.content-studio) .proof-player.big .proof-video { height: 60vh; } }

/* the card: the edit first, the reference folded below it */
:where(.content-studio) .drawer-cut { display: grid; gap: 10px; margin-bottom: 14px; }
:where(.content-studio) .drawer-cut > .primary { justify-self: start; }
:where(.content-studio) .drawer-ref-fold { margin-bottom: 12px; }
:where(.content-studio) .drawer-ref-fold > summary { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; font-weight: 600; color: #5b6170; padding: 8px 0; }
:where(.content-studio) .drawer-ref-fold.plain > summary { display: none; }
:where(.content-studio) .sp-cut .proof-video { max-height: 460px; }
:where(.content-studio) .team-email { display: block; margin-top: 4px; font-size: 12.5px; padding: 4px 8px; border: 1px solid #e3e6ee; border-radius: 6px; width: 100%; max-width: 260px; background: #fff; }
:where(.content-studio) .team-email-label { display: block; color: #8a8f9c; }
:where(.content-studio) .cr-stage .proof-failed { background: transparent; color: #c9ccd6; }
:where(.content-studio) .cr-stage .proof-failed .text-button { color: #f1e3b8; }
