/* Home desk, Analytics sources, and the project room (Talk · Brief · Board · Files). */
.home-greeting{margin:var(--space-2) 0 var(--space-5)}
.home-kicker{display:flex;align-items:center;gap:10px;margin:0 0 var(--space-3);color:var(--muted);font-size:13px}
.home-kicker-photo{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;overflow:hidden;background:var(--raised);font-size:10px;font-weight:600;color:var(--muted)}
.home-kicker-photo img{width:100%;height:100%;object-fit:cover}
.home-kicker span:not(.home-kicker-photo){color:var(--text);font-weight:500}
.home-kicker .text-button{min-height:0;padding:0;font-size:13px;color:var(--muted)}
.home-kicker .text-button:hover{color:var(--text)}
.home-greeting h1{margin:0;font-size:var(--type-title);font-weight:600;letter-spacing:-.035em;line-height:1.1;text-wrap:balance;max-width:24ch}
.home-greeting+#brandSurface .assist{margin-bottom:var(--space-6)}
.home-columns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:var(--space-7);max-width:1100px;align-items:start}
.home-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-4);margin-bottom:var(--space-2)}
.home-section-head h2{margin:0;font-size:15px;font-weight:600;letter-spacing:-.01em}
.home-section-head>div{display:flex;gap:var(--space-4)}
.home-section-head .text-button{min-height:0;padding:0;font-size:13px;color:var(--muted)}
.home-section-head .text-button:hover{color:var(--text)}
.home-rows{list-style:none;margin:0;padding:0}
.home-rows li+li{border-top:1px solid var(--line)}
.home-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--space-4);width:100%;min-height:52px;padding:0 var(--space-2);border:0;border-radius:10px;background:transparent;color:var(--text);text-align:left;cursor:pointer;transition:background var(--motion-fast) ease}
.home-row:hover{background:var(--raised)}
.home-row:focus-visible{outline:2px solid var(--focus,#0a84ff);outline-offset:1px}
.home-row-name{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-row-meta{color:var(--muted);font-size:13px}
.home-row-stage{display:inline-flex;align-items:center;gap:7px;min-width:84px;color:var(--muted);font-size:13px}
.home-stage-dot{width:7px;height:7px;border-radius:50%;background:var(--muted)}
.home-stage-dot:is([data-stage="review"],[data-stage="publish"]){background:var(--text)}
.home-stage-dot[data-stage="learn"]{background:transparent;border:1.5px solid var(--text)}
.home-empty{margin:var(--space-2) 0 0;color:var(--muted);font-size:14px}
.home-needs ul{list-style:none;margin:0;padding:0}
.home-needs li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px var(--space-3);padding:var(--space-3) 0;font-size:14px}
.home-needs li+li{border-top:1px solid var(--line)}
.home-needs .text-button{min-height:0;padding:0;font-size:14px;color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}

.analytics-sources-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;margin:0 0 var(--space-5);padding:var(--space-3) var(--space-4);border:1px solid var(--line);border-radius:14px}
.analytics-sources-row strong{display:block;font-size:14px;font-weight:600}
.analytics-sources-row span{color:var(--muted);font-size:13px}
.analytics-sources-row .quiet{border-radius:999px;min-height:36px}

/* Project room */
.project-room-header{align-items:flex-end;margin-bottom:var(--space-5)}
.project-views{flex:none}
.project-file-tools{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 var(--space-5)}
.project-file-tools button{min-height:32px;padding:0 13px;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--muted);font-size:13px;cursor:pointer}
.project-file-tools button:hover{color:var(--text);background:var(--raised)}
.project-file-tools button[aria-current="page"]{color:var(--text);background:var(--raised);border-color:var(--line)}
.project-room-view{animation:assist-in 180ms var(--motion-ease) both}
.brief{max-width:760px}
.brief-steps{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:0 0 var(--space-6);padding:0}
.brief-steps button{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:0 11px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:12px;cursor:pointer}
.brief-steps button::before{content:'';width:7px;height:7px;border-radius:50%;border:1.5px solid currentColor}
.brief-steps button[data-done="true"]::before{background:currentColor}
.brief-steps button[aria-current="step"]{background:var(--raised);color:var(--text);font-weight:500}
.brief-steps button[aria-current="step"]::before{background:var(--text);border-color:var(--text)}
.brief-part{padding:var(--space-4) 0;border-top:1px solid var(--line)}
.brief-part:first-of-type{border-top:0;padding-top:0}
.brief-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3)}
.brief-part h3{margin:0 0 var(--space-2);font-size:13px;font-weight:500;color:var(--muted);letter-spacing:0}
.brief-part>p,.brief-head+p{margin:0;font-size:16px;line-height:1.6;max-width:65ch}
.brief-head .text-button{min-height:0;padding:0;font-size:13px;opacity:.72}
.brief-part:hover .brief-head .text-button,.brief-head .text-button:focus-visible{opacity:1}
.brief-part.is-editing{margin:0 calc(-1 * var(--space-4));padding:var(--space-4);border-radius:var(--radius-panel);border:1px solid var(--line);background:var(--panel)}
.brief-part.is-editing textarea{min-height:160px}
.brief-brand{margin:var(--space-6) 0 0;color:var(--muted);font-size:13px}
.brief-brand .text-button,.brief-part .book-empty .text-button{display:inline;min-height:0;padding:0;color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}
.assist-starters{display:flex;flex-wrap:wrap;gap:6px;margin-top:var(--space-3)}
.assist-starter{min-height:32px;padding:0 13px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text);font-size:13px;cursor:pointer;transition:background var(--motion-fast) ease}
.assist-starter:hover{background:var(--raised)}

