.crew-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:8px 0}.crew-toolbar label{display:grid;gap:4px;font-size:11px}.crew-toolbar select{max-width:360px}.crew-toolbar a{font-size:12px;padding:10px}.crew-caption{font-size:11px;color:#62666c}.crew-source-check{font-size:12px;margin:10px 0 18px}.crew-source-check li{margin:6px 0}.crew-block{margin:0 0 22px;border:1px solid #d7dce2}.crew-block>h2{font-size:17px;margin:0;padding:12px;background:#f1f3f5}.crew-block>h2 small{display:block;font-size:12px;font-weight:400;margin-top:4px}.crew-table{overflow-x:auto}.crew-table .crew-row{display:grid;grid-template-columns:80px 64px 110px minmax(190px,2fr) 110px minmax(155px,1.4fr) 90px 105px 115px;gap:12px;min-width:1160px;padding:12px;align-items:start;font-size:12px;border-bottom:1px solid #e1e4e8;line-height:1.45}.crew-row small{display:block;font-size:10px;color:#646970;margin-top:4px}.crew-columns{background:#fafafa;position:sticky;top:0;z-index:1}.crew-row select{width:100%;padding:6px;font-size:11px}.crew-row button{padding:5px;font-size:11px;margin-top:5px}.crew-row details{font-size:11px;margin-top:5px}.crew-status label{display:block;font-size:11px;margin-top:4px}.crew-status .roll-state{width:100%}.shoot-checklist h2{font-size:19px;margin:0 0 6px}.shoot-checklist>p{font-size:12px}.shoot-checklist details{padding:14px 0;border-bottom:1px solid #d7dce2}.shoot-checklist summary{font-size:13px;font-weight:600;cursor:pointer}.shoot-checklist label{display:flex;align-items:flex-start;gap:8px;padding:9px 0;font-size:12px;line-height:1.5}.shoot-checklist input{flex-shrink:0;margin-top:3px}.shoot-checklist ul{padding-left:18px;font-size:12px;line-height:1.6}.shoot-checklist button,.shoot-checklist a{font-size:12px}.brief-direction-editor textarea{width:100%;min-height:160px}.brief-direction-editor button{margin-top:6px}.client-review-mode .crew-status input{pointer-events:none}

.crew-view select{appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23555'/%3E%3C/svg%3E") no-repeat right 8px center;border:1px solid #d7dce2;border-radius:0;padding:8px 26px 8px 8px;font-size:12px}.crew-review .client-decisions{border:0;margin:4px 0;padding:0;display:flex;flex-wrap:wrap;gap:3px}.crew-review .client-decisions button{min-width:0}.client-review-mode .crew-review>select{display:none}.crew-table .crew-row{min-height:0}.crew-toolbar input{padding:8px}

/* Crew tools are internal; client approvals remain in the main workspace. */
.client-review-mode #coverage-nav,.client-review-mode #search,.client-review-mode #right-panel,.client-review-mode #resize-right,.client-review-mode #onset-alert,.client-review-mode [data-open-crew]{display:none!important}
.client-review-mode{--right-width:0px}.client-review-mode main{margin-right:0!important}
.shoot-checklist progress{width:100%;height:6px;accent-color:#202326}.shoot-checklist details p{font-size:12px;line-height:1.5}
.crew-guide-frame{display:block;width:100%;height:calc(100vh - 240px);min-height:240px;border:0}.review-column .crew-guide-frame{height:calc(100vh - 16px)}
.preproduction{min-height:240px;overflow:hidden}.preproduction>section{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.review-column .preproduction{height:calc(100vh - 24px)}
@media(max-width:700px){.preproduction{height:auto!important;overflow:visible}.preproduction>section{max-height:70vh}}

.preproduction{grid-template-rows:minmax(0,1fr)}

/* Each workflow marker joins the shared horizontal baseline. */
#views{border-bottom:1px solid #96999b}
#views button small::after{content:'';position:absolute;left:50%;top:100%;width:1px;height:22px;background:#96999b;transform:translateX(-50%);pointer-events:none}
#views button.active small::after{background:#111}

@media(min-width:701px){body.production-layout .preproduction>section{overflow-y:auto;min-height:0;overscroll-behavior:contain}body.production-layout #content:has(>.preproduction){overflow:hidden;padding-bottom:0}body.production-layout .preproduction{grid-template-rows:minmax(0,1fr);overflow:hidden}body.production-layout.review-column .preproduction{height:calc(100dvh - 24px)}}

/* Readable guide headings; consistent disclosure arrows in rail and tabs. */
.shoot-checklist details>summary,#right-panel .shoot-checklist details>summary{display:flex;align-items:center;gap:10px;min-height:40px;font-size:17px;font-weight:600;line-height:1.35;letter-spacing:0;text-transform:none;list-style:none;cursor:pointer}
.shoot-checklist details>summary::-webkit-details-marker{display:none}
.shoot-checklist details>summary::marker{content:''}
.shoot-checklist details>summary::before{content:'';display:block;flex:0 0 8px;width:8px;height:8px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(-45deg);margin:0 4px 0 2px}
.shoot-checklist details[open]>summary::before{transform:rotate(45deg);margin-top:-4px}
.shoot-checklist details>summary:focus-visible{outline:2px solid #202326;outline-offset:3px}
/* Diagonal route from workflow dots into the shared baseline. */
#views button small::after{height:15.5px;transform:translateX(-50%) rotate(45deg);transform-origin:center top}
.shoot-checklist details>summary::before{content:'▸';border:0;width:10px;height:auto;flex:0 0 10px;font-size:12px;line-height:1;transform:none;margin:0}
.shoot-checklist details[open]>summary::before{content:'▾';transform:none;margin:0}

.slate-shot-preview{width:min(1000px,90vw);max-height:85vh;padding:24px;background:#f1f3f5;border:1px solid #ccd0d5}.slate-shot-preview::backdrop{background:#0005}.slate-preview-header{position:static;display:flex;height:auto;padding:0;justify-content:space-between;background:none}.slate-preview-header h2{font-size:22px}.slate-shot-preview select{width:100%;padding:10px}.slate-thumbnails{display:flex;gap:16px;margin:20px 0}.slate-thumbnails figure{flex:1;min-width:0;margin:0}.slate-thumbnails img{width:100%;height:240px;object-fit:contain}.slate-thumbnails figcaption{font-size:12px}.slate-shot-preview dl{display:grid;grid-template-columns:120px 1fr;gap:10px}.slate-shot-preview dd{margin:0}.plan-controls{font-size:12px;padding:8px 0}.plan-controls summary{cursor:pointer}

/* Half-length lower stems; lower the entire heading/rail group 11px. */
#views button{padding-top:23px;padding-bottom:8px}
#views button::before,#views button:first-child::before,#views button:not(:last-child)::after{bottom:11px}

.brief-truth>h2,.brief-sandbox>h2{display:flex;align-items:center;justify-content:space-between;gap:12px}.brief-truth>h2 button,.brief-sandbox>h2 button{font-size:12px;font-weight:400;padding:6px 10px}
.shots-expanded-panel[popover]{position:fixed!important;inset:3vh 3vw!important;width:94vw!important;height:94vh!important;max-width:none!important;max-height:none!important;margin:0!important;box-sizing:border-box!important;padding:24px!important;border:1px solid #bbb;background:#fff;overflow:auto!important;box-shadow:0 0 0 100vmax #0006;z-index:10000}
.shots-expanded-panel .panel-close{position:sticky;top:0;float:right;z-index:4;background:#fff;padding:8px 14px;margin:0 0 12px 16px}.shots-expanded-panel>h2{clear:both}.shots-expanded-panel>h2 [data-expand-panel]{display:none}.shots-expanded-panel.brief-sandbox{display:flex!important;flex-direction:column}.shots-expanded-panel.brief-sandbox>iframe{flex:1;min-height:0;width:100%;height:100%;border:0}

/* Schedule motif: lower dot, rising diagonal, then the heading rail. */
#views button small{transform:translateY(11px)}
#views button small::after{top:auto;bottom:50%;left:50%;height:15.5px;transform:translateX(-50%) rotate(45deg);transform-origin:center bottom}
#views button::before,#views button:first-child::before{left:31px}

/* Consistent native selects with a flat surface and one disclosure arrow. */
#content select,.slate-shot-preview select{appearance:none;-webkit-appearance:none;border:1px solid #ccd1d6;border-radius:3px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23515860' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 11px center;min-height:36px;padding:7px 32px 7px 11px;font:inherit;font-size:13px;color:#202326;box-shadow:none;cursor:pointer}#content select:hover{border-color:#858c93}#content select:focus-visible{outline:2px solid #262a2e;outline-offset:2px}#content select:disabled{opacity:.5;cursor:default}

/* Keep the complete marker inside the scroll viewport, centered on its baseline. */
#views{border-bottom:0;padding-bottom:6px;background:#fff linear-gradient(#96999b,#96999b) left bottom 6px / 100% 1px no-repeat}
#views button{padding-top:17px}
#views button small{position:absolute;left:16px;bottom:0;transform:translateY(50%);margin:0;box-sizing:border-box;background:#fff}
#views button.active small{background:#111}

/* Slate frame: hinged striped top, with the shot content scrolling inside. */
.slate-shot-preview{padding:0;border:2px solid #191c1e;overflow:visible;max-height:76vh;margin-top:16vh;background:#f1f3f5}.slate-preview-body{padding:24px;max-height:calc(76vh - 4px);overflow-y:auto;box-sizing:border-box}.slate-frame-top{position:absolute;bottom:100%;left:-2px;width:calc(100% + 4px);height:110px;pointer-events:none}.slate-frame-top svg{width:100%;height:100%;overflow:visible}.slate-hinge{transform:rotate(-5deg);transform-origin:4px 112px}.slate-shot-preview.slate-opening[open] .slate-hinge{animation:slate-open .55s cubic-bezier(.2,.8,.2,1) both}.slate-preview-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #ccd1d6}.slate-preview-nav span{font-size:12px;color:#62666c}.slate-preview-nav button:disabled{opacity:.4;cursor:default}@keyframes slate-open{from{transform:rotate(0)}to{transform:rotate(-5deg)}}@media(prefers-reduced-motion:reduce){.slate-shot-preview.slate-opening[open] .slate-hinge{animation:none}}

/* Production layout must not replace the shared workflow baseline. */
body #views,body.production-layout #views{background-color:#fff;background-image:linear-gradient(#96999b,#96999b);background-position:left bottom 6px;background-size:100% 1px;background-repeat:no-repeat}
/* Shared select appearance includes header slate, dialogs, rails and split panes. */
body select{appearance:none!important;-webkit-appearance:none!important;border:1px solid #ccd1d6!important;border-radius:3px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23515860' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center!important;box-shadow:none!important;padding:7px 30px 7px 10px!important;min-height:34px;color:#202326;font-family:inherit;font-size:13px;line-height:1.35;cursor:pointer}body select:hover{border-color:#858c93!important}body select:focus-visible{outline:2px solid #262a2e;outline-offset:2px}body select:disabled{opacity:.5;cursor:default}body select[multiple]{background-image:none!important;padding-right:10px!important}

/* A continuous dashed baseline remains visible beneath the selected flag. */
body #views,body.production-layout #views{background-image:repeating-linear-gradient(to right,#96999b 0 3px,transparent 3px 7px);background-size:100% 1px;background-position:left bottom 6px;background-repeat:no-repeat}
body #views button,body #views button.active,body #views button:hover{background:transparent!important;border-bottom-color:transparent!important}

/* Balance workflow flags around their labels and seat them on the rail. */
#views button{min-width:190px;min-height:57px}
#views .stage-label,#views button.active .stage-label,#views button:hover .stage-label,#views button.active:hover .stage-label,#views button:focus-visible .stage-label{position:absolute;left:31px;right:12px;bottom:11px;height:28px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;line-height:20px;padding:0 14px;font-size:12px;white-space:nowrap;text-align:center}
#views .stage-label::after{inset:0 -14px;transform:skewX(-45deg);transform-origin:center center;border:0;box-sizing:border-box}

/* Restrained slate: single stripe row, light frame, shallow hinged opening. */
.slate-shot-preview{border:1px solid #aeb4b9;background:#fff;box-shadow:0 16px 60px #0002;inset:0;margin:12vh auto auto;max-height:80vh}.slate-preview-body{padding:24px 28px;max-height:calc(80vh - 2px)}.slate-frame-top{left:-1px;width:calc(100% + 2px);height:80px}.slate-hinge{transform:rotate(-2deg)}@keyframes slate-open{from{transform:rotate(0)}to{transform:rotate(-2deg)}}.slate-preview-header{border-bottom:0!important;align-items:center}.slate-preview-header h2{font-size:20px;margin:0}.slate-preview-header button{font-size:13px}.slate-preview-nav{padding:14px 0;margin-bottom:16px}.slate-preview-nav button{border:0;background:transparent;padding:6px 0}.slate-shot-preview::backdrop{background:#0005;backdrop-filter:blur(2px)}

/* Owner reference: monochrome physical-slate border and information cells. */
.slate-shot-preview{border:5px solid #17191a;border-radius:8px;background:#fff;box-shadow:0 14px 50px #0003}.slate-preview-body{padding:0;max-height:calc(80vh - 10px);border-radius:3px}.slate-frame-top{left:-5px;width:calc(100% + 10px)}.slate-details{padding:20px 24px}.slate-readout{background:#17191a;color:white;padding:18px 24px;display:grid;gap:7px;text-align:center}.slate-readout small{font-size:10px;letter-spacing:1.4px;color:#c7c9cb}.slate-readout time{font:clamp(32px,5vw,58px)/1.15 ui-monospace,monospace;letter-spacing:.08em;font-variant-numeric:tabular-nums}.slate-readout span{font:12px ui-monospace,monospace;color:#d6d8da}.slate-fields{display:grid;grid-template-columns:1fr 2fr 1fr;border-bottom:3px solid #17191a}.slate-fields>div{padding:12px 18px;border-right:3px solid #17191a;min-width:0}.slate-fields>div:nth-child(3){border-right:0}.slate-fields small{display:block;font-size:11px;letter-spacing:1px;margin-bottom:8px}.slate-fields strong{font-size:17px;font-weight:500;overflow-wrap:anywhere}.slate-fields .slate-production{grid-column:1/-1;border-right:0;border-top:3px solid #17191a}.slate-preview-header h2{font-size:18px}.slate-thumbnails{margin:16px 0}

.slate-readout time{display:block;width:min(100%,760px);margin:0 auto;line-height:0}.slate-readout time svg{display:block;width:100%;height:auto;max-height:130px}

/* Owner refinements: monochrome checks, larger solid disclosure, clean route dots. */
body input[type="checkbox"]{accent-color:#111}
.shoot-checklist details>summary::before{font-size:18px;flex-basis:15px;width:15px}
body #views button small{background:#fff!important;isolation:isolate;z-index:2}
body #views button.active small{background:#111!important}
body #views button small::after{z-index:-1}
.delivery-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.delivery-columns>section{min-width:0;border-top:1px solid #ccd1d6;padding-top:14px}
.delivery-columns h3{font-size:17px;margin:0 0 16px}
.delivery-columns label{display:grid;gap:6px;margin:0 0 16px;font-size:12px}
.delivery-columns input,.delivery-columns select,.delivery-columns textarea{width:100%;box-sizing:border-box;min-width:0}
.delivery-columns p{font-size:12px;line-height:1.5;color:#62666c}
@media(max-width:760px){.delivery-columns{grid-template-columns:1fr}}
/* Keep embedded sandbox scannable, with bounded reference thumbnails. */
body .fb-board{font-size:13px;line-height:1.5}
.review-column .fb-board>h2{display:none}
body .fb-board .fb-toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:16px 0}
body .fb-board .fb-toolbar label{min-width:0;font-size:12px}
body .fb-board .fb-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:14px}
body .fb-board .fb-plan{padding:14px;margin:0}
body .fb-board .fb-plan h3{font-size:15px;line-height:1.4;margin:0 0 10px}
body .fb-board .fb-ai-frame img{height:180px;aspect-ratio:auto;object-fit:contain}
body .fb-board .fb-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body .fb-board .fb-pair img,body .fb-board .fb-pair video{height:140px;aspect-ratio:auto;object-fit:contain}
body .fb-board .library-owner-cut{padding:12px;margin:12px 0}
body .fb-board .library-owner-cut video{max-height:260px}

/* Pane arrangement uses CSS order, preserving mounted iframe drafts and scroll. */
.shots-pane>header>select{flex:1;min-width:0;width:auto;font-weight:600}
.shots-pane>header .pane-drag{cursor:grab;font-size:20px;padding:2px 4px;flex:none;background:transparent;border:0}
.shots-pane>header .pane-drag:active{cursor:grabbing}
.pane-drop-target{outline:2px dashed #17191a;outline-offset:-2px}
.arranging iframe{pointer-events:none}
body.review-column .brief-workbench{height:calc(100dvh - 28px)!important;min-height:0;grid-template-rows:minmax(0,1fr)}
body.review-column .brief-workbench>.brief-truth,body.review-column .brief-workbench>.brief-sandbox{min-height:0;box-sizing:border-box}

.crew-mode{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.crew-simple .crew-simple-row{display:grid;grid-template-columns:52px minmax(160px,2fr) minmax(110px,1fr);gap:16px;padding:18px 14px;border-bottom:1px solid #d7dce2;font-size:15px;line-height:1.5;min-width:360px}
.crew-simple-row strong,.crew-simple-row small{display:block}.crew-simple-row small{font-size:12px;color:#62666c;margin-bottom:6px}.crew-simple-row details{margin-top:10px;font-size:13px}.crew-simple-row details label{display:block;margin:10px 0}.crew-simple-row input[type=checkbox]{width:20px;height:20px;accent-color:#111}.crew-done{display:grid;align-content:start;justify-items:center;font-size:11px;gap:6px}.crew-simple .crew-toolbar label:has([data-crew-filter=talent]),.crew-simple .crew-source-check{display:none}.crew-simple .crew-caption{font-size:12px}.crew-simple .crew-block>h2{font-size:18px}.crew-simple .crew-table{overflow:auto}
.shots-section-menu{position:fixed;z-index:10001;padding:6px;border:1px solid #aeb4ba;background:#fff;box-shadow:0 8px 28px #0002}.shots-section-menu button{font-size:14px}
html[data-appearance=dark]{color-scheme:dark;background:#44484c}
html[data-appearance=dark] body{background:#44484c;color:#f1f2f3}
html[data-appearance=dark] :is(header,main,#content,#project-sidebar,#right-panel,.card,.shots-pane,.brief-truth,.brief-sandbox,.crew-block,.crew-columns,.shots-section-menu){background:rgba(56,60,64,.86)!important;color:#f1f2f3;border-color:#73787d;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html[data-appearance=dark] :is(h1,h2,h3,p,label,strong,summary,a,small,.crew-caption,.crew-simple-row small){color:inherit}
html[data-appearance=dark] :is(button,input,textarea,select){background-color:#50555b!important;color:#fff!important;border-color:#858b91!important}
html[data-appearance=dark] body select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='white'/%3E%3C/svg%3E")!important}
html[data-appearance=dark] :is(.crew-block>h2,.fb-tag,.shots-pane>header){background:#50555b!important;color:#fff}
html[data-appearance=dark] body #views{background-color:#44484c!important}html[data-appearance=dark] #views .stage-label{color:#fff!important}html[data-appearance=dark] body #views button small{background:#44484c!important;border-color:#ddd}
html[data-appearance=dark] input[type=checkbox]{accent-color:#dce0e3}

body select,body select option,body select optgroup,.shots-section-menu button{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;font-style:normal}

.shoot-checklist .crew-checklist-groups{padding-left:18px}.shoot-checklist .crew-checklist-groups>details{padding:7px 0}.shoot-checklist .crew-checklist-groups>details>summary,#right-panel .shoot-checklist .crew-checklist-groups>details>summary{font-size:14px;min-height:30px;gap:7px}.shoot-checklist .crew-checklist-groups>details>summary::before{font-size:13px;flex-basis:11px;width:11px}

/* Compact slate clock leaves room for shot references and notes. */
.slate-readout{padding:10px 20px;gap:4px}.slate-readout time{width:min(100%,430px)}.slate-readout time svg{height:64px;max-height:64px;width:100%}.slate-readout small{font-size:9px;letter-spacing:1px}.slate-readout span{font-size:11px}

/* Compact white LED treatment: retain the short slate header and readable details. */
.slate-readout time{width:min(100%,350px)}
.slate-readout time svg{height:64px;max-height:64px;overflow:visible}
.slate-readout .slate-led-on{fill:#edf0ef;filter:drop-shadow(0 0 .45px #fff) drop-shadow(0 0 1.4px #ffffff60)}
.slate-readout .slate-led-off{fill:#222526}
@media(prefers-reduced-motion:reduce){.slate-readout .slate-led-on{filter:drop-shadow(0 0 .6px #ffffff70)}}

/* All scenes is a simple full-width action, not a two-column scene tile. */
#timeline button[data-all-scenes]{display:block;grid-template-columns:none;width:100%;min-height:40px;padding:10px 12px;text-align:left}

#timeline .sidebar-time-block{border-bottom:1px solid #ddd}#timeline button.sidebar-block-heading{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;padding:12px 10px;text-align:left}#timeline .sidebar-block-heading strong{font-size:12px}#timeline .sidebar-block-heading span{font-size:12px;line-height:1.4}#timeline .sidebar-block-heading small{font-size:10px}#timeline .sidebar-block-scenes{padding-left:12px;border-left:1px solid #ddd;margin-left:12px}#timeline .sidebar-block-scenes p{font-size:11px;padding:8px;line-height:1.5}#timeline .sidebar-block-scenes button{padding:9px 6px}#timeline .sidebar-block-scenes .block-name{font-size:11px}

/* Block headings have their own hierarchy; legacy scene rails must not cross them. */
body #timeline{gap:0;min-width:0}
body:not(.sidebar-collapsed) #timeline .block-label{align-self:stretch;margin:0;padding:0 12px 12px;text-align:left;white-space:normal;line-height:1.5;overflow-wrap:anywhere;font-size:10px;letter-spacing:1.2px}
body #timeline button::before,body #timeline button::after{content:none!important;display:none!important}
body #timeline .sidebar-time-block{width:100%;min-width:0;margin:0;border-bottom:1px solid #d7dce2}
body #timeline button.sidebar-block-heading{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;height:auto;min-height:0;gap:5px;padding:12px;text-align:left;white-space:normal;overflow-wrap:anywhere;border:0!important;line-height:1.4}
body #timeline button.sidebar-block-heading>*{max-width:100%;margin:0;line-height:1.4}
body #timeline .sidebar-block-heading strong{font-size:12px}
body #timeline .sidebar-block-heading span{font-size:12px;font-weight:400}
body #timeline .sidebar-block-heading small{font-size:11px}
body #timeline button[data-all-scenes]{height:auto;min-height:40px;margin:0;padding:10px 12px;line-height:1.4;border-bottom:1px solid #d7dce2!important}
body #timeline .sidebar-block-scenes{margin:0 10px 12px 17px;padding:0 0 0 8px;border-left:1px solid #c5c5c5}
body #timeline .sidebar-block-scenes button{display:grid;grid-template-columns:28px minmax(0,1fr);height:auto;min-height:48px;padding:6px 0;gap:6px}
body #timeline .sidebar-block-scenes .block-detail{padding:3px 0;min-width:0}
body #timeline .sidebar-block-scenes .block-name{font-size:11px;overflow-wrap:anywhere}
body #timeline .sidebar-block-scenes .block-identity{padding:0;border:0}
body #timeline .sidebar-block-scenes .block-identity::before,body #timeline .sidebar-block-scenes .block-identity::after{content:none!important}
body.sidebar-collapsed .sidebar-body>#timeline{display:none}

/* Owner: two-column blocks, letter shortcuts in the collapsed rail. */
body #timeline button.sidebar-block-heading{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:stretch;gap:0;padding:0;min-height:86px;overflow-wrap:normal}
body #timeline .sidebar-block-heading>.block-identity{display:flex;align-items:center;justify-content:center;border-right:1px solid var(--shots-line,#d7dce2)!important;padding:10px 0}
body #timeline .sidebar-block-heading .block-identity::before,body #timeline .sidebar-block-heading .block-identity::after{content:none!important;display:none!important}
body #timeline .sidebar-block-heading .block-code{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid currentColor;border-radius:50%;font-size:12px;line-height:1}
body #timeline .sidebar-block-heading>.block-detail{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-width:0;padding:12px}
body #timeline .sidebar-block-heading .block-name{font-size:12px;line-height:1.4;overflow-wrap:break-word}
body #timeline .sidebar-block-heading .block-time{font-size:11px;line-height:1.4}
body #timeline .sidebar-block-heading strong span{font-size:10px}
body.sidebar-collapsed .sidebar-body>#timeline{display:flex!important;flex-direction:column;align-items:center;gap:5px;margin:16px 0;padding:0;border:0;width:100%;overflow:visible}
body.sidebar-collapsed #timeline .block-label,body.sidebar-collapsed #timeline .sidebar-block-scenes,body.sidebar-collapsed #timeline .sidebar-block-heading>.block-detail{display:none!important}
body.sidebar-collapsed #timeline .sidebar-time-block{width:40px;border:0}
body.sidebar-collapsed #timeline button.sidebar-block-heading{display:flex;align-items:center;justify-content:center;min-height:40px;height:40px;width:40px;margin:0;padding:0}
body.sidebar-collapsed #timeline .sidebar-block-heading>.block-identity{display:flex;border:0!important;padding:0}
body.sidebar-collapsed #timeline button[data-all-scenes]{font-size:0;width:40px;height:40px;min-height:40px;padding:0;border:0!important}
body.sidebar-collapsed #timeline button[data-all-scenes]::after{display:flex!important;content:'All'!important;position:static;width:40px;height:40px;align-items:center;justify-content:center;background:none;font-size:10px;transform:none}

/* Crew scan rows: preserve timing, priority and the shot's actual board. */
body .crew-simple .crew-simple-row{display:grid;grid-template-columns:42px 144px minmax(180px,1fr) 138px 88px;gap:14px;padding:12px;align-items:start}
body .crew-simple-row .crew-shot-thumbnail button{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left}
body .crew-simple-row .crew-shot-thumbnail img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#171717}
body .crew-simple-row .crew-shot-thumbnail small{font-size:10px;margin:3px 0 0}
body .crew-simple-row .crew-shot-description>strong{font-size:14px;line-height:1.4;font-weight:600;margin:4px 0 8px;display:block}
body .crew-simple-row .crew-shot-when{display:grid;gap:7px;line-height:1.4;font-size:12px}
body .crew-simple-row time{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
body .crew-simple-row .crew-shot-priority{font-size:12px;line-height:1.4}
body .crew-simple-row details{margin:4px 0 0}body .crew-simple-row details:not([open]){padding:0}
body .crew-simple .crew-columns{font-size:11px;padding-block:8px}
#crew-storyboard-preview{max-width:min(1100px,94vw);max-height:94dvh;padding:16px}#crew-storyboard-preview img{display:block;max-width:100%;max-height:75dvh;object-fit:contain}#crew-storyboard-preview form{text-align:right;margin-bottom:10px}
@media(max-width:950px){body .crew-simple .crew-simple-row{grid-template-columns:32px 112px minmax(160px,1fr) 120px;gap:10px}.crew-shot-priority{grid-column:3}.crew-columns>b:last-child{display:none}}
@media(max-width:560px){body .crew-simple .crew-simple-row{grid-template-columns:30px 96px minmax(0,1fr);gap:8px;padding:10px 4px}body .crew-simple .crew-columns{display:none}.crew-shot-when{grid-column:3}.crew-shot-priority{grid-column:3}body .crew-simple-row .crew-shot-description>strong{font-size:13px}.crew-shot-thumbnail{grid-column:2;grid-row:1 / span 3}.crew-shot-description{grid-column:3}.crew-done{grid-column:1;grid-row:1}}

/* Expanded scenes begin in the block detail column, with solid numbered badges. */
body #timeline .sidebar-block-scenes{margin:0 0 0 48px;padding:0 12px 10px;border-left:1px solid var(--shots-line,#d7dce2)}
body #timeline .sidebar-block-scenes button{grid-template-columns:26px minmax(0,1fr);align-items:start;gap:8px;padding:9px 0;min-height:44px;text-align:left}
body #timeline .sidebar-block-scenes .block-identity{display:flex;align-items:flex-start;justify-content:center;padding:2px 0 0;border:0!important}
body #timeline .sidebar-block-scenes .block-code{display:flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;padding:0;margin:0;border:0;border-radius:50%;background:#08090a!important;color:#fff!important;font-size:12px;font-weight:600;line-height:1}
body #timeline .sidebar-block-scenes .block-detail{padding:2px 0;min-width:0}
body #timeline .sidebar-block-scenes .block-name{line-height:1.45;overflow-wrap:break-word}
body #timeline .sidebar-block-scenes p{margin:0;padding:6px 0;line-height:1.5}

#crew-storyboard-preview{width:min(1100px,94vw);max-width:100vw;max-height:94dvh;padding:16px;overflow:auto}#crew-storyboard-preview>header{display:flex;justify-content:flex-end;gap:8px;position:static;height:auto;margin-bottom:10px}#crew-storyboard-preview .board-image-stage{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:8px}#crew-storyboard-preview .board-image-stage img{width:100%;height:min(65dvh,680px);max-height:none;object-fit:contain}#crew-storyboard-preview .board-image-stage button{font-size:30px;padding:5px;min-height:60px}#crew-storyboard-preview footer{display:flex;align-items:center;gap:20px}#crew-storyboard-preview [data-board-position]{white-space:nowrap;font-size:12px}#crew-storyboard-preview.board-full{width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0}#crew-storyboard-preview.board-full .board-image-stage img{height:calc(100dvh - 145px)}
