/* Directional animation collections keep the library compact while preserving each editable strip. */
.asset-library .asset-direction-bundle {
  position: relative;
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(45, 91, 65, .2);
  border-radius: 11px;
  background: #f7fbf3;
  box-shadow: 0 1px 2px rgba(28, 59, 42, .05);
}
.asset-library .asset-bundle-cover {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  align-items: center;
  width: 100%;
  min-height: 84px !important;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-950, #14211e);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, transform .12s ease;
}
.asset-bundle-cover:hover { background: #edf6e9; }
.asset-bundle-cover:active { transform: scale(.99); }
.asset-bundle-cover:focus-visible { outline: 3px solid rgba(72, 129, 87, .35); outline-offset: -3px; }
.asset-library .asset-bundle-cover img {
  display: block;
  width: 68px !important;
  height: 68px !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  object-fit: contain;
  image-rendering: pixelated;
  background: repeating-conic-gradient(#e4ebe2 0 25%, #f9fbf8 0 50%) 50% / 12px 12px;
  box-shadow: inset 0 0 0 1px rgba(25, 59, 43, .09);
}
.asset-bundle-copy { min-width: 0; padding: 0 10px; }
.asset-bundle-copy strong, .asset-bundle-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-bundle-copy strong { font-size: 13px; font-weight: 700; }
.asset-bundle-copy small { margin-top: 4px; color: var(--muted, #65736d); font-size: 11px; }
.asset-bundle-toggle { display: grid; place-items: center; width: 26px; height: 26px; color: #46785a; font-size: 19px; transition: transform .18s cubic-bezier(.23, 1, .32, 1); }
.asset-direction-bundle.is-expanded .asset-bundle-toggle { transform: rotate(180deg); }
.asset-library .asset-bundle-members { display: none !important; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 8px; padding: 0 8px 8px; border-top: 1px solid rgba(45, 91, 65, .12); }
.asset-library .asset-direction-bundle.is-expanded .asset-bundle-members { display: grid !important; padding-top: 8px; }
.asset-library .asset-bundle-member { min-width: 0; padding: 7px; cursor: pointer; }
.asset-library .asset-bundle-member img { padding: 5px; }
.asset-library .asset-bundle-member strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.asset-context-menu { position: fixed; z-index: 10000; min-width: 108px; padding: 4px; border: 1px solid rgba(40, 81, 58, .2); border-radius: 8px; background: #fffef9; box-shadow: 0 10px 25px rgba(20, 46, 33, .18); }
.asset-context-menu button { width: 100%; min-height: 32px; padding: 0 10px; border: 0; border-radius: 5px; color: #244d39; background: transparent; text-align: left; font-size: 12px; cursor: pointer; }
.asset-context-menu button:hover, .asset-context-menu button:focus-visible { background: #eaf4e7; outline: 0; }
@media (max-width: 720px) { .asset-direction-bundle { grid-column: span 1; } .asset-bundle-members { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .asset-bundle-cover, .asset-bundle-toggle { transition: none; } }