:root[data-theme="light"] .brief-part.is-editing{background:#fff;box-shadow:var(--glass-shadow)}
:root[data-theme="light"] .analytics-sources-row{background:rgba(255,255,255,.84);border-color:var(--glass-line)}

@media (max-width:860px){.home-columns{grid-template-columns:1fr;gap:var(--space-6)}}
@media (max-width:720px){
 .home-greeting h1{font-size:28px}
 .home-row{grid-template-columns:minmax(0,1fr) auto;row-gap:2px;padding:var(--space-2)}
 .home-row-meta{grid-column:1;grid-row:2}
 .home-row-stage{grid-column:2;grid-row:1/3;min-width:0}
 .project-room-header{flex-direction:column;align-items:stretch}
 .project-views{width:100%}.project-views button{flex:1;padding:0 6px}
 .brief-part.is-editing{margin:0 calc(-1 * var(--space-3));padding:var(--space-3)}
}
@media (prefers-reduced-motion:reduce){.project-room-view{animation:none}.home-row,.assist-starter{transition:none}}
/* Inside the project room the view tabs already name the place; section eyebrows are noise. */
.project-room-view .project-room-heading .eyebrow{display:none}
.project-room-view .project-room-heading h2{font-size:var(--type-section)}
/* Library tag suggestions */
.library-tag-chips{display:flex;flex-wrap:wrap;gap:6px;margin:var(--space-3) 0 var(--space-2)}
.library-tag-chips button{min-height:30px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--muted);font-size:12px;cursor:pointer;transition:background var(--motion-fast) ease,color var(--motion-fast) ease}
.library-tag-chips button:hover{color:var(--text);background:var(--raised)}
.library-tag-chips button[aria-pressed="true"]{color:var(--bg);background:var(--text);border-color:var(--text)}
.library-tag-chips span{color:var(--muted);font-size:12px}
/* Pipeline: one line of steps and one next action. */
.pipeline{max-width:760px;margin:0 0 var(--space-5)}
.pipeline-line{display:flex;flex-wrap:wrap;gap:4px 14px;list-style:none;margin:0 0 var(--space-3);padding:0;color:var(--muted);font-size:12px}
.pipeline-line li{display:inline-flex;align-items:center;gap:6px}
.pipeline-line i{width:7px;height:7px;border-radius:50%;border:1.5px solid currentColor}
.pipeline-line li[data-status="done"]{color:var(--text)}
.pipeline-line li[data-status="done"] i{background:currentColor}
.pipeline-line li[aria-current="step"]{color:var(--text);font-weight:600}
.pipeline-line li[aria-current="step"] i{border-color:var(--text);box-shadow:0 0 0 3px color-mix(in srgb,var(--text) 14%,transparent)}
.pipeline-card{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;padding:var(--space-4) var(--space-5);border:1px solid var(--line);border-radius:var(--radius-panel);background:var(--panel);animation:assist-in 180ms var(--motion-ease) both}
.pipeline-card small{display:block;color:var(--muted);font-size:12px;margin-bottom:2px}
.pipeline-card p{margin:0;font-size:15px;line-height:1.45}
.pipeline-actions{display:flex;gap:var(--space-2);flex:none}
.pipeline-actions .primary,.pipeline-actions .quiet{min-height:38px;padding:0 18px;border-radius:999px}
.pipeline-render{margin:var(--space-3) 0 0;display:flex;flex-direction:column;gap:6px;max-width:280px}
.pipeline-render video{width:100%;aspect-ratio:9/16;border-radius:14px;background:#000;object-fit:contain}
.pipeline-render figcaption{color:var(--muted);font-size:12px}
.pipeline-render .text-button{display:inline;min-height:0;padding:0 0 0 6px;font-size:12px}
.pipeline-done{margin:0;padding:var(--space-3) 0;color:var(--muted);font-size:14px}
#pipelineNext.is-compact .pipeline{margin-bottom:var(--space-6)}
:root[data-theme="light"] .pipeline-card{background:#fff;border-color:var(--glass-line);box-shadow:var(--glass-shadow)}
@media (prefers-reduced-motion:reduce){.pipeline-card{animation:none}}
.pipeline-error{margin:6px 0 0!important;color:var(--danger,#e5484d);font-size:13px!important;overflow-wrap:anywhere}
/* Reel Edit view: live 9:16 preview, transport, safe zone and track strip. */
.reel-edit-top{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--space-6);align-items:start;margin-bottom:var(--space-6)}
.reel-stage-col{display:flex;flex-direction:column;gap:var(--space-2);width:min(300px,100%)}
.reel-stage{position:relative;width:100%;aspect-ratio:9/16;overflow:hidden;border-radius:22px;background:#000;box-shadow:0 18px 50px rgba(0,0,0,.28)}
.reel-stage iframe{position:absolute;left:0;top:0;width:1080px;height:1920px;border:0;transform-origin:0 0;pointer-events:none}
.reel-stage-status{position:absolute;inset:auto 0 45% 0;margin:0;color:rgba(255,255,255,.72);font-size:13px;text-align:center;padding:0 20px}
.reel-safe{position:absolute;inset:0;pointer-events:none}
.reel-safe i{position:absolute;border:1.5px dashed rgba(255,255,255,.85);border-radius:6px;box-shadow:0 0 0 999px rgba(0,0,0,.35)}
.reel-transport{display:flex;align-items:center;gap:var(--space-2)}
.reel-play{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:var(--text);color:var(--bg);cursor:pointer}
.reel-play svg{width:16px;height:16px;fill:currentColor}
.reel-play:disabled{opacity:.35;cursor:default}
.reel-transport input[type=range]{flex:1;min-width:0;accent-color:var(--text)}
.reel-time{flex:none;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.reel-safe-toggle{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.reel-edit-side{min-width:0}
.reel-edit-side h3{margin:0 0 var(--space-3);font-size:15px;font-weight:600}
.reel-tracks{--track-label:72px;position:relative;display:flex;flex-direction:column;gap:6px;padding-top:22px}
.reel-ruler{position:absolute;top:0;left:var(--track-label);right:0;height:18px;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
.reel-ruler span{position:absolute;transform:translateX(-50%)}
.reel-track{display:grid;grid-template-columns:var(--track-label) minmax(0,1fr);align-items:center}
.reel-track-label{color:var(--muted);font-size:12px}
.reel-track-lane{position:relative;height:30px;border-radius:8px;background:var(--raised);cursor:pointer}
.reel-seg{position:absolute;top:3px;bottom:3px;min-width:4px;padding:0 6px;border:0;border-radius:6px;overflow:hidden;color:var(--bg);font-size:11px;text-align:left;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}
.reel-seg span{display:block;overflow:hidden;text-overflow:ellipsis}
.reel-seg:focus-visible{outline:2px solid var(--focus,#0a84ff);outline-offset:1px}
.seg-video{background:var(--text)}
.seg-card{background:color-mix(in srgb,var(--text) 70%,var(--bg))}
.seg-cap{background:color-mix(in srgb,var(--text) 45%,var(--bg));color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}
.seg-music{background:color-mix(in srgb,var(--text) 25%,var(--bg));color:var(--text)}
.reel-playhead{position:absolute;top:18px;bottom:0;width:2px;margin-left:-1px;background:var(--focus,#0a84ff);pointer-events:none}
.reel-edit-note{margin:var(--space-4) 0 0;color:var(--muted);font-size:12px}
.reel-edit-settings{border-top:1px solid var(--line);padding-top:var(--space-5)}
@media (max-width:860px){.reel-edit-top{grid-template-columns:1fr}.reel-stage-col{margin:0 auto}}
/* Transcript editing */
.reel-transcript{margin-top:var(--space-6);padding-top:var(--space-5);border-top:1px solid var(--line)}
.reel-transcript-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap;margin-bottom:var(--space-3)}
.reel-transcript-head h3{margin:0;font-size:15px;font-weight:600}
.reel-transcript-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.reel-transcript-tools .quiet{min-height:32px;padding:0 12px;border-radius:999px;font-size:12px}
.reel-transcript-tools small{color:var(--muted);font-variant-numeric:tabular-nums;margin-left:4px}
.reel-transcript-tools .text-button{min-height:32px;font-size:12px}
.reel-caption-style{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3) var(--space-4);margin-bottom:var(--space-4);font-size:12px;color:var(--muted)}
.reel-style-presets button{min-height:28px;padding:0 12px;font-size:12px}
.reel-style-check,.reel-style-pos{display:inline-flex;align-items:center;gap:6px}
.reel-style-pos select{min-height:30px;font-size:12px}
.reel-words{max-height:280px;overflow:auto;padding:var(--space-3) var(--space-4);border:1px solid var(--line);border-radius:14px;background:var(--panel);font-size:16px;line-height:1.9;user-select:text}
.reel-clip-words{margin:0 0 var(--space-3);max-width:none}
.reel-clip-words:last-child{margin-bottom:0}
.reel-clip-name{display:block;margin-bottom:2px;color:var(--muted);font-size:11px;line-height:1.4;user-select:none}
.rw{border-radius:5px;padding:1px 2px;cursor:pointer;transition:background var(--motion-fast) ease,color var(--motion-fast) ease}
.rw:hover{background:var(--raised)}
.rw.is-cut{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--danger,#e5484d);opacity:.55}
.rw.is-em{font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.rw.is-fixed{border-bottom:1px dashed var(--muted)}
.rw.is-now{background:var(--text);color:var(--bg)}
.rw-edit{width:9ch;min-height:0;padding:0 4px;font-size:15px;border-radius:6px}
.reel-words-empty{margin:0;color:var(--muted);font-size:14px;display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap}
.reel-words-empty .quiet{min-height:34px;border-radius:999px}
:root[data-theme="light"] .reel-words{background:#fff}
@media (prefers-reduced-motion:reduce){.rw{transition:none}}
/* Reel effects: word menu, B-roll picker, cover and timeline marks */
.reel-under{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}
.reel-under .text-button{min-height:0;padding:0;font-size:12px}
.reel-cover-note{margin:0;color:var(--muted);font-size:12px}
.reel-cover-note:empty{display:none}
.seg-broll{background:color-mix(in srgb,var(--focus,#0a84ff) 70%,var(--bg))}
.reel-zoom-mark,.reel-cover-mark{position:absolute;top:18px;width:0;height:0;margin-left:-5px;border:5px solid transparent;pointer-events:none}
.reel-zoom-mark{border-top-color:var(--text)}
.reel-cover-mark{border-top-color:#ffd60a}
.reel-word-menu{position:fixed;z-index:90;display:flex;flex-direction:column;min-width:190px;padding:6px;border-radius:12px;background:var(--popover-bg);border:1px solid var(--popover-line);box-shadow:var(--popover-shadow);animation:assist-in 150ms var(--motion-ease) both}
.reel-word-menu button{min-height:36px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:13px;text-align:left;cursor:pointer}
.reel-word-menu button:hover,.reel-word-menu button:focus-visible{background:var(--raised);outline:none}
.reel-broll-dialog{width:min(640px,calc(100vw - 32px))}
.reel-broll-dialog p{color:var(--muted);font-size:13px}
.reel-broll-dialog input[type=number]{width:64px;min-height:30px}
.reel-broll-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--space-2);max-height:420px;overflow:auto}
.reel-broll-grid button{display:flex;flex-direction:column;gap:6px;padding:6px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--text);font-size:11px;text-align:left;cursor:pointer}
.reel-broll-grid button:hover,.reel-broll-grid button:focus-visible{border-color:var(--text)}
.reel-broll-grid img,.reel-broll-grid video{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:var(--raised)}
.reel-broll-grid span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.reel-word-menu{animation:none}}
.rw.is-zoom{box-shadow:inset 0 -2px 0 var(--text)}
.rw.is-zoom::after{content:'⤢';font-size:.7em;margin-left:2px;color:var(--muted)}
.rw.is-broll{background:color-mix(in srgb,var(--focus,#0a84ff) 14%,transparent)}
.rw:focus-visible{outline:2px solid var(--focus,#0a84ff);outline-offset:1px}
.pipeline-cover{display:flex;align-items:center;gap:var(--space-2);margin-top:6px;font-size:12px;color:var(--muted)}
.pipeline-cover img{width:44px;aspect-ratio:9/16;object-fit:cover;border-radius:6px;border:1px solid var(--line)}
/* Edit view: preview on the left, numbered step tabs on the right, full-width timeline and render bar below. */
.reel-edit-top{grid-template-columns:min(300px,100%) minmax(0,1fr)}
.reel-panel{min-width:0;border:1px solid var(--line);border-radius:18px;background:var(--panel);overflow:hidden}
.reel-tabs{display:flex;gap:4px;padding:6px;border-bottom:1px solid var(--line);overflow-x:auto}
.reel-tabs button{display:flex;align-items:center;gap:8px;min-height:38px;padding:7px 14px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-weight:600;white-space:nowrap}
.reel-tabs button span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--raised);font-size:11px;font-weight:700}
.reel-tabs button[aria-selected="true"]{background:var(--raised);color:var(--text)}
.reel-tabs button[aria-selected="true"] span{background:var(--text);color:var(--bg)}
.reel-tabs button[data-count]:not([data-count=""])::after{content:attr(data-count);padding:1px 7px;border-radius:999px;background:var(--bg);color:var(--muted);font-size:11px}
.reel-tabs button:focus-visible{outline:2px solid var(--focus,#0a84ff);outline-offset:-2px}
.reel-tabpanel{padding:18px 20px 20px}
.reel-tabpanel .reel-words{max-height:min(52vh,520px);overflow:auto;padding-right:6px}
.reel-panel-title{margin:18px 0 8px;font-size:13px;font-weight:600;color:var(--muted)}.reel-panel-title:first-child{margin-top:0}
.reel-source{margin:0;font-size:13px;color:var(--muted)}.reel-source .text-button{margin-left:6px}
.reel-help{font-size:12px;color:var(--muted);margin:0 0 12px}
.reel-clips-empty{padding:22px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);text-align:center;font-size:13px}
.reel-clip{background:var(--bg)}
.reel-clip-body small{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.reel-clip-actions{flex-direction:row;align-items:center;gap:4px}
.icon-button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted)}.icon-button:hover:not(:disabled){background:var(--raised);color:var(--text)}.icon-button:disabled{opacity:.35}
.reel-clip-remove{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text);font-size:12px}
.reel-clip-remove svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.reel-clip-remove:hover{border-color:var(--danger);color:var(--danger)}
.reel-clip-add{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.reel-clip-add .reel-help{margin:0}
.reel-removed{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:var(--raised);font-size:13px}
.reel-effect-list{list-style:none;margin:0 0 6px;padding:0;display:grid;gap:8px}
.reel-effect-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.reel-effect-list li>span{display:grid;gap:2px;min-width:0}.reel-effect-list strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reel-effect-list small{font-size:12px;color:var(--muted)}
.reel-template-pick{display:inline-flex;flex-wrap:wrap}
.reel-ready{width:100%;min-height:42px;border:0;border-radius:12px;background:var(--text);color:var(--bg);font-weight:600}
.reel-ready:disabled{background:var(--raised);color:var(--muted);opacity:1}
.reel-timeline{margin:0 0 var(--space-5);padding:14px 16px 16px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.reel-timeline-empty{margin:0;color:var(--muted);font-size:13px}
.reel-track-lane.is-empty{display:flex;align-items:center;padding:0 10px;cursor:default}.reel-track-lane.is-empty .text-button{min-height:0;padding:0;font-size:12px}
.seg-video{display:flex;align-items:stretch;padding:0}
.reel-seg-jump{flex:1;min-width:0;padding:0 6px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.reel-seg-remove{flex:0 0 22px;display:grid;place-items:center;margin:2px;border:0;border-radius:5px;background:color-mix(in srgb,var(--bg) 22%,transparent);color:inherit;font-size:14px;line-height:1;cursor:pointer}
.reel-seg-remove:hover,.reel-seg-remove:focus-visible{background:var(--danger);color:#fff}
.reel-render-slot .reel-bar{margin-top:0}
.reel-renders summary{cursor:pointer;min-height:36px;font-weight:600}
.reel-renders[open]{display:block}.reel-renders[open]>article{margin-top:12px}
.reel-standalone{display:grid;gap:18px}
@media (max-width:860px){.reel-edit-top{grid-template-columns:1fr}.reel-tabpanel{padding:14px}}
/* How a short video starts: three choices in the new-project dialog and the pipeline card. */
.reel-starts{display:grid;gap:8px;margin-top:8px}
.reel-start{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);border-radius:12px;cursor:pointer}
.reel-start:has(input:checked){border-color:var(--text);background:var(--raised)}
.reel-start input{margin-top:3px}.reel-start span{display:grid;gap:2px}.reel-start strong{font-size:14px}.reel-start small{font-size:12px;color:var(--muted)}
fieldset#newReelStart{border:0;padding:0;margin:20px 0}fieldset#newReelStart legend{font-size:12px;color:var(--muted);padding:0}
fieldset#newReelStart[hidden]{display:none}
.pipeline-start{align-items:flex-start}.pipeline-start p{margin:4px 0 0}
/* Headings with an ⓘ explainer card. */
.heading-with-info{position:relative;display:flex;align-items:center;gap:8px}
.heading-with-info h2{margin:0}
.info-button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.info-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.info-button:hover,.info-button[aria-expanded="true"]{background:var(--raised);color:var(--text)}
.info-button:focus-visible{outline:2px solid var(--focus,#0a84ff);outline-offset:2px}
.info-card{position:absolute;z-index:40;left:0;top:calc(100% + 8px);width:min(340px,80vw);padding:12px 14px;border:1px solid var(--popover-line);border-radius:14px;background:var(--popover-bg);box-shadow:var(--popover-shadow)}
.info-card[hidden]{display:none}
.info-card p{margin:0;font-size:13px;line-height:1.5;color:var(--text)}
.board-heading.is-untitled{justify-content:flex-end;min-height:0;margin-bottom:6px}
/* Editor: the whole play button is the target; the preview itself toggles play. */
.reel-play{min-width:44px;min-height:44px}
.reel-play svg{pointer-events:none}
.reel-tap{position:absolute;inset:0;z-index:1;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer}
.reel-tap:focus-visible{outline:2px solid var(--focus,#0a84ff);outline-offset:-4px;border-radius:inherit}
.reel-stage .reel-safe,.reel-stage .reel-stage-status{z-index:2;pointer-events:none}
/* Captions tab: why a tool is off, the script match line, and structure bands. */
.reel-tools-note{font-size:12px;color:var(--muted);align-self:center}
.reel-structure-btn{margin-left:auto}
.reel-script-match{margin:0 0 10px;font-size:13px;color:var(--muted);line-height:1.5}
.reel-script-match strong{color:var(--text);font-weight:600}
.reel-words.show-diff .rw.is-offscript{text-decoration:underline dotted;text-underline-offset:4px;text-decoration-color:var(--muted)}
.reel-words,.reel-structure-tips{--rs-hook:#f5a524;--rs-problem:#f25f5c;--rs-value:#3b82f6;--rs-payoff:#22c55e;--rs-cta:#a855f7}
.rw.rs{box-shadow:none}
.rs-hook{--rs:var(--rs-hook)}.rs-problem{--rs:var(--rs-problem)}.rs-value{--rs:var(--rs-value)}.rs-payoff{--rs:var(--rs-payoff)}.rs-cta{--rs:var(--rs-cta)}
.reel-words .rw.rs{background:color-mix(in srgb,var(--rs) 12%,transparent)}
.rs-label{display:inline-flex;align-items:center;margin:0 6px 0 2px;padding:1px 8px;border:0;border-radius:999px;background:var(--rs);color:#fff;font:inherit;font-size:11px;font-weight:600;line-height:18px;vertical-align:2px;cursor:pointer}
.reel-structure-tips{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:4px;font-size:12.5px;color:var(--muted)}
.reel-structure-tips li{display:flex;align-items:baseline;gap:6px}
.reel-structure-tips i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--rs)}
.reel-structure-tips strong{color:var(--text);font-weight:600}

/* ---- Project flow: Brief → Edit → Render → Publish (→ Results) ----
   A progress track: round stops on a thick rail that fills up to the next step. Finished stops hold a check, the next
   one carries a halo, the open step is ringed. --n (stops) and --fill (0–1) are set from brands.js. */
.flow-steps{--n:4;--fill:0;position:relative;align-self:stretch;width:100%;list-style:none;margin:0;padding:14px 0 0;display:flex;overflow-x:auto;scrollbar-width:none}
.flow-steps::-webkit-scrollbar{display:none}
.flow-steps::before,.flow-steps::after{content:"";position:absolute;top:36px;height:8px;border-radius:4px;pointer-events:none}
.flow-steps::before{left:calc(100% / var(--n) / 2);right:calc(100% / var(--n) / 2);background:color-mix(in srgb,var(--text) 10%,transparent)}
.flow-steps::after{left:calc(100% / var(--n) / 2);width:calc((100% - 100% / var(--n)) * var(--fill));background:var(--text);transition:width .5s var(--motion-ease)}
.flow-step{position:relative;z-index:1;flex:1 1 0;min-width:104px}
.flow-step button{display:flex;flex-direction:column;align-items:center;gap:9px;width:100%;padding:4px 6px 8px;border:0;border-radius:14px;background:none;color:var(--muted);text-align:center;cursor:pointer}
.flow-step button:focus-visible{outline:2px solid var(--focus,#0a84ff);outline-offset:2px}
.flow-dot{position:relative;flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--panel);border:2px solid color-mix(in srgb,var(--text) 14%,transparent);box-shadow:0 2px 8px color-mix(in srgb,var(--text) 12%,transparent);font-size:14px;font-variant-numeric:tabular-nums;color:var(--muted);transition:background-color var(--motion-standard) var(--motion-ease),border-color var(--motion-standard) var(--motion-ease),box-shadow var(--motion-standard) var(--motion-ease),transform var(--motion-fast) var(--motion-ease)}
.flow-step button:hover .flow-dot{transform:scale(1.06)}
.flow-dot b{font-weight:650}
.flow-dot svg{position:absolute;width:20px;height:20px;fill:none;stroke:var(--bg);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.flow-step[data-state="done"] .flow-dot{background:var(--text);border-color:var(--text)}
.flow-step[data-state="done"] .flow-dot b{opacity:0}
.flow-step[data-state="done"] .flow-dot svg{opacity:1}
/* The next step: a halo of two soft rings around it. */
.flow-step[data-state="next"] .flow-dot{border-color:var(--text);color:var(--text);box-shadow:0 0 0 7px color-mix(in srgb,var(--text) 9%,transparent),0 0 0 15px color-mix(in srgb,var(--text) 5%,transparent)}
/* The open step: a ring just outside its stop. */
.flow-step button[aria-selected="true"] .flow-dot{outline:2px solid var(--text);outline-offset:4px}
.flow-text{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;max-width:100%}
.flow-label{font-size:14px;line-height:1.2;font-weight:600;letter-spacing:-.01em;color:var(--muted);white-space:nowrap}
.flow-step[data-state="done"] .flow-label,.flow-step[data-state="next"] .flow-label,.flow-step button[aria-selected="true"] .flow-label{color:var(--text)}
.flow-note{max-width:100%;font-size:12px;line-height:1.2;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The short-video step line is replaced by the stepper (its Next card stays above the chat). */
.project-room-header ~ #pipelineNext{display:none}
.project-back-step{display:inline-block;margin:0 0 10px}

/* Brief: References from the Board, and the tools that used to live under Files. */
.brief-refs{margin:0 0 18px}
.brief-refs:empty{display:none}
.brief-refs-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.brief-refs-head h3{margin:0;font-size:14px}
.brief-refs-row{list-style:none;margin:10px 0 0;padding:0 0 4px;display:flex;gap:8px;overflow-x:auto}
.brief-ref{flex:none;width:88px;height:88px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--raised)}
.brief-ref.is-media img,.brief-ref.is-media video{display:block;width:100%;height:100%;object-fit:cover}
.brief-ref.is-media span{display:grid;place-items:center;height:100%;color:var(--muted)}
.brief-ref.is-text{width:156px;padding:9px 11px;display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:1.35}
.brief-ref.is-text small{color:var(--muted)}
.brief-ref.is-text span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.brief-refs-empty{margin:6px 0 0;color:var(--muted);font-size:13px}
.brief-tools{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 16px}

/* Render: drafts and finals, compare two, approve the final. */
.render-pane .project-room-heading{align-items:flex-end;flex-wrap:wrap;margin-bottom:18px}
.render-actions{display:flex;gap:8px;flex-wrap:wrap}
.render-loading{color:var(--muted)}
.render-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}
.render-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}
.render-card.is-final{border-color:var(--text);box-shadow:0 0 0 1px var(--text)}
.render-media{position:relative;aspect-ratio:4/5;display:grid;place-items:center;background:#000}
.render-media video,.render-media img{width:100%;height:100%;object-fit:contain}
.render-badge{position:absolute;top:8px;left:8px;padding:2px 9px;border-radius:999px;background:var(--text);color:var(--bg);font-size:11px;font-weight:650}
.render-pending{color:rgba(255,255,255,.7);font-size:13px}
.render-meta{display:flex;flex-direction:column;gap:2px;padding:10px 12px 0;font-size:13px}
.render-meta span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.render-error{color:var(--danger);font-size:12px}
.render-card-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:auto;padding:10px 12px 12px}
.render-card-actions button{white-space:nowrap}
.render-pick{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);cursor:pointer}
.render-compare{margin:0 0 20px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.render-compare-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.render-compare-head h3{flex:1;margin:0;font-size:14px}
.render-compare-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.render-compare-pair figure{margin:0;display:flex;flex-direction:column;gap:6px}
.render-compare-pair video,.render-compare-pair img{width:100%;max-height:62vh;aspect-ratio:9/16;object-fit:contain;border-radius:10px;background:#000}
.render-compare-pair figcaption{font-size:12px;color:var(--muted)}
.render-empty{max-width:520px}

/* Publish: the approved final and the Planner, beside the review fields. */
.publish-final,.publish-planned{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.publish-final h3,.publish-planned h3{margin:0;font-size:14px}
.publish-media{margin:0}
.publish-media video,.publish-media img{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:12px;background:#000}
.publish-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:13px}
.publish-list li{display:flex;flex-direction:column;gap:1px}
.publish-list span{color:var(--muted);font-size:12px}

/* Right rail: Files in the panel, Board as a sheet over the page. */
.ws-chat-panel .tool-btn[aria-pressed="true"]{background:var(--raised);color:var(--text)}
.ws-chat-panel .tool-btn[aria-pressed="false"]{background:transparent;color:var(--muted)}
.ws-chat-panel .tool-btn[aria-pressed="false"]:hover{background:var(--raised);color:var(--text)}
.tool-files{position:relative;flex:1 1 0;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:14px;padding:12px 14px 18px}
.tool-files .project-tool-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.tool-files .project-tool-row>*{justify-content:center;width:100%;text-align:center}
.tool-files .project-room-assets{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tool-files .project-guides{margin:0}
.tool-files .project-guide{grid-template-columns:auto minmax(0,1fr) auto;row-gap:2px;padding:10px 12px}
.tool-files .project-guide>.text-button{font-size:12px}
.tool-files .project-guide>[data-guide-remove]{grid-column:2/4;justify-self:start;padding-left:0}
.tool-files.is-dropping{outline:2px dashed var(--text);outline-offset:-6px;border-radius:12px}
.board-sheet{position:fixed;z-index:60;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:20px;background:var(--panel);box-shadow:var(--popover-shadow,0 24px 60px rgba(0,0,0,.35));overflow:hidden;opacity:0;transform:translateY(12px);transition:opacity .2s var(--motion-ease),transform .26s var(--motion-ease)}
.board-sheet.is-open{opacity:1;transform:none}
.board-sheet-head{flex:none;display:flex;align-items:center;gap:12px;padding:8px 8px 8px 18px;border-bottom:1px solid var(--line)}
.board-sheet-head h2{margin:0;font-size:15px}
.board-sheet-head .board-status{font-size:12px;color:var(--muted)}
.board-sheet-gap{flex:1}
.board-sheet-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.board-sheet-body{flex:1 1 0;min-height:0;overflow:auto;padding:12px}

/* Files dropped anywhere on the project page. */
#brandSurface{position:relative}
.project-drop-overlay{position:absolute;inset:0;z-index:20;display:none;place-items:center;border:2px dashed var(--text);border-radius:18px;background:color-mix(in srgb,var(--bg) 82%,transparent);pointer-events:none}
.project-drop-overlay span{padding:10px 16px;border-radius:999px;background:var(--text);color:var(--bg);font-size:14px;font-weight:600}
#brandSurface.is-dropping>.project-drop-overlay{display:grid}

@media (max-width:1100px){
 /* Collapsed, the rail is a floating bar with all three tools. */
 .ws-layout.chat-collapsed .ws-chat-panel .tool-rail{flex-direction:row;width:auto;padding:4px 6px}
}
@media (max-width:760px){
 .flow-step{min-width:88px}
 .flow-dot{width:38px;height:38px}
 .flow-steps::before,.flow-steps::after{top:34px;height:6px}
 .ws-layout.chat-collapsed .ws-chat-panel{left:50%;right:auto;transform:translateX(-50%)}
 .render-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .render-compare-pair{gap:8px}
}
@media (prefers-reduced-motion:reduce){
 .flow-dot,.flow-steps::after{transition:none}
 .board-sheet{transform:none;transition:opacity .15s linear}
}
/* Quieter stepper: thin grey track, small dots, greys and whites instead of solid black (light and dark). */
.flow-steps{padding-top:8px}
.flow-steps::before,.flow-steps::after{top:23px;height:2px;border-radius:1px}
.flow-steps::before{background:color-mix(in srgb,var(--text) 8%,transparent)}
.flow-steps::after{background:color-mix(in srgb,var(--text) 35%,transparent)}
.flow-step{min-width:88px}
.flow-step button{gap:6px;padding:4px 6px 6px}
.flow-dot{width:24px;height:24px;border-width:1.5px;border-color:color-mix(in srgb,var(--text) 16%,transparent);box-shadow:none;font-size:12px;color:var(--muted)}
.flow-dot svg{width:13px;height:13px;stroke:color-mix(in srgb,var(--text) 72%,transparent);stroke-width:2.6}
.flow-step[data-state="done"] .flow-dot{background:color-mix(in srgb,var(--text) 12%,var(--panel));border-color:color-mix(in srgb,var(--text) 12%,var(--panel))}
.flow-step[data-state="next"] .flow-dot{background:var(--panel);border-color:color-mix(in srgb,var(--text) 45%,transparent);color:var(--text);box-shadow:0 0 0 4px color-mix(in srgb,var(--text) 6%,transparent)}
.flow-step button[aria-selected="true"] .flow-dot{outline:1.5px solid color-mix(in srgb,var(--text) 55%,transparent);outline-offset:3px}
.flow-label{font-size:13px;font-weight:550}
.flow-note{font-size:11.5px}
@media (max-width:760px){.flow-step{min-width:80px}.flow-dot{width:24px;height:24px}.flow-steps::before,.flow-steps::after{top:23px;height:2px}}
/* Planner → schedule dialog: where the project stands (same quiet greys as the project stepper). */
.schedule-stand{margin:0 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--text) 3%,var(--panel))}
.schedule-stand-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px;font-size:12px;color:var(--muted)}
.schedule-stand-head b{font-weight:600;color:var(--text)}
.stand-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;position:relative}
.stand-steps li{display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;min-width:0}
.stand-steps i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font-style:normal;font-size:11px;color:color-mix(in srgb,var(--text) 70%,transparent);border:1.5px solid color-mix(in srgb,var(--text) 16%,transparent);background:var(--panel)}
.stand-steps li[data-state="done"] i{background:color-mix(in srgb,var(--text) 12%,var(--panel));border-color:transparent}
.stand-steps li[data-state="next"] i{border-color:color-mix(in srgb,var(--text) 45%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--text) 6%,transparent)}
.stand-steps span{font-size:12.5px;font-weight:550;color:var(--muted)}
.stand-steps li:not([data-state="todo"]) span{color:var(--text)}
.stand-steps small{max-width:100%;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stand-left{margin:10px 0 0;font-size:13px;color:var(--text)}
.stand-left span{color:var(--muted)}
.stand-open{margin-top:10px}
/* Brief: the style skill (faceless videos and carousels), under Angle and direction. */
.brief-style{padding:var(--space-4) 0;border-top:1px solid var(--line)}
.brief-style-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.brief-style-row h3{margin:0 auto 0 0;font-size:13px;font-weight:500;color:var(--muted);letter-spacing:0}
.brief-style-note{margin:6px 0 0;max-width:68ch;font-size:13px;line-height:1.45;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Publish for a carousel: the final set across the top, the publish fields under it. */
.project-room-columns.publish-stacked{grid-template-columns:1fr}
.publish-stacked .project-room-context{order:-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,260px);gap:24px;align-items:start}
.publish-stacked .publish-final,.publish-stacked .publish-planned{margin-bottom:0}
.publish-stacked .publish-set a{width:220px}
@media (max-width:760px){.publish-stacked .project-room-context{grid-template-columns:1fr}.publish-stacked .publish-set a{width:160px}}
/* Publish step: the final set as a wrapping grid of small slides, so the whole carousel is visible without sliding. */
.cr-set-row.publish-set,.publish-stacked .cr-set-row.publish-set{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,132px));gap:8px;overflow:visible;padding-bottom:0}
.cr-set-row.publish-set a,.publish-stacked .cr-set-row.publish-set a{width:auto}
@media (max-width:760px){.publish-stacked .cr-set-row.publish-set{grid-template-columns:repeat(3,minmax(0,1fr))}.publish-stacked .cr-set-row.publish-set a{width:auto}}
/* Step pills: one slim row under the title — each step a pill (check or number, label, note), joined by thin chevrons.
   Replaces the dots-on-a-track look. Done = light grey check; open step = light grey fill; next = grey border. */
.flow-steps{display:flex;align-items:center;gap:4px;padding:2px 0 4px;overflow-x:auto;width:auto;align-self:flex-start;max-width:100%}
.flow-steps::before,.flow-steps::after{display:none}
.flow-step{flex:none;min-width:0;display:flex;align-items:center}
.flow-step:not(:first-child)::before{content:"›";margin:0 4px 0 2px;color:color-mix(in srgb,var(--text) 28%,transparent);font-size:15px;line-height:1}
.flow-step button{flex-direction:row;align-items:center;gap:7px;width:auto;padding:5px 12px 5px 6px;border:1px solid transparent;border-radius:999px;transition:background .15s ease,border-color .15s ease}
.flow-step button:hover{background:color-mix(in srgb,var(--text) 5%,transparent)}
.flow-step button:hover .flow-dot{transform:none}
.flow-dot{width:20px;height:20px;border-width:1.5px;font-size:11px}
.flow-dot svg{width:11px;height:11px}
.flow-step[data-state="next"] .flow-dot{box-shadow:none}
.flow-step[data-state="next"] button{border-color:color-mix(in srgb,var(--text) 18%,transparent)}
.flow-step button[aria-selected="true"]{background:color-mix(in srgb,var(--text) 7%,var(--panel));border-color:transparent}
.flow-step button[aria-selected="true"] .flow-dot{outline:none}
.flow-text{flex-direction:row;align-items:baseline;gap:6px}
.flow-label{font-size:13px;font-weight:550}
.flow-note{font-size:12px}
.flow-note:not(:empty)::before{content:"·";margin-right:6px;color:color-mix(in srgb,var(--text) 30%,transparent)}
@media (max-width:760px){.flow-step{min-width:0}.flow-dot{width:20px;height:20px}.flow-note{display:none}}
/* Brief: its documents (read back, copy, download) as one quiet line at the bottom, not pills at the top. */
.brief .brief-docs{margin:var(--space-5) 0 0;padding-top:var(--space-4);border-top:1px solid var(--line)}
.brief .brief-docs:empty{display:none}
.brief .brief-docs h2{display:block;margin:0 0 6px;font-size:12px;font-weight:500;color:var(--muted)}
.brief .brief-docs .ws-docs{display:flex;flex-wrap:wrap;gap:6px 22px}
.brief .brief-docs .ws-docs li{min-height:0;padding:0;border:0;border-radius:0;gap:8px;font-size:13px}
.brief .brief-docs .ws-docs li>span:nth-of-type(1){flex:none;font-weight:600}
.brief .brief-docs .ws-doc-actions{gap:8px}
.brief .brief-docs .ws-doc-actions .text-button{font-size:12px;color:var(--muted)}
.brief .brief-docs .ws-doc-actions .text-button:hover{color:var(--text)}
/* Brief, short video from footage: fill it from what was said (or undo that). */
.brief-fill{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius-panel);background:var(--panel)}
.brief-fill p{margin:0;font-size:14px;line-height:1.45;max-width:60ch}
/* Short-video editor in the faceless layout (public/reel-edit.js): panels sit in .fl-panel-body, which already pads. */
.reel-edit .fl-panel-body .reel-tabpanel{padding:0}
.reel-edit .fl-timeline.reel-timeline{margin:28px 0 0}
.reel-edit .reel-under{display:flex;align-items:center;justify-content:space-between;gap:12px}
.reel-skill{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 14px;padding:12px 14px;border-radius:12px;background:color-mix(in srgb,var(--text) 5%,var(--panel))}
.reel-skill p{margin:0;font-size:13px;line-height:1.45}
.reel-skill span{color:var(--muted)}
.reel-look{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin-bottom:8px}
.reel-look-color{display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;font-size:13px}
.reel-look-color input{grid-row:span 2;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:none;cursor:pointer}
.reel-look-color input::-webkit-color-swatch-wrapper{padding:0}.reel-look-color input::-webkit-color-swatch{border:1px solid var(--line);border-radius:10px}
.reel-look-color small{color:var(--muted);font-size:11px}
.reel-look-font{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.reel-fx-add{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;margin:0 0 14px}
.reel-fx-add input{height:34px;padding:0 10px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--panel);color:var(--text);font:inherit;font-size:13px;min-width:0}
.seg-fx{background:color-mix(in srgb,#c7ff18 55%,var(--bg))}
@media (max-width:760px){.reel-look{grid-template-columns:1fr}.reel-fx-add{grid-template-columns:1fr}}
/* Chat "Next" card: a close button beside the collapse toggle; × hides the card for the project. */
.step-card-top{display:flex;align-items:center}
.step-card-top .step-card-head{flex:1;min-width:0;padding-right:6px}
.step-card-close{flex:none;display:grid;place-items:center;width:28px;height:28px;margin-right:8px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--muted);cursor:pointer}
.step-card-close svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.step-card-close:hover{background:var(--raised);color:var(--text)}
.step-card-close:focus-visible{outline:2px solid var(--accent,currentColor);outline-offset:1px}
.step-card[hidden]{display:none}

/* ---- Chat: FuelStorm's own lines (session B's chat end-to-end round). Events report how chat-started jobs and posts ended;
   the status line corrects a reply that didn't match what happened; refused suggestions show their reasons. */
.assist-event{display:flex;align-items:flex-start;gap:var(--space-2);margin:var(--space-3) 0;padding:var(--space-2) var(--space-3);border:1px solid var(--line);border-radius:var(--radius-control,10px);background:var(--panel);color:var(--text);font-size:13px;line-height:1.45;animation:assist-event-in var(--motion-standard,240ms) var(--motion-ease,ease) both}
.assist-event p{margin:0}
.assist-event strong{font-weight:600;margin-right:4px}
.assist-event-mark{flex:none;display:grid;place-items:center;width:18px;height:18px;margin-top:1px;border-radius:999px;background:var(--raised);color:var(--text);font-size:11px;font-weight:700}
.assist-event.is-failed{border-color:color-mix(in srgb,var(--danger) 45%,var(--line))}
.assist-event.is-failed .assist-event-mark{background:color-mix(in srgb,var(--danger) 18%,transparent);color:var(--danger)}
.assist-status{margin:var(--space-2) 0 0;padding:var(--space-2) var(--space-3);border-left:2px solid var(--line);color:var(--muted);font-size:12.5px;line-height:1.45}
.assist-status strong{color:var(--text);font-weight:600}
.assist-rejected{margin-top:var(--space-2);color:var(--muted);font-size:12px}
.assist-rejected summary{cursor:pointer;width:fit-content}
.assist-rejected ul{margin:var(--space-1,4px) 0 0;padding-left:18px}
.assist-rejected li{margin:2px 0}
.assist-rejected code{font-size:11px;color:var(--text)}
@keyframes assist-event-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.assist-event{animation:none}}

/* ---- Library: search and media-type chips first (the Filters panel keeps project, source and tags). */
.library-quick{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;margin:var(--space-2) 0 var(--space-1,4px)}
.library-quick input[type=search]{flex:1 1 220px;max-width:360px;min-height:38px;padding:0 var(--space-3);border:1px solid var(--line);border-radius:var(--radius-control,10px);background:var(--panel);color:var(--text);font:inherit;font-size:13px}
.library-quick input[type=search]:focus-visible{outline:2px solid var(--accent,currentColor);outline-offset:1px}
.library-quick .library-kind-chips{padding:2px 0}
/* ---- Next card: the accounts a scheduled post goes to (none picked = plan only). */
.step-accounts{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:var(--space-2) 0 0;border:0}
.step-accounts legend{padding:0;margin-bottom:4px;color:var(--muted);font-size:12px}
.publish-item.is-failed strong{color:var(--danger)}
.publish-item small{display:block}
