/* Production: navigator, episode Board, folder / shot workspaces, Brief. Classes are prefixed pj-. */

/* ---------- frame: navigator + main ---------- */
.pj { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100%; min-width: 0; }
.pj.nav-off { grid-template-columns: minmax(0, 1fr); }
.pj.nav-off .pj-nav { display: none; }
.pj-main { min-width: 0; display: flex; flex-direction: column; }
.pj-page { padding: 0 28px 40px; min-width: 0; flex: 1; }

.pj-nav {
  position: sticky; top: 0; height: 100vh; height: 100dvh; min-width: 0; z-index: 7;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 33, .94), rgba(3, 8, 14, .96));
}
.pj-nav-scrim { display: none; }
.pj-nav-inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.pj-nav-head { display: flex; align-items: center; gap: 6px; padding: 20px 12px 10px 16px; }
.pj-nav-head .eyebrow { color: var(--bronze); }
.pj-nav-search { margin: 0 12px; width: calc(100% - 24px); height: 32px; min-height: 32px; padding-left: 32px; font-size: 12.5px;
  background: rgba(2, 5, 9, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%238ea5b0' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") 11px 50% no-repeat; }
.pj-nav-status { display: flex; gap: 4px; padding: 8px 12px 8px; }
.pj-nav-chip {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 24px; padding: 0 4px;
  border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 11px var(--mono); cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.pj-nav-chip:hover { color: var(--ink); border-color: var(--line-2); }
.pj-nav-chip[aria-pressed="true"] { border-color: rgba(201, 160, 99, .55); color: var(--bronze-hi); background: var(--bronze-dim); }
.pj-tree { flex: 1; min-height: 0; overflow: auto; padding: 4px 6px 14px; border-top: 1px solid var(--line); }
.pj-nav-empty { padding: 28px 12px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pj-nav-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 12px 16px; border-top: 1px solid var(--line); font-size: 11px; }

.pj-node { position: relative; display: flex; align-items: center; gap: 1px; padding-left: calc(2px + var(--d, 0) * 13px); border-radius: 8px; }
.pj-node:hover { background: rgba(159, 211, 224, .05); }
.pj-node.active { background: linear-gradient(90deg, rgba(201, 160, 99, .18), rgba(201, 160, 99, .03)); box-shadow: inset 2px 0 0 var(--bronze); }
.pj-node.lv-episode { margin-top: 4px; }
.pj-node.lv-block { margin-top: 3px; }
.pj-twisty { flex: none; width: 20px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 5px; background: none; color: var(--faint); cursor: pointer; }
.pj-twisty:hover { color: var(--ink); background: rgba(159, 211, 224, .08); }
.pj-twisty .icon { transition: transform var(--t); }
.pj-twisty[aria-expanded="true"] .icon { transform: rotate(90deg); }
.pj-twisty-sp { flex: none; width: 20px; }
.pj-node-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px; border-radius: 6px; color: var(--ink); font-size: 12.5px; }
.pj-node-link:hover { color: var(--ink); }
.lv-shot .pj-node-link { height: 26px; gap: 7px; font-size: 12px; color: var(--muted); }
.lv-shot .pj-node-link:hover { color: var(--ink); }
.pj-node.active .pj-node-link, .pj-node.active .pj-code { color: var(--bronze-hi); }
.pj-node-ico { color: var(--bronze); display: inline-flex; }
.pj-node-name { flex: 1; }
.pj-node-name.ep { font: 500 12px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.pj-node-name.ep em { font: italic 400 14px var(--serif); letter-spacing: 0; text-transform: none; color: var(--muted); }
.pj-node-name.sc { font: 10.5px/1.2 var(--mono); letter-spacing: .03em; color: var(--muted); }
.pj-node-name.sh b { font: 500 9.5px var(--mono); letter-spacing: .06em; color: var(--faint); margin-right: 2px; }
.pj-scnum { flex: none; min-width: 26px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 5px; border: 1px solid rgba(201, 160, 99, .3); color: var(--bronze); font: 500 10.5px var(--mono); }
.pj-code { flex: none; min-width: 34px; font: 500 11.5px var(--mono); color: var(--pearl); font-variant-numeric: tabular-nums; }
.pj-node-count { flex: none; font: 10.5px var(--mono); color: var(--faint); }
.pj-node-count.done { color: var(--ok); }
.pj-node-more { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity var(--t); }
.pj-node:hover .pj-node-more, .pj-node-more:focus-visible, .pj-node.active .pj-node-more { opacity: 1; }
.pj-node-more:hover { background: rgba(159, 211, 224, .1); color: var(--ink); }
.pj-letter {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  font: 500 25px/1 var(--display); color: var(--bronze-hi); letter-spacing: 0;
  border: 1px solid rgba(201, 160, 99, .42);
  background: radial-gradient(circle at 30% 20%, rgba(240, 220, 174, .2), rgba(201, 160, 99, .05) 70%), rgba(2, 5, 9, .5);
  box-shadow: inset 0 1px 0 rgba(240, 220, 174, .15), 0 8px 24px rgba(0, 0, 0, .35);
}
.pj-letter.sm { width: 20px; height: 20px; border-radius: 6px; font-size: 10.5px; box-shadow: none; }
.pj-letter.alt { color: var(--shaft); border-color: var(--line-2); background: rgba(2, 5, 9, .5); }

/* ---------- project header ---------- */
.pj-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 28px 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pj-head-title { min-width: 0; flex: 1 1 260px; }
.pj-head-title .eyebrow { color: var(--bronze); margin-bottom: 5px; }
.pj-head-title h1 { font-size: 24px; letter-spacing: .08em; }
.pj-head-sub { margin-top: 2px; font-size: 15.5px; color: var(--muted); }
.pj-tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(2, 5, 9, .55); }
.pj-tab { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border-radius: 9px; color: var(--muted); font-weight: 500; transition: background var(--t), color var(--t); }
.pj-tab:hover { color: var(--ink); background: rgba(159, 211, 224, .06); }
.pj-tab[aria-current="page"] { color: var(--bronze-hi); background: var(--tide-2); box-shadow: inset 0 0 0 1px rgba(201, 160, 99, .38); }
.pj-head-progress { display: grid; grid-template-columns: auto 150px; grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 5px; }
.pj-head-progress .pj-bar { grid-column: 2; }
.pj-head-progress small { grid-column: 1 / -1; text-align: right; }
.pj-head-pct { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-end; }
.pj-head-pct b { font: 500 22px/1 var(--display); color: var(--pearl); }
.pj-head-pct .eyebrow { font-size: 9px; margin-top: 3px; }

/* ---------- progress bits ---------- */
.pj-bar { flex: 1; min-width: 40px; height: 6px; display: flex; overflow: hidden; border-radius: 99px; background: rgba(159, 211, 224, .1); }
.pj-bar > i { display: block; height: 100%; transition: width .5s var(--ease); }
.pj-bar > .s-approved { background: linear-gradient(90deg, #6fcf9c, var(--ok)); }
.pj-bar > .s-review { background: var(--warn); }
.pj-bar > .s-progress { background: var(--shaft); opacity: .75; }
.pj-progress { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pj-progress .mono { font-size: 11px; color: var(--muted); }
.pj-ring { --p: 0; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--ok) calc(var(--p) * 1%), rgba(159, 211, 224, .12) 0);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }
.pj-status { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 12.5px; }

/* ---------- board: episode hero + KPIs ---------- */
.pj-ep-hero { position: relative; isolation: isolate; min-height: 190px; margin: 20px 0 14px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--deep); }
.pj-ep-strip { position: absolute; inset: 0 -12% 0 0; z-index: -2; display: flex; animation: pj-drift 70s ease-in-out infinite alternate; }
.pj-ep-strip img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.6) contrast(1.05); transition: opacity .8s; }
.pj-ep-strip img[data-loading] { opacity: 0; }
@keyframes pj-drift { from { transform: translateX(0) scale(1.04); } to { transform: translateX(-8%) scale(1.08); } }
.pj-ep-scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(2, 5, 9, .96) 0%, rgba(2, 5, 9, .78) 38%, rgba(2, 5, 9, .25) 75%, rgba(2, 5, 9, .5) 100%),
    linear-gradient(0deg, rgba(2, 5, 9, .85), transparent 60%),
    radial-gradient(80% 120% at 20% 120%, rgba(159, 211, 224, .14), transparent 60%); }
