/* Bounded Occurrences integration. Shared DA primitives are defined with DA.5/6. */
.shot-context-menu:popover-open{position:fixed;inset:auto;margin:0;display:flex;flex-direction:column;gap:var(--space-micro);min-width:214px;padding:var(--space-related);z-index:1200}
.shot-context-menu button{position:relative;display:flex;align-items:center;width:100%;min-height:var(--control-height);text-align:left;padding:var(--space-micro) var(--inset-compact);font-family:inherit;font-size:9px;line-height:1.2;letter-spacing:var(--tracking-control);white-space:nowrap;border:1px solid transparent;border-radius:var(--radius-control);color:var(--text-secondary);cursor:pointer}
.shot-context-menu hr{width:100%;margin:var(--space-micro) 0;border:0;height:1px;background:var(--light-hairline)}
.shot-context-menu .canonical-control:not(:disabled):is(:hover,:focus-visible){color:var(--accent)!important;--control-edge-ink:var(--accent)}
.shot-context-menu .destructive:not(:disabled):is(:hover,:focus-visible){color:var(--error)!important;--control-edge-ink:var(--error)}
.shot-context-menu button:focus-visible{outline:1px solid currentColor;outline-offset:-2px}
.special-shot .special-occurrences{display:block;font-size:9px;font-weight:400;letter-spacing:.12em;color:var(--text-muted);margin-top:3px}
/* Hidden cells must not create implicit tracks against the visible-column template. */
.shotlist.view-list:not(.special-shotlist)>:is(.shot-list-row,.shot-list-table-head)>[style*="display:none"]{display:none!important}
/* The row owns the rail. Native row height supplies both ends; scroll offset keeps it
   alongside sticky SHOT without measuring a cell or caching a pre-toggle height. */
.shotlist.view-list:not(.special-shotlist)>.shot-list-row>.shot-list-id::before{display:none!important}
.shot-row-rail{position:absolute;inset:0 auto 0 var(--shot-scroll-left,0px);width:2px;z-index:4;pointer-events:none;background:var(--border-subtle);font-style:normal}
.has-coverage>.shot-row-rail{background:var(--coverage-color)}
.shot-list-row.family-sibling-hover>.shot-row-rail{width:50%;border-left:2px solid rgb(from var(--family-hover-ink) r g b / .6);background:linear-gradient(90deg,rgb(from var(--family-hover-ink) r g b / .13),rgb(from var(--family-hover-ink) r g b / .065) 20px,transparent);box-sizing:border-box}
.shot-list-row.has-coverage.family-sibling-hover>.shot-row-rail{border-left-color:var(--coverage-color)}
.storyboard-shot.family-sibling-hover::before{content:'';position:absolute;inset:0;z-index:1;border-radius:inherit;pointer-events:none;box-sizing:border-box;border-left:2px solid rgb(from var(--family-hover-ink) r g b / .6);background:linear-gradient(90deg,rgb(from var(--family-hover-ink) r g b / .13),rgb(from var(--family-hover-ink) r g b / .065) 20px,transparent) left top/50% 100% no-repeat;mask-image:none;-webkit-mask-image:none}
.storyboard-shot.has-coverage.family-sibling-hover::before{border-left-color:var(--coverage-color)}
/* A dedicated overlay avoids collisions with row borders and selected-state light. */
.shot-insertion-indicator{display:none;position:absolute;left:0;right:0;height:2px;z-index:30;pointer-events:none;background:var(--accent);box-shadow:0 0 4px rgb(from var(--accent) r g b / .3)}
.shot-insertion-indicator::before{content:'';position:absolute;left:0;top:-2px;width:7px;height:6px;border-radius:1px;background:var(--accent);box-shadow:3px 0 7px rgb(from var(--accent) r g b / .5)}
.shot-card.drop-before>.shot-insertion-indicator{display:block;top:0}
.shot-card.drop-after>.shot-insertion-indicator{display:block;bottom:0}
.shotlist .shot-card:is(.drop-before,.drop-after){box-shadow:none!important}
/* Restore the original DA.5 full-width ADD SHOT row after the shell extraction. */
.shotlist-shell+.add-shot-card{min-height:48px;display:flex;align-items:center;justify-content:center;font-size:9px;letter-spacing:.12em;padding:2px 6px;line-height:normal}

/* Paint-only overlays are not table cells: never inherit their right divider. */
.shotlist.view-list>.shot-list-row>:is(.shot-row-rail,.shot-insertion-indicator){border-right:0!important}
.shotlist.view-list>.shot-list-row.family-sibling-hover:not(.selected):hover{background:var(--bg-base)!important}
.storyboard-shot.family-sibling-hover:not(.selected):hover{background:transparent!important}
/* Override the legacy high-specificity drop-after shadow: one indicator only. */
.shotlist.view-list>.shot-list-row:is(.drop-before,.drop-after),.shotlist .storyboard-shot:is(.drop-before,.drop-after){box-shadow:none!important}
