/* Dragon | DAW — Episode Blueprint v0.7.8. Scoped to Film Delivery. */
#filmPanel .dgbp{--dgbp-border:#2d4166;--dgbp-muted:#a9bddb;--dgbp-dark:#101d34;margin:12px 0 30px;padding:16px;border:1px solid #344f7c;background:linear-gradient(155deg,#162845,#0d192d 78%);border-radius:14px;color:#eaf0ff;box-shadow:0 12px 30px #01081933}
#filmPanel .dgbp *{box-sizing:border-box}
#filmPanel .dgbp-header{display:flex;gap:18px;flex-wrap:wrap;justify-content:space-between;align-items:start}
#filmPanel .dgbp-header small{color:#93aad4;font-size:10px;letter-spacing:.12em;font-weight:800}
#filmPanel .dgbp-header h3{font-size:21px;margin:5px 0 4px;color:#fff}
#filmPanel .dgbp-header p{font-size:12px;color:var(--dgbp-muted);margin:0;max-width:58ch;line-height:1.5}
#filmPanel .dgbp-episode{font-size:12px;color:#f0d89f;border:1px solid #685638;background:#322d23;padding:7px 10px;border-radius:9px}
#filmPanel .dgbp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:17px 0 12px}
#filmPanel .dgbp-stats>div{border:1px solid var(--dgbp-border);padding:10px;border-radius:9px;background:#111f37;min-width:0}
#filmPanel .dgbp-stats small{display:block;font-size:10px;color:#9db7dd;margin-bottom:6px;text-transform:uppercase;letter-spacing:.05em}
#filmPanel .dgbp-stats b{display:block;font-size:18px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#filmPanel .dgbp-over{color:#ffa69e}#filmPanel .dgbp-under{color:#b4e4bf}
#filmPanel .dgbp-bar{display:flex;overflow:hidden;width:100%;height:18px;background:#27344c;border-radius:8px;border:1px solid #425779}
#filmPanel .dgbp-bar button{padding:0;border:0;min-width:0;margin:0;cursor:pointer;border-right:1px solid #17243a66;transition:filter .14s,box-shadow .14s}
#filmPanel .dgbp-bar button:hover,#filmPanel .dgbp-bar button:focus-visible{filter:brightness(1.35);box-shadow:inset 0 0 0 2px #fff7}
#filmPanel .dgbp-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:9px;font-size:10px;color:#c6d5ee}
#filmPanel .dgbp-legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-width: 5em;
}
#filmPanel .dgbp-legend i{width:9px;height:9px;border-radius:3px;display:inline-block}
#filmPanel .dgbp-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin:21px 0 10px}
#filmPanel .dgbp-toolbar>strong{font-size:14px}#filmPanel .dgbp-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}
#filmPanel .dgbp button{border-radius:7px;cursor:pointer;background:#273d61;color:#eef5ff;border:1px solid #456189;padding:7px 10px;min-height:30px}
#filmPanel .dgbp button:hover:not(:disabled){background:#36577f;border-color:#789fcd}
#filmPanel .dgbp button:disabled{opacity:.36;cursor:not-allowed}
#filmPanel .dgbp button.dgbp-primary{background:#355cac;border-color:#658bcb;color:white;font-weight:700}
#filmPanel .dgbp-items{display:grid;gap:8px}
#filmPanel .dgbp-item{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:11px;align-items:start;padding:11px;background:#13233b;border:1px solid var(--dgbp-border);border-left:4px solid var(--dgbp-section);border-radius:10px}
#filmPanel .dgbp-number{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;color:#b3c6e4}
#filmPanel .dgbp-item-main{display:grid;gap:5px;min-width:0}
#filmPanel .dgbp-item-name{display:flex;gap:7px;flex-wrap:wrap;align-items:baseline}
#filmPanel .dgbp-item-name strong{color:white;font-size:13px}
#filmPanel .dgbp-item-name span{font-size:10px;text-transform:uppercase;color:#c5d5ec;letter-spacing:.05em}
#filmPanel .dgbp-item p{font-size:12px;color:#b9ccec;margin:0;line-height:1.4}
#filmPanel .dgbp-item small{font-size:11px;color:#94afdb;overflow-wrap:anywhere}
#filmPanel .dgbp-item .dgbp-seq-tag{color:#f3d9a7}
#filmPanel .dgbp-item-right{display:grid;justify-items:end;gap:5px}
#filmPanel .dgbp-item-right>b{font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap}
#filmPanel .dgbp-item-right small{font-size:11px;color:#bdcce3}
#filmPanel .dgbp-actions{display:flex;flex-wrap:wrap;justify-content:end;gap:4px;margin-top:4px}
#filmPanel .dgbp-actions button{padding:5px 7px;font-size:11px;min-height:26px}
#filmPanel .dgbp-zero{background:#1a2b43;border:1px dashed #49658c;border-radius:9px;color:#b0c6e5;font-size:12px;padding:14px}
#filmPanel .dgbp-editor{border:1px solid var(--dgbp-border);background:#102037;border-radius:10px;margin-top:12px;padding:0 12px 12px}
#filmPanel .dgbp-editor>summary{cursor:pointer;padding:13px 0;font-size:13px;font-weight:700;color:#f2f5fc}
#filmPanel .dgbp-editor>summary:hover{color:#a2c7ff}
#filmPanel .dgbp-editor>p{font-size:12px;color:#aec3df;line-height:1.45}
#filmPanel .dgbp-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin-top:8px}
#filmPanel .dgbp-form label,#filmPanel .dgbp-quick label{display:flex;flex-direction:column;gap:5px;color:#c5d7f4;font-size:11px;min-width:0}
#filmPanel .dgbp-form input,#filmPanel .dgbp-form select,#filmPanel .dgbp-form textarea,#filmPanel .dgbp-quick select{background:#0a162a;border:1px solid #43577a;border-radius:6px;padding:9px;color:white;font:inherit;font-size:12px;width:100%;min-width:0}
#filmPanel .dgbp-form textarea{resize:vertical;min-height:70px}
#filmPanel .dgbp-form .dgbp-full,#filmPanel .dgbp-form-actions{grid-column:1/-1}
#filmPanel .dgbp-form-actions{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0}
#filmPanel .dgbp-sequences{display:grid;gap:5px;margin:10px 0}
#filmPanel .dgbp-sequences>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center;background:#1a2e4a;border-radius:7px;padding:8px}
#filmPanel .dgbp-sequences strong{font-size:12px}#filmPanel .dgbp-sequences small{grid-column:1;color:#a9c3e9;font-size:11px}
#filmPanel .dgbp-sequences button{grid-column:2;grid-row:1/3}
#filmPanel .dgbp-quick{display:flex;flex-wrap:wrap;gap:10px;align-items:end;border-top:1px solid var(--dgbp-border);padding-top:11px}
#filmPanel .dgbp-quick label{flex:1 1 260px}#filmPanel .dgbp-quick button{margin-bottom:0}
#filmPanel .dgbp-foot{font-size:11px;color:#94a8cb;line-height:1.5;margin:16px 0 0}
@media(max-width:800px){#filmPanel .dgbp-item{grid-template-columns:28px 1fr}#filmPanel .dgbp-item-right{grid-column:2;display:flex;align-items:center;flex-wrap:wrap;gap:9px;justify-content:space-between;width:100%}#filmPanel .dgbp-item-right .dgbp-actions{margin-left:auto}}
@media(max-width:520px){#filmPanel .dgbp{padding:11px}#filmPanel .dgbp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#filmPanel .dgbp-form{grid-template-columns:1fr}#filmPanel .dgbp-episode{font-size:10px}#filmPanel .dgbp-item-right .dgbp-actions{justify-content:start}}

/* v0.7.9.7: source availability cue in the EXISTING duration bar; no extra controls */
#filmPanel .dgbp-bar button[data-source-linked="1"]{position:relative;box-shadow:inset 0 -3px 0 #f0ffe9}
#filmPanel .dgbp-bar button[data-source-linked="1"]:after{content:"";position:absolute;top:2px;right:3px;width:5px;height:5px;background:#f4ffef;border-radius:50%;pointer-events:none}