.pj-ep-copy { position: relative; padding: 30px 32px 26px; max-width: 760px; }
.pj-ep-copy .eyebrow { color: var(--bronze); }
.pj-ep-title { margin-top: 8px; font: 500 40px/1.05 var(--display); letter-spacing: .1em; color: var(--pearl); text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.pj-ep-note { margin-top: 10px; font-size: 16px; color: rgba(231, 237, 233, .72); max-width: 640px; }
.pj-ep-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.pj-ep-actions { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 6px; }

.pj-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pj-kpi { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(15, 33, 53, .5), rgba(6, 16, 27, .6)); }
.pj-kpi > b, .pj-kpi .row > b { font: 500 26px/1.05 var(--display); letter-spacing: .04em; color: var(--pearl); }
.pj-kpi small { color: var(--faint); font-size: 11.5px; }
.pj-kpi.warn > b { color: var(--warn); }
.pj-kpi.approved .row { gap: 10px; }
.pj-kpi-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 4px 2px 0; flex-wrap: wrap; }
.pj-kpi-bar .pj-bar { flex: 1 1 280px; height: 5px; }
.pj-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.pj-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.pj-legend b { font: 500 11px var(--mono); color: var(--ink); }

/* ---------- board toolbar ---------- */
.pj-toolbar { margin: 10px -28px 6px; padding: 12px 28px; gap: 8px; backdrop-filter: blur(12px); background: linear-gradient(180deg, rgba(2, 5, 9, .94) 75%, rgba(2, 5, 9, 0)); }
.pj-toolbar .input.search { width: 270px; height: 34px; min-height: 34px; }
.pj-chipset { gap: 4px; }
.pj-schip .dot { width: 7px; height: 7px; }
.pj-tchip { font: 500 11px var(--mono); letter-spacing: .06em; height: 26px; padding: 0 9px; }
.pj-block-select { width: auto; max-width: 280px; height: 30px; min-height: 30px; padding-top: 4px; padding-bottom: 4px; font-size: 12.5px; }
.pj-switch { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pj-viewopts { gap: 8px; }
.pj-viewopts .seg > button { height: 26px; padding: 0 10px; font-size: 12px; }
.pj-result { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; color: var(--muted); }

/* ---------- board: bands (blocks) ---------- */
/* The band head lays out by the board's own width (navigator shown or not), so the bands are a size container. */
.pj-bands { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; container: pj-bands / inline-size; }
.pj-band { border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(10, 24, 40, .6), rgba(4, 11, 19, .45)); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.pj-band-head { position: relative; isolation: isolate; display: flex; align-items: center; gap: 16px; padding: 18px 20px; min-height: 100px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.pj-band.collapsed .pj-band-head { border-radius: var(--r-xl); }
.pj-band-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.pj-band-bg img { position: absolute; right: 0; top: 0; width: 70%; height: 100%; object-fit: cover; opacity: .42; filter: saturate(.8);
  -webkit-mask: linear-gradient(90deg, transparent, #000 55%); mask: linear-gradient(90deg, transparent, #000 55%); transition: opacity .6s; }
.pj-band-bg img[data-loading] { opacity: 0; }
.pj-band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 16, 27, .96) 30%, rgba(6, 16, 27, .55) 70%, rgba(6, 16, 27, .7)); }
.pj-band-toggle { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(2, 5, 9, .5); color: var(--muted); cursor: pointer; transition: color var(--t), border-color var(--t); }
.pj-band-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.pj-band-toggle .icon { transition: transform var(--t); }
.pj-band.collapsed .pj-band-toggle .icon { transform: rotate(-90deg); }
.pj-band-title { flex: 1 1 auto; min-width: 0; }
.pj-band-title .eyebrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--bronze); }
.pj-band-title .badge { height: 18px; font-size: 9.5px; }
.pj-band-title h2 { margin-top: 6px; font-size: 21px; letter-spacing: .07em; overflow-wrap: anywhere; }
.pj-band-title h2 a { color: var(--pearl); }
.pj-band-title h2 a:hover { color: var(--bronze-hi); }
.pj-band-sub { margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.pj-band-match { color: var(--shaft); letter-spacing: .08em; }
.pj-band-stats { flex: 0 1 230px; min-width: 150px; display: flex; flex-direction: column; gap: 8px; }
.pj-band-nums { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.pj-band-nums b { font: 500 12.5px var(--mono); color: var(--pearl); }
.pj-band-actions { flex: none; display: flex; gap: 4px; align-items: center; }
.pj-band-body { padding: 0 0 6px; }
/* Too narrow for title + stats + actions on one line (e.g. 1280px with the navigator shown): the stats drop to
   their own row under the title, so the title keeps room and never runs over the numbers. */
@container pj-bands (max-width: 860px) {
  .pj-band-head { flex-wrap: wrap; row-gap: 12px; }
  .pj-band-title { flex: 1 1 200px; }
  .pj-band-stats { order: 5; flex: 1 1 100%; min-width: 0; padding-left: 114px; }
}
.pj-band-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px 30px; border-top: 1px solid var(--line); }
.pj-add-scene { margin: 4px 20px 12px; }
.pj-loose { padding: 4px 20px 16px; }

.pj-block-brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 26px; padding: 18px 22px 20px; border-top: 1px solid var(--line); background: rgba(2, 5, 9, .38); }
.pj-bb-cell { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pj-bb-cell.wide { grid-column: 1 / -1; }
.pj-bb-cell p { color: #cfdbe0; font-size: 13px; }
.pj-bb-look { font-size: 18px !important; line-height: 1.4; color: var(--pearl) !important; }

/* ---------- scenes ---------- */
.pj-scene { padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.pj-scene-head { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.pj-scene-num { display: flex; flex-direction: column; align-items: center; padding-top: 2px; font: 500 26px/1 var(--display); color: var(--bronze-hi); }
.pj-scene-num small { font: 500 9px var(--mono); letter-spacing: .2em; color: var(--faint); margin-bottom: 4px; }
.pj-scene-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pj-scene-title { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pearl); }
a.pj-scene-title:hover { color: var(--bronze-hi); }
.pj-scene-sum { font-size: 17px; line-height: 1.4; color: rgba(231, 237, 233, .78); max-width: 880px; }
.pj-scene-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 150px; font-size: 11px; color: var(--muted); }
.pj-scene-stats > span { display: inline-flex; align-items: center; gap: 5px; }
.pj-scene-stats .pj-progress { width: 150px; }

/* element chips */
.pj-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pj-echip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; max-width: 220px; padding: 0 10px 0 3px;
  border-radius: 99px; border: 1px solid rgba(116, 173, 155, .32); background: rgba(116, 173, 155, .08); color: #c3e6d9;
  font-size: 12px; white-space: nowrap; cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t);
}
button.pj-echip:hover { background: rgba(116, 173, 155, .18); border-color: rgba(116, 173, 155, .55); color: #e2f5ee; }
.pj-echip-av { flex: none; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #03080e; color: var(--verdigris); }
.pj-echip-av img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.pj-echip-av img[data-loading] { opacity: 0; }
.pj-echip.plain { padding: 0 10px; border-color: var(--line); background: rgba(2, 5, 9, .35); color: var(--muted); cursor: default; }
.pj-echip.unknown { padding: 0 10px; border-style: dashed; border-color: rgba(196, 72, 63, .55); background: rgba(196, 72, 63, .07); color: #f0a39c; cursor: help; }
.pj-echip.more { padding: 0 9px; border-color: var(--line); background: none; color: var(--faint); cursor: default; font: 11px var(--mono); }
.pj-new { font: 500 8.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }

/* ---------- shot cards ---------- */
.pj-shots { --card-min: 214px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); gap: 14px; margin-top: 16px; }
.pj-shots-empty { grid-column: 1 / -1; padding: 14px 0 4px; font-size: 12.5px; }
.pj-card { position: relative; min-width: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.pj-card:hover, .pj-card:focus-within { border-color: rgba(159, 211, 224, .32); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.pj-card[hidden] { display: none !important; }
.pj-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #03080e; }
.pj-card-media > img, .pj-card-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .35s; }
.pj-card-media > img[data-loading] { opacity: 0; }
.pj-card:hover .pj-card-media > img, .pj-card:hover .pj-card-media > video { transform: scale(1.03); }
.pj-card.has-cover .pj-card-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(2, 5, 9, .5), transparent 28%, transparent 64%, rgba(2, 5, 9, .62)); }
.pj-card-code, .pj-card-dur, .pj-card-takes {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px;
  background: rgba(2, 5, 9, .72); border: 1px solid var(--line); backdrop-filter: blur(6px); font: 500 11px var(--mono); color: var(--pearl);
}
.pj-card-code { top: 8px; left: 8px; color: var(--bronze-hi); letter-spacing: .02em; }
.pj-card-dur { top: 8px; right: 8px; color: var(--muted); }
.pj-card-takes { bottom: 8px; right: 8px; color: var(--shaft); }
/* Above the full-card link (z 2) so the flags can be hovered. Each tip anchors to the flag row's left edge and
   opens upward and to the right, inside the card, so the card's overflow clipping never cuts it off. */
.pj-card-flags { position: absolute; z-index: 3; left: 8px; bottom: 8px; display: flex; gap: 3px; cursor: help; }
.pj-card-flags .pj-flag { position: static; }
.pj-card-flags [data-tip]:hover::after { left: 0; bottom: calc(100% + 6px); transform: none; width: max-content; max-width: 150px; white-space: normal; }
.pj-flag { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 4px; background: rgba(2, 5, 9, .72); border: 1px solid var(--line); font: 500 9px var(--mono); letter-spacing: .08em; color: var(--muted); }
.pj-flag.t-sf { color: #d9b8ff; border-color: rgba(190, 150, 255, .35); }
.pj-flag.t-dlg { color: var(--shaft); }
.pj-flag.t-ref { color: var(--warn); border-color: rgba(232, 194, 106, .35); }
.pj-flag.t-post { color: #f0a39c; }
.pj-flag.hero { color: var(--bronze-hi); border-color: rgba(201, 160, 99, .5); }
.pj-card-stripe { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.pj-card.s-progress .pj-card-stripe { background: var(--shaft); }
.pj-card.s-review .pj-card-stripe { background: var(--warn); }
.pj-card.s-approved .pj-card-stripe { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.pj-card-body { padding: 9px 12px 12px; }
.pj-card-meta { display: flex; align-items: center; gap: 7px; font: 500 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; padding-right: 26px; }
.pj-card-meta .dot { width: 7px; height: 7px; }
.pj-card-text { font-size: 12.5px; line-height: 1.45; min-height: calc(1.45em * 2); color: #d6e0e3; }
.pj-card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.pj-card-link:focus-visible { outline: 2px solid var(--bronze); outline-offset: -2px; border-radius: 12px; }
.pj-card-more { position: absolute; z-index: 3; right: 6px; bottom: 6px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity var(--t), background var(--t); }
.pj-card:hover .pj-card-more, .pj-card-more:focus-visible { opacity: 1; }
.pj-card-more:hover { background: rgba(159, 211, 224, .12); color: var(--ink); }
.pj-pulse { animation: pj-pulse 1.8s var(--ease); }
@keyframes pj-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 160, 99, 0); } 25% { box-shadow: 0 0 0 3px rgba(201, 160, 99, .75), 0 0 34px rgba(201, 160, 99, .35); } }

.pj-add-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; border: 1px dashed var(--line-2); background: transparent; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.pj-add-tile:hover { color: var(--bronze-hi); border-color: rgba(201, 160, 99, .55); background: var(--bronze-dim); transform: none; box-shadow: none; }
.pj-add-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; opacity: .8; }

/* storyboard placeholder: thirds, a silhouette scaled by shot size, size label */
.pj-ph { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(110% 80% at 50% 115%, rgba(116, 173, 155, .12), transparent 60%), linear-gradient(180deg, #081828, #03090f); }
.pj-ph-grid { position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(159, 211, 224, .07) calc(33.33% - .5px), rgba(159, 211, 224, .07) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(159, 211, 224, .07) calc(66.66% - .5px), rgba(159, 211, 224, .07) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(159, 211, 224, .07) calc(33.33% - .5px), rgba(159, 211, 224, .07) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(159, 211, 224, .07) calc(66.66% - .5px), rgba(159, 211, 224, .07) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.pj-ph-figs { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; gap: 8%; }
.pj-fig { --s: .6; position: relative; flex: none; width: calc(var(--s) * 30%); aspect-ratio: 1 / 1.1; }
.pj-fig::before, .pj-fig::after { content: ""; position: absolute; background: rgba(159, 211, 224, .085); border: 1px solid rgba(159, 211, 224, .2); }
.pj-fig::before { left: 50%; top: 0; width: 44%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; }
.pj-fig::after { left: 0; right: 0; bottom: 0; height: 52%; border-bottom: 0; border-radius: 50% 50% 0 0 / 80% 80% 0 0; }
.sz-ews .pj-fig { --s: .14; } .sz-ws .pj-fig { --s: .3; } .sz-ms .pj-fig { --s: .62; } .sz-two .pj-fig, .sz-ots .pj-fig { --s: .5; }
.sz-mcu .pj-fig { --s: .92; } .sz-cu .pj-fig { --s: 1.35; } .sz-ecu .pj-fig { --s: 2.4; }
.sz-ecu .pj-ph-figs { align-items: center; } .sz-ecu .pj-fig { transform: translateY(18%); }
.sz-ots .pj-fig:first-child { --s: 1.1; transform: translateX(-35%); opacity: .55; }
.sz-ews .pj-ph-figs, .sz-ws .pj-ph-figs { padding-bottom: 22%; }
.sz-ews::after, .sz-ws::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22%; height: 1px; background: linear-gradient(90deg, transparent, rgba(159, 211, 224, .2), transparent); }
.pj-ph-glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(159, 211, 224, .22); }
.pj-ph-size { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 21px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgba(231, 237, 233, .2); pointer-events: none; }
.pj-ph.big .pj-ph-size { font-size: 46px; }

/* densities */
.d-sm .pj-shots { --card-min: 150px; gap: 10px; }
.d-sm .pj-card-text { font-size: 11.5px; }
.d-sm .pj-card-body { padding: 7px 9px 9px; }
.d-sm .pj-ph-size { font-size: 15px; }
.d-sm .pj-card-flags { display: none; }
.d-list .pj-shots { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 12px; }
.d-list .pj-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; border-radius: 10px; }
.d-list .pj-card:hover { transform: none; }
.d-list .pj-card-media { border-radius: 9px 0 0 9px; }
.d-list .pj-card-body { display: flex; align-items: center; gap: 14px; padding: 6px 44px 6px 14px; }
.d-list .pj-card-meta { margin: 0; flex: none; width: 110px; padding: 0; }
.d-list .pj-card-text { -webkit-line-clamp: 2; min-height: 0; }
.d-list .pj-card-flags, .d-list .pj-card-dur { display: none; }
.d-list .pj-ph-size { font-size: 12px; }
.d-list .pj-card-more { top: 50%; bottom: auto; transform: translateY(-50%); }
.d-list .pj-add-tile { min-height: 46px; flex-direction: row; display: flex; }
.d-list .pj-add-ico { width: 26px; height: 26px; }

/* ---------- workspace ---------- */
.pj-ws { min-width: 0; }
.pj-ws-head { padding: 18px 0 18px; }
.pj-crumbs { margin-bottom: 12px; }
.pj-crumbs a { display: inline-flex; align-items: center; gap: 5px; }
.pj-crumbs [aria-current] { color: var(--ink); }
.pj-ws-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pj-ws-title { min-width: 0; }
.pj-ws-title .eyebrow { color: var(--bronze); margin-bottom: 6px; }
.pj-ws-title h1 { font-size: 30px; letter-spacing: .08em; }
.pj-ws-sub { margin-top: 5px; color: var(--muted); }
.pj-ws-sub.mono { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pj-ws-sub.serif-i { font-size: 18px; }
.pj-ws-badges { margin-top: 10px; gap: 6px; }
.pj-ws-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pj-status-seg > button { font-size: 12.5px; }
.pj-status-seg > button .dot { width: 7px; height: 7px; }
.pj-status-seg > button[aria-pressed="true"].s-todo { color: var(--pearl); }
.pj-status-seg > button[aria-pressed="true"].s-progress { color: var(--shaft); background: rgba(159, 211, 224, .1); box-shadow: inset 0 0 0 1px rgba(159, 211, 224, .4); }
.pj-status-seg > button[aria-pressed="true"].s-review { color: var(--warn); background: rgba(232, 194, 106, .1); box-shadow: inset 0 0 0 1px rgba(232, 194, 106, .45); }
.pj-status-seg > button[aria-pressed="true"].s-approved { color: var(--ok); background: rgba(143, 224, 181, .1); box-shadow: inset 0 0 0 1px rgba(143, 224, 181, .45); }
.pj-status-seg > button:disabled { opacity: .6; cursor: progress; }
.pj-stepper { display: inline-flex; align-items: center; gap: 6px; }
.pj-stepper-pos { font-size: 11px; min-width: 56px; text-align: center; }

.pj-ws-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
.pj-ws-grid.wide { grid-template-columns: minmax(0, 1fr) 420px; }
.pj-ws-main, .pj-ws-side { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pj-ws-takes { margin-top: 6px; }
.pj-ws-takes .section-head { flex-wrap: wrap; }
.pj-ws-takes .section-head h2 { display: inline-flex; align-items: center; gap: 8px; }
.pj-ws-children { margin-top: 4px; }
.pj-ws-children .section-head h2 { display: inline-flex; align-items: center; gap: 8px; }
.pj-ws-children .pj-scene { padding: 16px 0 18px; }
.pj-ws-children .pj-shots { margin-top: 12px; }

.pj-frame { margin: 0; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); background: #010306; box-shadow: var(--shadow); }
.pj-frame.has-hero { border-color: rgba(201, 160, 99, .45); }
.pj-frame-media { position: relative; aspect-ratio: 16 / 9; background: #010306; }
.pj-frame-media > img, .pj-frame-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s; }
.pj-frame-media > img[data-loading] { opacity: 0; }
.pj-frame-blank { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(159, 211, 224, .22);
  background: radial-gradient(90% 80% at 50% 120%, rgba(116, 173, 155, .1), transparent 60%), linear-gradient(180deg, #081828, #03090f); }
.pj-frame-cap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; border-top: 1px solid var(--line); background: rgba(6, 16, 27, .8); font-size: 12.5px; }

.pj-sheet, .pj-continuity, .pj-summary { padding: 16px 18px 18px; }
.pj-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pj-card-head .eyebrow { color: var(--bronze); }
.pj-sheet-desc { font-size: 15px; line-height: 1.5; color: var(--pearl); }
.pj-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 16px 0 0; }
.pj-fact { min-width: 0; }
.pj-fact dt { margin-bottom: 4px; font-size: 9.5px; }
.pj-fact dd { margin: 0; font-size: 13px; color: #d6e0e3; }
.pj-fact dd .icon { display: inline-flex; vertical-align: -2px; color: var(--muted); }
.pj-sheet-block { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pj-tagexp { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 4px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pj-tagexp b { padding: 2px 6px; border-radius: 5px; background: var(--bronze-dim); color: var(--bronze-hi); font: 500 10px var(--mono); letter-spacing: .08em; }
.pj-notes { min-height: 70px; resize: none; overflow: hidden; font-size: 13px; }
.pj-notes-wrap { display: flex; flex-direction: column; gap: 4px; }
.pj-notes-state { align-self: flex-end; min-height: 16px; font-size: 11px; }
.pj-notes-text { white-space: pre-wrap; color: #cfdbe0; }

.pj-cont-heading { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pearl); }
.pj-cont-sum { margin-top: 6px; font-size: 16.5px; line-height: 1.4; color: rgba(231, 237, 233, .8); }
.pj-cont-facts { margin-top: 12px; gap: 12px; font-size: 11px; }
.pj-cont-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pj-cont-block .eyebrow { color: var(--muted); }
.pj-cont-look { font-size: 12.5px; color: #cfdbe0; }
.pj-cont-look b { font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.pj-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; margin-top: 12px; }
.pj-cast-tile { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font-size: 11.5px; text-align: center; cursor: pointer; }
.pj-cast-tile.plain { cursor: default; color: var(--faint); }
.pj-cast-av { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); background: #03080e; color: var(--faint); transition: border-color var(--t), transform var(--t); }
.pj-cast-av img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.pj-cast-av img[data-loading] { opacity: 0; }
button.pj-cast-tile:hover .pj-cast-av { border-color: rgba(116, 173, 155, .55); }
button.pj-cast-tile:hover .pj-cast-av img { transform: scale(1.04); }
.pj-cast-tile.plain .pj-cast-av { border-style: dashed; }

.pj-summary { display: flex; flex-direction: column; gap: 4px; }
.pj-sum-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.pj-sum-stats > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pj-sum-stats b { font: 500 24px/1.05 var(--display); color: var(--pearl); }
.pj-sum-lead { font-size: 19px; line-height: 1.4; color: rgba(231, 237, 233, .85); margin: 4px 0 6px; }
.pj-sum-block { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.pj-summary .pj-block-brief { margin: 10px -18px 0; padding: 16px 18px; border-radius: 0; }

.pj-block-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pj-block-tile { position: relative; isolation: isolate; display: flex; gap: 14px; align-items: flex-start; min-height: 132px; padding: 16px; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color var(--t), transform var(--t); }
.pj-block-tile:hover { color: var(--ink); border-color: rgba(201, 160, 99, .45); transform: translateY(-2px); }
.pj-block-tile-bg { position: absolute; inset: 0; z-index: -1; }
.pj-block-tile-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; transition: transform .6s var(--ease), opacity .4s; }
.pj-block-tile-bg img[data-loading] { opacity: 0; }
.pj-block-tile-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 16, 27, .95) 30%, rgba(6, 16, 27, .5)); }
.pj-block-tile:hover .pj-block-tile-bg img { transform: scale(1.04); }
.pj-block-tile-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pj-block-tile-copy .eyebrow { color: var(--bronze); }
.pj-block-tile-copy h3 { font: 500 16px/1.25 var(--display); letter-spacing: .06em; }

.pj-dock { position: sticky; bottom: 0; z-index: 9; margin: 26px -28px 0; padding: 18px 28px 18px; background: linear-gradient(180deg, rgba(2, 5, 9, 0), rgba(2, 5, 9, .92) 34%, var(--bg)); }
.pj-dock:empty { display: none; }
/* A composer opened taller than most of the window stops sticking (project.js adds .loose), so the workspace
   above it stays readable; it then sits at the end of the page. */
.pj-dock.loose { position: relative; }

/* --pj-dock-h is the sticky dock's live height (0 when there is none or it is loose), set by project.js.
   The side column (shot sheet, notes, scene continuity) sticks below the top and stops above the dock, scrolling
   inside itself when it is taller than that space; focused controls scroll clear of the dock. */
.pj-ws { --pj-dock-h: 0px; }
.pj-ws-grid :is(a[href], button, input, select, textarea, [tabindex]) { scroll-margin-bottom: calc(var(--pj-dock-h) + 16px); }
@media (min-width: 1101px) {
  .pj-ws-side {
    position: sticky; top: 16px; max-height: calc(100vh - var(--pj-dock-h) - 32px); max-height: calc(100dvh - var(--pj-dock-h) - 32px);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
    /* room for card shadows and focus rings inside the scroll box */
    margin: -6px; padding: 6px;
  }
}

.pj-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.pj-details .span2 { grid-column: 1 / -1; }
.pj-tagcheck { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; }
.pj-tagcheck b { font: 500 11px var(--mono); color: var(--bronze-hi); }

.pj-loading { display: flex; flex-direction: column; gap: 14px; padding: 20px 0; }
.pj-loading-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pj-loading-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

/* ---------- brief ---------- */
.pj-brief { max-width: 1120px; margin: 0 auto; padding: 4px 0 24px; }
.pj-brief-hero { padding: 26px 0 6px; }
.pj-brief-hero .eyebrow { color: var(--bronze); }
.pj-brief-title { margin-top: 8px; font: 500 32px/1.1 var(--display); letter-spacing: .08em; }
.pj-brief-lede { margin-top: 8px; font-size: 20px; color: var(--muted); }
.pj-brief-sec { margin-top: 28px; min-width: 0; }
.pj-brief-sec-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pj-brief-sec-head > div:first-child { flex: 1; min-width: 0; }
.pj-brief-sec-head .eyebrow { margin-bottom: 5px; }
.pj-brief-sec-head h2 { font-size: 17px; }
.pj-brief-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pj-brief-input { resize: none; overflow: hidden; line-height: 1.55; }
.pj-brief-input[readonly] { background: transparent; border-color: var(--line); cursor: default; }
.pj-brief-input[readonly]:focus { box-shadow: none; border-color: var(--line); }
.pj-brief-tone { min-height: 0; padding: 8px 0 8px 22px; border: 0; border-left: 2px solid var(--bronze); border-radius: 0; background: transparent; font: italic 400 23px/1.45 var(--serif); color: var(--pearl); }
.pj-brief-tone:focus { box-shadow: none; background: rgba(201, 160, 99, .04); }
.pj-brief-tone[readonly] { border-color: var(--bronze); }
.pj-brief-count { align-self: flex-end; font-size: 11px; }
.pj-brief-count.warn { color: var(--warn); }
.pj-brief-sent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pj-brief-sent > .pj-brief-sec { padding: 18px 18px 16px; border-radius: var(--r-xl); border: 1px solid rgba(201, 160, 99, .26); background: linear-gradient(180deg, rgba(201, 160, 99, .06), rgba(6, 16, 27, .5)); }
.pj-brief-sent .pj-brief-input { min-height: 110px; }
.pj-brief-sent .row.between { font-size: 12px; }
.pj-brief-preview { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(2, 5, 9, .72); font: 12.5px/1.6 var(--mono); }
.pj-brief-preview p { white-space: pre-wrap; word-break: break-word; padding-left: 14px; border-left: 2px solid transparent; }
.pj-pv-label { display: block; margin-bottom: 2px; font: 500 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.pj-pv-prefix, .pj-pv-cons { color: var(--bronze-hi); border-left-color: var(--bronze) !important; }
.pj-pv-body { color: var(--pearl); border-left-color: var(--line-2) !important; }
.pj-pv-tag { padding: 0 4px; border-radius: 5px; background: rgba(116, 173, 155, .14); color: var(--verdigris); }
.pj-pv-dir { color: var(--faint); }
.pj-pv-missing { color: var(--faint); border-left: 2px dashed var(--line-2) !important; font-style: italic; }
.pj-brief-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pj-brief-list { padding-left: 40px; line-height: 1.75; min-height: 150px; }
.pj-brief-mark { position: absolute; left: 11px; top: 11px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; pointer-events: none; }
.pj-brief-mark.ok { color: var(--ok); background: rgba(143, 224, 181, .12); }
.pj-brief-mark.no { color: #f08a82; background: rgba(196, 72, 63, .14); }
.pj-brief-rules { margin-top: 28px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.pj-brief-rules > .row { color: var(--bronze); }
.pj-brief-rules p { color: #cfdbe0; max-width: 820px; }
.pj-rule-chips .chip { height: auto; min-height: 28px; padding: 5px 11px; white-space: normal; text-align: left; }
.pj-brief-bar { position: sticky; bottom: 14px; z-index: 8; margin-top: 28px; display: flex; align-items: center; gap: 10px; padding: 11px 14px 11px 18px;
  border-radius: var(--r-lg); border: 1px solid var(--line-2); background: rgba(6, 16, 27, .94); backdrop-filter: blur(16px); box-shadow: var(--shadow); transition: border-color var(--t); }
.pj-brief-bar { flex-wrap: wrap; }
.pj-brief-bar.view { color: var(--muted); gap: 8px; }
.pj-brief-clash { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 2px; }
.pj-brief-clash[hidden] { display: none; }
.pj-brief-clash-text { flex: 1 1 260px; min-width: 0; }
.pj-brief.dirty .pj-brief-bar { border-color: rgba(201, 160, 99, .55); }
.pj-brief-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.pj-brief-state .spinner { width: 13px; height: 13px; }
.pj-dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 10px var(--bronze); }

/* ---------- responsive ---------- */
@media (max-width: 1400px) {
  .pj-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pj-ws-grid { grid-template-columns: minmax(0, 1fr) 350px; }
  .pj-ws-grid.wide { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1100px) {
  .pj, .pj.nav-off { grid-template-columns: minmax(0, 1fr); }
  /* Closed, the drawer is also visibility:hidden (after the slide), so its filter, chips and hundreds of tree
     rows leave the tab order and the accessibility tree. */
  .pj-nav, .pj.nav-off .pj-nav { display: block; position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: min(320px, 88vw); z-index: 41;
    transform: translateX(-104%); visibility: hidden; transition: transform .26s var(--ease), visibility 0s linear .26s; box-shadow: 30px 0 60px rgba(0, 0, 0, .5); }
  .pj.nav-open .pj-nav { transform: none; visibility: visible; transition: transform .26s var(--ease), visibility 0s; }
  .pj.nav-open .pj-nav-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(1, 3, 6, .6); animation: fade .15s ease both; }
  .pj-ws-grid, .pj-ws-grid.wide { grid-template-columns: minmax(0, 1fr); }
  .pj-band-stats { flex-basis: 190px; }
}
@media (max-width: 760px) {
  /* The shell keeps a 60px icon rail on the left (fixed, above this drawer): open the drawer beside it. */
  .pj-nav, .pj.nav-off .pj-nav { left: 60px; width: min(320px, calc(100vw - 76px)); }
  .pj.nav-open .pj-nav-scrim { left: 60px; }
}
@media (max-width: 900px) {
  .pj-page { padding: 0 16px 32px; }
  .pj-head { padding: 16px; gap: 12px; }
  .pj-head-progress { display: none; }
  .pj-toolbar { margin: 8px -16px 6px; padding: 10px 16px; }
  .pj-toolbar .input.search { width: 100%; }
  .pj-viewopts { width: 100%; justify-content: space-between; }
  .pj-seg-label { display: none; }
  .pj-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-ep-hero { min-height: 170px; }
  .pj-ep-copy { padding: 22px 18px 58px; }
  .pj-ep-title { font-size: 30px; }
  .pj-band-head { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .pj-band-title { flex: 1 1 60%; }
  .pj-band-stats { width: 100%; flex: 1 1 100%; order: 5; padding-left: 0; }
  .pj-letter { width: 42px; height: 42px; font-size: 20px; }
  .pj-scene { padding: 14px; }
  .pj-scene-head { grid-template-columns: 40px minmax(0, 1fr); }
  .pj-scene-stats { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; min-width: 0; }
  .pj-shots { --card-min: 150px; gap: 10px; }
  .pj-block-brief { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .pj-loose { padding: 4px 14px 14px; }
  .pj-dock { margin: 20px -16px 0; padding: 14px 16px; }
  .pj-ws-title h1 { font-size: 24px; }
  .pj-sum-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pj-brief-sent, .pj-brief-cols, .pj-details { grid-template-columns: minmax(0, 1fr); }
  .pj-brief-title { font-size: 25px; }
  .pj-brief-tone { font-size: 19px; }
  .d-list .pj-card { grid-template-columns: 92px minmax(0, 1fr); }
  .d-list .pj-card-meta { width: auto; }
  .d-list .pj-card-body { flex-direction: column; align-items: flex-start; gap: 3px; }
  .pj-loading-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pj-tabs { width: 100%; }
  .pj-tab { flex: 1; justify-content: center; padding: 0 8px; }
  .pj-ws-actions { width: 100%; }
  .pj-status-seg { width: 100%; overflow-x: auto; }
  .pj-status-seg > button { padding: 0 8px; }
}
