/* DRAGON | PRODUCTION 0.7.18 · full-width timing + visual coverage */
#filmPanel .dgbp-bar:has(.dg18-slot){width:100%;height:74px!important;display:flex;align-items:stretch;flex-wrap:nowrap;overflow:hidden;border-radius:9px;background:#19283f;}
#filmPanel .dgbp-bar button.dg18-slot{position:relative;display:flex;flex-direction:column;justify-content:stretch;height:100%;box-sizing:border-box;overflow:hidden;flex-shrink:0!important;min-width:0!important;padding:0!important;isolation:isolate;background-image:none!important;background-size:auto!important;}
#filmPanel .dgbp-bar .dg18-lane{position:relative;display:flex;width:100%;height:50%;min-height:0;overflow:hidden;box-sizing:border-box;}
#filmPanel .dgbp-bar .dg18-serial{border-bottom:1px solid #0c1a2b77;}
#filmPanel .dgbp-bar .dg18-parallel{background:repeating-linear-gradient(135deg,rgba(0,0,0,.10) 0 7px,rgba(255,255,255,.025) 7px 14px)}
#filmPanel .dgbp-bar .dg18-shot{flex:none;display:block;height:100%;min-width:0;border-right:1px solid #0d1a2bc0;box-sizing:border-box;background-color:#182944;background-size:cover;background-position:center;}
#filmPanel .dgbp-bar .dg18-lane.dg18-parallel .dg18-shot{outline:1px solid rgba(125,195,228,.65);outline-offset:-2px;}
#filmPanel .dgbp-bar .dg18-unmarked{width:100%;height:100%;display:block;background:repeating-linear-gradient(-45deg,transparent 0 6px,#ffffff15 6px 9px)}
#filmPanel .dgbp-bar .dg18-assigned-dot{position:absolute;left:4px;top:4px;width:8px;height:8px;border-radius:100%;background:#6ff0bf;border:1px solid #06392c;box-shadow:0 0 0 2px #14243996;pointer-events:none;}
#filmPanel .dgbp-bar button.dg18-over{box-shadow:inset 0 0 0 2px #e49a5a!important;}
#filmPanel .dgbp-bar button.dg18-over .dg18-over-badge{position:absolute;right:1px;bottom:1px;max-width:100%;font-size:10px;font-weight:700;color:#fff;background:#933e27;padding:2px;line-height:1.1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;}
#filmPanel .dgbp-bar .dg18-free{display:block;background:repeating-linear-gradient(-45deg,rgba(148,168,196,.12) 0 7px,rgba(148,168,196,.04) 7px 13px);min-width:0;box-sizing:border-box;}
#filmPanel .dg18-summary{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:5px 15px;font-size:12px;color:#bcd0ee;margin:10px 0 5px}
#filmPanel .dg18-summary strong{color:#fff;font-size:13px}
#filmPanel .dg18-summary small{opacity:.75}
#filmPanel .dg18-legend{display:flex;gap:8px 17px;flex-wrap:wrap;align-items:center;margin:7px 0 12px;font-size:10px;color:#b7c9e1}
#filmPanel .dg18-legend span{display:inline-flex;align-items:center;gap:4px}
#filmPanel .dg18-legend i{width:11px;height:11px;border-radius:2px;display:inline-block}
#filmPanel .dg18-legend-plan{background:#566a8e}
#filmPanel .dg18-legend-shot{background:#7fa9b5}
#filmPanel .dg18-legend-parallel{background:#2d4e78;border:1px solid #81c3e9}
#filmPanel .dg18-legend-over{background:#d78053}
#filmPanel .dg18-legend small{flex-basis:100%;font-size:10px;color:#a8bbd6}
#filmPanel .dg18-budget-note{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:#a8cbe0;margin:4px 0}
#filmPanel .dg18-budget-note .dg18-warning{color:#ffbe96}
#filmPanel .dg18-budget-note button{cursor:pointer;font-size:11px;border:1px solid #976b50;color:#ffcca4;border-radius:4px;background:rgba(110,52,20,.20);padding:2px 7px}
#filmPanel .dgbp-bar button.dg18-slot:hover,#filmPanel .dgbp-bar button.dg18-slot:focus-visible{box-shadow:inset 0 0 0 2px #eee!important;filter:brightness(1.12)}
@media(max-width:580px){#filmPanel .dgbp-bar:has(.dg18-slot){height:60px!important;}#filmPanel .dg18-summary,#filmPanel .dg18-legend{font-size:10px}}
@media(prefers-reduced-motion:reduce){#filmPanel .dgbp-bar button.dg18-slot{transition:none!important}}

/* 0.7.18.1: integrated legend, actual poster images, explicit missing poster state */
#filmPanel .dg18-summary {background:#142740;border:1px solid #3f577b;border-bottom:none;padding:11px 13px 9px;margin:12px 0 0;border-radius:10px 10px 0 0;align-items:baseline;justify-content:flex-start;}
#filmPanel .dg18-summary .dg18-metrics{flex:1;min-width:180px;}
#filmPanel .dg18-poster-count{font-weight:650;color:#d3e7fb;font-variant-numeric:tabular-nums;white-space:nowrap;}
#filmPanel .dgbp-bar:has(.dg18-slot){border-radius:0!important;border-color:#3f577b;border-width:1px;height:84px!important;}
#filmPanel .dg18-legend{display:block;background:#142740;border:1px solid #3f577b;border-top:none;padding:10px 13px 11px;margin:0 0 14px;border-radius:0 0 10px 10px;color:#cbd9ef;}
#filmPanel .dg18-legend-items{display:flex;align-items:center;gap:8px 17px;flex-wrap:wrap;}
#filmPanel .dg18-legend-items span{display:inline-flex;align-items:center;gap:5px;}
#filmPanel .dg18-legend small{display:block;margin-top:8px;font-size:11px;line-height:1.5;}
#filmPanel .dgbp-bar .dg18-shot{position:relative;background-color:#335c79;overflow:hidden;}
#filmPanel .dgbp-bar .dg18-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;max-width:none;opacity:.97;pointer-events:none;}
#filmPanel .dgbp-bar .dg18-shot.dg18-no-poster{background:repeating-linear-gradient(135deg,#35506d 0 8px,#28415d 8px 15px);}
#filmPanel .dgbp-bar .dg18-shot.dg18-no-poster:after{content:' ';position:absolute;inset:0;border:1px dotted #a7c1da66;pointer-events:none;}
#filmPanel .dg18-legend .dg18-legend-dot{background:#6ff0bf;border:1px solid #06392c;border-radius:50%;width:10px;height:10px;}
#filmPanel .dg18-legend .dg18-legend-missing{background:repeating-linear-gradient(135deg,#35506d 0 3px,#28415d 3px 6px);border:1px dotted #bed7ee;}
#filmPanel .dg18-legend .dg18-legend-shot{background:#5e96a8;background-image:linear-gradient(90deg,#537e96,#80aac3);}
#filmPanel .dgbp-bar .dg18-shot img:not([src]){display:none;}
@media(max-width:580px){#filmPanel .dgbp-bar:has(.dg18-slot){height:72px!important;}#filmPanel .dg18-summary{padding:9px 10px;}#filmPanel .dg18-legend{padding:8px 10px;}}

/* 0.7.18.2: map actual episode sections to their own bar slots; source-reference inventory */
#filmPanel .dgbp-bar:has(.dg18-slot){height:fit-content!important;min-height:84px}
.dg18-lane.dg18-parallel {
	position: absolute !important;
	z-index: -1;
}
#filmPanel .dgbp-bar .dg18-lane {
	height: 99% !important;
}
#filmPanel .dgbp-bar button.dg18-slot {
	height: 7em !important;
	min-height: 84px;
}
#filmPanel .dgbp-bar .dg18-lane{min-height:36px}
#filmPanel .dgbp-bar .dg182-slot-ordinal{position:absolute;left:3px;bottom:3px;border-radius:3px;background:#08172ecb;color:#fff;padding:1px 3px;line-height:1.15;font-size:10px;font-weight:700;pointer-events:none}
#filmPanel .dgbp-bar .dg18-assigned-dot{left:auto;right:3px;top:3px}
#filmPanel .dg182-legend-slot{border-bottom:1px solid #405773;margin-bottom:9px;padding-bottom:10px}
#filmPanel .dg182-legend-slot:before{content:'EPISODE SECTIONS · MATCHING BAR NUMBERS';font-size:10px;font-weight:650;letter-spacing:.04em;display:block;color:#bcd5f0;margin-bottom:7px}
#filmPanel .dg182-legend-slot .dgbp-legend{display:flex;gap:6px;flex-wrap:wrap;margin:0}
#filmPanel .dg182-section-key{display:inline-flex;gap:5px;align-items:center;border:1px solid #4b637c;border-radius:7px;padding:6px 8px;font-size:11px;min-height:30px;background:#1d344e;color:#dfedff;cursor:pointer;max-width:100%;text-align:left}
#filmPanel .dg182-section-key i{display:inline-block;width:10px;height:10px;min-width:10px;border-radius:2px}
#filmPanel .dg182-section-key b{font-size:10px;color:#fff}
#filmPanel .dg182-section-key span{white-space:normal;overflow-wrap:anywhere}
#filmPanel .dg182-section-key small{color:#a7bdd5;font-variant-numeric:tabular-nums;font-size:10px}
#filmPanel .dg182-section-key em{font-size:10px;color:#ffcba8;font-style:normal}
#filmPanel .dg182-section-key:hover,#filmPanel .dg182-section-key:focus-visible,#filmPanel .dg182-section-key.dg182-highlight{border-color:#c7eaff;background:#335c7e;outline:1px solid #7bc9f2}
#filmPanel .dgbp-bar button.dg18-slot.dg182-highlight{box-shadow:inset 0 0 0 3px #edfaff!important;filter:brightness(1.23)}
#filmPanel .dg182-source-references{padding:10px 4px 16px;color:#d8e6f6}
#filmPanel .dg182-ref-head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;margin-bottom:12px}
#filmPanel .dg182-ref-head h3{margin:0 0 5px;font-size:18px}
#filmPanel .dg182-ref-head p,#filmPanel .dg182-note{font-size:12px;line-height:1.5;color:#adc1d9;margin:0}
#filmPanel .dg182-ref-head>div:first-child{flex:1;min-width:210px}
#filmPanel .dg182-ref-totals{padding:6px 8px;background:#173552;border-radius:6px;font-size:11px}
#filmPanel .dg182-ref-search{display:block;font-size:12px;margin:8px 0 14px}
#filmPanel .dg182-ref-search input{display:block;width:100%;box-sizing:border-box;background:#11263b;border:1px solid #54738b;color:#fff;border-radius:7px;padding:10px;font-size:13px;margin-top:5px}
#filmPanel .dg182-ref-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:10px}
#filmPanel .dg182-ref-group{border:1px solid #405b77;background:#142a43;border-radius:10px;overflow:hidden}
#filmPanel .dg182-ref-group>header{display:flex;align-items:flex-start;gap:8px;justify-content:space-between;padding:12px;border-bottom:1px solid #35516b}
#filmPanel .dg182-ref-group>header div{display:grid;gap:5px}
#filmPanel .dg182-ref-group>header small{color:#a8c4dc;font-size:11px}
#filmPanel .dg182-ref-group>header strong{font-size:14px}
#filmPanel .dg182-ref-group button{font-size:11px;border-radius:5px;background:#294f71;color:white;border:1px solid #6b94b8;padding:5px;cursor:pointer}
#filmPanel .dg182-ref-group ol,#filmPanel .dg182-saved ol{list-style:none;margin:0;padding:7px}
#filmPanel .dg182-ref-shot,#filmPanel .dg182-saved li{display:flex;gap:10px;align-items:center;margin:5px;padding:7px;background:#10253c;border-radius:7px;min-width:0}
#filmPanel .dg182-ref-poster{width:74px;min-width:74px;aspect-ratio:16/9;display:grid;place-items:center;overflow:hidden;border-radius:4px;background:#274362}
#filmPanel .dg182-ref-poster img{width:100%;height:100%;object-fit:cover}
#filmPanel .dg182-no-thumbnail{font-size:10px;text-align:center;color:#afc4d9}
#filmPanel .dg182-ref-shot>div:last-child,#filmPanel .dg182-saved li>div:last-child{min-width:0;display:grid;gap:3px}
#filmPanel .dg182-ref-shot strong,#filmPanel .dg182-saved strong{font-size:12px}
#filmPanel .dg182-ref-shot small,#filmPanel .dg182-saved small{font-size:11px;color:#bacfe4}
#filmPanel .dg182-ref-shot code,#filmPanel .dg182-saved code{font-size:10px;overflow-wrap:anywhere;color:#92c8ef}
#filmPanel .dg182-saved{border:1px solid #405b77;border-radius:9px;margin:12px 0;padding:9px;background:#12273f}
#filmPanel .dg182-saved summary{cursor:pointer;font-size:12px;font-weight:700}
#filmPanel .dg182-empty{font-size:12px;color:#a3b9d3;padding:10px;margin:0}
#filmPanel .dg182-note{margin:9px 0}
#filmPanel .dg182-source-references [hidden]{display:none!important}
@media(max-width:580px){#filmPanel .dgbp-bar button.dg18-slot{min-height:72px}#filmPanel .dg182-ref-groups{grid-template-columns:1fr}}
