/* production-suite.css — Shot List, Schedule, Call Sheets, Cast & Crew, Locations.
   Built from the Breakdown's parts (bd2-*); only what is new to these tools lives here. */
#bd2ExportAction{display:none!important;}
body.ps-active #productionWorkspaceBar{position:relative;}
.ps-workspace[data-tool=shots]{--bd2-inspector-width:320px;}
.ps-workspace[data-tool=schedule],.ps-workspace[data-tool=locations]{--bd2-inspector-width:288px;}
.ps-workspace[data-tool=callsheets]{--bd2-inspector-width:300px;}
.ps-workspace:is([data-tool=people],[data-tool=budget]){grid-template-columns:minmax(0,1fr);}
.ps-workspace [hidden]{display:none!important;}
.ps-page{min-width:0;min-height:0;overflow:auto;padding:24px;container-type:inline-size;}
.ps-toolbar .bd2-view-switch{flex:none;width:auto;}
.ps-toolbar[data-tool=shots] .bd2-view-switch{width:156px;}
.ps-toolbar[data-tool=schedule] .bd2-view-switch{width:220px;}
#psTitle>.bd2-button{flex:none;pointer-events:auto;}
.ps-gold{color:var(--icon-gold)!important;}
.ps-inspector .bd2-inspector-heading{gap:8px;}
.ps-inspector .bd2-inspector-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ps-inspector .bd2-find>svg{stroke-width:2;}
.ps-inspector a.bd2-button{text-decoration:none;}
.ps-flat{padding:2px 0 16px;}
.ps-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.ps-workspace input[type=date].bd2-field,.ps-workspace input[type=time].bd2-field{color-scheme:dark;font-variant-numeric:tabular-nums;}
.ps-workspace textarea.bd2-field{height:auto;min-height:56px;resize:vertical;field-sizing:content;max-height:180px;}
.ps-inspector-foot{display:flex;align-items:center;gap:4px;margin-top:16px;padding-top:12px;border-top:1px solid var(--line-soft);}
.ps-inspector-foot>:last-child{margin-left:auto;}
.ps-facts{display:grid;grid-template-columns:76px minmax(0,1fr);gap:6px 8px;margin:0;font:500 11px/16px var(--sans);}
.ps-facts dt{color:var(--dim);}
.ps-facts dd{margin:0;color:var(--text);overflow-wrap:anywhere;}
.ps-warnings{display:grid;gap:4px;margin:0 0 12px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--icon-gold) 35%,var(--line));border-radius:5px;background:color-mix(in srgb,var(--icon-gold) 8%,var(--panel));list-style:none;color:var(--icon-gold);font:500 11px/16px var(--sans);}
.ps-side-note{margin:4px 0 0;padding:0 4px;color:var(--icon-gold);font:500 11px/16px var(--sans);}
.ps-row-count{display:grid;place-items:center;flex:none;min-width:22px;height:22px;margin-right:6px;border-radius:5px;background:color-mix(in srgb,var(--icon-mint) 16%,transparent);color:var(--icon-mint);font:600 10px/1 var(--sans);font-variant-numeric:tabular-nums;}
.ps-row-count.is-empty{background:none;border:1px solid var(--line);}
.ps-toast{position:absolute;z-index:20;left:50%;bottom:20px;translate:-50% 0;display:flex;align-items:center;gap:8px;padding:4px 4px 4px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font:500 11px/18px var(--sans);box-shadow:0 10px 32px #0006;animation:ps-rise 220ms ease;}
@keyframes ps-rise{from{opacity:0;translate:-50% 8px;}}
#insights{position:relative;}
.ps-hero{display:grid;justify-items:center;gap:12px;max-width:440px;margin:12vh auto 0;text-align:center;}
.ps-hero h2{margin:0;color:var(--text);font:600 26px/1.2 var(--sans);letter-spacing:-.6px;text-transform:none;}
.ps-hero p{margin:0;color:var(--dim);font:400 13px/20px var(--sans);}
.ps-hero-row{display:flex;align-items:flex-end;gap:8px;margin-top:8px;}
.ps-hero-row label{display:grid;gap:4px;width:88px;color:var(--dim);font:500 10px/16px var(--sans);text-align:left;}
.ps-empty{display:grid;justify-items:start;gap:8px;padding:8px 2px;}
.ps-empty p{margin:0;color:var(--text);font:500 12px/18px var(--sans);}
.ps-popover .ps-pop-head{display:grid;gap:2px;}
.ps-popover .ps-pop-head b{font:550 12px/18px var(--sans);}
.ps-popover .ps-pop-head small{color:var(--dim);font:400 10px/16px var(--sans);}

/* Shot cards */
.ps-shot .bd2-item-head .bd2-label{display:flex;align-items:baseline;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ps-code{flex:none;color:var(--dim);font:600 10px/18px var(--sans);font-style:normal;font-variant-numeric:tabular-nums;letter-spacing:.02em;}
.ps-size{flex:none;padding:0 5px;border-radius:3px;background:color-mix(in srgb,#9cb9cb 20%,transparent);color:#b9d0de;font:600 9px/16px var(--sans);font-style:normal;letter-spacing:.05em;}
.ps-shot.is-done .bd2-item-head{color:var(--dim);}
.ps-shot-sub{display:flex;align-items:center;gap:8px;margin:-4px 8px 8px;color:var(--dim);font:400 10px/16px var(--sans);}
.ps-shot-sub img{width:48px;height:27px;border-radius:3px;object-fit:cover;}
.ps-chips{display:flex;flex-wrap:wrap;gap:4px;}
body.studio-refined .ps-chip{height:22px;min-height:0;margin:0;padding:0 7px;border:1px solid var(--line);border-radius:11px;background:none;color:var(--dim);font:600 9px/1 var(--sans);letter-spacing:.05em;cursor:pointer;}
body.studio-refined .ps-chip:hover{color:var(--text);background:var(--surface-3);}
body.studio-refined .ps-chip[aria-pressed=true]{border-color:#9cb9cb;background:color-mix(in srgb,#9cb9cb 22%,transparent);color:#dbe8ef;}
.ps-frame{position:relative;}
.ps-frame img{display:block;width:100%;border-radius:5px;}
.ps-frame .bd2-button{position:absolute;top:4px;right:4px;background:#0009!important;color:#fff!important;}
.bd2-edit label.ps-frame-add{display:flex;align-items:center;justify-content:center;gap:6px;height:44px;border:1px dashed var(--line);border-radius:5px;color:var(--dim);font:500 11px/18px var(--sans);cursor:pointer;}
.ps-frame-add:hover{color:var(--text);border-color:var(--line-strong,var(--dim));}
.ps-frame-add svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.ps-move{display:flex;gap:2px;}
.bd2-paper mark.ps-mark::after{content:attr(data-code);margin-left:3px;padding:0 3px;border-radius:3px;background:#6f9bb8;color:#fff;font:700 9px/14px var(--sans);vertical-align:2px;letter-spacing:.02em;}

/* Tables: All Shots, Cast & Crew, Locations */
.ps-table{display:grid;gap:4px;max-width:960px;margin:0 auto;}
.ps-thead,.ps-trow,.ps-prow{display:grid;align-items:center;gap:12px;}
.ps-thead{padding:0 12px 4px;color:var(--dim);font:500 11px/18px var(--sans);}
.ps-shot-table .ps-thead,.ps-shot-table .ps-trow{grid-template-columns:44px 96px minmax(0,1fr) 150px 150px 20px;}
.ps-loc .ps-thead,.ps-loc .ps-trow{grid-template-columns:minmax(160px,1.1fr) 56px 56px 72px minmax(0,1.4fr);}
.ps-people .ps-thead,.ps-people .ps-prow{grid-template-columns:minmax(120px,.9fr) minmax(0,1fr) minmax(0,.8fr) minmax(0,1.1fr) 52px 44px;}
/* Crew shares the Cast columns, so Name, Phone and Email line up down the whole page. */
.ps-people .ps-prow-crew>.ps-row-x{justify-self:center;}
body.studio-refined .ps-trow{width:100%;min-height:36px;margin:0;padding:8px 12px;border:1px solid transparent;border-radius:5px;background:var(--panel);color:var(--text);font:500 12px/18px var(--sans);text-align:left;cursor:pointer;}
body.studio-refined .ps-trow:hover{background:var(--surface-2);}
body.studio-refined .ps-trow.is-selected{border-color:color-mix(in srgb,#df7976 45%,var(--line));background:color-mix(in srgb,#df7976 10%,var(--panel));}
.ps-trow>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ps-trow .ps-wrap{white-space:normal;}
.ps-trow small{display:block;color:var(--dim);font:400 11px/16px var(--sans);}
.ps-trow.is-done{color:var(--dim);}
.ps-tick svg{width:14px;height:14px;fill:none;stroke:var(--icon-mint);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.ps-num{color:var(--dim);font-variant-numeric:tabular-nums;font:500 11px/18px var(--sans);}

.ps-group{margin:16px 0 4px;}
.ps-group:first-child{margin-top:0;}
body.studio-refined .ps-group>button,.ps-group-plain{display:flex;align-items:baseline;gap:8px;width:100%;margin:0;padding:4px 12px;border:0;background:none;color:var(--text);font:550 12px/18px var(--sans);letter-spacing:0;text-transform:none;text-align:left;cursor:pointer;}
.ps-group-plain{cursor:default;font-size:13px;}
.ps-group i{display:grid;place-items:center;min-width:20px;height:20px;border-radius:5px;background:var(--surface-2);color:var(--dim);font:600 10px/1 var(--sans);font-style:normal;}
.ps-group small{color:var(--dim);font:400 11px/18px var(--sans);}
.ps-prow{padding:2px 12px;border-radius:5px;background:var(--panel);}
.ps-name{display:flex;align-items:center;gap:8px;min-width:0;font:550 12px/18px var(--sans);}
.ps-name small{font-weight:400;}
.ps-name>i{flex:none;width:8px;height:8px;border-radius:50%;}
.ps-dot{box-sizing:border-box;border:1.5px solid var(--line-strong,var(--dim));}
.ps-dot.is-on{border-color:var(--icon-mint);background:var(--icon-mint);}
body.studio-refined .ps-cell{border-color:transparent;background:none;font-size:12px;}
body.studio-refined .ps-cell:hover{border-color:var(--line-soft);}
body.studio-refined .ps-cell:focus{border-color:var(--icon-mint);background:var(--surface-0);outline:none;}
.ps-add-role{margin-top:8px;max-width:280px;}
.ps-add-role .bd2-find>svg{stroke-width:2;}

/* Stripboard */
.ps-board{display:grid;gap:16px;max-width:960px;margin:0 auto;}
.ps-day{border:1px solid var(--line-soft);border-radius:8px;background:var(--panel);}
.ps-day.is-selected{border-color:color-mix(in srgb,#ce9c83 55%,var(--line));}
.ps-day-head{display:flex;align-items:baseline;gap:12px;padding:8px 8px 8px 14px;color:var(--dim);font:500 11px/18px var(--sans);cursor:pointer;outline:none;}
.ps-day-head b{color:var(--text);font:600 13px/24px var(--sans);}.ps-day-head>span{line-height:24px;}
.ps-day-meta{margin-left:auto;font-variant-numeric:tabular-nums;}
.ps-loose{border-style:dashed;background:none;}
.ps-loose .ps-day-head{cursor:default;}
.ps-warn{display:grid;place-items:center;align-self:center;min-width:18px;height:18px;border-radius:9px;background:var(--icon-gold);color:#1d1a12;font:700 10px/1 var(--sans);}
.ps-strips{display:grid;gap:2px;min-height:36px;padding:0 6px 6px;border-radius:5px;}
.ps-strips.ps-drop-into{background:color-mix(in srgb,var(--icon-mint) 10%,transparent);}
.ps-drop-hint{margin:0;padding:8px;color:var(--dim);font:400 11px/18px var(--sans);text-align:center;}
.ps-strip{position:relative;display:grid;grid-template-columns:28px 34px minmax(120px,1.4fr) 104px minmax(0,1fr) 44px 28px;align-items:center;gap:10px;height:34px;padding:0 4px 0 12px;border-radius:5px;background:color-mix(in srgb,var(--strip) 9%,var(--surface-1,var(--surface-0)));color:var(--text);font:500 11px/18px var(--sans);cursor:grab;user-select:none;}
.ps-strip::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:5px 0 0 5px;background:var(--strip);}
.ps-strip:hover{background:color-mix(in srgb,var(--strip) 16%,var(--surface-1,var(--surface-0)));}
.ps-strip.is-dragging{opacity:.35;}
.ps-strip.ps-drop-before{box-shadow:0 -2px 0 var(--icon-mint);}
.ps-strip.ps-drop-after{box-shadow:0 2px 0 var(--icon-mint);}
.ps-strip>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ps-strip-num{color:var(--dim);font:600 11px/18px var(--sans);font-style:normal;font-variant-numeric:tabular-nums;text-align:right;}
.ps-strip-ie,.ps-strip-time{color:var(--dim);font:600 9px/18px var(--sans);letter-spacing:.06em;}
.ps-strip-set{font:600 12px/18px var(--sans);}
.ps-strip-cast{color:var(--dim);}
.ps-strip-pages{text-align:right;font-variant-numeric:tabular-nums;}
body.studio-refined .ps-add-day{justify-self:start;}
.ps-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0;color:var(--dim);font:400 10px/16px var(--sans);}
.ps-legend i{display:inline-block;width:10px;height:10px;margin-right:-8px;border-radius:2px;background:var(--strip);}
@container(max-width:640px){.ps-strip{grid-template-columns:24px 30px minmax(0,1fr) 72px 40px 28px;}.ps-strip-cast{display:none;}}
.ps-dood-wrap{max-width:max-content;margin:0 auto;display:grid;gap:12px;}
.ps-dood{border-collapse:separate;border-spacing:2px;font:500 11px/18px var(--sans);}
.ps-dood th,.ps-dood td{min-width:34px;height:30px;padding:0 6px;border-radius:5px;text-align:center;color:var(--dim);font-weight:500;font-variant-numeric:tabular-nums;}
.ps-dood thead th small,.ps-dood-crew tr:first-child th small{display:block;margin:0;font:400 9px/10px var(--sans);}
.ps-dood tbody th{text-align:left;color:var(--text);font-weight:550;background:var(--panel);white-space:nowrap;}.ps-dood tr>th:first-child{min-width:150px;}
.ps-dood tbody th small{margin-left:6px;color:var(--dim);font-weight:400;}
.ps-dood td{background:var(--panel);}
.ps-dood td[class^=is-]{background:color-mix(in srgb,#ce9c83 26%,var(--panel));color:var(--text);font-weight:600;font-size:10px;}
.ps-dood td.is-h{background:color-mix(in srgb,var(--dim) 14%,var(--panel));color:var(--dim);}

/* Call sheet page */
.ps-callsheet{box-sizing:border-box;width:100%;max-width:816px;margin:0 auto;padding:34px 44px 44px;border-radius:2px;background:#fff;color:#222b28;box-shadow:0 2px 12px #0002;font:400 11px/1.35 Arial,Helvetica,sans-serif;--cs-ink:#17212b;--cs-gold:#c8922a;--cs-line:#d4d9dd;}
.ps-callsheet+.ps-callsheet{margin-top:24px;}
.ps-cs-band{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding-bottom:9px;border-bottom:2px solid var(--cs-ink);color:var(--cs-ink);}
.ps-cs-band p{margin:3px 0 0;color:var(--cs-gold);font:700 9.5px/12px Arial,sans-serif;letter-spacing:.03em;text-transform:uppercase;}
.ps-cs-logo{display:block;max-width:170px;max-height:44px;object-fit:contain;}
.ps-cs-day{display:grid;gap:3px;text-align:right;}
.ps-cs-day b{font:700 13px/15px Arial,sans-serif;}
.ps-cs-day span{font:400 10px/13px Arial,sans-serif;}
.ps-cs-day em{color:var(--cs-gold);font:700 9px/12px Arial,sans-serif;font-style:normal;text-transform:uppercase;}
.ps-cs-times{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;margin-top:9px;border:1px solid var(--cs-gold);background:#faf4e4;}
.ps-cs-times>div{display:grid;gap:1px;padding:7px 4px 6px;text-align:center;}
.ps-cs-times>div+div{border-left:1px solid var(--cs-gold);}
.ps-cs-times small{color:#5c646a;font:700 8.5px/11px Arial,sans-serif;}
.ps-cs-times b{color:var(--cs-ink);font:700 19px/23px Arial,sans-serif;font-variant-numeric:tabular-nums;}
.ps-cs-emergency{display:grid;grid-template-columns:26% 1fr;align-items:center;margin-top:7px;min-height:21px;background:#a3262b;color:#fff;text-align:center;font:700 10px/13px Arial,sans-serif;text-transform:uppercase;}
.ps-cs-leads{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;margin-top:7px;border:1px solid var(--cs-line);}
.ps-cs-leads>div{display:grid;align-content:start;gap:2px;padding:6px 9px 7px;}
.ps-cs-leads>div+div{border-left:1px solid var(--cs-line);}
.ps-cs-leads small{color:#5c646a;font:700 8.5px/11px Arial,sans-serif;}
.ps-cs-leads span:empty::before{content:'—';color:#9aa1a6;}
.ps-cs-report{display:grid;gap:1px;margin-top:7px;padding:5px 9px 6px;border:1px solid var(--cs-line);background:#f7f8fa;}
.ps-cs-report b{color:var(--cs-ink);}
.ps-callsheet table{width:100%;border-collapse:collapse;font-size:10.5px;}
.ps-callsheet th{padding:3px 7px;border:1px solid var(--cs-line);background:#e8ecf0;color:var(--cs-ink);font:700 9px/12px Arial,sans-serif;text-align:left;}
.ps-callsheet td{padding:3px 7px;border:1px solid var(--cs-line);vertical-align:top;}
.ps-callsheet tbody tr:nth-child(even) td{background:#f7f8fa;}
.ps-cs-sched :is(th,td):not(:nth-child(3)),.ps-cs-cast :is(th,td):is(:nth-child(1),:nth-child(4),:nth-child(5)){text-align:center;}
.ps-cs-sched td:first-child{white-space:nowrap;}
.ps-cs-none{color:#8a8e87;}
.ps-cs-note{display:grid;grid-template-columns:70px 1fr;gap:8px;margin:7px 0 0;}
.ps-cs-note b{color:var(--cs-ink);font:700 9px/15px Arial,sans-serif;}
.ps-cs-map{display:block;width:100%;margin-top:12px;border:1px solid var(--cs-line);}
body.ps-active #iBody .ps-callsheet h1{margin:0;color:var(--cs-ink);font:700 25px/1.05 Arial,Helvetica,sans-serif;letter-spacing:-.01em;text-transform:uppercase;}
body.ps-active #iBody .ps-callsheet h2{display:flex;align-items:baseline;gap:10px;margin:9px 0 0;padding:3px 10px;border-left:4px solid var(--cs-gold);background:var(--cs-ink);color:#fff;font:700 10px/13px Arial,sans-serif;letter-spacing:.02em;text-transform:uppercase;}
body.ps-active #iBody .ps-callsheet h2 small{color:#c9d0d6;font:400 9px/12px Arial,sans-serif;letter-spacing:0;text-transform:uppercase;}
.ps-logo{position:relative;display:grid;place-items:center;padding:10px;border:1px solid var(--line);border-radius:5px;background:#fff;}
.ps-logo img{max-width:100%;max-height:56px;object-fit:contain;}
.ps-logo .bd2-button{position:absolute;top:2px;right:2px;color:#333!important;}
.ps-map{display:grid;grid-template-columns:72px minmax(0,1fr);gap:6px 8px;padding:6px;border:1px solid var(--line);border-radius:5px;background:var(--panel);}
body.studio-refined .ps-map-thumb{grid-row:span 2;width:72px;height:62px;margin:0;padding:0;border:0;border-radius:5px;background:#000;overflow:hidden;cursor:pointer;}
.ps-map-thumb img{display:block;width:100%;height:100%;object-fit:cover;}
.ps-map footer{grid-column:1 / -1;display:flex;justify-content:space-between;}
.ps-inspector .ps-two>.bd2-button{width:100%;}
.ps-cast-call{display:grid;grid-template-columns:minmax(0,1fr) 100px 100px;align-items:center;gap:6px;}
.ps-cast-call b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font:550 11px/18px var(--sans);}

/* Export dialog: document picker */
.productionExportDialog .pexChoices{display:flex;flex-wrap:wrap;gap:8px 20px;}

/* Same frame the Breakdown uses, without depending on its body class. */
body.ps-active #iBody{display:flex!important;min-height:0;overflow:hidden!important;}
body.ps-active :is(#insWrap,#insights,#iBody,.ps-workspace){overflow:clip!important;}
body.ps-active #productionWorkspaceBar{height:auto;min-height:0;padding:var(--writer-content-gap);}
body.ps-active #iBody,#psToolbar,.ps-side,.ps-popover,.ps-toast{--writer-label-offset:0px;}
body.ps-active #iBody .bd2-paper{font:400 16px/1.25 'Courier Prime',Courier,monospace;}
body.ps-active #iBody .bd2-paper h2{font:700 16px/1.25 'Courier Prime',Courier,monospace;color:inherit;letter-spacing:0;text-transform:none;}
body.ps-active #iBody .bd2-paper :is(.bd2-line,.bd2-cue,.bd2-parenthetical){font:inherit;color:inherit;letter-spacing:0;text-transform:none;}
body.ps-active #iBody .bd2-category h3{font:550 11px/18px var(--sans);letter-spacing:0;text-transform:none;color:var(--dim);}
body.ps-active #iBody .bd2-hint,.ps-popover .bd2-hint{margin:0;color:var(--dim);font:400 10px/16px var(--sans);}
body.ps-active #psShotAdd{font:500 11px/18px var(--sans)!important;}
body.ps-active #iBody .ps-hero h2{margin:0;color:var(--text);font:600 26px/1.2 var(--sans);letter-spacing:-.6px;text-transform:none;}
body.ps-active #iBody .ps-group{margin:16px 0 4px;font:550 12px/18px var(--sans);letter-spacing:0;text-transform:none;color:var(--text);}
body.ps-active #iBody .ps-group:first-child{margin-top:0;}
body.ps-active #iBody .ps-group small{letter-spacing:0;text-transform:none;}
body.studio-refined.ps-active #iBody .ps-cell{border-color:transparent;background:none;font-size:12px;}
body.studio-refined.ps-active #iBody .ps-cell:hover{border-color:var(--line-soft);}
body.studio-refined.ps-active #iBody .ps-cell:focus{border-color:var(--icon-mint);background:var(--surface-0);outline:none;}
body.studio-refined #sidebar #productionDrawer #insTabs .ps-side .bd2-scene-row{position:relative;}
body.studio-refined.ps-active #iBody .ps-cast-call input{padding-inline:6px;}
body.studio-refined #sidebar #productionDrawer #insTabs .ps-row-count{box-sizing:border-box;position:absolute;top:7px;right:8px;width:auto!important;min-width:24px!important;max-width:none!important;height:24px;margin:0;padding:0 5px;overflow:visible;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psDayList,#psCallList) .writerSceneNavTarget{cursor:pointer;}

/* Sidebar sections mirror the Breakdown's (generated from its rules). */
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .writerSceneNavItem {border:1px solid transparent;background:color-mix(in srgb,var(--scene-color,var(--line)) 8%,var(--panel));}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .writerSceneNavItem.active {border-color:transparent;background:color-mix(in srgb,var(--scene-color) 16%,var(--panel));}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .writerSceneNavItem {position:relative;display:block;padding:0;overflow:hidden;color:var(--text);}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .writerSceneNavTarget {display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-height:56px;margin:0;padding:10px 48px 10px 12px;border:0;border-radius:5px;background:none;color:inherit;text-align:left;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .writerSceneNoteCount {position:absolute;top:50%;right:8px;translate:0 -50%;display:inline-flex;align-items:center;justify-content:center;gap:2px;width:36px;min-height:0;height:24px;margin:0;padding:2px;border:0;border-radius:5px;background:none;color:var(--accent);font:500 10px/16px var(--sans);}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .writerSceneNoteCount:hover {background:color-mix(in srgb,var(--accent) 10%,transparent);}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .writerSceneNavItem b {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;text-wrap:balance;font:550 12px/18px var(--sans);}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .writerSceneNavTarget {min-height:36px;padding:6px 8px;gap:8px;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .has-notes .writerSceneNavTarget {padding-right:40px;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .writerSceneHeadingLine>b {flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;text-wrap:nowrap;font:500 11px/18px var(--sans);color:var(--text);}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .writerSceneNavItem {min-height:0;height:auto;}
body.production-navigation #insTabs>:is(#psSideShots,#psSideSchedule,#psSideCallsheets){display:block;flex:none;margin:0;padding:0;border:0;background:none;min-width:0;}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary{box-sizing:border-box;display:flex;align-items:center;gap:var(--writer-content-gap);height:44px;margin:0;padding:0 11px;border:2px solid transparent;border-radius:5px;background:none;color:var(--text);font:500 13px/20px var(--sans);cursor:pointer;list-style:none;}
:is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary::-webkit-details-marker{display:none;}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary{min-height:44px!important;}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary.active{border-color:color-mix(in srgb,#80b6a6 32%,var(--line));background:color-mix(in srgb,#80b6a6 14%,var(--panel));}
:is(#psSideShots,#psSideSchedule,#psSideCallsheets) .bd2-menu-chevron{width:14px;height:14px;margin-left:auto;color:var(--dim);}
:is(#psSideShots,#psSideSchedule,#psSideCallsheets)[open] .bd2-menu-chevron{transform:rotate(90deg);}
:is(#psSideShots,#psSideSchedule,#psSideCallsheets)>.writerDetailsBody{box-sizing:border-box;display:grid;gap:var(--writer-content-gap);margin:0;padding:8px 0;overflow:auto;}
:is(#psSceneList,#psDayList,#psCallList){display:grid;gap:var(--writer-content-gap);min-width:0;}
:is(#psSceneList,#psDayList,#psCallList) .writerSceneNavItem{border-radius:5px;--scene-color:#80b6a6;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-row{border:1px solid color-mix(in srgb,var(--card-color) 35%,var(--line));border-radius:6px 6px 0 6px;background:color-mix(in srgb,var(--card-color) 16%,var(--panel));}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-row:not(.active){border-color:transparent;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-row.active{border-color:color-mix(in srgb,var(--card-color) 85%,var(--line));background:color-mix(in srgb,var(--card-color) 16%,var(--panel));box-shadow:0 0 0 1px color-mix(in srgb,var(--card-color) 85%,var(--line));}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .writerSceneNavTarget{box-sizing:border-box;height:36px;min-height:36px;padding-right:40px;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check{box-sizing:border-box;position:absolute;top:6px;right:8px;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:0;min-width:0;margin:0;padding:0;border:1px solid color-mix(in srgb,var(--scene-color) 14%,var(--workspace-edge));border-radius:5px;background:color-mix(in srgb,var(--scene-color) 3%,var(--panel));box-shadow:none;color:var(--dim);opacity:1;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check>svg{opacity:0;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-row:hover .bd2-scene-check>svg,body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check:focus-visible>svg,body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check.bd2-reviewed>svg{opacity:1;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-row:hover .bd2-scene-check:not(.bd2-reviewed),body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check:focus-visible:not(.bd2-reviewed){opacity:1;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check.bd2-reviewed{opacity:1;color:var(--icon-mint);border-color:transparent;background:color-mix(in srgb,var(--scene-color) 10%,transparent);}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check:hover{opacity:1;background:color-mix(in srgb,var(--scene-color,var(--icon-mint)) 10%,transparent);}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-fold{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:16px;height:16px;min-height:0;min-width:0;margin:0;padding:0;border:0;border-radius:5px 0 0 0;background:none;box-shadow:none;cursor:pointer;overflow:hidden;clip-path:polygon(100% 0,100% 100%,0 100%,0 75%,75% 0);}
body.studio-refined.production-navigation #sidebar #productionDrawer #insTabs :is(.productionMenuItem,:is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary).active{border-color:color-mix(in srgb,var(--production-tool-tone,var(--icon-mint)) 32%,var(--line));background:color-mix(in srgb,var(--production-tool-tone,var(--icon-mint)) 14%,var(--panel))!important;}
:is(#psSideShots,#psSideSchedule,#psSideCallsheets)[open]>summary .sidebarSectionChevron svg{transform:rotate(90deg);}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress>i.is-filtered{opacity:.22;}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary{position:relative;overflow:hidden;}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary{
  box-sizing:border-box;height:44px;padding-bottom:0;
  -webkit-user-select:none;user-select:none;
  transition:height 180ms ease,padding-bottom 180ms ease;
}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)[open]>summary{height:56px;padding-bottom:12px;}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)[open]>summary .bd2-progress{transform:translateY(4px);}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress{
  position:absolute;left:12px;right:12px;top:28px;bottom:auto;display:flex;align-items:flex-end;gap:2px;height:10px;margin:0;padding:0;pointer-events:auto;cursor:default;
  transform:translateY(0);transition:transform 180ms ease;
}
@media(prefers-reduced-motion:reduce){body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary,body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress{transition:none;}}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress:is(:empty,[hidden]){display:none;}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress>i{
  flex:1 1 0;min-width:2px;height:2px;border-radius:1px;background:color-mix(in srgb,var(--line) 85%,transparent);cursor:pointer;
  transition:height 120ms ease,background 200ms ease,opacity 200ms ease;
}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress.bd2-strip-dense{gap:1px;}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress.bd2-strip-dense>i{min-width:1px;}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress>i.is-done{background:var(--icon-mint);}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress>i.is-changed{background:var(--icon-gold);}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress>i.is-open{height:4px;box-shadow:0 0 0 1px color-mix(in srgb,var(--text) 35%,transparent);}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress>i.is-open.is-todo{background:color-mix(in srgb,var(--text) 55%,var(--line));}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary .bd2-progress>i:hover{height:5px;filter:brightness(1.25);}
body.studio-refined.production-navigation #sidebar :is(#psSideShots,#psSideSchedule,#psSideCallsheets)>summary.bd2-all-reviewed .sidebarSectionCount{color:var(--icon-mint);}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-row:hover .bd2-scene-check:not(.bd2-reviewed)>svg{opacity:.4;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check:not(.bd2-reviewed):hover>svg{opacity:.85;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check.bd2-reviewed{background:var(--icon-mint);color:#10211c;border-color:transparent;}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check.bd2-reviewed>svg{opacity:1;animation:bd2-pop 320ms cubic-bezier(.2,.8,.2,1);}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check.bd2-reviewed:hover{background:color-mix(in srgb,var(--icon-mint) 80%,#000);}
body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check[data-changed=true]{background:none;color:var(--icon-gold);}
@media(prefers-reduced-motion:reduce){.bd2-paper mark.bd2-just-tagged,.bd2-toast,
  body.studio-refined #sidebar #productionDrawer #insTabs :is(#psSceneList,#psDayList,#psCallList) .bd2-scene-check.bd2-reviewed>svg{animation:none;}}
:is(#psSideShots,#psSideSchedule,#psSideCallsheets){--writer-label-offset:0px;}
/* Day rows have no trailing control, so the page count sits at the edge. */
/* Cast & Crew: headings sit over the text in their fields; every crew row can be renamed or removed. */
.ps-people .ps-thead>span:not(:first-child){padding-left:9px;}
.ps-people .ps-thead-crew>span:first-child{padding-left:0;}
.ps-people .ps-thead>span:is(:nth-child(5),:nth-child(6)){padding-left:0;}
body.studio-refined.ps-active #iBody .ps-role{font-weight:550;}
.ps-row-x{opacity:.35;}
.ps-prow:hover .ps-row-x,.ps-row-x:focus-visible{opacity:1;}
.ps-add-role{display:flex;align-items:center;gap:8px;max-width:none;}
.ps-add-role .bd2-find{flex:none;width:280px;}
/* A closed section shows progress only; the current-scene marker appears when the section is open. */
body.studio-refined.production-navigation #sidebar #insTabs details:not([open])>summary .bd2-progress>i.is-open{height:2px;box-shadow:none;}
body.studio-refined.production-navigation #sidebar #insTabs details:not([open])>summary .bd2-progress>i.is-open.is-todo{background:color-mix(in srgb,var(--line) 85%,transparent);}
/* Locations: the address is typed straight into the row; added places can be removed. */
.ps-loc .ps-thead,.ps-loc .ps-trow{grid-template-columns:minmax(160px,1.1fr) 56px 56px 72px minmax(0,1.4fr) 28px;}
.ps-loc .ps-thead>span:nth-child(5){padding-left:9px;}
body.studio-refined .ps-loc .ps-trow{padding-block:3px;}
.ps-loc .ps-trow>.ps-name{overflow:hidden;}
.ps-add-shot{box-shadow:0 2px 10px #0005;}
/* The workspace fills what is left under the toolbar, so the last rows of every page can be reached. */
body.studio-refined.production-mode.production-navigation #insights{--ps-bar:calc(var(--writer-control-height,28px) + 2*var(--writer-content-gap,8px) + 1px);height:calc(100% - var(--ps-bar));max-height:calc(100% - var(--ps-bar));}
.ps-page{padding-bottom:40px;}
/* Unscheduled with nothing in it is one quiet line that still takes a drop. */
.ps-loose.is-empty{display:block;min-height:0;padding:0;border-radius:8px;}
.ps-loose.is-empty .ps-day-head{padding:8px 14px;}
.ps-board{padding-bottom:56px;}
/* Details panel: the same edge grip as the Breakdown, and its contents always scroll. */
.ps-workspace .ps-inspector{min-height:0;height:100%;overflow:hidden;}
.ps-workspace .ps-inspector>.bd2-items-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:40px;}
.ps-workspace{grid-template-rows:minmax(0,1fr);}
.ps-workspace:is([data-tool=people],[data-tool=budget]) #psRightGrip{display:none;}
/* Google Maps picker */
.ps-map-dialog{box-sizing:border-box;width:min(1100px,calc(100vw - 48px));height:min(760px,calc(100vh - 48px));margin:auto;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);box-shadow:0 24px 80px #000a;overflow:hidden;--writer-label-offset:0px;}
.ps-map-dialog[open]{display:flex;flex-direction:column;}
.ps-map-dialog::backdrop{background:#0009;}
.ps-map-dialog header,.ps-map-dialog footer{display:flex;align-items:center;gap:8px;flex:none;padding:10px 12px;}
.ps-map-dialog header .bd2-segment{flex:none;width:150px;}
.ps-map-dialog footer{justify-content:space-between;}
.ps-map-frame{flex:1;min-height:0;background:#0b0d0e;}
.ps-map-frame iframe{display:block;width:100%;height:100%;border:0;}
.ps-map-status{color:var(--icon-gold);font:500 11px/18px var(--sans);}
body.studio-refined .ps-wide{width:100%;}
.ps-cast-head{color:var(--dim);font:500 10px/14px var(--sans);}
/* Stripboard legend sits centred under the board. */
.ps-board>.ps-legend{justify-content:center;}
/* Google's address card sits in the top strip of its frame; that strip is kept out of view and out of the capture. */
.ps-map-frame{position:relative;overflow:hidden;}
.ps-map-frame iframe{position:absolute;left:0;top:-132px;width:100%;height:calc(100% + 132px);}
/* Empty shot list: centred in its panel. */
.ps-empty{justify-items:center;gap:10px;padding:28px 8px;text-align:center;}
/* Schedule: time on set per strip, rows between scenes, dates, days off */
.ps-strip{grid-template-columns:28px 34px minmax(120px,1.4fr) 104px minmax(0,1fr) 50px 44px 28px;}
.ps-strip-min{color:var(--dim);text-align:right;font-variant-numeric:tabular-nums;}
@container(max-width:640px){.ps-strip{grid-template-columns:24px 30px minmax(0,1fr) 72px 44px 40px 28px;}}
.ps-row{display:grid;grid-template-columns:auto minmax(0,1fr) 84px 28px;align-items:center;gap:10px;height:30px;padding:0 4px 0 16px;border:1px dashed var(--line);border-radius:5px;color:var(--dim);font:500 11px/18px var(--sans);}
.ps-row-kind{font:600 9px/18px var(--sans);font-style:normal;letter-spacing:.06em;text-transform:uppercase;color:var(--icon-gold);}
.ps-row-min{display:flex;align-items:center;gap:4px;}
.ps-row-min input{width:52px;text-align:right;}
body.studio-refined .ps-board .ps-row .ps-cell{height:24px;border-color:transparent;background:none;font-size:11px;}
body.studio-refined .ps-board .ps-row .ps-cell:hover{border-color:var(--line-soft);}
body.studio-refined .ps-board .ps-row .ps-cell:focus{border-color:var(--icon-mint);background:var(--surface-0);outline:none;}
.ps-row:hover .ps-row-x{opacity:1;}
.ps-pop-row{display:flex!important;align-items:center;gap:6px;color:var(--dim);font:500 10px/16px var(--sans);}
.ps-pop-row>span{flex:none;width:68px;}
.ps-pop-row input{width:72px;}
.ps-pop-row i{font-style:normal;}
body.studio-refined .ps-chip-button{height:22px;padding:0 8px;border-radius:11px;font-size:10px;}
body.studio-refined .ps-chip-button[aria-pressed=true]{border-color:var(--icon-mint);color:var(--icon-mint);}
.ps-dood td{padding:0;}
body.studio-refined .ps-dood td>button{display:block;width:100%;min-width:34px;height:30px;margin:0;padding:0 6px;border:0;border-radius:5px;background:none;color:inherit;font:inherit;cursor:pointer;}
body.studio-refined .ps-dood td>button:hover{box-shadow:inset 0 0 0 1px var(--line-strong,var(--dim));}
.ps-dood td.is-off{background:color-mix(in srgb,var(--dim) 10%,var(--panel));color:var(--dim);font-size:9px;font-weight:600;}
.ps-dood td.is-clash{background:color-mix(in srgb,#ff3b30 30%,var(--panel));color:#fff;}
/* Shot List: storyboard and drag */
.ps-toolbar[data-tool=shots] .bd2-view-switch{width:248px;}
.ps-storyboard{max-width:1100px;margin:0 auto;}
.ps-frames{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;margin:6px 0 20px;}
body.studio-refined .ps-frame-card{display:grid;gap:6px;align-content:start;margin:0;padding:6px 6px 8px;border:1px solid var(--line-soft);border-radius:8px;background:var(--panel);color:var(--text);font:500 11px/16px var(--sans);text-align:left;cursor:pointer;}
body.studio-refined .ps-frame-card:hover{border-color:color-mix(in srgb,#9cb9cb 55%,var(--line));}
.ps-frame-pic{display:grid;place-items:center;aspect-ratio:16/9;border-radius:5px;background:var(--surface-0);overflow:hidden;}
.ps-frame-pic img{width:100%;height:100%;object-fit:cover;}
.ps-frame-pic em{color:var(--dim);font:700 12px/1 var(--sans);font-style:normal;letter-spacing:.08em;}
.ps-frame-text{display:flex;gap:6px;align-items:baseline;min-width:0;}
.ps-frame-card small{color:var(--dim);font:400 10px/14px var(--sans);}
.ps-frame-card.is-done{opacity:.6;}
.ps-shot[draggable]{cursor:grab;}
.ps-shot.is-dragging{opacity:.35;}
.ps-shot.ps-drop-before{box-shadow:0 -2px 0 var(--icon-mint);}
.ps-shot.ps-drop-after{box-shadow:0 2px 0 var(--icon-mint);}
.ps-place-days{display:grid;gap:6px;margin-top:14px;color:var(--dim);font:500 10px/16px var(--sans);}
/* Done marks: the same check the Breakdown uses on scenes. */
.ps-day-head .bd2-scene-check,.ps-inspector .bd2-inspector-heading .bd2-scene-check{position:static;flex:none;align-self:center;width:24px;height:24px;min-height:0;padding:0;border:1px solid var(--line);border-radius:5px;background:none;color:var(--dim);}
.ps-day-head .bd2-scene-check svg,.ps-inspector .bd2-scene-check svg{opacity:.25;}
.ps-day-head .bd2-scene-check.bd2-reviewed,.ps-inspector .bd2-scene-check.bd2-reviewed{border-color:transparent;background:color-mix(in srgb,var(--icon-mint) 16%,transparent);color:var(--icon-mint);}
.ps-day-head .bd2-scene-check.bd2-reviewed svg,.ps-inspector .bd2-scene-check.bd2-reviewed svg,.ps-day-head .bd2-scene-check:hover svg,.ps-inspector .bd2-scene-check:hover svg{opacity:1;}
.ps-day.is-done{border-color:color-mix(in srgb,var(--icon-mint) 38%,var(--line));}
.ps-inspector .bd2-inspector-heading .bd2-inspector-title{flex:1;}
/* Shots on the page: codes in the margin beside every line that has a shot; hover links the two. */
.bd2-paper .bd2-line.ps-covered{position:relative;}
.bd2-paper .bd2-line.ps-covered::before{content:attr(data-shots);position:absolute;right:calc(100% + 10px);top:2px;max-width:52px;color:#6f9bb8;font:700 9px/14px var(--sans);letter-spacing:.02em;text-align:right;white-space:normal;}
.bd2-paper mark.ps-mark{--bd2-tone:#6f9bb8;transition:background 120ms ease,box-shadow 120ms ease;}
.bd2-paper mark.ps-mark.is-hot{background:color-mix(in srgb,#6f9bb8 60%,transparent);box-shadow:0 0 0 2px color-mix(in srgb,#6f9bb8 55%,transparent);}
.ps-shot.is-hot{border-color:#9cb9cb;box-shadow:0 0 0 1px color-mix(in srgb,#9cb9cb 60%,transparent);}
.ps-shot .ps-code{position:relative;}
.ps-shot.is-tied .ps-code{color:#b9d0de;}
.ps-shot:not(.is-tied) .ps-code::after{content:'';position:absolute;left:0;right:0;bottom:1px;border-bottom:1px dashed var(--dim);}
div.ps-add-shot{position:fixed;z-index:1090;display:flex;flex-direction:column;align-items:flex-end;gap:4px;box-shadow:none;}
div.ps-add-shot .bd2-tag-button{position:static;box-shadow:0 2px 10px #0005;}

/* Budget */
.ps-budget{max-width:960px;margin:0 auto;}
.ps-budget-top{display:grid;gap:10px;padding:4px 12px 14px;}
.ps-budget-total{font:600 34px/40px var(--sans);letter-spacing:-.01em;color:var(--text);font-variant-numeric:tabular-nums;}
.ps-budget-bar{display:flex;gap:2px;height:6px;border-radius:3px;overflow:hidden;background:color-mix(in srgb,var(--text) 9%,transparent);}
.ps-budget-bar i{display:block;min-width:2px;}
.ps-budget .ps-prow{grid-template-columns:minmax(150px,1.5fr) 96px 132px 96px 104px 28px;min-height:36px;}
body.ps-active #iBody .ps-budget-group,.ps-budget-group{display:flex;align-items:center;gap:8px;}
.ps-budget-group i{min-width:8px;width:8px;height:8px;border-radius:50%;}
.ps-budget-group span{margin-left:auto;padding-right:40px;color:var(--dim);font:500 12px/18px var(--sans);font-variant-numeric:tabular-nums;}
.ps-budget .ps-name{display:flex;align-items:baseline;gap:8px;min-width:0;}
.ps-budget .ps-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 12px/18px var(--sans);}
.ps-budget .ps-name small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--dim);font:400 11px/18px var(--sans);}
body.studio-refined.ps-active #iBody .ps-money,.ps-money{text-align:right;font-variant-numeric:tabular-nums;}
.ps-budget .ps-per{justify-self:start;}
.ps-budget .ps-times{color:var(--dim);text-align:left;white-space:nowrap;font:400 11px/18px var(--sans);}
.ps-amount{text-align:right;font:550 12px/18px var(--sans);font-variant-numeric:tabular-nums;}
.ps-brow.is-blank .ps-per,.ps-brow.is-blank .ps-times{opacity:.45;}
.ps-percent{position:relative;display:block;}.ps-percent em{position:absolute;left:calc(100% + 4px);top:50%;translate:0 -50%;}
.ps-percent em{color:var(--dim);font:400 12px/18px var(--sans);font-style:normal;}
.ps-budget-contingency{margin-top:16px;}
.ps-budget-sum{background:none;border-top:1px solid var(--line);border-radius:0;margin-top:6px;padding-top:10px;}
.ps-budget-sum .ps-name b,.ps-budget-sum .ps-amount{font-size:14px;font-weight:600;}
.ps-budget .ps-add-role .ps-chips{margin-top:0;align-items:center;}
@container (max-width:640px){.ps-budget .ps-prow{grid-template-columns:minmax(110px,1fr) 80px 104px 0 88px 28px;}.ps-budget .ps-times{display:none;}}

/* Click any part of the call sheet to fill that part in. */
.ps-callsheet [data-fill]{cursor:pointer;transition:box-shadow 120ms ease;}
.ps-callsheet [data-fill]:hover{box-shadow:0 0 0 2px #2f8cff55;}

/* Location photos */
.ps-photos{display:grid;gap:6px;margin:14px 0;color:var(--dim);font:500 10px/16px var(--sans);}
.ps-photos>div{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.ps-photos figure{position:relative;margin:0;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:var(--surface-2);}
.ps-photos img{display:block;width:100%;height:100%;object-fit:cover;}
.ps-photos .ps-photo-x{position:absolute;right:4px;top:4px;width:22px;height:22px;min-height:0;border:0;border-radius:50%;background:#000a;color:#fff;opacity:0;transition:opacity 120ms ease;}
.ps-photos figure:hover .ps-photo-x,.ps-photos .ps-photo-x:focus-visible{opacity:1;}
.ps-photo-add{display:grid;place-items:center;aspect-ratio:4/3;border:1px dashed var(--line-strong);border-radius:8px;color:var(--dim);cursor:pointer;}
.ps-photo-add:hover{color:var(--text);background:color-mix(in srgb,var(--text) 6%,transparent);}
.ps-photo-add svg{width:18px;height:18px;}
.ps-dates{display:grid;gap:10px;grid-template-columns:minmax(0,1fr);}
.ps-date-rows{display:grid;gap:4px;max-height:min(46vh,340px);overflow-y:auto;overflow-x:hidden;}
.ps-date-row{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:8px;color:var(--dim);font:500 11px/18px var(--sans);}
.ps-date-row .bd2-field{box-sizing:border-box;width:100%;min-width:0;}
/* One weight for section headings: a <b> inside a heading must not go heavier than the heading. */
body.ps-active #iBody .ps-group,body.ps-active #iBody .ps-group b,.ps-group-plain b{font-weight:600;}
/* An editable name starts on the same line as a fixed one: its field's padding is pulled back out of the row. */
body.ps-active #iBody .ps-prow>.ps-cell:first-child{margin-left:-9px;width:calc(100% + 9px);}
/* Day Out of Days: crew under cast, and the headcount a caterer asks for. */
.ps-dood tbody.ps-dood-crew tr:first-child th{height:44px;vertical-align:bottom;padding-bottom:4px;background:none;color:var(--dim);font-weight:500;text-align:center;}
.ps-dood tbody.ps-dood-crew tr:first-child th:first-child{text-align:left;}
.ps-dood thead th:first-child{text-align:left;}
.ps-dood tfoot th,.ps-dood tfoot td{height:34px;background:none;color:var(--text);font-weight:600;}
.ps-dood tfoot th{text-align:left;}
.ps-dood tfoot tr>*{border-top:1px solid var(--line);border-radius:0;}
/* Crew call times, half days and background performers. */
.ps-cast-call.ps-crew-call{grid-template-columns:minmax(0,1fr) 100px;}
.ps-dood td.is-half{background:color-mix(in srgb,#ce9c83 13%,var(--panel));}
.ps-dood td.is-bg{background:color-mix(in srgb,#9cb9cb 20%,var(--panel));color:var(--text);font-weight:600;font-size:10px;}
